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 AmazonCloudFront
endpoint
- 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)
AmazonCloudFront
AmazonCloudFront.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 AmazonCloudFront
region
- 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)
AmazonCloudFront
createCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
request
- The request to create a new origin access identity.public CreateDistributionResult createDistribution(CreateDistributionRequest request)
AmazonCloudFront
createDistribution
in interface AmazonCloudFront
request
- The request to create a new distribution.public CreateInvalidationResult createInvalidation(CreateInvalidationRequest request)
AmazonCloudFront
createInvalidation
in interface AmazonCloudFront
request
- The request to create an invalidation.public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest request)
AmazonCloudFront
createStreamingDistribution
in interface AmazonCloudFront
request
- The request to create a new streaming distribution.public void deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFront
deleteCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
request
- The request to delete a origin access identity.public void deleteDistribution(DeleteDistributionRequest request)
AmazonCloudFront
deleteDistribution
in interface AmazonCloudFront
request
- The request to delete a distribution.public void deleteStreamingDistribution(DeleteStreamingDistributionRequest request)
AmazonCloudFront
deleteStreamingDistribution
in interface AmazonCloudFront
request
- The request to delete a streaming distribution.public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFront
getCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
request
- The request to get an origin access identity's information.public GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request)
AmazonCloudFront
getCloudFrontOriginAccessIdentityConfig
in interface AmazonCloudFront
request
- The request to get an origin access identity's configuration.public GetDistributionResult getDistribution(GetDistributionRequest request)
AmazonCloudFront
getDistribution
in interface AmazonCloudFront
request
- The request to get a distribution's information.public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest request)
AmazonCloudFront
getDistributionConfig
in interface AmazonCloudFront
request
- The request to get a distribution configuration.public GetInvalidationResult getInvalidation(GetInvalidationRequest request)
AmazonCloudFront
getInvalidation
in interface AmazonCloudFront
request
- The request to get an invalidation's information.public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest request)
AmazonCloudFront
getStreamingDistribution
in interface AmazonCloudFront
request
- The request to get a streaming distribution's information.public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest request)
AmazonCloudFront
getStreamingDistributionConfig
in interface AmazonCloudFront
request
- To request to get a streaming distribution configuration.public ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request)
AmazonCloudFront
listCloudFrontOriginAccessIdentities
in interface AmazonCloudFront
request
- The request to list origin access identities.public ListDistributionsResult listDistributions(ListDistributionsRequest request)
AmazonCloudFront
listDistributions
in interface AmazonCloudFront
request
- The request to list your distributions.public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request)
AmazonCloudFront
listDistributionsByWebACLId
in interface AmazonCloudFront
request
- The request to list distributions that are associated with a
specified AWS WAF web ACL.public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request)
AmazonCloudFront
listInvalidations
in interface AmazonCloudFront
request
- The request to list invalidations.public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest request)
AmazonCloudFront
listStreamingDistributions
in interface AmazonCloudFront
request
- The request to list your streaming distributions.public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request)
AmazonCloudFront
updateCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
request
- The request to update an origin access identity.public UpdateDistributionResult updateDistribution(UpdateDistributionRequest request)
AmazonCloudFront
updateDistribution
in interface AmazonCloudFront
request
- The request to update a distribution.public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest request)
AmazonCloudFront
updateStreamingDistribution
in interface AmazonCloudFront
request
- The request to update a streaming distribution.public void shutdown()
AmazonCloudFront
shutdown
in interface AmazonCloudFront
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonCloudFront
Response 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 AmazonCloudFront
request
- The originally executed request.Copyright © 2016. All rights reserved.