AwsCloudfrontCachePolicyArgs
interface AwsCloudfrontCachePolicyArgs extends Omit<aws.cloudfront.CachePolicyArgs, 'name'> {
comment?: Input<string | undefined>;
defaultTtl?: Input<number | undefined>;
maxTtl?: Input<number | undefined>;
minTtl?: Input<number | undefined>;
name: string;
parametersInCacheKeyAndForwardedToOrigin: Input<CachePolicyParametersInCacheKeyAndForwardedToOrigin>;
}Cache policy capability inputs.
Example
`const policy: AwsCloudfrontCachePolicyArgs = { name: 'websiteCache', minTtl: 0, defaultTtl: 60, maxTtl: 3600, parametersInCacheKeyAndForwardedToOrigin: { cookiesConfig: { cookieBehavior: 'none' }, headersConfig: { headerBehavior: 'none' }, queryStringsConfig: { queryStringBehavior: 'none' } } };`Hierarchy
CachePolicyArgs, "name">AwsCloudfrontCachePolicyArgs
Properties
comment: Input<string | undefined>
Inherited from comment
Description for the cache policy.
defaultTtl: Input<number | undefined>
Inherited from defaultTtl
Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated.
maxTtl: Input<number | undefined>
Inherited from maxTtl
Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
minTtl: Input<number | undefined>
Inherited from minTtl
Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates.
name: string
Camel-case naming purpose.
parametersInCacheKeyAndForwardedToOrigin: Input<CachePolicyParametersInCacheKeyAndForwardedToOrigin>
Inherited from parametersInCacheKeyAndForwardedToOrigin
Configuration for including HTTP headers, cookies, and URL query strings in the cache key. For more information, refer to the Parameters In Cache Key And Forwarded To Origin section.