You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CloudFront::Types::S3Origin

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing S3Origin as input to an Aws::Client method, you can use a vanilla Hash:

{
  domain_name: "string", # required
  origin_access_identity: "string", # required
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#domain_nameString

The DNS name of the Amazon S3 origin.

Returns:

  • (String)

    The DNS name of the Amazon S3 origin.

#origin_access_identityString

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.

Returns:

  • (String)

    The CloudFront origin access identity to associate with the distribution.