interface ResponseCustomHeader
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.ResponseCustomHeader |
Java | software.amazon.awscdk.services.cloudfront.ResponseCustomHeader |
Python | aws_cdk.aws_cloudfront.ResponseCustomHeader |
TypeScript (source) | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
const responseCustomHeader: cloudfront.ResponseCustomHeader = {
header: 'header',
override: false,
value: 'value',
};
Properties
Name | Type | Description |
---|---|---|
header | string | The HTTP response header name. |
override | 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 | string | The 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.