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 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.
DeleteCachePolicy' | |
|
Instances
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
Eq DeleteCachePolicyResponse Source # | |
Read DeleteCachePolicyResponse Source # | |
Show DeleteCachePolicyResponse Source # | |
Defined in Amazonka.CloudFront.DeleteCachePolicy showsPrec :: Int -> DeleteCachePolicyResponse -> ShowS # show :: DeleteCachePolicyResponse -> String # showList :: [DeleteCachePolicyResponse] -> ShowS # | |
Generic DeleteCachePolicyResponse Source # | |
Defined in Amazonka.CloudFront.DeleteCachePolicy type Rep DeleteCachePolicyResponse :: Type -> Type # | |
NFData DeleteCachePolicyResponse Source # | |
Defined in Amazonka.CloudFront.DeleteCachePolicy rnf :: DeleteCachePolicyResponse -> () # | |
type Rep DeleteCachePolicyResponse Source # | |
Defined in Amazonka.CloudFront.DeleteCachePolicy |
newDeleteCachePolicyResponse :: DeleteCachePolicyResponse Source #
Create a value of DeleteCachePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.