Class: AWSCDK::CloudFront::CfnContinuousDeploymentPolicy::SingleHeaderConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_continuous_deployment_policy.rb

Overview

Determines which HTTP requests are sent to the staging distribution.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header:, value:) ⇒ SingleHeaderConfigProperty

Returns a new instance of SingleHeaderConfigProperty.

Parameters:

  • header (String)

    The request header name that you want CloudFront to send to your staging distribution.

  • value (String)

    The request header value.



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

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

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



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_jsiiObject



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