Class: AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderPolicyConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header:, value:) ⇒ SingleHeaderPolicyConfigProperty

Returns a new instance of SingleHeaderPolicyConfigProperty.

Parameters:

  • header (String)

    The name of the HTTP header that CloudFront uses to configure for the single header policy.

  • value (String)

    Specifies the value to assign to the header for a single header policy.



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

#headerString (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

#valueString (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_propertiesObject



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_jsiiObject



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