@Stability(value=Stable) public static final class CfnDistribution.CacheSettingsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDistribution.CacheSettingsProperty>
CfnDistribution.CacheSettingsProperty
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder allowedHttpMethods(String allowedHttpMethods)
CfnDistribution.CacheSettingsProperty.getAllowedHttpMethods()
allowedHttpMethods
- The HTTP methods that are processed and forwarded to the distribution's origin.
You 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.
this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder cachedHttpMethods(String cachedHttpMethods)
CfnDistribution.CacheSettingsProperty.getCachedHttpMethods()
cachedHttpMethods
- The HTTP method responses that are cached by your distribution.
You 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.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder defaultTtl(Number defaultTtl)
CfnDistribution.CacheSettingsProperty.getDefaultTtl()
defaultTtl
- 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.
The value specified applies only when the origin does not add HTTP headers such as
Cache-Control max-age
,Cache-Control s-maxage
, andExpires
to objects.
this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedCookies(IResolvable forwardedCookies)
CfnDistribution.CacheSettingsProperty.getForwardedCookies()
forwardedCookies
- An object that describes the cookies that are forwarded to the origin.
Your content is cached based on the cookies that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedCookies(CfnDistribution.CookieObjectProperty forwardedCookies)
CfnDistribution.CacheSettingsProperty.getForwardedCookies()
forwardedCookies
- An object that describes the cookies that are forwarded to the origin.
Your content is cached based on the cookies that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedHeaders(IResolvable forwardedHeaders)
CfnDistribution.CacheSettingsProperty.getForwardedHeaders()
forwardedHeaders
- An object that describes the headers that are forwarded to the origin.
Your content is cached based on the headers that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedHeaders(CfnDistribution.HeaderObjectProperty forwardedHeaders)
CfnDistribution.CacheSettingsProperty.getForwardedHeaders()
forwardedHeaders
- An object that describes the headers that are forwarded to the origin.
Your content is cached based on the headers that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedQueryStrings(IResolvable forwardedQueryStrings)
CfnDistribution.CacheSettingsProperty.getForwardedQueryStrings()
forwardedQueryStrings
- An object that describes the query strings that are forwarded to the origin.
Your content is cached based on the query strings that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder forwardedQueryStrings(CfnDistribution.QueryStringObjectProperty forwardedQueryStrings)
CfnDistribution.CacheSettingsProperty.getForwardedQueryStrings()
forwardedQueryStrings
- An object that describes the query strings that are forwarded to the origin.
Your content is cached based on the query strings that are forwarded.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder maximumTtl(Number maximumTtl)
CfnDistribution.CacheSettingsProperty.getMaximumTtl()
maximumTtl
- 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.
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.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty.Builder minimumTtl(Number minimumTtl)
CfnDistribution.CacheSettingsProperty.getMinimumTtl()
minimumTtl
- 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.
A value of 0
must be specified for minimumTTL
if the distribution is configured to forward all headers to the origin.this
@Stability(value=Stable) public CfnDistribution.CacheSettingsProperty build()
build
in interface software.amazon.jsii.Builder<CfnDistribution.CacheSettingsProperty>
CfnDistribution.CacheSettingsProperty
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.