/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

The FireLens configuration for the container. This is used to specify and * configure a log router for container logs. For more information, see Custom * Log Routing in the Amazon Elastic Container Service Developer * Guide.

See Also:

AWS * API Reference

*/ class AWS_ECS_API FirelensConfiguration { public: FirelensConfiguration(); FirelensConfiguration(Aws::Utils::Json::JsonView jsonValue); FirelensConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline const FirelensConfigurationType& GetType() const{ return m_type; } /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline void SetType(const FirelensConfigurationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline void SetType(FirelensConfigurationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline FirelensConfiguration& WithType(const FirelensConfigurationType& value) { SetType(value); return *this;} /** *

The log router to use. The valid values are fluentd or * fluentbit.

*/ inline FirelensConfiguration& WithType(FirelensConfigurationType&& value) { SetType(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Map& GetOptions() const{ return m_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.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

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.

*/ inline void SetOptions(const Aws::Map& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

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.

*/ inline void SetOptions(Aws::Map&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

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.

*/ inline FirelensConfiguration& WithOptions(const Aws::Map& value) { SetOptions(value); return *this;} /** *

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.

*/ inline FirelensConfiguration& WithOptions(Aws::Map&& value) { SetOptions(std::move(value)); return *this;} /** *

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.

*/ inline FirelensConfiguration& AddOptions(const Aws::String& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(Aws::String&& key, const Aws::String& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(const Aws::String& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(Aws::String&& key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(const char* key, Aws::String&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(Aws::String&& key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline FirelensConfiguration& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; } private: FirelensConfigurationType m_type; bool m_typeHasBeenSet; Aws::Map m_options; bool m_optionsHasBeenSet; }; } // namespace Model } // namespace ECS } // namespace Aws