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