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 |
Synopsis
Documentation
data CachedMethods Source #
A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
- CloudFront caches responses to
GET
andHEAD
requests. - CloudFront caches responses to
GET
,HEAD
, andOPTIONS
requests.
If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.
See: newCachedMethods
smart constructor.
CachedMethods' | |
|
Instances
Create a value of CachedMethods
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:quantity:CachedMethods'
, cachedMethods_quantity
- The number of HTTP methods for which you want CloudFront to cache
responses. Valid values are 2
(for caching responses to GET
and
HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and
OPTIONS
requests).
$sel:items:CachedMethods'
, cachedMethods_items
- A complex type that contains the HTTP methods that you want CloudFront
to cache responses to.
cachedMethods_quantity :: Lens' CachedMethods Int Source #
The number of HTTP methods for which you want CloudFront to cache
responses. Valid values are 2
(for caching responses to GET
and
HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and
OPTIONS
requests).
cachedMethods_items :: Lens' CachedMethods [Method] Source #
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.