interface OriginCustomHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.OriginCustomHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_OriginCustomHeaderProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.OriginCustomHeaderProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.OriginCustomHeaderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » OriginCustomHeaderProperty |
A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution.
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 originCustomHeaderProperty: cloudfront_mixins.CfnDistributionPropsMixin.OriginCustomHeaderProperty = {
headerName: 'headerName',
headerValue: 'headerValue',
};
Properties
| Name | Type | Description |
|---|---|---|
| header | string | The name of a header that you want CloudFront to send to your origin. |
| header | string | The value for the header that you specified in the HeaderName field. |
headerName?
Type:
string
(optional)
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 .
headerValue?
Type:
string
(optional)
The value for the header that you specified in the HeaderName field.

.NET
Go
Java
Python
TypeScript