Class: AWSCDK::Glue::CfnPartition::SchemaReferenceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnPartition::SchemaReferenceProperty
- Defined in:
- glue/cfn_partition.rb
Overview
An object that references a schema stored in the AWS Glue Schema Registry.
Instance Attribute Summary collapse
-
#schema_id ⇒ AWSCDK::IResolvable, ...
readonly
A structure that contains schema identity fields.
-
#schema_version_id ⇒ String?
readonly
The unique ID assigned to a version of the schema.
-
#schema_version_number ⇒ Numeric?
readonly
The version number of the schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schema_id: nil, schema_version_id: nil, schema_version_number: nil) ⇒ SchemaReferenceProperty
constructor
A new instance of SchemaReferenceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(schema_id: nil, schema_version_id: nil, schema_version_number: nil) ⇒ SchemaReferenceProperty
Returns a new instance of SchemaReferenceProperty.
756 757 758 759 760 761 762 763 |
# File 'glue/cfn_partition.rb', line 756 def initialize(schema_id: nil, schema_version_id: nil, schema_version_number: nil) @schema_id = schema_id.is_a?(Hash) ? ::AWSCDK::Glue::CfnPartition::SchemaIdProperty.new(**schema_id.transform_keys(&:to_sym)) : schema_id Jsii::Type.check_type(@schema_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblBhcnRpdGlvbi5TY2hlbWFJZFByb3BlcnR5In1dfX0=")), "schemaId") unless @schema_id.nil? @schema_version_id = schema_version_id Jsii::Type.check_type(@schema_version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schemaVersionId") unless @schema_version_id.nil? @schema_version_number = schema_version_number Jsii::Type.check_type(@schema_version_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "schemaVersionNumber") unless @schema_version_number.nil? end |
Instance Attribute Details
#schema_id ⇒ AWSCDK::IResolvable, ... (readonly)
A structure that contains schema identity fields.
Either this or the SchemaVersionId has to be
provided.
772 773 774 |
# File 'glue/cfn_partition.rb', line 772 def schema_id @schema_id end |
#schema_version_id ⇒ String? (readonly)
The unique ID assigned to a version of the schema.
Either this or the SchemaId has to be provided.
779 780 781 |
# File 'glue/cfn_partition.rb', line 779 def schema_version_id @schema_version_id end |
#schema_version_number ⇒ Numeric? (readonly)
The version number of the schema.
784 785 786 |
# File 'glue/cfn_partition.rb', line 784 def schema_version_number @schema_version_number end |
Class Method Details
.jsii_properties ⇒ Object
786 787 788 789 790 791 792 |
# File 'glue/cfn_partition.rb', line 786 def self.jsii_properties { :schema_id => "schemaId", :schema_version_id => "schemaVersionId", :schema_version_number => "schemaVersionNumber", } end |
Instance Method Details
#to_jsii ⇒ Object
794 795 796 797 798 799 800 801 802 |
# File 'glue/cfn_partition.rb', line 794 def to_jsii result = {} result.merge!({ "schemaId" => @schema_id, "schemaVersionId" => @schema_version_id, "schemaVersionNumber" => @schema_version_number, }) result.compact end |