CachePolicy is the Schema for the CachePolicys API. Provides a cache policy for a CloudFront ditribution. When it’s attached to a cache behavior, the cache policy determines the the values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer. It also determines the default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.
Type
CRD
Group
cloudfront.aws.upbound.io
Version
v1beta1
apiVersion: cloudfront.aws.upbound.io/v1beta1
kind: CachePolicy
CachePolicySpec defines the desired state of CachePolicy
No description provided.
The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information.
Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information.
Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information.
Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information.
Object that contains a list of query string names. See Items for more information.
A list of item names (cookies, headers, or query strings).
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
CachePolicyStatus defines the observed state of CachePolicy.
Conditions of the resource.
example-policy
apiVersion: cloudfront.aws.upbound.io/v1beta1
kind: CachePolicy
metadata:
labels:
testing.upbound.io/example-name: cachepolicy
name: example-policy
spec:
forProvider:
comment: test comment
defaultTtl: 50
maxTtl: 100
minTtl: 1
name: example-policy
parametersInCacheKeyAndForwardedToOrigin:
- cookiesConfig:
- cookieBehavior: whitelist
cookies:
- items:
- example
headersConfig:
- headerBehavior: whitelist
headers:
- items:
- example
queryStringsConfig:
- queryStringBehavior: whitelist
queryStrings:
- items:
- example
region: us-west-1
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.