interface CustomHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_CustomHeaderProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const customHeaderProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty = {
header: 'header',
override: false,
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| header? | string | The HTTP response header name. |
| override? | 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? | string | The value for the HTTP response header. |
header?
Type:
string
(optional)
The HTTP response header name.
override?
Type:
boolean | IResolvable
(optional)
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
(optional)
The value for the HTTP response header.

.NET
Go
Java
Python
TypeScript