public class S3Origin extends Origin
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ORIGIN_ACCESS_IDENTITY_PREFIX |
| Constructor and Description |
|---|
S3Origin(java.lang.String domainName)
An S3 bucket origin.
|
S3Origin(java.lang.String domainName,
java.lang.String originAccessIdentity)
An S3 bucket origin.
|
S3Origin(java.lang.String id,
java.lang.String domainName,
java.lang.String originAccessIdentity)
An S3 bucket origin.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOriginAccessIdentity() |
java.lang.String |
getOriginAsBucketName() |
java.lang.String |
toString() |
getDnsName, getDomainName, getIdpublic static final java.lang.String ORIGIN_ACCESS_IDENTITY_PREFIX
public S3Origin(java.lang.String domainName,
java.lang.String originAccessIdentity)
domainName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)originAccessIdentity - Identifier of the origin access identity that can authorize access to
S3 objects via a private distribution. If provided the distribution will be
private, if null the distribution will be be public.public S3Origin(java.lang.String id,
java.lang.String domainName,
java.lang.String originAccessIdentity)
id - Unique identifier for this origin.domainName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)originAccessIdentity - Identifier of the origin access identity that can authorize access to
S3 objects via a private distribution. If provided the distribution will be
private, if null the distribution will be be public.public S3Origin(java.lang.String domainName)
domainName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)public java.lang.String getOriginAccessIdentity()
public java.lang.String getOriginAsBucketName()
public java.lang.String toString()
toString in class java.lang.Object