Class: AWSCDK::IoT::CfnTopicRule::KinesisActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::KinesisActionProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Describes an action to write data to an Amazon Kinesis stream.
Instance Attribute Summary collapse
-
#partition_key ⇒ String?
readonly
The partition key.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
-
#stream_name ⇒ String
readonly
The name of the Amazon Kinesis stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, stream_name:, partition_key: nil) ⇒ KinesisActionProperty
constructor
A new instance of KinesisActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, stream_name:, partition_key: nil) ⇒ KinesisActionProperty
Returns a new instance of KinesisActionProperty.
2036 2037 2038 2039 2040 2041 2042 2043 |
# File 'io_t/cfn_topic_rule.rb', line 2036 def initialize(role_arn:, stream_name:, partition_key: nil) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @stream_name = stream_name Jsii::Type.check_type(@stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamName") @partition_key = partition_key Jsii::Type.check_type(@partition_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "partitionKey") unless @partition_key.nil? end |
Instance Attribute Details
#partition_key ⇒ String? (readonly)
The partition key.
2059 2060 2061 |
# File 'io_t/cfn_topic_rule.rb', line 2059 def partition_key @partition_key end |
#role_arn ⇒ String (readonly)
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
2049 2050 2051 |
# File 'io_t/cfn_topic_rule.rb', line 2049 def role_arn @role_arn end |
#stream_name ⇒ String (readonly)
The name of the Amazon Kinesis stream.
2054 2055 2056 |
# File 'io_t/cfn_topic_rule.rb', line 2054 def stream_name @stream_name end |
Class Method Details
.jsii_properties ⇒ Object
2061 2062 2063 2064 2065 2066 2067 |
# File 'io_t/cfn_topic_rule.rb', line 2061 def self.jsii_properties { :role_arn => "roleArn", :stream_name => "streamName", :partition_key => "partitionKey", } end |
Instance Method Details
#to_jsii ⇒ Object
2069 2070 2071 2072 2073 2074 2075 2076 2077 |
# File 'io_t/cfn_topic_rule.rb', line 2069 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "streamName" => @stream_name, "partitionKey" => @partition_key, }) result.compact end |