Class CfnDistribution.CacheSettingsProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnDistribution.CacheSettingsProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnDistribution.CacheSettingsProperty
CfnDistribution.CacheSettingsProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lightsail.CfnDistribution.CacheSettingsProperty
CfnDistribution.CacheSettingsProperty.Builder, CfnDistribution.CacheSettingsProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnDistribution.CacheSettingsProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringThe HTTP methods that are processed and forwarded to the distribution's origin.final StringThe HTTP method responses that are cached by your distribution.final NumberThe 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.final ObjectAn object that describes the cookies that are forwarded to the origin.final ObjectAn object that describes the headers that are forwarded to the origin.final ObjectAn object that describes the query strings that are forwarded to the origin.final NumberThe 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.final NumberThe 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.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnDistribution.CacheSettingsProperty.Builder.
-
-
Method Details
-
getAllowedHttpMethods
Description copied from interface:CfnDistribution.CacheSettingsPropertyThe HTTP methods that are processed and forwarded to the distribution's origin.You can specify the following options:
GET,HEAD- The distribution forwards theGETandHEADmethods.GET,HEAD,OPTIONS- The distribution forwards theGET,HEAD, andOPTIONSmethods.GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE- The distribution forwards theGET,HEAD,OPTIONS,PUT,PATCH,POST, andDELETEmethods.
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.- Specified by:
getAllowedHttpMethodsin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getCachedHttpMethods
Description copied from interface:CfnDistribution.CacheSettingsPropertyThe HTTP method responses that are cached by your distribution.You can specify the following options:
GET,HEAD- The distribution caches responses to theGETandHEADmethods.GET,HEAD,OPTIONS- The distribution caches responses to theGET,HEAD, andOPTIONSmethods.
- Specified by:
getCachedHttpMethodsin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getDefaultTtl
Description copied from interface:CfnDistribution.CacheSettingsPropertyThe 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.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.- Specified by:
getDefaultTtlin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getForwardedCookies
Description copied from interface:CfnDistribution.CacheSettingsPropertyAn object that describes the cookies that are forwarded to the origin.Your content is cached based on the cookies that are forwarded.
Returns union: either
IResolvableorCfnDistribution.CookieObjectProperty- Specified by:
getForwardedCookiesin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getForwardedHeaders
Description copied from interface:CfnDistribution.CacheSettingsPropertyAn object that describes the headers that are forwarded to the origin.Your content is cached based on the headers that are forwarded.
Returns union: either
IResolvableorCfnDistribution.HeaderObjectProperty- Specified by:
getForwardedHeadersin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getForwardedQueryStrings
Description copied from interface:CfnDistribution.CacheSettingsPropertyAn object that describes the query strings that are forwarded to the origin.Your content is cached based on the query strings that are forwarded.
Returns union: either
IResolvableorCfnDistribution.QueryStringObjectProperty- Specified by:
getForwardedQueryStringsin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getMaximumTtl
Description copied from interface:CfnDistribution.CacheSettingsPropertyThe 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.The value specified applies only when the origin adds HTTP headers such as
Cache-Control max-age,Cache-Control s-maxage, andExpiresto objects.- Specified by:
getMaximumTtlin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
getMinimumTtl
Description copied from interface:CfnDistribution.CacheSettingsPropertyThe 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.A value of
0must be specified forminimumTTLif the distribution is configured to forward all headers to the origin.- Specified by:
getMinimumTtlin interfaceCfnDistribution.CacheSettingsProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-