# CustomHeadersConfigProperty

A list of HTTP response header names and their values.

CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.

- 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 customHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty = {
  items: [{
    header: 'header',
    override: false,
    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

custom_headers_config_property = cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty(
    items=[cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(
        header="header",
        override=False,
        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.*;

CustomHeadersConfigProperty customHeadersConfigProperty = CustomHeadersConfigProperty.builder()
        .items(List.of(CustomHeaderProperty.builder()
                .header("header")
                .override(false)
                .value("value")
                .build()))
        .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 customHeadersConfigProperty = new CustomHeadersConfigProperty {
    Items = new [] { new CustomHeaderProperty {
        Header = "header",
        Override = false,
        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"

customHeadersConfigProperty := &CustomHeadersConfigProperty{
	Items: []interface{}{
		&CustomHeaderProperty{
			Header: jsii.String("header"),
			Override: jsii.Boolean(false),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `items`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResponseHeadersPolicy.CustomHeaderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty.html)[] (required) — The list of HTTP response headers and their values.
