| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.Types.CachedMethods
Description
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
GETandHEADrequests. - CloudFront caches responses to
GET,HEAD, andOPTIONSrequests.
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.
Constructors
| CachedMethods' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> CachedMethods |
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.