Class: AWSCDK::Interfaces::AWSDynamodb::GlobalTableReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_dynamodb/global_table_reference.rb

Overview

A reference to a GlobalTable resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global_table_arn:, table_name:) ⇒ GlobalTableReference

Returns a new instance of GlobalTableReference.

Parameters:

  • global_table_arn (String)

    The ARN of the GlobalTable resource.

  • table_name (String)

    The TableName of the GlobalTable resource.



9
10
11
12
13
14
# File 'interfaces/aws_dynamodb/global_table_reference.rb', line 9

def initialize(global_table_arn:, table_name:)
  @global_table_arn = global_table_arn
  Jsii::Type.check_type(@global_table_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "globalTableArn")
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName")
end

Instance Attribute Details

#global_table_arnString (readonly)

The ARN of the GlobalTable resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_dynamodb/global_table_reference.rb', line 19

def global_table_arn
  @global_table_arn
end

#table_nameString (readonly)

The TableName of the GlobalTable resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_dynamodb/global_table_reference.rb', line 23

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_dynamodb/global_table_reference.rb', line 25

def self.jsii_properties
  {
    :global_table_arn => "globalTableArn",
    :table_name => "tableName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_dynamodb/global_table_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "globalTableArn" => @global_table_arn,
    "tableName" => @table_name,
  })
  result.compact
end