CachePolicyConfigArgs

data class CachePolicyConfigArgs(val comment: Output<String>? = null, val defaultTtl: Output<Double>, val maxTtl: Output<Double>, val minTtl: Output<Double>, val name: Output<String>, val parametersInCacheKeyAndForwardedToOrigin: Output<CachePolicyParametersInCacheKeyAndForwardedToOriginArgs>) : ConvertibleToJava<CachePolicyConfigArgs>

Constructors

Link copied to clipboard
constructor(comment: Output<String>? = null, defaultTtl: Output<Double>, maxTtl: Output<Double>, minTtl: Output<Double>, name: Output<String>, parametersInCacheKeyAndForwardedToOrigin: Output<CachePolicyParametersInCacheKeyAndForwardedToOriginArgs>)

Properties

Link copied to clipboard
val comment: Output<String>? = null

A comment to describe the cache policy. The comment cannot be longer than 128 characters.

Link copied to clipboard
val defaultTtl: Output<Double>

The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. CloudFront uses this value as the object's time to live (TTL) only when the origin does not send Cache-Control or Expires headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide . The default value for this field is 86400 seconds (one day). If the value of MinTTL is more than 86400 seconds, then the default value for this field is the same as the value of MinTTL .

Link copied to clipboard
val maxTtl: Output<Double>

The 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. CloudFront uses this value only when the origin sends Cache-Control or Expires headers with the object. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide . The default value for this field is 31536000 seconds (one year). If the value of MinTTL or DefaultTTL is more than 31536000 seconds, then the default value for this field is the same as the value of DefaultTTL .

Link copied to clipboard
val minTtl: Output<Double>

The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide .

Link copied to clipboard
val name: Output<String>

A unique name to identify the cache policy.

Link copied to clipboard

The HTTP headers, cookies, and URL query strings to include in the cache key. The values included in the cache key are also included in requests that CloudFront sends to the origin.

Functions

Link copied to clipboard
open override fun toJava(): CachePolicyConfigArgs