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

Description

Updates a cache policy configuration.

When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:

  1. Use GetCachePolicyConfig to get the current configuration.
  2. Locally modify the fields in the cache policy configuration that you want to update.
  3. Call UpdateCachePolicy by providing the entire cache policy configuration, including the fields that you modified and those that you didn’t.
Synopsis

Creating a Request

data UpdateCachePolicy Source #

See: newUpdateCachePolicy smart constructor.

Constructors

UpdateCachePolicy' 

Fields

  • ifMatch :: Maybe Text

    The version of the cache policy that you are updating. The version is returned in the cache policy’s ETag field in the response to GetCachePolicyConfig.

  • cachePolicyConfig :: CachePolicyConfig

    A cache policy configuration.

  • id :: Text

    The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s CachePolicyId field in the response to GetDistributionConfig.

Instances

Instances details
Eq UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Read UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Show UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Generic UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Associated Types

type Rep UpdateCachePolicy :: Type -> Type #

NFData UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Methods

rnf :: UpdateCachePolicy -> () #

Hashable UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

AWSRequest UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Associated Types

type AWSResponse UpdateCachePolicy #

ToHeaders UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

ToPath UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

ToQuery UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

ToElement UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

type Rep UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

type Rep UpdateCachePolicy = D1 ('MetaData "UpdateCachePolicy" "Amazonka.CloudFront.UpdateCachePolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateCachePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "cachePolicyConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CachePolicyConfig) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

newUpdateCachePolicy Source #

Create a value of UpdateCachePolicy 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:ifMatch:UpdateCachePolicy', updateCachePolicy_ifMatch - The version of the cache policy that you are updating. The version is returned in the cache policy’s ETag field in the response to GetCachePolicyConfig.

$sel:cachePolicyConfig:UpdateCachePolicy', updateCachePolicy_cachePolicyConfig - A cache policy configuration.

$sel:id:UpdateCachePolicy', updateCachePolicy_id - The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s CachePolicyId field in the response to GetDistributionConfig.

Request Lenses

updateCachePolicy_ifMatch :: Lens' UpdateCachePolicy (Maybe Text) Source #

The version of the cache policy that you are updating. The version is returned in the cache policy’s ETag field in the response to GetCachePolicyConfig.

updateCachePolicy_id :: Lens' UpdateCachePolicy Text Source #

The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s CachePolicyId field in the response to GetDistributionConfig.

Destructuring the Response

data UpdateCachePolicyResponse Source #

See: newUpdateCachePolicyResponse smart constructor.

Constructors

UpdateCachePolicyResponse' 

Fields

Instances

Instances details
Eq UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Read UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Show UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Generic UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

Associated Types

type Rep UpdateCachePolicyResponse :: Type -> Type #

NFData UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

type Rep UpdateCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateCachePolicy

type Rep UpdateCachePolicyResponse = D1 ('MetaData "UpdateCachePolicyResponse" "Amazonka.CloudFront.UpdateCachePolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateCachePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cachePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CachePolicy)) :*: (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateCachePolicyResponse Source #

Create a value of UpdateCachePolicyResponse 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:cachePolicy:UpdateCachePolicyResponse', updateCachePolicyResponse_cachePolicy - A cache policy.

$sel:eTag:UpdateCachePolicyResponse', updateCachePolicyResponse_eTag - The current version of the cache policy.

$sel:httpStatus:UpdateCachePolicyResponse', updateCachePolicyResponse_httpStatus - The response's http status code.

Response Lenses

updateCachePolicyResponse_eTag :: Lens' UpdateCachePolicyResponse (Maybe Text) Source #

The current version of the cache policy.