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
- data AllowedMethods = AllowedMethods' {
- cachedMethods :: Maybe CachedMethods
- quantity :: Int
- items :: [Method]
- newAllowedMethods :: Int -> AllowedMethods
- allowedMethods_cachedMethods :: Lens' AllowedMethods (Maybe CachedMethods)
- allowedMethods_quantity :: Lens' AllowedMethods Int
- allowedMethods_items :: Lens' AllowedMethods [Method]
Documentation
data AllowedMethods Source #
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
- CloudFront forwards only
GET
andHEAD
requests. - CloudFront forwards only
GET
,HEAD
, andOPTIONS
requests. - CloudFront forwards
GET, HEAD, OPTIONS, PUT, PATCH, POST
, andDELETE
requests.
If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.
See: newAllowedMethods
smart constructor.
AllowedMethods' | |
|
Instances
Create a value of AllowedMethods
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:cachedMethods:AllowedMethods'
, allowedMethods_cachedMethods
- Undocumented member.
$sel:quantity:AllowedMethods'
, allowedMethods_quantity
- The number of HTTP methods that you want CloudFront to forward to your
origin. Valid values are 2 (for GET
and HEAD
requests), 3 (for
GET
, HEAD
, and OPTIONS
requests) and 7 (for
GET, HEAD, OPTIONS, PUT, PATCH, POST
, and DELETE
requests).
$sel:items:AllowedMethods'
, allowedMethods_items
- A complex type that contains the HTTP methods that you want CloudFront
to process and forward to your origin.
allowedMethods_cachedMethods :: Lens' AllowedMethods (Maybe CachedMethods) Source #
Undocumented member.
allowedMethods_quantity :: Lens' AllowedMethods Int Source #
The number of HTTP methods that you want CloudFront to forward to your
origin. Valid values are 2 (for GET
and HEAD
requests), 3 (for
GET
, HEAD
, and OPTIONS
requests) and 7 (for
GET, HEAD, OPTIONS, PUT, PATCH, POST
, and DELETE
requests).
allowedMethods_items :: Lens' AllowedMethods [Method] Source #
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.