Class: AWSCDK::Glue::CfnSchemaVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnSchemaVersionProps
- Defined in:
- glue/cfn_schema_version_props.rb
Overview
Properties for defining a CfnSchemaVersion.
Instance Attribute Summary collapse
-
#schema ⇒ AWSCDK::IResolvable, AWSCDK::Glue::CfnSchemaVersion::SchemaProperty
readonly
The schema that includes the schema version.
-
#schema_definition ⇒ String
readonly
The schema definition for the schema version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schema:, schema_definition:) ⇒ CfnSchemaVersionProps
constructor
A new instance of CfnSchemaVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(schema:, schema_definition:) ⇒ CfnSchemaVersionProps
Returns a new instance of CfnSchemaVersionProps.
11 12 13 14 15 16 |
# File 'glue/cfn_schema_version_props.rb', line 11 def initialize(schema:, schema_definition:) @schema = schema.is_a?(Hash) ? ::AWSCDK::Glue::CfnSchemaVersion::SchemaProperty.new(**schema.transform_keys(&:to_sym)) : schema Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblNjaGVtYVZlcnNpb24uU2NoZW1hUHJvcGVydHkifV19fQ==")), "schema") @schema_definition = schema_definition Jsii::Type.check_type(@schema_definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schemaDefinition") end |
Instance Attribute Details
#schema ⇒ AWSCDK::IResolvable, AWSCDK::Glue::CfnSchemaVersion::SchemaProperty (readonly)
The schema that includes the schema version.
22 23 24 |
# File 'glue/cfn_schema_version_props.rb', line 22 def schema @schema end |
#schema_definition ⇒ String (readonly)
The schema definition for the schema version.
27 28 29 |
# File 'glue/cfn_schema_version_props.rb', line 27 def schema_definition @schema_definition end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'glue/cfn_schema_version_props.rb', line 29 def self.jsii_properties { :schema => "schema", :schema_definition => "schemaDefinition", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'glue/cfn_schema_version_props.rb', line 36 def to_jsii result = {} result.merge!({ "schema" => @schema, "schemaDefinition" => @schema_definition, }) result.compact end |