@Stability(value=Stable) @Internal public static final class CfnDistribution.CacheSettingsProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnDistribution.CacheSettingsProperty
CfnDistribution.CacheSettingsPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnDistribution.CacheSettingsProperty.Builder, CfnDistribution.CacheSettingsProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnDistribution.CacheSettingsProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnDistribution.CacheBehaviorPerPathProperty.Builder. |
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(Object o) |
String |
getAllowedHttpMethods()
The HTTP methods that are processed and forwarded to the distribution's origin.
|
String |
getCachedHttpMethods()
The HTTP method responses that are cached by your distribution.
|
Number |
getDefaultTtl()
The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.
|
Object |
getForwardedCookies()
An object that describes the cookies that are forwarded to the origin.
|
Object |
getForwardedHeaders()
An object that describes the headers that are forwarded to the origin.
|
Object |
getForwardedQueryStrings()
An object that describes the query strings that are forwarded to the origin.
|
Number |
getMaximumTtl()
The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
|
Number |
getMinimumTtl()
The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnDistribution.CacheSettingsProperty.Builder builder)
CfnDistribution.CacheBehaviorPerPathProperty.Builder.public final String getAllowedHttpMethods()
CfnDistribution.CacheSettingsPropertyYou can specify the following options:
GET,HEAD - The distribution forwards the GET and HEAD methods.GET,HEAD,OPTIONS - The distribution forwards the GET , HEAD , and OPTIONS methods.GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET , HEAD , OPTIONS , PUT , PATCH , POST , and DELETE methods.
If you specify GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE , you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.
getAllowedHttpMethods in interface CfnDistribution.CacheSettingsPropertypublic final String getCachedHttpMethods()
CfnDistribution.CacheSettingsPropertyYou can specify the following options:
GET,HEAD - The distribution caches responses to the GET and HEAD methods.GET,HEAD,OPTIONS - The distribution caches responses to the GET , HEAD , and OPTIONS methods.getCachedHttpMethods in interface CfnDistribution.CacheSettingsPropertypublic final Number getDefaultTtl()
CfnDistribution.CacheSettingsProperty
The value specified applies only when the origin does not add HTTP headers such as
Cache-Control max-age,Cache-Control s-maxage, andExpiresto objects.
getDefaultTtl in interface CfnDistribution.CacheSettingsPropertypublic final Object getForwardedCookies()
CfnDistribution.CacheSettingsPropertyYour content is cached based on the cookies that are forwarded.
getForwardedCookies in interface CfnDistribution.CacheSettingsPropertypublic final Object getForwardedHeaders()
CfnDistribution.CacheSettingsPropertyYour content is cached based on the headers that are forwarded.
getForwardedHeaders in interface CfnDistribution.CacheSettingsPropertypublic final Object getForwardedQueryStrings()
CfnDistribution.CacheSettingsPropertyYour content is cached based on the query strings that are forwarded.
getForwardedQueryStrings in interface CfnDistribution.CacheSettingsPropertypublic final Number getMaximumTtl()
CfnDistribution.CacheSettingsProperty
The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age , Cache-Control s-maxage , and Expires to objects.
getMaximumTtl in interface CfnDistribution.CacheSettingsPropertypublic final Number getMinimumTtl()
CfnDistribution.CacheSettingsProperty
A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.
getMinimumTtl in interface CfnDistribution.CacheSettingsProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.