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.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 GET and HEAD requests.
  • CloudFront caches responses to GET, HEAD, and OPTIONS 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.

Constructors

CachedMethods' 

Fields

  • quantity :: Int

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

  • items :: [Method]

    A complex type that contains the HTTP methods that you want CloudFront to cache responses to.

Instances

Instances details
Eq CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Read CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Show CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Generic CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Associated Types

type Rep CachedMethods :: Type -> Type #

NFData CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Methods

rnf :: CachedMethods -> () #

Hashable CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

FromXML CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

ToXML CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

Methods

toXML :: CachedMethods -> XML #

type Rep CachedMethods Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachedMethods

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

newCachedMethods Source #

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.