Class: AWSCDK::Cassandra::CfnTypeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cassandra::CfnTypeProps
- Defined in:
- cassandra/cfn_type_props.rb
Overview
Properties for defining a CfnType.
Instance Attribute Summary collapse
-
#fields ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cassandra::CfnType::FieldProperty>
readonly
A list of fields that define this type.
-
#keyspace_name ⇒ String
readonly
The name of the keyspace to create the type in.
-
#type_name ⇒ String
readonly
The name of the user-defined type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fields:, keyspace_name:, type_name:) ⇒ CfnTypeProps
constructor
A new instance of CfnTypeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(fields:, keyspace_name:, type_name:) ⇒ CfnTypeProps
Returns a new instance of CfnTypeProps.
12 13 14 15 16 17 18 19 |
# File 'cassandra/cfn_type_props.rb', line 12 def initialize(fields:, keyspace_name:, type_name:) @fields = fields Jsii::Type.check_type(@fields, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2Fzc2FuZHJhLkNmblR5cGUuRmllbGRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "fields") @keyspace_name = keyspace_name Jsii::Type.check_type(@keyspace_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyspaceName") @type_name = type_name Jsii::Type.check_type(@type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "typeName") end |
Instance Attribute Details
#fields ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cassandra::CfnType::FieldProperty> (readonly)
A list of fields that define this type.
25 26 27 |
# File 'cassandra/cfn_type_props.rb', line 25 def fields @fields end |
#keyspace_name ⇒ String (readonly)
The name of the keyspace to create the type in.
The keyspace must already exist.
32 33 34 |
# File 'cassandra/cfn_type_props.rb', line 32 def keyspace_name @keyspace_name end |
#type_name ⇒ String (readonly)
The name of the user-defined type.
UDT names must contain 48 characters or less, must begin with an alphabetic character, and can only contain alpha-numeric characters and underscores. Amazon Keyspaces converts upper case characters automatically into lower case characters. For more information, see Create a user-defined type (UDT) in Amazon Keyspaces in the Amazon Keyspaces Developer Guide .
39 40 41 |
# File 'cassandra/cfn_type_props.rb', line 39 def type_name @type_name end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 |
# File 'cassandra/cfn_type_props.rb', line 41 def self.jsii_properties { :fields => "fields", :keyspace_name => "keyspaceName", :type_name => "typeName", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'cassandra/cfn_type_props.rb', line 49 def to_jsii result = {} result.merge!({ "fields" => @fields, "keyspaceName" => @keyspace_name, "typeName" => @type_name, }) result.compact end |