interface CacheTagConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudFront.CfnDistributionPropsMixin.CacheTagConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudfront#CfnDistributionPropsMixin_CacheTagConfigProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.CacheTagConfigProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudfront.CfnDistributionPropsMixin.CacheTagConfigProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudfront » CfnDistributionPropsMixin » CacheTagConfigProperty |
A complex type that specifies the HTTP header name from which CloudFront extracts cache tags from origin responses.
When you add CacheTagConfig to a distribution, CloudFront reads the specified header from origin responses, parses the comma-separated tag values, and stores them with the cached object. You can then invalidate cached objects by tag using the CreateInvalidation API.
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/cfn-property-mixins';
const cacheTagConfigProperty: cloudfront.CfnDistributionPropsMixin.CacheTagConfigProperty = {
headerName: 'headerName',
};
Properties
| Name | Type | Description |
|---|---|---|
| header | string | The name of the HTTP header that your origin includes in responses. |
headerName?
Type:
string
(optional)
The name of the HTTP header that your origin includes in responses.
CloudFront uses this header to extract cache tags. The header value must contain comma-separated tag values (for example, product:electronics, category:tv, brand:example).

.NET
Go
Java
Python
TypeScript