Class: AWSCDK::CloudFront::CfnDistributionTenant::ParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistributionTenant::ParameterProperty
- Defined in:
- cloud_front/cfn_distribution_tenant.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
-
#name ⇒ String?
readonly
The parameter name.
-
#value ⇒ String?
readonly
The parameter value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ ParameterProperty
constructor
A new instance of ParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ ParameterProperty
Returns a new instance of ParameterProperty.
908 909 910 911 912 913 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 908 def initialize(name: nil, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The parameter name.
919 920 921 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 919 def name @name end |
#value ⇒ String? (readonly)
The parameter value.
924 925 926 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 924 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
926 927 928 929 930 931 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 926 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
933 934 935 936 937 938 939 940 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 933 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |