Class: AWSCDK::Interfaces::AWSTimestream::TableReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_timestream/table_reference.rb

Overview

A reference to a Table resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_name:, table_arn:, table_name:) ⇒ TableReference

Returns a new instance of TableReference.

Parameters:

  • database_name (String)

    The DatabaseName of the Table resource.

  • table_arn (String)

    The ARN of the Table resource.

  • table_name (String)

    The TableName of the Table resource.



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

def initialize(database_name:, table_arn:, table_name:)
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName")
  @table_arn = table_arn
  Jsii::Type.check_type(@table_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableArn")
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName")
end

Instance Attribute Details

#database_nameString (readonly)

The DatabaseName of the Table resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_timestream/table_reference.rb', line 22

def database_name
  @database_name
end

#table_arnString (readonly)

The ARN of the Table resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_timestream/table_reference.rb', line 26

def table_arn
  @table_arn
end

#table_nameString (readonly)

The TableName of the Table resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_timestream/table_reference.rb', line 30

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :database_name => "databaseName",
    :table_arn => "tableArn",
    :table_name => "tableName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "databaseName" => @database_name,
    "tableArn" => @table_arn,
    "tableName" => @table_name,
  })
  result.compact
end