Class: AWSCDK::CleanRooms::CfnConfiguredTable::GlueTableReferenceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms/cfn_configured_table.rb

Overview

A reference to a table within an AWS Glue data catalog.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_name:, table_name:, region: nil) ⇒ GlueTableReferenceProperty

Returns a new instance of GlueTableReferenceProperty.

Parameters:

  • database_name (String)

    The name of the database the AWS Glue table belongs to.

  • table_name (String)

    The name of the AWS Glue table.

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

    The AWS Region where the AWS Glue table is located.



1262
1263
1264
1265
1266
1267
1268
1269
# File 'clean_rooms/cfn_configured_table.rb', line 1262

def initialize(database_name:, table_name:, region: nil)
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName")
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName")
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil?
end

Instance Attribute Details

#database_nameString (readonly)

The name of the database the AWS Glue table belongs to.



1275
1276
1277
# File 'clean_rooms/cfn_configured_table.rb', line 1275

def database_name
  @database_name
end

#regionString? (readonly)

The AWS Region where the AWS Glue table is located.

This parameter is required to uniquely identify and access tables across different Regions.



1287
1288
1289
# File 'clean_rooms/cfn_configured_table.rb', line 1287

def region
  @region
end

#table_nameString (readonly)

The name of the AWS Glue table.



1280
1281
1282
# File 'clean_rooms/cfn_configured_table.rb', line 1280

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



1289
1290
1291
1292
1293
1294
1295
# File 'clean_rooms/cfn_configured_table.rb', line 1289

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

Instance Method Details

#to_jsiiObject



1297
1298
1299
1300
1301
1302
1303
1304
1305
# File 'clean_rooms/cfn_configured_table.rb', line 1297

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