libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.Types.AllowedMethods

Description

 
Synopsis

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 and HEAD requests.
  • CloudFront forwards only GET, HEAD, and OPTIONS requests.
  • CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE 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.

Constructors

AllowedMethods' 

Fields

  • cachedMethods :: Maybe CachedMethods
     
  • quantity :: Int

    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).

  • items :: [Method]

    A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.

Instances

Instances details
Eq AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Read AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Show AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Generic AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Associated Types

type Rep AllowedMethods :: Type -> Type #

NFData AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Methods

rnf :: AllowedMethods -> () #

Hashable AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

FromXML AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

ToXML AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

Methods

toXML :: AllowedMethods -> XML #

type Rep AllowedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.AllowedMethods

type Rep AllowedMethods = D1 ('MetaData "AllowedMethods" "Amazonka.CloudFront.Types.AllowedMethods" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "AllowedMethods'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cachedMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CachedMethods)) :*: (S1 ('MetaSel ('Just "quantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Method]))))

newAllowedMethods Source #

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_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.