Struct aws_sdk_ecs::model::firelens_configuration::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for FirelensConfiguration.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> FirelensConfiguration
pub fn build(self) -> FirelensConfiguration
Consumes the builder and constructs a FirelensConfiguration.