aws-cdk-lib.aws_cloudfront.ResponseCustomHeader

interface ResponseCustomHeader

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.ResponseCustomHeader
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#ResponseCustomHeader
Javasoftware.amazon.awscdk.services.cloudfront.ResponseCustomHeader
Pythonaws_cdk.aws_cloudfront.ResponseCustomHeader
TypeScript (source)aws-cdk-lib » aws_cloudfront » ResponseCustomHeader

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 responseCustomHeader: cloudfront.ResponseCustomHeader = {
  header: 'header',
  override: false,
  value: 'value',
};

Properties

NameTypeDescription
headerstringThe HTTP response header name.
overridebooleanA 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

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.