Class: AWSCDK::Glue::CfnTable::TableIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_table.rb

Overview

A structure that describes a target table for resource linking.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id: nil, database_name: nil, name: nil, region: nil) ⇒ TableIdentifierProperty

Returns a new instance of TableIdentifierProperty.

Parameters:

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

    The ID of the Data Catalog in which the table resides.

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

    The name of the catalog database that contains the target table.

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

    The name of the target table.

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

    The Region of the table.



1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
# File 'glue/cfn_table.rb', line 1478

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

Instance Attribute Details

#catalog_idString? (readonly)

The ID of the Data Catalog in which the table resides.



1493
1494
1495
# File 'glue/cfn_table.rb', line 1493

def catalog_id
  @catalog_id
end

#database_nameString? (readonly)

The name of the catalog database that contains the target table.



1498
1499
1500
# File 'glue/cfn_table.rb', line 1498

def database_name
  @database_name
end

#nameString? (readonly)

The name of the target table.



1503
1504
1505
# File 'glue/cfn_table.rb', line 1503

def name
  @name
end

#regionString? (readonly)

The Region of the table.



1508
1509
1510
# File 'glue/cfn_table.rb', line 1508

def region
  @region
end

Class Method Details

.jsii_propertiesObject



1510
1511
1512
1513
1514
1515
1516
1517
# File 'glue/cfn_table.rb', line 1510

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :database_name => "databaseName",
    :name => "name",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'glue/cfn_table.rb', line 1519

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