Class: AWSCDK::Interfaces::AWSQLDB::StreamReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsqldb/stream_reference.rb

Overview

A reference to a Stream resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ledger_name:, stream_arn:, stream_id:) ⇒ StreamReference

Returns a new instance of StreamReference.

Parameters:

  • ledger_name (String)

    The LedgerName of the Stream resource.

  • stream_arn (String)

    The ARN of the Stream resource.

  • stream_id (String)

    The Id of the Stream resource.



10
11
12
13
14
15
16
17
# File 'interfaces/awsqldb/stream_reference.rb', line 10

def initialize(ledger_name:, stream_arn:, stream_id:)
  @ledger_name = ledger_name
  Jsii::Type.check_type(@ledger_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ledgerName")
  @stream_arn = stream_arn
  Jsii::Type.check_type(@stream_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamArn")
  @stream_id = stream_id
  Jsii::Type.check_type(@stream_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamId")
end

Instance Attribute Details

#ledger_nameString (readonly)

The LedgerName of the Stream resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/awsqldb/stream_reference.rb', line 22

def ledger_name
  @ledger_name
end

#stream_arnString (readonly)

The ARN of the Stream resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/awsqldb/stream_reference.rb', line 26

def stream_arn
  @stream_arn
end

#stream_idString (readonly)

The Id of the Stream resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/awsqldb/stream_reference.rb', line 30

def stream_id
  @stream_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/awsqldb/stream_reference.rb', line 32

def self.jsii_properties
  {
    :ledger_name => "ledgerName",
    :stream_arn => "streamArn",
    :stream_id => "streamId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/awsqldb/stream_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "ledgerName" => @ledger_name,
    "streamArn" => @stream_arn,
    "streamId" => @stream_id,
  })
  result.compact
end