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

The FireLens configuration for the container. The configuration specifies and * configures a log router for container logs.

See Also:

AWS * API Reference

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

*/ inline const Aws::Map& GetOptions() const{ return m_options; } /** *

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& 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 to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

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

The options to use to configure the log router.

The valid option keys * are as follows:

  • enable-ecs-log-metadata. The * value can be true or false.

  • * config-file-type. The value can be s3 or * file.

  • config-file-value. The value * is either an S3 ARN or a file path.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& AddOptions(const char* key, const char* value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; } /** *

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

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

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

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

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

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

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

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

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

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

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

*/ inline AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

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

*/ inline AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

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

*/ inline AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDetails& WithType(const char* value) { SetType(value); return *this;} private: Aws::Map m_options; bool m_optionsHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws