amazonka-cloudfront-2.0: Amazon CloudFront SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudFront.DeleteKeyGroup

Description

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.

Constructors

DeleteKeyGroup' 

Fields

  • ifMatch :: Maybe Text

    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.

  • id :: Text

    The identifier of the key group that you are deleting. To get the identifier, use ListKeyGroups.

Instances

Instances details
ToHeaders DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

ToPath DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

ToQuery DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

AWSRequest DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type AWSResponse DeleteKeyGroup #

Generic DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type Rep DeleteKeyGroup :: Type -> Type #

Read DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Show DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

NFData DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Methods

rnf :: DeleteKeyGroup -> () #

Eq DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Hashable DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type AWSResponse DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroup = D1 ('MetaData "DeleteKeyGroup" "Amazonka.CloudFront.DeleteKeyGroup" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "DeleteKeyGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteKeyGroup Source #

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

Instances details
Generic DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type Rep DeleteKeyGroupResponse :: Type -> Type #

Read DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Show DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

NFData DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Methods

rnf :: DeleteKeyGroupResponse -> () #

Eq DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroupResponse = D1 ('MetaData "DeleteKeyGroupResponse" "Amazonka.CloudFront.DeleteKeyGroup" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "DeleteKeyGroupResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteKeyGroupResponse :: DeleteKeyGroupResponse Source #

Create a value of DeleteKeyGroupResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.