Class: AWSCDK::IoT::CfnTopicRule::KinesisActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

Describes an action to write data to an Amazon Kinesis stream.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, stream_name:, partition_key: nil) ⇒ KinesisActionProperty

Returns a new instance of KinesisActionProperty.

Parameters:

  • role_arn (String)

    The ARN of the IAM role that grants access to the Amazon Kinesis stream.

  • stream_name (String)

    The name of the Amazon Kinesis stream.

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

    The partition key.



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

The partition key.



2059
2060
2061
# File 'io_t/cfn_topic_rule.rb', line 2059

def partition_key
  @partition_key
end

#role_arnString (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_nameString (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_propertiesObject



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_jsiiObject



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