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

Description

Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.

For an Amazon S3 origin, this makes it possible to block public access to the Amazon S3 bucket so that viewers (users) can access the content in the bucket only through CloudFront.

For more information about using a CloudFront origin access control, see Restricting access to an Amazon S3 origin in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateOriginAccessControl Source #

See: newCreateOriginAccessControl smart constructor.

Constructors

CreateOriginAccessControl' 

Fields

Instances

Instances details
ToHeaders CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

ToPath CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

ToQuery CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

ToElement CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

AWSRequest CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Generic CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Associated Types

type Rep CreateOriginAccessControl :: Type -> Type #

Read CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Show CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

NFData CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Eq CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Hashable CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

type AWSResponse CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

type Rep CreateOriginAccessControl Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

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

newCreateOriginAccessControl Source #

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

CreateOriginAccessControl, createOriginAccessControl_originAccessControlConfig - Contains the origin access control.

Request Lenses

Destructuring the Response

data CreateOriginAccessControlResponse Source #

See: newCreateOriginAccessControlResponse smart constructor.

Constructors

CreateOriginAccessControlResponse' 

Fields

Instances

Instances details
Generic CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Associated Types

type Rep CreateOriginAccessControlResponse :: Type -> Type #

Read CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Show CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

NFData CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

Eq CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

type Rep CreateOriginAccessControlResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginAccessControl

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

newCreateOriginAccessControlResponse Source #

Create a value of CreateOriginAccessControlResponse 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:CreateOriginAccessControlResponse', createOriginAccessControlResponse_eTag - The version identifier for the current version of the origin access control.

$sel:location:CreateOriginAccessControlResponse', createOriginAccessControlResponse_location - The URL of the origin access control.

$sel:originAccessControl:CreateOriginAccessControlResponse', createOriginAccessControlResponse_originAccessControl - Contains an origin access control.

$sel:httpStatus:CreateOriginAccessControlResponse', createOriginAccessControlResponse_httpStatus - The response's http status code.

Response Lenses

createOriginAccessControlResponse_eTag :: Lens' CreateOriginAccessControlResponse (Maybe Text) Source #

The version identifier for the current version of the origin access control.