Class: AWSCDK::Personalize::CfnSchemaProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
personalize/cfn_schema_props.rb

Overview

Properties for defining a CfnSchema.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, schema:, domain: nil) ⇒ CfnSchemaProps

Returns a new instance of CfnSchemaProps.

Parameters:

  • name (String)

    The name of the schema.

  • schema (String)

    The schema.

  • domain (String, nil) (defaults to: nil)

    The domain of a schema that you created for a dataset in a Domain dataset group.



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

#domainString? (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

#nameString (readonly)

The name of the schema.



25
26
27
# File 'personalize/cfn_schema_props.rb', line 25

def name
  @name
end

#schemaString (readonly)

The schema.



30
31
32
# File 'personalize/cfn_schema_props.rb', line 30

def schema
  @schema
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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