Class: AWSCDK::Kinesis::StreamConsumerAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis/stream_consumer_attributes.rb

Overview

A reference to a StreamConsumer, which can be imported using StreamConsumer.fromStreamConsumerAttributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream_consumer_arn:) ⇒ StreamConsumerAttributes

Returns a new instance of StreamConsumerAttributes.

Parameters:

  • stream_consumer_arn (String)

    The Amazon Resource Name (ARN) of the stream consumer.



8
9
10
11
# File 'kinesis/stream_consumer_attributes.rb', line 8

def initialize(stream_consumer_arn:)
  @stream_consumer_arn = stream_consumer_arn
  Jsii::Type.check_type(@stream_consumer_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamConsumerArn")
end

Instance Attribute Details

#stream_consumer_arnString (readonly)

The Amazon Resource Name (ARN) of the stream consumer.

Returns:

  • (String)


16
17
18
# File 'kinesis/stream_consumer_attributes.rb', line 16

def stream_consumer_arn
  @stream_consumer_arn
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'kinesis/stream_consumer_attributes.rb', line 18

def self.jsii_properties
  {
    :stream_consumer_arn => "streamConsumerArn",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'kinesis/stream_consumer_attributes.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "streamConsumerArn" => @stream_consumer_arn,
  })
  result.compact
end