Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DeleteOriginRequestPolicy = DeleteOriginRequestPolicy' {}
- newDeleteOriginRequestPolicy :: Text -> DeleteOriginRequestPolicy
- deleteOriginRequestPolicy_ifMatch :: Lens' DeleteOriginRequestPolicy (Maybe Text)
- deleteOriginRequestPolicy_id :: Lens' DeleteOriginRequestPolicy Text
- data DeleteOriginRequestPolicyResponse = DeleteOriginRequestPolicyResponse' {
- newDeleteOriginRequestPolicyResponse :: DeleteOriginRequestPolicyResponse
Creating a Request
data DeleteOriginRequestPolicy Source #
See: newDeleteOriginRequestPolicy
smart constructor.
DeleteOriginRequestPolicy' | |
|
Instances
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
newDeleteOriginRequestPolicyResponse :: DeleteOriginRequestPolicyResponse Source #
Create a value of DeleteOriginRequestPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.