Class: AWSCDK::Personalize::CfnSchemaProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Personalize::CfnSchemaProps
- Defined in:
- personalize/cfn_schema_props.rb
Overview
Properties for defining a CfnSchema.
Instance Attribute Summary collapse
-
#domain ⇒ String?
readonly
The domain of a schema that you created for a dataset in a Domain dataset group.
-
#name ⇒ String
readonly
The name of the schema.
-
#schema ⇒ String
readonly
The schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, schema:, domain: nil) ⇒ CfnSchemaProps
constructor
A new instance of CfnSchemaProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, schema:, domain: nil) ⇒ CfnSchemaProps
Returns a new instance of CfnSchemaProps.
12 13 14 15 16 17 18 19 |
# File 'personalize/cfn_schema_props.rb', line 12 def initialize(name:, schema:, domain: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @schema = schema Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schema") @domain = domain Jsii::Type.check_type(@domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domain") unless @domain.nil? end |
Instance Attribute Details
#domain ⇒ String? (readonly)
The domain of a schema that you created for a dataset in a Domain dataset group.
35 36 37 |
# File 'personalize/cfn_schema_props.rb', line 35 def domain @domain end |
#name ⇒ String (readonly)
The name of the schema.
25 26 27 |
# File 'personalize/cfn_schema_props.rb', line 25 def name @name end |
#schema ⇒ String (readonly)
The schema.
30 31 32 |
# File 'personalize/cfn_schema_props.rb', line 30 def schema @schema end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'personalize/cfn_schema_props.rb', line 37 def self.jsii_properties { :name => "name", :schema => "schema", :domain => "domain", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'personalize/cfn_schema_props.rb', line 45 def to_jsii result = {} result.merge!({ "name" => @name, "schema" => @schema, "domain" => @domain, }) result.compact end |