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.Types.S3Origin

Description

 
Synopsis

Documentation

data S3Origin Source #

A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.

See: newS3Origin smart constructor.

Constructors

S3Origin' 

Fields

  • domainName :: Text

    The DNS name of the Amazon S3 origin.

  • originAccessIdentity :: Text

    The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

    If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

    To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

    To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

    For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.

Instances

Instances details
Eq S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Read S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Show S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Generic S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Associated Types

type Rep S3Origin :: Type -> Type #

Methods

from :: S3Origin -> Rep S3Origin x #

to :: Rep S3Origin x -> S3Origin #

NFData S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Methods

rnf :: S3Origin -> () #

Hashable S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Methods

hashWithSalt :: Int -> S3Origin -> Int #

hash :: S3Origin -> Int #

FromXML S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

ToXML S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

Methods

toXML :: S3Origin -> XML #

type Rep S3Origin Source # 
Instance details

Defined in Amazonka.CloudFront.Types.S3Origin

type Rep S3Origin = D1 ('MetaData "S3Origin" "Amazonka.CloudFront.Types.S3Origin" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "S3Origin'" 'PrefixI 'True) (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "originAccessIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newS3Origin Source #

Create a value of S3Origin 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:domainName:S3Origin', s3Origin_domainName - The DNS name of the Amazon S3 origin.

$sel:originAccessIdentity:S3Origin', s3Origin_originAccessIdentity - The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.

s3Origin_domainName :: Lens' S3Origin Text Source #

The DNS name of the Amazon S3 origin.

s3Origin_originAccessIdentity :: Lens' S3Origin Text Source #

The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.