aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty

interface CustomHeaderProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.CustomHeaderProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_CustomHeaderProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » CustomHeaderProperty

An HTTP response header name and its value.

CloudFront includes this header 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 customHeaderProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty = {
  header: 'header',
  override: false,
  value: 'value',
};

Properties

NameTypeDescription
headerstringThe HTTP response header name.
overrideboolean | IResolvableA Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
valuestringThe value for the HTTP response header.

header

Type: string

The HTTP response header name.


override

Type: boolean | IResolvable

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.


value

Type: string

The value for the HTTP response header.