aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty

interface CustomHeadersConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_CustomHeadersConfigProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » 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.

Example

// 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',
  }],
};

Properties

NameTypeDescription
itemsIResolvable | IResolvable | CustomHeaderProperty[]The list of HTTP response headers and their values.

items

Type: IResolvable | IResolvable | CustomHeaderProperty[]

The list of HTTP response headers and their values.