libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Read DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Show DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Generic DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type Rep DeleteKeyGroup :: Type -> Type #

NFData DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Methods

rnf :: DeleteKeyGroup -> () #

Hashable DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

AWSRequest DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type AWSResponse DeleteKeyGroup #

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

type Rep DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroup = D1 ('MetaData "DeleteKeyGroup" "Amazonka.CloudFront.DeleteKeyGroup" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" '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)))
type AWSResponse DeleteKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

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.

$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

Instances details
Eq DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Read DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Show DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Generic DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Associated Types

type Rep DeleteKeyGroupResponse :: Type -> Type #

NFData DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

Methods

rnf :: DeleteKeyGroupResponse -> () #

type Rep DeleteKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteKeyGroup

type Rep DeleteKeyGroupResponse = D1 ('MetaData "DeleteKeyGroupResponse" "Amazonka.CloudFront.DeleteKeyGroup" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" '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.