Class: AWSCDK::IoT::CfnTopicRule::CloudwatchLogsActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::CloudwatchLogsActionProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Describes an action that updates a CloudWatch log.
Instance Attribute Summary collapse
-
#batch_mode ⇒ Boolean, ...
readonly
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
-
#log_group_name ⇒ String
readonly
The CloudWatch log name.
-
#role_arn ⇒ String
readonly
The IAM role that allows access to the CloudWatch log.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_group_name:, role_arn:, batch_mode: nil) ⇒ CloudwatchLogsActionProperty
constructor
A new instance of CloudwatchLogsActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_group_name:, role_arn:, batch_mode: nil) ⇒ CloudwatchLogsActionProperty
Returns a new instance of CloudwatchLogsActionProperty.
1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'io_t/cfn_topic_rule.rb', line 1112 def initialize(log_group_name:, role_arn:, batch_mode: nil) @log_group_name = log_group_name Jsii::Type.check_type(@log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @batch_mode = batch_mode Jsii::Type.check_type(@batch_mode, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "batchMode") unless @batch_mode.nil? end |
Instance Attribute Details
#batch_mode ⇒ Boolean, ... (readonly)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
1135 1136 1137 |
# File 'io_t/cfn_topic_rule.rb', line 1135 def batch_mode @batch_mode end |
#log_group_name ⇒ String (readonly)
The CloudWatch log name.
1125 1126 1127 |
# File 'io_t/cfn_topic_rule.rb', line 1125 def log_group_name @log_group_name end |
#role_arn ⇒ String (readonly)
The IAM role that allows access to the CloudWatch log.
1130 1131 1132 |
# File 'io_t/cfn_topic_rule.rb', line 1130 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
1137 1138 1139 1140 1141 1142 1143 |
# File 'io_t/cfn_topic_rule.rb', line 1137 def self.jsii_properties { :log_group_name => "logGroupName", :role_arn => "roleArn", :batch_mode => "batchMode", } end |
Instance Method Details
#to_jsii ⇒ Object
1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'io_t/cfn_topic_rule.rb', line 1145 def to_jsii result = {} result.merge!({ "logGroupName" => @log_group_name, "roleArn" => @role_arn, "batchMode" => @batch_mode, }) result.compact end |