# SingleHeaderPolicyConfigProperty

Defines a single header policy for a CloudFront distribution.

> This property is legacy. We recommend that you use [TrafficConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html) and specify the [SingleHeaderConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleheaderconfig) property instead.

- Source: Generated at build time
- Type last changed: v2.101.0 · 13 Oct 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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"),
}
```

## Properties

- `header`: string (required) — The name of the HTTP header that CloudFront uses to configure for the single header policy.

- `value`: string (required) — Specifies the value to assign to the header for a single header policy.
