| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Lightsail.Types.CacheSettings
Description
Synopsis
- data CacheSettings = CacheSettings' {}
- newCacheSettings :: CacheSettings
- cacheSettings_maximumTTL :: Lens' CacheSettings (Maybe Integer)
- cacheSettings_cachedHTTPMethods :: Lens' CacheSettings (Maybe Text)
- cacheSettings_forwardedCookies :: Lens' CacheSettings (Maybe CookieObject)
- cacheSettings_allowedHTTPMethods :: Lens' CacheSettings (Maybe Text)
- cacheSettings_defaultTTL :: Lens' CacheSettings (Maybe Integer)
- cacheSettings_minimumTTL :: Lens' CacheSettings (Maybe Integer)
- cacheSettings_forwardedHeaders :: Lens' CacheSettings (Maybe HeaderObject)
- cacheSettings_forwardedQueryStrings :: Lens' CacheSettings (Maybe QueryStringObject)
Documentation
data CacheSettings Source #
Describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.
These settings apply only to your distribution's cacheBehaviors
(including the defaultCacheBehavior) that have a behavior of
cache.
See: newCacheSettings smart constructor.
Constructors
| CacheSettings' | |
Fields
| |
Instances
newCacheSettings :: CacheSettings Source #
Create a value of CacheSettings with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maximumTTL:CacheSettings', cacheSettings_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.
$sel:cachedHTTPMethods:CacheSettings', cacheSettings_cachedHTTPMethods - The 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.
$sel:forwardedCookies:CacheSettings', cacheSettings_forwardedCookies - An object that describes the cookies that are forwarded to the origin.
Your content is cached based on the cookies that are forwarded.
$sel:allowedHTTPMethods:CacheSettings', cacheSettings_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 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 the third option, 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.
$sel:defaultTTL:CacheSettings', cacheSettings_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, and
Expires to objects.
$sel:minimumTTL:CacheSettings', cacheSettings_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.
$sel:forwardedHeaders:CacheSettings', cacheSettings_forwardedHeaders - An object that describes the headers that are forwarded to the origin.
Your content is cached based on the headers that are forwarded.
$sel:forwardedQueryStrings:CacheSettings', cacheSettings_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.
cacheSettings_maximumTTL :: Lens' CacheSettings (Maybe Integer) Source #
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.
cacheSettings_cachedHTTPMethods :: Lens' CacheSettings (Maybe Text) Source #
The 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.
cacheSettings_forwardedCookies :: Lens' CacheSettings (Maybe CookieObject) Source #
An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.
cacheSettings_allowedHTTPMethods :: Lens' CacheSettings (Maybe Text) Source #
The 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 the third option, 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.
cacheSettings_defaultTTL :: Lens' CacheSettings (Maybe Integer) Source #
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, and
Expires to objects.
cacheSettings_minimumTTL :: Lens' CacheSettings (Maybe Integer) Source #
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.
cacheSettings_forwardedHeaders :: Lens' CacheSettings (Maybe HeaderObject) Source #
An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.
cacheSettings_forwardedQueryStrings :: Lens' CacheSettings (Maybe QueryStringObject) Source #
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.