Class: AWSCDK::VoiceID::CfnDomainProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VoiceID::CfnDomainProps
- Defined in:
- voice_id/cfn_domain_props.rb
Overview
Properties for defining a CfnDomain.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the domain.
-
#name ⇒ String
readonly
The name for the domain.
-
#server_side_encryption_configuration ⇒ AWSCDK::IResolvable, AWSCDK::VoiceID::CfnDomain::ServerSideEncryptionConfigurationProperty
readonly
The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, server_side_encryption_configuration:, description: nil, tags: nil) ⇒ CfnDomainProps
constructor
A new instance of CfnDomainProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, server_side_encryption_configuration:, description: nil, tags: nil) ⇒ CfnDomainProps
Returns a new instance of CfnDomainProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'voice_id/cfn_domain_props.rb', line 13 def initialize(name:, server_side_encryption_configuration:, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @server_side_encryption_configuration = server_side_encryption_configuration.is_a?(Hash) ? ::AWSCDK::VoiceID::CfnDomain::ServerSideEncryptionConfigurationProperty.new(**server_side_encryption_configuration.transform_keys(&:to_sym)) : server_side_encryption_configuration Jsii::Type.check_type(@server_side_encryption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192b2ljZWlkLkNmbkRvbWFpbi5TZXJ2ZXJTaWRlRW5jcnlwdGlvbkNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "serverSideEncryptionConfiguration") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the domain.
38 39 40 |
# File 'voice_id/cfn_domain_props.rb', line 38 def description @description end |
#name ⇒ String (readonly)
The name for the domain.
28 29 30 |
# File 'voice_id/cfn_domain_props.rb', line 28 def name @name end |
#server_side_encryption_configuration ⇒ AWSCDK::IResolvable, AWSCDK::VoiceID::CfnDomain::ServerSideEncryptionConfigurationProperty (readonly)
The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
33 34 35 |
# File 'voice_id/cfn_domain_props.rb', line 33 def server_side_encryption_configuration @server_side_encryption_configuration end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags used to organize, track, or control access for this resource.
43 44 45 |
# File 'voice_id/cfn_domain_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'voice_id/cfn_domain_props.rb', line 45 def self.jsii_properties { :name => "name", :server_side_encryption_configuration => "serverSideEncryptionConfiguration", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'voice_id/cfn_domain_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "serverSideEncryptionConfiguration" => @server_side_encryption_configuration, "description" => @description, "tags" => @tags, }) result.compact end |