public class AbstractAmazonCloudFront extends Object implements AmazonCloudFront
AmazonCloudFront. Convenient method forms
pass through to the corresponding overload that takes a request object, which
throws an UnsupportedOperationException.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAmazonCloudFront() |
public void setEndpoint(String endpoint)
AmazonCloudFront
Callers can pass in just the endpoint (ex: "cloudfront.amazonaws.com/")
or a full URL, including the protocol (ex:
"https://cloudfront.amazonaws.com/"). If the protocol is not specified
here, the default protocol from this client's ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint in interface AmazonCloudFrontendpoint - The endpoint (ex: "cloudfront.amazonaws.com/") or a full URL,
including the protocol (ex: "https://cloudfront.amazonaws.com/")
of the region specific AWS endpoint this client will communicate
with.public void setRegion(Region region)
AmazonCloudFrontAmazonCloudFront.setEndpoint(String), sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setRegion in interface AmazonCloudFrontregion - The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions) for
accessing a given region. Must not be null and must be a region
where the service is available.Region.getRegion(com.amazonaws.regions.Regions),
Region.createClient(Class,
com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration),
Region.isServiceSupported(String)public CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFrontcreateCloudFrontOriginAccessIdentity in interface AmazonCloudFrontrequest - The request to create a new origin access identity.public CreateDistributionResult createDistribution(CreateDistributionRequest request)
AmazonCloudFrontcreateDistribution in interface AmazonCloudFrontrequest - The request to create a new distribution.public CreateInvalidationResult createInvalidation(CreateInvalidationRequest request)
AmazonCloudFrontcreateInvalidation in interface AmazonCloudFrontrequest - The request to create an invalidation.public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest request)
AmazonCloudFrontcreateStreamingDistribution in interface AmazonCloudFrontrequest - The request to create a new streaming distribution.public void deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFrontdeleteCloudFrontOriginAccessIdentity in interface AmazonCloudFrontrequest - The request to delete a origin access identity.public void deleteDistribution(DeleteDistributionRequest request)
AmazonCloudFrontdeleteDistribution in interface AmazonCloudFrontrequest - The request to delete a distribution.public void deleteStreamingDistribution(DeleteStreamingDistributionRequest request)
AmazonCloudFrontdeleteStreamingDistribution in interface AmazonCloudFrontrequest - The request to delete a streaming distribution.public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFrontgetCloudFrontOriginAccessIdentity in interface AmazonCloudFrontrequest - The request to get an origin access identity's information.public GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request)
AmazonCloudFrontgetCloudFrontOriginAccessIdentityConfig in interface AmazonCloudFrontrequest - The request to get an origin access identity's configuration.public GetDistributionResult getDistribution(GetDistributionRequest request)
AmazonCloudFrontgetDistribution in interface AmazonCloudFrontrequest - The request to get a distribution's information.public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest request)
AmazonCloudFrontgetDistributionConfig in interface AmazonCloudFrontrequest - The request to get a distribution configuration.public GetInvalidationResult getInvalidation(GetInvalidationRequest request)
AmazonCloudFrontgetInvalidation in interface AmazonCloudFrontrequest - The request to get an invalidation's information.public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest request)
AmazonCloudFrontgetStreamingDistribution in interface AmazonCloudFrontrequest - The request to get a streaming distribution's information.public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest request)
AmazonCloudFrontgetStreamingDistributionConfig in interface AmazonCloudFrontrequest - To request to get a streaming distribution configuration.public ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request)
AmazonCloudFrontlistCloudFrontOriginAccessIdentities in interface AmazonCloudFrontrequest - The request to list origin access identities.public ListDistributionsResult listDistributions(ListDistributionsRequest request)
AmazonCloudFrontlistDistributions in interface AmazonCloudFrontrequest - The request to list your distributions.public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request)
AmazonCloudFrontlistDistributionsByWebACLId in interface AmazonCloudFrontrequest - The request to list distributions that are associated with a
specified AWS WAF web ACL.public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request)
AmazonCloudFrontlistInvalidations in interface AmazonCloudFrontrequest - The request to list invalidations.public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest request)
AmazonCloudFrontlistStreamingDistributions in interface AmazonCloudFrontrequest - The request to list your streaming distributions.public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFrontupdateCloudFrontOriginAccessIdentity in interface AmazonCloudFrontrequest - The request to update an origin access identity.public UpdateDistributionResult updateDistribution(UpdateDistributionRequest request)
AmazonCloudFrontupdateDistribution in interface AmazonCloudFrontrequest - The request to update a distribution.public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest request)
AmazonCloudFrontupdateStreamingDistribution in interface AmazonCloudFrontrequest - The request to update a streaming distribution.public void shutdown()
AmazonCloudFrontshutdown in interface AmazonCloudFrontpublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonCloudFrontResponse metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata in interface AmazonCloudFrontrequest - The originally executed request.Copyright © 2017. All rights reserved.