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 |
Deletes a key group.
You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group.
To delete a key group, you must provide the key group's identifier and
version. To get these values, use ListKeyGroups
followed by
GetKeyGroup
or GetKeyGroupConfig
.
Synopsis
Creating a Request
data DeleteKeyGroup Source #
See: newDeleteKeyGroup
smart constructor.
Instances
Create a value of DeleteKeyGroup
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:DeleteKeyGroup'
, deleteKeyGroup_ifMatch
- The version of the key group that you are deleting. The version is the
key group's ETag
value. To get the ETag
, use GetKeyGroup
or
GetKeyGroupConfig
.
DeleteKeyGroup
, deleteKeyGroup_id
- The identifier of the key group that you are deleting. To get the
identifier, use ListKeyGroups
.
Request Lenses
deleteKeyGroup_ifMatch :: Lens' DeleteKeyGroup (Maybe Text) Source #
The version of the key group that you are deleting. The version is the
key group's ETag
value. To get the ETag
, use GetKeyGroup
or
GetKeyGroupConfig
.
deleteKeyGroup_id :: Lens' DeleteKeyGroup Text Source #
The identifier of the key group that you are deleting. To get the
identifier, use ListKeyGroups
.
Destructuring the Response
data DeleteKeyGroupResponse Source #
See: newDeleteKeyGroupResponse
smart constructor.
Instances
Generic DeleteKeyGroupResponse Source # | |
Defined in Amazonka.CloudFront.DeleteKeyGroup type Rep DeleteKeyGroupResponse :: Type -> Type # | |
Read DeleteKeyGroupResponse Source # | |
Show DeleteKeyGroupResponse Source # | |
Defined in Amazonka.CloudFront.DeleteKeyGroup showsPrec :: Int -> DeleteKeyGroupResponse -> ShowS # show :: DeleteKeyGroupResponse -> String # showList :: [DeleteKeyGroupResponse] -> ShowS # | |
NFData DeleteKeyGroupResponse Source # | |
Defined in Amazonka.CloudFront.DeleteKeyGroup rnf :: DeleteKeyGroupResponse -> () # | |
Eq DeleteKeyGroupResponse Source # | |
Defined in Amazonka.CloudFront.DeleteKeyGroup | |
type Rep DeleteKeyGroupResponse Source # | |
newDeleteKeyGroupResponse :: DeleteKeyGroupResponse Source #
Create a value of DeleteKeyGroupResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.