Class: AWSCDK::CloudFront::CfnDistribution::ParameterDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistribution::ParameterDefinitionProperty
- Defined in:
- cloud_front/cfn_distribution.rb
Overview
A list of parameter values to add to the resource.
A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.
Instance Attribute Summary collapse
-
#definition ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnDistribution::DefinitionProperty
readonly
The value that you assigned to the parameter.
-
#name ⇒ String
readonly
The name of the parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, name:) ⇒ ParameterDefinitionProperty
constructor
A new instance of ParameterDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, name:) ⇒ ParameterDefinitionProperty
Returns a new instance of ParameterDefinitionProperty.
3041 3042 3043 3044 3045 3046 |
# File 'cloud_front/cfn_distribution.rb', line 3041 def initialize(definition:, name:) @definition = definition.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnDistribution::DefinitionProperty.new(**definition.transform_keys(&:to_sym)) : definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkRpc3RyaWJ1dGlvbi5EZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "definition") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#definition ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnDistribution::DefinitionProperty (readonly)
The value that you assigned to the parameter.
3052 3053 3054 |
# File 'cloud_front/cfn_distribution.rb', line 3052 def definition @definition end |
#name ⇒ String (readonly)
The name of the parameter.
3057 3058 3059 |
# File 'cloud_front/cfn_distribution.rb', line 3057 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
3059 3060 3061 3062 3063 3064 |
# File 'cloud_front/cfn_distribution.rb', line 3059 def self.jsii_properties { :definition => "definition", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
3066 3067 3068 3069 3070 3071 3072 3073 |
# File 'cloud_front/cfn_distribution.rb', line 3066 def to_jsii result = {} result.merge!({ "definition" => @definition, "name" => @name, }) result.compact end |