Class: AWSCDK::Glue::CfnTable::SchemaIdProperty

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

Overview

A structure that contains schema identity fields.

Either this or the SchemaVersionId has to be provided.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registry_name: nil, schema_arn: nil, schema_name: nil) ⇒ SchemaIdProperty

Returns a new instance of SchemaIdProperty.

Parameters:

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

    The name of the schema registry that contains the schema.

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

    The Amazon Resource Name (ARN) of the schema.

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

    The name of the schema.



1096
1097
1098
1099
1100
1101
1102
1103
# File 'glue/cfn_table.rb', line 1096

def initialize(registry_name: nil, schema_arn: nil, schema_name: nil)
  @registry_name = registry_name
  Jsii::Type.check_type(@registry_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "registryName") unless @registry_name.nil?
  @schema_arn = schema_arn
  Jsii::Type.check_type(@schema_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schemaArn") unless @schema_arn.nil?
  @schema_name = schema_name
  Jsii::Type.check_type(@schema_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schemaName") unless @schema_name.nil?
end

Instance Attribute Details

#registry_nameString? (readonly)

The name of the schema registry that contains the schema.



1109
1110
1111
# File 'glue/cfn_table.rb', line 1109

def registry_name
  @registry_name
end

#schema_arnString? (readonly)

The Amazon Resource Name (ARN) of the schema.

One of SchemaArn or SchemaName has to be provided.



1117
1118
1119
# File 'glue/cfn_table.rb', line 1117

def schema_arn
  @schema_arn
end

#schema_nameString? (readonly)

The name of the schema.

One of SchemaArn or SchemaName has to be provided.



1124
1125
1126
# File 'glue/cfn_table.rb', line 1124

def schema_name
  @schema_name
end

Class Method Details

.jsii_propertiesObject



1126
1127
1128
1129
1130
1131
1132
# File 'glue/cfn_table.rb', line 1126

def self.jsii_properties
  {
    :registry_name => "registryName",
    :schema_arn => "schemaArn",
    :schema_name => "schemaName",
  }
end

Instance Method Details

#to_jsiiObject



1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'glue/cfn_table.rb', line 1134

def to_jsii
  result = {}
  result.merge!({
    "registryName" => @registry_name,
    "schemaArn" => @schema_arn,
    "schemaName" => @schema_name,
  })
  result.compact
end