Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data S3Origin = S3Origin' {}
- newS3Origin :: Text -> Text -> S3Origin
- s3Origin_domainName :: Lens' S3Origin Text
- s3Origin_originAccessIdentity :: Lens' S3Origin Text
Documentation
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.
S3Origin' | |
|
Instances
Eq S3Origin Source # | |
Read S3Origin Source # | |
Show S3Origin Source # | |
Generic S3Origin Source # | |
NFData S3Origin Source # | |
Defined in Amazonka.CloudFront.Types.S3Origin | |
Hashable S3Origin Source # | |
Defined in Amazonka.CloudFront.Types.S3Origin | |
FromXML S3Origin Source # | |
ToXML S3Origin Source # | |
Defined in Amazonka.CloudFront.Types.S3Origin | |
type Rep S3Origin Source # | |
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))) |
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_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.