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

Description

Creates a key group that you can use with CloudFront signed URLs and signed cookies.

To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateKeyGroup Source #

See: newCreateKeyGroup smart constructor.

Constructors

CreateKeyGroup' 

Fields

Instances

Instances details
ToHeaders CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

ToPath CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

ToQuery CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

ToElement CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

AWSRequest CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type AWSResponse CreateKeyGroup #

Generic CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type Rep CreateKeyGroup :: Type -> Type #

Read CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Show CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

NFData CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Methods

rnf :: CreateKeyGroup -> () #

Eq CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Hashable CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type AWSResponse CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type Rep CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type Rep CreateKeyGroup = D1 ('MetaData "CreateKeyGroup" "Amazonka.CloudFront.CreateKeyGroup" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "CreateKeyGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyGroupConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 KeyGroupConfig)))

newCreateKeyGroup Source #

Create a value of CreateKeyGroup 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:

CreateKeyGroup, createKeyGroup_keyGroupConfig - A key group configuration.

Request Lenses

Destructuring the Response

data CreateKeyGroupResponse Source #

See: newCreateKeyGroupResponse smart constructor.

Constructors

CreateKeyGroupResponse' 

Fields

Instances

Instances details
Generic CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type Rep CreateKeyGroupResponse :: Type -> Type #

Read CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Show CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

NFData CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Methods

rnf :: CreateKeyGroupResponse -> () #

Eq CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type Rep CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type Rep CreateKeyGroupResponse = D1 ('MetaData "CreateKeyGroupResponse" "Amazonka.CloudFront.CreateKeyGroup" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "CreateKeyGroupResponse'" '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 "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateKeyGroupResponse Source #

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

CreateKeyGroupResponse, createKeyGroupResponse_keyGroup - The key group that was just created.

$sel:location:CreateKeyGroupResponse', createKeyGroupResponse_location - The URL of the key group.

$sel:httpStatus:CreateKeyGroupResponse', createKeyGroupResponse_httpStatus - The response's http status code.

Response Lenses

createKeyGroupResponse_eTag :: Lens' CreateKeyGroupResponse (Maybe Text) Source #

The identifier for this version of the key group.