Class: AWSCDK::MWAA::CfnEnvironment::ModuleLoggingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_log_group_arn: nil, enabled: nil, log_level: nil) ⇒ ModuleLoggingConfigurationProperty

Returns a new instance of ModuleLoggingConfigurationProperty.

Parameters:

  • cloud_watch_log_group_arn (String, nil) (defaults to: nil)

    The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs ) in CloudWatch Logs.

  • log_level (String, nil) (defaults to: nil)

    Defines the Apache Airflow logs to send for the log type (e.g. DagProcessingLogs ) to CloudWatch Logs.



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_arnString? (readonly)

The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you have enabled.

CloudWatchLogGroupArn is available only as a return value, accessible when specified as an attribute in the Fn:GetAtt intrinsic function. Any value you provide for CloudWatchLogGroupArn is 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

#enabledBoolean, ... (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_levelString? (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_propertiesObject



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_jsiiObject



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