| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data DeleteCachePolicy = DeleteCachePolicy' {}
- newDeleteCachePolicy :: Text -> DeleteCachePolicy
- deleteCachePolicy_ifMatch :: Lens' DeleteCachePolicy (Maybe Text)
- deleteCachePolicy_id :: Lens' DeleteCachePolicy Text
- data DeleteCachePolicyResponse = DeleteCachePolicyResponse' {
- newDeleteCachePolicyResponse :: DeleteCachePolicyResponse
Creating a Request
data DeleteCachePolicy Source #
See: newDeleteCachePolicy smart constructor.
Constructors
| DeleteCachePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteCachePolicy |
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.
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.
Constructors
| DeleteCachePolicyResponse' | |
Instances
newDeleteCachePolicyResponse :: DeleteCachePolicyResponse Source #
Create a value of DeleteCachePolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.