Class: AWSCDK::Glue::CfnSchemaVersion::SchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnSchemaVersion::SchemaProperty
- Defined in:
- glue/cfn_schema_version.rb
Overview
A wrapper structure to contain schema identity fields.
Either SchemaArn , or SchemaName and RegistryName has to be provided.
Instance Attribute Summary collapse
-
#registry_name ⇒ String?
readonly
The name of the registry where the schema is stored.
-
#schema_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the schema.
-
#schema_name ⇒ String?
readonly
The name of the schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(registry_name: nil, schema_arn: nil, schema_name: nil) ⇒ SchemaProperty
constructor
A new instance of SchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(registry_name: nil, schema_arn: nil, schema_name: nil) ⇒ SchemaProperty
Returns a new instance of SchemaProperty.
518 519 520 521 522 523 524 525 |
# File 'glue/cfn_schema_version.rb', line 518 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_name ⇒ String? (readonly)
The name of the registry where the schema is stored.
Either SchemaArn , or SchemaName and RegistryName has to be provided.
533 534 535 |
# File 'glue/cfn_schema_version.rb', line 533 def registry_name @registry_name end |
#schema_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the schema.
Either SchemaArn , or SchemaName and RegistryName has to be provided.
540 541 542 |
# File 'glue/cfn_schema_version.rb', line 540 def schema_arn @schema_arn end |
#schema_name ⇒ String? (readonly)
The name of the schema.
Either SchemaArn , or SchemaName and RegistryName has to be provided.
547 548 549 |
# File 'glue/cfn_schema_version.rb', line 547 def schema_name @schema_name end |
Class Method Details
.jsii_properties ⇒ Object
549 550 551 552 553 554 555 |
# File 'glue/cfn_schema_version.rb', line 549 def self.jsii_properties { :registry_name => "registryName", :schema_arn => "schemaArn", :schema_name => "schemaName", } end |
Instance Method Details
#to_jsii ⇒ Object
557 558 559 560 561 562 563 564 565 |
# File 'glue/cfn_schema_version.rb', line 557 def to_jsii result = {} result.merge!({ "registryName" => @registry_name, "schemaArn" => @schema_arn, "schemaName" => @schema_name, }) result.compact end |