interface CustomHeadersConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_CustomHeadersConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const customHeadersConfigProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty = {
items: [{
header: 'header',
override: false,
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| items? | IResolvable | (IResolvable | Custom)[] | The list of HTTP response headers and their values. |
items?
Type:
IResolvable | (IResolvable | Custom)[]
(optional)
The list of HTTP response headers and their values.

.NET
Go
Java
Python
TypeScript