@Generated(value="software.amazon.awssdk:codegen") public final class Distribution extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Distribution.Builder,Distribution>
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Distribution.Builder |
| Modifier and Type | Method and Description |
|---|---|
ActiveTrustedKeyGroups |
activeTrustedKeyGroups()
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups.
|
ActiveTrustedSigners |
activeTrustedSigners()
|
List<AliasICPRecordal> |
aliasICPRecordals()
AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve
content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront.
|
String |
arn()
The ARN (Amazon Resource Name) for the distribution.
|
static Distribution.Builder |
builder() |
DistributionConfig |
distributionConfig()
The current configuration information for the distribution.
|
String |
domainName()
The domain name corresponding to the distribution, for example,
d111111abcdef8.cloudfront.net. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAliasICPRecordals()
Returns true if the AliasICPRecordals property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
String |
id()
The identifier for the distribution.
|
Integer |
inProgressInvalidationBatches()
The number of invalidation batches currently in progress.
|
Instant |
lastModifiedTime()
The date and time the distribution was last modified.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Distribution.Builder> |
serializableBuilderClass() |
String |
status()
This response element indicates the current status of the distribution.
|
Distribution.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier for the distribution. For example: EDFDVBD632BHDS5.
EDFDVBD632BHDS5.public final String arn()
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is
your AWS account ID.
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where
123456789012 is your AWS account ID.public final String status()
This response element indicates the current status of the distribution. When the status is Deployed,
the distribution's information is fully propagated to all CloudFront edge locations.
Deployed, the distribution's information is fully propagated to all CloudFront edge
locations.public final Instant lastModifiedTime()
The date and time the distribution was last modified.
public final Integer inProgressInvalidationBatches()
The number of invalidation batches currently in progress.
public final String domainName()
The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.
d111111abcdef8.cloudfront.net.public final ActiveTrustedSigners activeTrustedSigners()
We recommend using TrustedKeyGroups instead of TrustedSigners.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
We recommend using TrustedKeyGroups instead of TrustedSigners.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS account IDs and the active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs or signed cookies.
public final ActiveTrustedKeyGroups activeTrustedKeyGroups()
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using key groups. This field contains a list of key groups and the public keys in each key group that CloudFront can use to verify the signatures of signed URLs or signed cookies.
public final DistributionConfig distributionConfig()
The current configuration information for the distribution. Send a GET request to the
/CloudFront API version/distribution ID/config resource.
GET request to the
/CloudFront API version/distribution ID/config resource.public final boolean hasAliasICPRecordals()
public final List<AliasICPRecordal> aliasICPRecordals()
AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with AWS services in China.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAliasICPRecordals() to see if a value was sent in this field.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with AWS services in China.
public Distribution.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Distribution.Builder,Distribution>public static Distribution.Builder builder()
public static Class<? extends Distribution.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.