# SingleHeaderConfigProperty

Determines which HTTP requests are sent to the staging distribution.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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 singleHeaderConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty = {
  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_config_property = cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty(
    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.*;

SingleHeaderConfigProperty singleHeaderConfigProperty = SingleHeaderConfigProperty.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 singleHeaderConfigProperty = new SingleHeaderConfigProperty {
    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"

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

## Properties

- `header`: string (required) — The request header name that you want CloudFront to send to your staging distribution.

  The header must contain the prefix `aws-cf-cd-` .

- `value`: string (required) — The request header value.
