| 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.AllowedMethods
Description
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
GETandHEADrequests. - CloudFront forwards only
GET,HEAD, andOPTIONSrequests. - CloudFront forwards
GET, HEAD, OPTIONS, PUT, PATCH, POST, andDELETErequests.
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.
Constructors
| AllowedMethods' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> AllowedMethods |
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.
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).
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.