Skip to content
v2.274.0

OriginCustomHeaderProperty Struct ​

A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.

Example ​

ts
// 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 originCustomHeaderProperty: cloudfront.CfnDistribution.OriginCustomHeaderProperty = {
  headerName: 'headerName',
  headerValue: 'headerValue',
};

Properties ​

headerNamestringheader_namestrheaderNameStringHeaderNamestringHeaderName*stringrequired#
The name of a header that you want CloudFront to send to your origin.

For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide .

headerValuestringheader_valuestrheaderValueStringHeaderValuestringHeaderValue*stringrequired#
The value for the header that you specified in the `HeaderName` field.