Class: AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderPolicyConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderPolicyConfigProperty
- Defined in:
- cloud_front/cfn_continuous_deployment_policy.rb
Overview
Defines a single header policy for a CloudFront distribution.
This property is legacy. We recommend that you use TrafficConfig and specify the SingleHeaderConfig property instead.
Instance Attribute Summary collapse
-
#header ⇒ String
readonly
The name of the HTTP header that CloudFront uses to configure for the single header policy.
-
#value ⇒ String
readonly
Specifies the value to assign to the header for a single header policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header:, value:) ⇒ SingleHeaderPolicyConfigProperty
constructor
A new instance of SingleHeaderPolicyConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header:, value:) ⇒ SingleHeaderPolicyConfigProperty
Returns a new instance of SingleHeaderPolicyConfigProperty.
706 707 708 709 710 711 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 706 def initialize(header:, value:) @header = header Jsii::Type.check_type(@header, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "header") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#header ⇒ String (readonly)
The name of the HTTP header that CloudFront uses to configure for the single header policy.
717 718 719 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 717 def header @header end |
#value ⇒ String (readonly)
Specifies the value to assign to the header for a single header policy.
722 723 724 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 722 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
724 725 726 727 728 729 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 724 def self.jsii_properties { :header => "header", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
731 732 733 734 735 736 737 738 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 731 def to_jsii result = {} result.merge!({ "header" => @header, "value" => @value, }) result.compact end |