public static final class CfnCachePolicy.CachePolicyConfigProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnCachePolicy.CachePolicyConfigProperty
CfnCachePolicy.CachePolicyConfigProperty
CfnCachePolicy.CachePolicyConfigProperty.Builder, CfnCachePolicy.CachePolicyConfigProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getComment()
A comment to describe the cache policy.
|
java.lang.Number |
getDefaultTtl()
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.
|
java.lang.Number |
getMaxTtl()
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.
|
java.lang.Number |
getMinTtl()
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.
|
java.lang.String |
getName()
A unique name to identify the cache policy.
|
java.lang.Object |
getParametersInCacheKeyAndForwardedToOrigin()
The HTTP headers, cookies, and URL query strings to include in the cache key.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Number getDefaultTtl()
CfnCachePolicy.CachePolicyConfigProperty
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
.
getDefaultTtl
in interface CfnCachePolicy.CachePolicyConfigProperty
public final java.lang.Number getMaxTtl()
CfnCachePolicy.CachePolicyConfigProperty
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
.
getMaxTtl
in interface CfnCachePolicy.CachePolicyConfigProperty
public final java.lang.Number getMinTtl()
CfnCachePolicy.CachePolicyConfigProperty
For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide .
getMinTtl
in interface CfnCachePolicy.CachePolicyConfigProperty
public final java.lang.String getName()
CfnCachePolicy.CachePolicyConfigProperty
getName
in interface CfnCachePolicy.CachePolicyConfigProperty
public final java.lang.Object getParametersInCacheKeyAndForwardedToOrigin()
CfnCachePolicy.CachePolicyConfigProperty
The values included in the cache key are automatically included in requests that CloudFront sends to the origin.
getParametersInCacheKeyAndForwardedToOrigin
in interface CfnCachePolicy.CachePolicyConfigProperty
public final java.lang.String getComment()
CfnCachePolicy.CachePolicyConfigProperty
The comment cannot be longer than 128 characters.
getComment
in interface CfnCachePolicy.CachePolicyConfigProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()