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.UpdateKeyGroup

Description

Updates a key group.

When you update a key group, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a key group:

  1. Get the current key group with GetKeyGroup or GetKeyGroupConfig.
  2. Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.
  3. Call UpdateKeyGroup with the entire key group object, including the fields that you modified and those that you didn’t.
Synopsis

Creating a Request

data UpdateKeyGroup Source #

See: newUpdateKeyGroup smart constructor.

Constructors

UpdateKeyGroup' 

Fields

Instances

Instances details
Eq UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Read UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Show UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Generic UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Associated Types

type Rep UpdateKeyGroup :: Type -> Type #

NFData UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Methods

rnf :: UpdateKeyGroup -> () #

Hashable UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

AWSRequest UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Associated Types

type AWSResponse UpdateKeyGroup #

ToHeaders UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

ToPath UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

ToQuery UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

ToElement UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

type Rep UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

type Rep UpdateKeyGroup = D1 ('MetaData "UpdateKeyGroup" "Amazonka.CloudFront.UpdateKeyGroup" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateKeyGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "keyGroupConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 KeyGroupConfig) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

newUpdateKeyGroup Source #

Create a value of UpdateKeyGroup 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:UpdateKeyGroup', updateKeyGroup_ifMatch - The version of the key group that you are updating. The version is the key group’s ETag value.

$sel:keyGroupConfig:UpdateKeyGroup', updateKeyGroup_keyGroupConfig - The key group configuration.

$sel:id:UpdateKeyGroup', updateKeyGroup_id - The identifier of the key group that you are updating.

Request Lenses

updateKeyGroup_ifMatch :: Lens' UpdateKeyGroup (Maybe Text) Source #

The version of the key group that you are updating. The version is the key group’s ETag value.

updateKeyGroup_id :: Lens' UpdateKeyGroup Text Source #

The identifier of the key group that you are updating.

Destructuring the Response

data UpdateKeyGroupResponse Source #

See: newUpdateKeyGroupResponse smart constructor.

Constructors

UpdateKeyGroupResponse' 

Fields

Instances

Instances details
Eq UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Read UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Show UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Generic UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Associated Types

type Rep UpdateKeyGroupResponse :: Type -> Type #

NFData UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

Methods

rnf :: UpdateKeyGroupResponse -> () #

type Rep UpdateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateKeyGroup

type Rep UpdateKeyGroupResponse = D1 ('MetaData "UpdateKeyGroupResponse" "Amazonka.CloudFront.UpdateKeyGroup" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateKeyGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "keyGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KeyGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateKeyGroupResponse Source #

Create a value of UpdateKeyGroupResponse 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:eTag:UpdateKeyGroupResponse', updateKeyGroupResponse_eTag - The identifier for this version of the key group.

$sel:keyGroup:UpdateKeyGroupResponse', updateKeyGroupResponse_keyGroup - The key group that was just updated.

$sel:httpStatus:UpdateKeyGroupResponse', updateKeyGroupResponse_httpStatus - The response's http status code.

Response Lenses

updateKeyGroupResponse_eTag :: Lens' UpdateKeyGroupResponse (Maybe Text) Source #

The identifier for this version of the key group.