@Generated(value="software.amazon.awssdk:codegen") public final class S3Origin extends Object implements ToCopyableBuilder<S3Origin.Builder,S3Origin>
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
Modifier and Type | Class and Description |
---|---|
static interface |
S3Origin.Builder |
Modifier and Type | Method and Description |
---|---|
static S3Origin.Builder |
builder() |
String |
domainName()
The DNS name of the Amazon S3 origin.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
originAccessIdentity()
The CloudFront origin access identity to associate with the RTMP distribution.
|
static Class<? extends S3Origin.Builder> |
serializableBuilderClass() |
S3Origin.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String domainName()
The DNS name of the Amazon S3 origin.
public String originAccessIdentity()
The CloudFront origin access identity to associate with the RTMP 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 Amazon CloudFront Developer Guide.
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 Amazon CloudFront Developer Guide.
public S3Origin.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<S3Origin.Builder,S3Origin>
public static S3Origin.Builder builder()
public static Class<? extends S3Origin.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.