Class: AWSCDK::MWAA::CfnEnvironment::ModuleLoggingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MWAA::CfnEnvironment::ModuleLoggingConfigurationProperty
- Defined in:
- mwaa/cfn_environment.rb
Overview
Defines the type of logs to send for the Apache Airflow log type (e.g. DagProcessingLogs ).
Instance Attribute Summary collapse
-
#cloud_watch_log_group_arn ⇒ String?
readonly
The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.
-
#enabled ⇒ Boolean, ...
readonly
Indicates whether to enable the Apache Airflow log type (e.g.
DagProcessingLogs) in CloudWatch Logs. -
#log_level ⇒ String?
readonly
Defines the Apache Airflow logs to send for the log type (e.g.
DagProcessingLogs) to CloudWatch Logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_log_group_arn: nil, enabled: nil, log_level: nil) ⇒ ModuleLoggingConfigurationProperty
constructor
A new instance of ModuleLoggingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_log_group_arn: nil, enabled: nil, log_level: nil) ⇒ ModuleLoggingConfigurationProperty
Returns a new instance of ModuleLoggingConfigurationProperty.
1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'mwaa/cfn_environment.rb', line 1022 def initialize(cloud_watch_log_group_arn: nil, enabled: nil, log_level: nil) @cloud_watch_log_group_arn = cloud_watch_log_group_arn Jsii::Type.check_type(@cloud_watch_log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchLogGroupArn") unless @cloud_watch_log_group_arn.nil? @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @log_level = log_level Jsii::Type.check_type(@log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLevel") unless @log_level.nil? end |
Instance Attribute Details
#cloud_watch_log_group_arn ⇒ String? (readonly)
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.
1037 1038 1039 |
# File 'mwaa/cfn_environment.rb', line 1037 def cloud_watch_log_group_arn @cloud_watch_log_group_arn end |
#enabled ⇒ Boolean, ... (readonly)
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs ) in CloudWatch Logs.
1042 1043 1044 |
# File 'mwaa/cfn_environment.rb', line 1042 def enabled @enabled end |
#log_level ⇒ String? (readonly)
Defines the Apache Airflow logs to send for the log type (e.g. DagProcessingLogs ) to CloudWatch Logs.
1047 1048 1049 |
# File 'mwaa/cfn_environment.rb', line 1047 def log_level @log_level end |
Class Method Details
.jsii_properties ⇒ Object
1049 1050 1051 1052 1053 1054 1055 |
# File 'mwaa/cfn_environment.rb', line 1049 def self.jsii_properties { :cloud_watch_log_group_arn => "cloudWatchLogGroupArn", :enabled => "enabled", :log_level => "logLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
1057 1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'mwaa/cfn_environment.rb', line 1057 def to_jsii result = {} result.merge!({ "cloudWatchLogGroupArn" => @cloud_watch_log_group_arn, "enabled" => @enabled, "logLevel" => @log_level, }) result.compact end |