Class AbstractAmazonCloudFront
- java.lang.Object
-
- com.amazonaws.services.cloudfront.AbstractAmazonCloudFront
-
- All Implemented Interfaces:
AmazonCloudFront
- Direct Known Subclasses:
AbstractAmazonCloudFrontAsync
public class AbstractAmazonCloudFront extends Object implements AmazonCloudFront
Abstract implementation ofAmazonCloudFront
. Convenient method forms pass through to the corresponding overload that takes a request object, which throws anUnsupportedOperationException
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAmazonCloudFront()
-
Method Summary
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(String endpoint)
Description copied from interface:AmazonCloudFront
Overrides the default endpoint for this client ("https://cloudfront.amazonaws.com/"). Callers can use this method to control which AWS region they want to work with.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.
- Specified by:
setEndpoint
in interfaceAmazonCloudFront
- Parameters:
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.
-
setRegion
public void setRegion(Region region)
Description copied from interface:AmazonCloudFront
An alternative toAmazonCloudFront.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.
- Specified by:
setRegion
in interfaceAmazonCloudFront
- Parameters:
region
- The region this client will communicate with. SeeRegion.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.- See Also:
Region.getRegion(com.amazonaws.regions.Regions)
,Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,Region.isServiceSupported(String)
-
createCloudFrontOriginAccessIdentity
public CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request)
Description copied from interface:AmazonCloudFront
Create a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
request
- The request to create a new origin access identity.- Returns:
- Result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
-
createDistribution
public CreateDistributionResult createDistribution(CreateDistributionRequest request)
Description copied from interface:AmazonCloudFront
Create a new distribution.- Specified by:
createDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to create a new distribution.- Returns:
- Result of the CreateDistribution operation returned by the service.
-
createInvalidation
public CreateInvalidationResult createInvalidation(CreateInvalidationRequest request)
Description copied from interface:AmazonCloudFront
Create a new invalidation.- Specified by:
createInvalidation
in interfaceAmazonCloudFront
- Parameters:
request
- The request to create an invalidation.- Returns:
- Result of the CreateInvalidation operation returned by the service.
-
createStreamingDistribution
public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest request)
Description copied from interface:AmazonCloudFront
Create a new streaming distribution.- Specified by:
createStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to create a new streaming distribution.- Returns:
- Result of the CreateStreamingDistribution operation returned by the service.
-
deleteCloudFrontOriginAccessIdentity
public DeleteCloudFrontOriginAccessIdentityResult deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request)
Description copied from interface:AmazonCloudFront
Delete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
request
- The request to delete a origin access identity.- Returns:
- Result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
-
deleteDistribution
public DeleteDistributionResult deleteDistribution(DeleteDistributionRequest request)
Description copied from interface:AmazonCloudFront
Delete a distribution.- Specified by:
deleteDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to delete a distribution.- Returns:
- Result of the DeleteDistribution operation returned by the service.
-
deleteStreamingDistribution
public DeleteStreamingDistributionResult deleteStreamingDistribution(DeleteStreamingDistributionRequest request)
Description copied from interface:AmazonCloudFront
Delete a streaming distribution.- Specified by:
deleteStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to delete a streaming distribution.- Returns:
- Result of the DeleteStreamingDistribution operation returned by the service.
-
getCloudFrontOriginAccessIdentity
public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request)
Description copied from interface:AmazonCloudFront
Get the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get an origin access identity's information.- Returns:
- Result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
-
getCloudFrontOriginAccessIdentityConfig
public GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request)
Description copied from interface:AmazonCloudFront
Get the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfig
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get an origin access identity's configuration.- Returns:
- Result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
-
getDistribution
public GetDistributionResult getDistribution(GetDistributionRequest request)
Description copied from interface:AmazonCloudFront
Get the information about a distribution.- Specified by:
getDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get a distribution's information.- Returns:
- Result of the GetDistribution operation returned by the service.
-
getDistributionConfig
public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest request)
Description copied from interface:AmazonCloudFront
Get the configuration information about a distribution.- Specified by:
getDistributionConfig
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get a distribution configuration.- Returns:
- Result of the GetDistributionConfig operation returned by the service.
-
getInvalidation
public GetInvalidationResult getInvalidation(GetInvalidationRequest request)
Description copied from interface:AmazonCloudFront
Get the information about an invalidation.- Specified by:
getInvalidation
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get an invalidation's information.- Returns:
- Result of the GetInvalidation operation returned by the service.
-
getStreamingDistribution
public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest request)
Description copied from interface:AmazonCloudFront
Get the information about a streaming distribution.- Specified by:
getStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to get a streaming distribution's information.- Returns:
- Result of the GetStreamingDistribution operation returned by the service.
-
getStreamingDistributionConfig
public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest request)
Description copied from interface:AmazonCloudFront
Get the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfig
in interfaceAmazonCloudFront
- Parameters:
request
- To request to get a streaming distribution configuration.- Returns:
- Result of the GetStreamingDistributionConfig operation returned by the service.
-
listCloudFrontOriginAccessIdentities
public ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request)
Description copied from interface:AmazonCloudFront
List origin access identities.- Specified by:
listCloudFrontOriginAccessIdentities
in interfaceAmazonCloudFront
- Parameters:
request
- The request to list origin access identities.- Returns:
- Result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
-
listDistributions
public ListDistributionsResult listDistributions(ListDistributionsRequest request)
Description copied from interface:AmazonCloudFront
List distributions.- Specified by:
listDistributions
in interfaceAmazonCloudFront
- Parameters:
request
- The request to list your distributions.- Returns:
- Result of the ListDistributions operation returned by the service.
-
listDistributionsByWebACLId
public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request)
Description copied from interface:AmazonCloudFront
List the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLId
in interfaceAmazonCloudFront
- Parameters:
request
- The request to list distributions that are associated with a specified AWS WAF web ACL.- Returns:
- Result of the ListDistributionsByWebACLId operation returned by the service.
-
listInvalidations
public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request)
Description copied from interface:AmazonCloudFront
List invalidation batches.- Specified by:
listInvalidations
in interfaceAmazonCloudFront
- Parameters:
request
- The request to list invalidations.- Returns:
- Result of the ListInvalidations operation returned by the service.
-
listStreamingDistributions
public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest request)
Description copied from interface:AmazonCloudFront
List streaming distributions.- Specified by:
listStreamingDistributions
in interfaceAmazonCloudFront
- Parameters:
request
- The request to list your streaming distributions.- Returns:
- Result of the ListStreamingDistributions operation returned by the service.
-
updateCloudFrontOriginAccessIdentity
public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request)
Description copied from interface:AmazonCloudFront
Update an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
request
- The request to update an origin access identity.- Returns:
- Result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
-
updateDistribution
public UpdateDistributionResult updateDistribution(UpdateDistributionRequest request)
Description copied from interface:AmazonCloudFront
Update a distribution.- Specified by:
updateDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to update a distribution.- Returns:
- Result of the UpdateDistribution operation returned by the service.
-
updateStreamingDistribution
public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest request)
Description copied from interface:AmazonCloudFront
Update a streaming distribution.- Specified by:
updateStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
request
- The request to update a streaming distribution.- Returns:
- Result of the UpdateStreamingDistribution operation returned by the service.
-
shutdown
public void shutdown()
Description copied from interface:AmazonCloudFront
Shuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.- Specified by:
shutdown
in interfaceAmazonCloudFront
-
getCachedResponseMetadata
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Description copied from interface:AmazonCloudFront
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.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.
- Specified by:
getCachedResponseMetadata
in interfaceAmazonCloudFront
- Parameters:
request
- The originally executed request.- Returns:
- The response metadata for the specified request, or null if none is available.
-
-