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

Description

Deletes an origin request policy.

You cannot delete an origin request policy if it’s attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.

To delete an origin request policy, you must provide the policy’s identifier and version. To get the identifier, you can use ListOriginRequestPolicies or GetOriginRequestPolicy.

Synopsis

Creating a Request

data DeleteOriginRequestPolicy Source #

See: newDeleteOriginRequestPolicy smart constructor.

Constructors

DeleteOriginRequestPolicy' 

Fields

  • ifMatch :: Maybe Text

    The version of the origin request policy that you are deleting. The version is the origin request policy’s ETag value, which you can get using ListOriginRequestPolicies, GetOriginRequestPolicy, or GetOriginRequestPolicyConfig.

  • id :: Text

    The unique identifier for the origin request policy that you are deleting. To get the identifier, you can use ListOriginRequestPolicies.

Instances

Instances details
Eq DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Read DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Show DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Generic DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Associated Types

type Rep DeleteOriginRequestPolicy :: Type -> Type #

NFData DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Hashable DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

AWSRequest DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

ToHeaders DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

ToPath DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

ToQuery DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

type Rep DeleteOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

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

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

newDeleteOriginRequestPolicy Source #

Create a value of DeleteOriginRequestPolicy 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:DeleteOriginRequestPolicy', deleteOriginRequestPolicy_ifMatch - The version of the origin request policy that you are deleting. The version is the origin request policy’s ETag value, which you can get using ListOriginRequestPolicies, GetOriginRequestPolicy, or GetOriginRequestPolicyConfig.

$sel:id:DeleteOriginRequestPolicy', deleteOriginRequestPolicy_id - The unique identifier for the origin request policy that you are deleting. To get the identifier, you can use ListOriginRequestPolicies.

Request Lenses

deleteOriginRequestPolicy_ifMatch :: Lens' DeleteOriginRequestPolicy (Maybe Text) Source #

The version of the origin request policy that you are deleting. The version is the origin request policy’s ETag value, which you can get using ListOriginRequestPolicies, GetOriginRequestPolicy, or GetOriginRequestPolicyConfig.

deleteOriginRequestPolicy_id :: Lens' DeleteOriginRequestPolicy Text Source #

The unique identifier for the origin request policy that you are deleting. To get the identifier, you can use ListOriginRequestPolicies.

Destructuring the Response

data DeleteOriginRequestPolicyResponse Source #

See: newDeleteOriginRequestPolicyResponse smart constructor.

Instances

Instances details
Eq DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Read DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Show DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Generic DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

Associated Types

type Rep DeleteOriginRequestPolicyResponse :: Type -> Type #

NFData DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

type Rep DeleteOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteOriginRequestPolicy

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

newDeleteOriginRequestPolicyResponse :: DeleteOriginRequestPolicyResponse Source #

Create a value of DeleteOriginRequestPolicyResponse with all optional fields omitted.

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