Struct aws_sdk_ecs::types::builders::FirelensConfigurationBuilder
source · #[non_exhaustive]pub struct FirelensConfigurationBuilder { /* private fields */ }
Expand description
A builder for FirelensConfiguration
.
Implementations§
source§impl FirelensConfigurationBuilder
impl FirelensConfigurationBuilder
sourcepub fn type(self, input: FirelensConfigurationType) -> Self
pub fn type(self, input: FirelensConfigurationType) -> Self
The log router to use. The valid values are fluentd
or fluentbit
.
sourcepub fn set_type(self, input: Option<FirelensConfigurationType>) -> Self
pub fn set_type(self, input: Option<FirelensConfigurationType>) -> Self
The log router to use. The valid values are fluentd
or fluentbit
.
sourcepub fn get_type(&self) -> &Option<FirelensConfigurationType>
pub fn get_type(&self) -> &Option<FirelensConfigurationType>
The log router to use. The valid values are fluentd
or fluentbit
.
sourcepub fn options(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn options(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to options
.
To override the contents of this collection use set_options
.
The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}
. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide.
Tasks hosted on Fargate only support the file
configuration file type.
sourcepub fn set_options(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_options(self, input: Option<HashMap<String, String>>) -> Self
The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}
. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide.
Tasks hosted on Fargate only support the file
configuration file type.
sourcepub fn get_options(&self) -> &Option<HashMap<String, String>>
pub fn get_options(&self) -> &Option<HashMap<String, String>>
The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}
. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide.
Tasks hosted on Fargate only support the file
configuration file type.
sourcepub fn build(self) -> Result<FirelensConfiguration, BuildError>
pub fn build(self) -> Result<FirelensConfiguration, BuildError>
Consumes the builder and constructs a FirelensConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FirelensConfigurationBuilder
impl Clone for FirelensConfigurationBuilder
source§fn clone(&self) -> FirelensConfigurationBuilder
fn clone(&self) -> FirelensConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirelensConfigurationBuilder
impl Debug for FirelensConfigurationBuilder
source§impl Default for FirelensConfigurationBuilder
impl Default for FirelensConfigurationBuilder
source§fn default() -> FirelensConfigurationBuilder
fn default() -> FirelensConfigurationBuilder
source§impl PartialEq for FirelensConfigurationBuilder
impl PartialEq for FirelensConfigurationBuilder
source§fn eq(&self, other: &FirelensConfigurationBuilder) -> bool
fn eq(&self, other: &FirelensConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.