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

Description

Deletes a cache policy.

You cannot delete a cache policy if it’s attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy.

To delete a cache policy, you must provide the policy’s identifier and version. To get these values, you can use ListCachePolicies or GetCachePolicy.

Synopsis

Creating a Request

data DeleteCachePolicy Source #

See: newDeleteCachePolicy smart constructor.

Constructors

DeleteCachePolicy' 

Fields

  • ifMatch :: Maybe Text

    The version of the cache policy that you are deleting. The version is the cache policy’s ETag value, which you can get using ListCachePolicies, GetCachePolicy, or GetCachePolicyConfig.

  • id :: Text

    The unique identifier for the cache policy that you are deleting. To get the identifier, you can use ListCachePolicies.

Instances

Instances details
Eq DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Read DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Show DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Generic DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Associated Types

type Rep DeleteCachePolicy :: Type -> Type #

NFData DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Methods

rnf :: DeleteCachePolicy -> () #

Hashable DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

AWSRequest DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Associated Types

type AWSResponse DeleteCachePolicy #

ToHeaders DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

ToPath DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

ToQuery DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

type Rep DeleteCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

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

Defined in Amazonka.CloudFront.DeleteCachePolicy

newDeleteCachePolicy Source #

Create a value of DeleteCachePolicy 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:DeleteCachePolicy', deleteCachePolicy_ifMatch - The version of the cache policy that you are deleting. The version is the cache policy’s ETag value, which you can get using ListCachePolicies, GetCachePolicy, or GetCachePolicyConfig.

$sel:id:DeleteCachePolicy', deleteCachePolicy_id - The unique identifier for the cache policy that you are deleting. To get the identifier, you can use ListCachePolicies.

Request Lenses

deleteCachePolicy_ifMatch :: Lens' DeleteCachePolicy (Maybe Text) Source #

The version of the cache policy that you are deleting. The version is the cache policy’s ETag value, which you can get using ListCachePolicies, GetCachePolicy, or GetCachePolicyConfig.

deleteCachePolicy_id :: Lens' DeleteCachePolicy Text Source #

The unique identifier for the cache policy that you are deleting. To get the identifier, you can use ListCachePolicies.

Destructuring the Response

data DeleteCachePolicyResponse Source #

See: newDeleteCachePolicyResponse smart constructor.

Instances

Instances details
Eq DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Read DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Show DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Generic DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

Associated Types

type Rep DeleteCachePolicyResponse :: Type -> Type #

NFData DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

type Rep DeleteCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteCachePolicy

type Rep DeleteCachePolicyResponse = D1 ('MetaData "DeleteCachePolicyResponse" "Amazonka.CloudFront.DeleteCachePolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "DeleteCachePolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteCachePolicyResponse :: DeleteCachePolicyResponse Source #

Create a value of DeleteCachePolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.