Class: AWSCDK::Glue::CfnSchemaVersionProps

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

Overview

Properties for defining a CfnSchemaVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema:, schema_definition:) ⇒ CfnSchemaVersionProps

Returns a new instance of CfnSchemaVersionProps.

Parameters:



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

#schemaAWSCDK::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_definitionString (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_propertiesObject



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_jsiiObject



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