Class: AWSCDK::Glue::CfnSchemaVersionMetadataProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnSchemaVersionMetadataProps
- Defined in:
- glue/cfn_schema_version_metadata_props.rb
Overview
Properties for defining a CfnSchemaVersionMetadata.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
A metadata key in a key-value pair for metadata.
-
#schema_version_id ⇒ String, AWSCDK::Interfaces::AWSGlue::ISchemaVersionRef
readonly
The version number of the schema.
-
#value ⇒ String
readonly
A metadata key's corresponding value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, schema_version_id:, value:) ⇒ CfnSchemaVersionMetadataProps
constructor
A new instance of CfnSchemaVersionMetadataProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, schema_version_id:, value:) ⇒ CfnSchemaVersionMetadataProps
Returns a new instance of CfnSchemaVersionMetadataProps.
12 13 14 15 16 17 18 19 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 12 def initialize(key:, schema_version_id:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @schema_version_id = schema_version_id Jsii::Type.check_type(@schema_version_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19nbHVlLklTY2hlbWFWZXJzaW9uUmVmIn1dfX0=")), "schemaVersionId") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
A metadata key in a key-value pair for metadata.
25 26 27 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 25 def key @key end |
#schema_version_id ⇒ String, AWSCDK::Interfaces::AWSGlue::ISchemaVersionRef (readonly)
The version number of the schema.
30 31 32 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 30 def schema_version_id @schema_version_id end |
#value ⇒ String (readonly)
A metadata key's corresponding value.
35 36 37 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 35 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 37 def self.jsii_properties { :key => "key", :schema_version_id => "schemaVersionId", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'glue/cfn_schema_version_metadata_props.rb', line 45 def to_jsii result = {} result.merge!({ "key" => @key, "schemaVersionId" => @schema_version_id, "value" => @value, }) result.compact end |