Class: AWSCDK::ImageBuilder::CfnDistributionConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnDistributionConfigurationProps
- Defined in:
- image_builder/cfn_distribution_configuration_props.rb
Overview
Properties for defining a CfnDistributionConfiguration.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of this distribution configuration.
-
#distributions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ImageBuilder::CfnDistributionConfiguration::DistributionProperty>
readonly
The distributions of this distribution configuration formatted as an array of Distribution objects.
-
#name ⇒ String
readonly
The name of this distribution configuration.
-
#tags ⇒ Hash{String => String}?
readonly
The tags of this distribution configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(distributions:, name:, description: nil, tags: nil) ⇒ CfnDistributionConfigurationProps
constructor
A new instance of CfnDistributionConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(distributions:, name:, description: nil, tags: nil) ⇒ CfnDistributionConfigurationProps
Returns a new instance of CfnDistributionConfigurationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 13 def initialize(distributions:, name:, description: nil, tags: nil) @distributions = distributions Jsii::Type.check_type(@distributions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW1hZ2VidWlsZGVyLkNmbkRpc3RyaWJ1dGlvbkNvbmZpZ3VyYXRpb24uRGlzdHJpYnV0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "distributions") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of this distribution configuration.
38 39 40 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 38 def description @description end |
#distributions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ImageBuilder::CfnDistributionConfiguration::DistributionProperty> (readonly)
The distributions of this distribution configuration formatted as an array of Distribution objects.
28 29 30 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 28 def distributions @distributions end |
#name ⇒ String (readonly)
The name of this distribution configuration.
33 34 35 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 33 def name @name end |
#tags ⇒ Hash{String => String}? (readonly)
The tags of this distribution configuration.
43 44 45 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 45 def self.jsii_properties { :distributions => "distributions", :name => "name", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'image_builder/cfn_distribution_configuration_props.rb', line 54 def to_jsii result = {} result.merge!({ "distributions" => @distributions, "name" => @name, "description" => @description, "tags" => @tags, }) result.compact end |