Class: AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderConfigProperty
- Defined in:
- cloud_front/cfn_continuous_deployment_policy.rb
Overview
Determines which HTTP requests are sent to the staging distribution.
Instance Attribute Summary collapse
-
#header ⇒ String
readonly
The request header name that you want CloudFront to send to your staging distribution.
-
#value ⇒ String
readonly
The request header value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header:, value:) ⇒ SingleHeaderConfigProperty
constructor
A new instance of SingleHeaderConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header:, value:) ⇒ SingleHeaderConfigProperty
Returns a new instance of SingleHeaderConfigProperty.
659 660 661 662 663 664 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 659 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 request header name that you want CloudFront to send to your staging distribution.
The header must contain the prefix aws-cf-cd- .
672 673 674 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 672 def header @header end |
#value ⇒ String (readonly)
The request header value.
677 678 679 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 677 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
679 680 681 682 683 684 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 679 def self.jsii_properties { :header => "header", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
686 687 688 689 690 691 692 693 |
# File 'cloud_front/cfn_continuous_deployment_policy.rb', line 686 def to_jsii result = {} result.merge!({ "header" => @header, "value" => @value, }) result.compact end |