Class CfnEnvironment.ModuleLoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mwaa.CfnEnvironment.ModuleLoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.ModuleLoggingConfigurationProperty>
- Enclosing interface:
- CfnEnvironment.ModuleLoggingConfigurationProperty
@Stability(Stable)
public static final class CfnEnvironment.ModuleLoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.ModuleLoggingConfigurationProperty>
A builder for
CfnEnvironment.ModuleLoggingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchLogGroupArn(String cloudWatchLogGroupArn) Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getEnabled()Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogGroupArn
@Stability(Stable) public CfnEnvironment.ModuleLoggingConfigurationProperty.Builder cloudWatchLogGroupArn(String cloudWatchLogGroupArn) - Parameters:
cloudWatchLogGroupArn- The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.CloudWatchLogGroupArnis available only as a return value, accessible when specified as an attribute in theFn:GetAttintrinsic function. Any value you provide forCloudWatchLogGroupArnis discarded by Amazon MWAA.- Returns:
this
-
enabled
@Stability(Stable) public CfnEnvironment.ModuleLoggingConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Indicates whether to enable the Apache Airflow log type (e.g.DagProcessingLogs) in CloudWatch Logs.- Returns:
this
-
enabled
@Stability(Stable) public CfnEnvironment.ModuleLoggingConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Indicates whether to enable the Apache Airflow log type (e.g.DagProcessingLogs) in CloudWatch Logs.- Returns:
this
-
logLevel
@Stability(Stable) public CfnEnvironment.ModuleLoggingConfigurationProperty.Builder logLevel(String logLevel) Sets the value ofCfnEnvironment.ModuleLoggingConfigurationProperty.getLogLevel()- Parameters:
logLevel- Defines the Apache Airflow logs to send for the log type (e.g.DagProcessingLogs) to CloudWatch Logs. Valid values:CRITICAL,ERROR,WARNING,INFO.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironment.ModuleLoggingConfigurationProperty>- Returns:
- a new instance of
CfnEnvironment.ModuleLoggingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-