SingleHeaderPolicyConfigProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
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 singleHeaderPolicyConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty = {
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_policy_config_property = cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty(
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.*;
SingleHeaderPolicyConfigProperty singleHeaderPolicyConfigProperty = SingleHeaderPolicyConfigProperty.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 singleHeaderPolicyConfigProperty = new SingleHeaderPolicyConfigProperty {
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"
singleHeaderPolicyConfigProperty := &SingleHeaderPolicyConfigProperty{
Header: jsii.String("header"),
Value: jsii.String("value"),
}