Skip to content
v2.278.0

SingleHeaderConfigProperty Struct ​

Determines which HTTP requests are sent to the staging distribution.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const singleHeaderConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty = {
  header: 'header',
  value: 'value',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

single_header_config_property = cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty(
    header="header",
    value="value"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

SingleHeaderConfigProperty singleHeaderConfigProperty = SingleHeaderConfigProperty.builder()
        .header("header")
        .value("value")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var singleHeaderConfigProperty = new SingleHeaderConfigProperty {
    Header = "header",
    Value = "value"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleHeaderConfigProperty := &SingleHeaderConfigProperty{
	Header: jsii.String("header"),
	Value: jsii.String("value"),
}

Properties ​

valuestringvaluestrvalueStringValuestringValue*string required #
The request header value.