Class: AWSCDK::CloudFront::CfnKeyValueStoreProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnKeyValueStoreProps
- Defined in:
- cloud_front/cfn_key_value_store_props.rb
Overview
Properties for defining a CfnKeyValueStore.
Instance Attribute Summary collapse
-
#comment ⇒ String?
readonly
A comment for the key value store.
-
#import_source ⇒ AWSCDK::IResolvable, ...
readonly
The import source for the key value store.
-
#name ⇒ String
readonly
The name of the key value store.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A complex type that contains zero or more
Tagelements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, comment: nil, import_source: nil, tags: nil) ⇒ CfnKeyValueStoreProps
constructor
A new instance of CfnKeyValueStoreProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, comment: nil, import_source: nil, tags: nil) ⇒ CfnKeyValueStoreProps
Returns a new instance of CfnKeyValueStoreProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 13 def initialize(name:, comment: nil, import_source: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @comment = comment Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil? @import_source = import_source.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnKeyValueStore::ImportSourceProperty.new(**import_source.transform_keys(&:to_sym)) : import_source Jsii::Type.check_type(@import_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbktleVZhbHVlU3RvcmUuSW1wb3J0U291cmNlUHJvcGVydHkifV19fQ==")), "importSource") unless @import_source.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
#comment ⇒ String? (readonly)
A comment for the key value store.
33 34 35 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 33 def comment @comment end |
#import_source ⇒ AWSCDK::IResolvable, ... (readonly)
The import source for the key value store.
38 39 40 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 38 def import_source @import_source end |
#name ⇒ String (readonly)
The name of the key value store.
28 29 30 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 28 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A complex type that contains zero or more Tag elements.
43 44 45 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 45 def self.jsii_properties { :name => "name", :comment => "comment", :import_source => "importSource", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'cloud_front/cfn_key_value_store_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "comment" => @comment, "importSource" => @import_source, "tags" => @tags, }) result.compact end |