Class: AWSCDK::MSK::CfnCluster::CloudWatchLogsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnCluster::CloudWatchLogsProperty
- Defined in:
- msk/cfn_cluster.rb
Overview
Details of the CloudWatch Logs destination for broker logs.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Specifies whether broker logs get sent to the specified CloudWatch Logs destination.
-
#log_group ⇒ String?
readonly
The CloudWatch log group that is the destination for broker logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, log_group: nil) ⇒ CloudWatchLogsProperty
constructor
A new instance of CloudWatchLogsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, log_group: nil) ⇒ CloudWatchLogsProperty
Returns a new instance of CloudWatchLogsProperty.
923 924 925 926 927 928 |
# File 'msk/cfn_cluster.rb', line 923 def initialize(enabled:, log_group: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @log_group = log_group Jsii::Type.check_type(@log_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroup") unless @log_group.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Specifies whether broker logs get sent to the specified CloudWatch Logs destination.
934 935 936 |
# File 'msk/cfn_cluster.rb', line 934 def enabled @enabled end |
#log_group ⇒ String? (readonly)
The CloudWatch log group that is the destination for broker logs.
939 940 941 |
# File 'msk/cfn_cluster.rb', line 939 def log_group @log_group end |
Class Method Details
.jsii_properties ⇒ Object
941 942 943 944 945 946 |
# File 'msk/cfn_cluster.rb', line 941 def self.jsii_properties { :enabled => "enabled", :log_group => "logGroup", } end |
Instance Method Details
#to_jsii ⇒ Object
948 949 950 951 952 953 954 955 |
# File 'msk/cfn_cluster.rb', line 948 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "logGroup" => @log_group, }) result.compact end |