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

Defined in Amazonka.CloudFront.CreateKeyGroup

Read CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Show CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Generic CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type Rep CreateKeyGroup :: Type -> Type #

NFData CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Methods

rnf :: CreateKeyGroup -> () #

Hashable CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

AWSRequest CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type AWSResponse CreateKeyGroup #

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

type Rep CreateKeyGroup Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

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

Defined in Amazonka.CloudFront.CreateKeyGroup

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:

$sel:keyGroupConfig: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
Eq CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Read CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Show CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Generic CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Associated Types

type Rep CreateKeyGroupResponse :: Type -> Type #

NFData CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

Methods

rnf :: CreateKeyGroupResponse -> () #

type Rep CreateKeyGroupResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateKeyGroup

type Rep CreateKeyGroupResponse = D1 ('MetaData "CreateKeyGroupResponse" "Amazonka.CloudFront.CreateKeyGroup" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateKeyGroupResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") '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))))

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.

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

$sel:keyGroup:CreateKeyGroupResponse', createKeyGroupResponse_keyGroup - The key group that was just created.

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