Class: AWSCDK::KinesisFirehose::SchemaConfigurationFromCfnTableProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_firehose/schema_configuration_from_cfn_table_props.rb

Overview

Options for creating a Schema for record format conversion from a glue.CfnTable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region: nil, version_id: nil) ⇒ SchemaConfigurationFromCfnTableProps

Returns a new instance of SchemaConfigurationFromCfnTableProps.

Parameters:

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

    The region of the database the table is in.

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

    Specifies the table version for the output data schema.



9
10
11
12
13
14
# File 'kinesis_firehose/schema_configuration_from_cfn_table_props.rb', line 9

def initialize(region: nil, version_id: nil)
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil?
  @version_id = version_id
  Jsii::Type.check_type(@version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionId") unless @version_id.nil?
end

Instance Attribute Details

#regionString? (readonly)

Note:

Default: the region of the stack that contains the table reference is used

The region of the database the table is in.

Returns:

  • (String, nil)


20
21
22
# File 'kinesis_firehose/schema_configuration_from_cfn_table_props.rb', line 20

def region
  @region
end

#version_idString? (readonly)

Note:

Default: LATEST

Specifies the table version for the output data schema.

if set to LATEST, Firehose uses the most recent table version. This means that any updates to the table are automatically picked up.



28
29
30
# File 'kinesis_firehose/schema_configuration_from_cfn_table_props.rb', line 28

def version_id
  @version_id
end

Class Method Details

.jsii_propertiesObject



30
31
32
33
34
35
# File 'kinesis_firehose/schema_configuration_from_cfn_table_props.rb', line 30

def self.jsii_properties
  {
    :region => "region",
    :version_id => "versionId",
  }
end

Instance Method Details

#to_jsiiObject



37
38
39
40
41
42
43
44
# File 'kinesis_firehose/schema_configuration_from_cfn_table_props.rb', line 37

def to_jsii
  result = {}
  result.merge!({
    "region" => @region,
    "versionId" => @version_id,
  })
  result.compact
end