interface ICachePolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudFront.ICachePolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#ICachePolicy |
Java | software.amazon.awscdk.services.cloudfront.ICachePolicy |
Python | aws_cdk.aws_cloudfront.ICachePolicy |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » ICachePolicy |
Implemented by
Cache
Obtainable from
Cache.fromCachePolicyId()
Represents a Cache Policy.
Properties
| Name | Type | Description |
|---|---|---|
| cache | string | The ID of the cache policy. |
| cache | Cache | A reference to a CachePolicy resource. |
| env | Resource | The environment this resource belongs to. |
| node | Node | The tree node. |
cachePolicyId
Type:
string
The ID of the cache policy.
cachePolicyRef
Type:
Cache
A reference to a CachePolicy resource.
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
node
Type:
Node
The tree node.

.NET
Go
Java
Python
TypeScript (