/** * 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 MWAA { namespace Model { /** *

Describes the Apache Airflow log details for the log type (e.g. * DagProcessingLogs).

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; } /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; } /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache * Airflow log type (e.g. DagProcessingLogs) is published. For * example, * arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*.

*/ inline ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;} /** *

Indicates whether the Apache Airflow log type (e.g. * DagProcessingLogs) is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether the Apache Airflow log type (e.g. * DagProcessingLogs) is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether the Apache Airflow log type (e.g. * DagProcessingLogs) is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether the Apache Airflow log type (e.g. * DagProcessingLogs) is enabled.

*/ inline ModuleLoggingConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline const LoggingLevel& GetLogLevel() const{ return m_logLevel; } /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline void SetLogLevel(const LoggingLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline void SetLogLevel(LoggingLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline ModuleLoggingConfiguration& WithLogLevel(const LoggingLevel& value) { SetLogLevel(value); return *this;} /** *

The Apache Airflow log level for the log type (e.g. * DagProcessingLogs).

*/ inline ModuleLoggingConfiguration& WithLogLevel(LoggingLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: Aws::String m_cloudWatchLogGroupArn; bool m_cloudWatchLogGroupArnHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; LoggingLevel m_logLevel; bool m_logLevelHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws