Class AmazonCloudFrontAsyncClient
- All Implemented Interfaces:
AmazonCloudFront
,AmazonCloudFrontAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.-
Field Summary
Fields inherited from class com.amazonaws.services.cloudfront.AmazonCloudFrontClient
configFactory, exceptionUnmarshallers
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on CloudFront.AmazonCloudFrontAsyncClient
(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials.AmazonCloudFrontAsyncClient
(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider.AmazonCloudFrontAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront using the provided AWS account credentials provider and client configuration options.AmazonCloudFrontAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider, executor service, and client configuration options.AmazonCloudFrontAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider and executor service.AmazonCloudFrontAsyncClient
(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials, executor service, and client configuration options.AmazonCloudFrontAsyncClient
(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials and executor service.AmazonCloudFrontAsyncClient
(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new origin access identity.createCloudFrontOriginAccessIdentityAsync
(CreateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<CreateCloudFrontOriginAccessIdentityRequest, CreateCloudFrontOriginAccessIdentityResult> asyncHandler) Create a new origin access identity.Create a new distribution.createDistributionAsync
(CreateDistributionRequest request, AsyncHandler<CreateDistributionRequest, CreateDistributionResult> asyncHandler) Create a new distribution.Create a new invalidation.createInvalidationAsync
(CreateInvalidationRequest request, AsyncHandler<CreateInvalidationRequest, CreateInvalidationResult> asyncHandler) Create a new invalidation.Create a new streaming distribution.createStreamingDistributionAsync
(CreateStreamingDistributionRequest request, AsyncHandler<CreateStreamingDistributionRequest, CreateStreamingDistributionResult> asyncHandler) Create a new streaming distribution.Delete an origin access identity.deleteCloudFrontOriginAccessIdentityAsync
(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequest, DeleteCloudFrontOriginAccessIdentityResult> asyncHandler) Delete an origin access identity.Delete a distribution.deleteDistributionAsync
(DeleteDistributionRequest request, AsyncHandler<DeleteDistributionRequest, DeleteDistributionResult> asyncHandler) Delete a distribution.Delete a streaming distribution.deleteStreamingDistributionAsync
(DeleteStreamingDistributionRequest request, AsyncHandler<DeleteStreamingDistributionRequest, DeleteStreamingDistributionResult> asyncHandler) Delete a streaming distribution.Get the information about an origin access identity.getCloudFrontOriginAccessIdentityAsync
(GetCloudFrontOriginAccessIdentityRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult> asyncHandler) Get the information about an origin access identity.getCloudFrontOriginAccessIdentityConfigAsync
(GetCloudFrontOriginAccessIdentityConfigRequest request) Get the configuration information about an origin access identity.getCloudFrontOriginAccessIdentityConfigAsync
(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult> asyncHandler) Get the configuration information about an origin access identity.Get the information about a distribution.getDistributionAsync
(GetDistributionRequest request, AsyncHandler<GetDistributionRequest, GetDistributionResult> asyncHandler) Get the information about a distribution.Get the configuration information about a distribution.getDistributionConfigAsync
(GetDistributionConfigRequest request, AsyncHandler<GetDistributionConfigRequest, GetDistributionConfigResult> asyncHandler) Get the configuration information about a distribution.Returns the executor service used by this client to execute async requests.Get the information about an invalidation.getInvalidationAsync
(GetInvalidationRequest request, AsyncHandler<GetInvalidationRequest, GetInvalidationResult> asyncHandler) Get the information about an invalidation.Get the information about a streaming distribution.getStreamingDistributionAsync
(GetStreamingDistributionRequest request, AsyncHandler<GetStreamingDistributionRequest, GetStreamingDistributionResult> asyncHandler) Get the information about a streaming distribution.Get the configuration information about a streaming distribution.getStreamingDistributionConfigAsync
(GetStreamingDistributionConfigRequest request, AsyncHandler<GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResult> asyncHandler) Get the configuration information about a streaming distribution.List origin access identities.listCloudFrontOriginAccessIdentitiesAsync
(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncHandler<ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResult> asyncHandler) List origin access identities.List distributions.listDistributionsAsync
(ListDistributionsRequest request, AsyncHandler<ListDistributionsRequest, ListDistributionsResult> asyncHandler) List distributions.List the distributions that are associated with a specified AWS WAF web ACL.listDistributionsByWebACLIdAsync
(ListDistributionsByWebACLIdRequest request, AsyncHandler<ListDistributionsByWebACLIdRequest, ListDistributionsByWebACLIdResult> asyncHandler) List the distributions that are associated with a specified AWS WAF web ACL.List invalidation batches.listInvalidationsAsync
(ListInvalidationsRequest request, AsyncHandler<ListInvalidationsRequest, ListInvalidationsResult> asyncHandler) List invalidation batches.List streaming distributions.listStreamingDistributionsAsync
(ListStreamingDistributionsRequest request, AsyncHandler<ListStreamingDistributionsRequest, ListStreamingDistributionsResult> asyncHandler) List streaming distributions.void
shutdown()
Shuts down the client, releasing all managed resources.Update an origin access identity.updateCloudFrontOriginAccessIdentityAsync
(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<UpdateCloudFrontOriginAccessIdentityRequest, UpdateCloudFrontOriginAccessIdentityResult> asyncHandler) Update an origin access identity.Update a distribution.updateDistributionAsync
(UpdateDistributionRequest request, AsyncHandler<UpdateDistributionRequest, UpdateDistributionResult> asyncHandler) Update a distribution.Update a streaming distribution.updateStreamingDistributionAsync
(UpdateStreamingDistributionRequest request, AsyncHandler<UpdateStreamingDistributionRequest, UpdateStreamingDistributionResult> asyncHandler) Update a streaming distribution.Methods inherited from class com.amazonaws.services.cloudfront.AmazonCloudFrontClient
createCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistribution
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.services.cloudfront.AmazonCloudFront
createCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, setEndpoint, setRegion, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistribution
-
Constructor Details
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient()Constructs a new asynchronous client to invoke service methods on CloudFront. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections()
.- Parameters:
clientConfiguration
- The client configuration options controlling how this client connects to CloudFront (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections()
.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
createCloudFrontOriginAccessIdentityAsync
public Future<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsync
Create a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new origin access identity.- Returns:
- A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
-
createCloudFrontOriginAccessIdentityAsync
public Future<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<CreateCloudFrontOriginAccessIdentityRequest, CreateCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Create a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new origin access identity.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
-
createDistributionAsync
Description copied from interface:AmazonCloudFrontAsync
Create a new distribution.- Specified by:
createDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new distribution.- Returns:
- A Java Future containing the result of the CreateDistribution operation returned by the service.
-
createDistributionAsync
public Future<CreateDistributionResult> createDistributionAsync(CreateDistributionRequest request, AsyncHandler<CreateDistributionRequest, CreateDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Create a new distribution.- Specified by:
createDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateDistribution operation returned by the service.
-
createInvalidationAsync
Description copied from interface:AmazonCloudFrontAsync
Create a new invalidation.- Specified by:
createInvalidationAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create an invalidation.- Returns:
- A Java Future containing the result of the CreateInvalidation operation returned by the service.
-
createInvalidationAsync
public Future<CreateInvalidationResult> createInvalidationAsync(CreateInvalidationRequest request, AsyncHandler<CreateInvalidationRequest, CreateInvalidationResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Create a new invalidation.- Specified by:
createInvalidationAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create an invalidation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateInvalidation operation returned by the service.
-
createStreamingDistributionAsync
public Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsync
Create a new streaming distribution.- Specified by:
createStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new streaming distribution.- Returns:
- A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
-
createStreamingDistributionAsync
public Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request, AsyncHandler<CreateStreamingDistributionRequest, CreateStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Create a new streaming distribution.- Specified by:
createStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to create a new streaming distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
-
deleteCloudFrontOriginAccessIdentityAsync
public Future<DeleteCloudFrontOriginAccessIdentityResult> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsync
Delete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a origin access identity.- Returns:
- A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
-
deleteCloudFrontOriginAccessIdentityAsync
public Future<DeleteCloudFrontOriginAccessIdentityResult> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequest, DeleteCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Delete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a origin access identity.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
-
deleteDistributionAsync
Description copied from interface:AmazonCloudFrontAsync
Delete a distribution.- Specified by:
deleteDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a distribution.- Returns:
- A Java Future containing the result of the DeleteDistribution operation returned by the service.
-
deleteDistributionAsync
public Future<DeleteDistributionResult> deleteDistributionAsync(DeleteDistributionRequest request, AsyncHandler<DeleteDistributionRequest, DeleteDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Delete a distribution.- Specified by:
deleteDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteDistribution operation returned by the service.
-
deleteStreamingDistributionAsync
public Future<DeleteStreamingDistributionResult> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsync
Delete a streaming distribution.- Specified by:
deleteStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a streaming distribution.- Returns:
- A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
-
deleteStreamingDistributionAsync
public Future<DeleteStreamingDistributionResult> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, AsyncHandler<DeleteStreamingDistributionRequest, DeleteStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Delete a streaming distribution.- Specified by:
deleteStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to delete a streaming distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
-
getCloudFrontOriginAccessIdentityAsync
public Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsync
Get the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an origin access identity's information.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
-
getCloudFrontOriginAccessIdentityAsync
public Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an origin access identity's information.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
-
getCloudFrontOriginAccessIdentityConfigAsync
public Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an origin access identity's configuration.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
-
getCloudFrontOriginAccessIdentityConfigAsync
public Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an origin access identity's configuration.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
-
getDistributionAsync
Description copied from interface:AmazonCloudFrontAsync
Get the information about a distribution.- Specified by:
getDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a distribution's information.- Returns:
- A Java Future containing the result of the GetDistribution operation returned by the service.
-
getDistributionAsync
public Future<GetDistributionResult> getDistributionAsync(GetDistributionRequest request, AsyncHandler<GetDistributionRequest, GetDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the information about a distribution.- Specified by:
getDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a distribution's information.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDistribution operation returned by the service.
-
getDistributionConfigAsync
public Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about a distribution.- Specified by:
getDistributionConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a distribution configuration.- Returns:
- A Java Future containing the result of the GetDistributionConfig operation returned by the service.
-
getDistributionConfigAsync
public Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request, AsyncHandler<GetDistributionConfigRequest, GetDistributionConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about a distribution.- Specified by:
getDistributionConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a distribution configuration.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDistributionConfig operation returned by the service.
-
getInvalidationAsync
Description copied from interface:AmazonCloudFrontAsync
Get the information about an invalidation.- Specified by:
getInvalidationAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an invalidation's information.- Returns:
- A Java Future containing the result of the GetInvalidation operation returned by the service.
-
getInvalidationAsync
public Future<GetInvalidationResult> getInvalidationAsync(GetInvalidationRequest request, AsyncHandler<GetInvalidationRequest, GetInvalidationResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the information about an invalidation.- Specified by:
getInvalidationAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get an invalidation's information.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetInvalidation operation returned by the service.
-
getStreamingDistributionAsync
public Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsync
Get the information about a streaming distribution.- Specified by:
getStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a streaming distribution's information.- Returns:
- A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
-
getStreamingDistributionAsync
public Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request, AsyncHandler<GetStreamingDistributionRequest, GetStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the information about a streaming distribution.- Specified by:
getStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to get a streaming distribution's information.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
-
getStreamingDistributionConfigAsync
public Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- To request to get a streaming distribution configuration.- Returns:
- A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the service.
-
getStreamingDistributionConfigAsync
public Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, AsyncHandler<GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Get the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfigAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- To request to get a streaming distribution configuration.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the service.
-
listCloudFrontOriginAccessIdentitiesAsync
public Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request) Description copied from interface:AmazonCloudFrontAsync
List origin access identities.- Specified by:
listCloudFrontOriginAccessIdentitiesAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list origin access identities.- Returns:
- A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
-
listCloudFrontOriginAccessIdentitiesAsync
public Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncHandler<ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
List origin access identities.- Specified by:
listCloudFrontOriginAccessIdentitiesAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list origin access identities.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
-
listDistributionsAsync
Description copied from interface:AmazonCloudFrontAsync
List distributions.- Specified by:
listDistributionsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list your distributions.- Returns:
- A Java Future containing the result of the ListDistributions operation returned by the service.
-
listDistributionsAsync
public Future<ListDistributionsResult> listDistributionsAsync(ListDistributionsRequest request, AsyncHandler<ListDistributionsRequest, ListDistributionsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
List distributions.- Specified by:
listDistributionsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list your distributions.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListDistributions operation returned by the service.
-
listDistributionsByWebACLIdAsync
public Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request) Description copied from interface:AmazonCloudFrontAsync
List the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLIdAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list distributions that are associated with a specified AWS WAF web ACL.- Returns:
- A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
-
listDistributionsByWebACLIdAsync
public Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, AsyncHandler<ListDistributionsByWebACLIdRequest, ListDistributionsByWebACLIdResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
List the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLIdAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list distributions that are associated with a specified AWS WAF web ACL.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
-
listInvalidationsAsync
Description copied from interface:AmazonCloudFrontAsync
List invalidation batches.- Specified by:
listInvalidationsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list invalidations.- Returns:
- A Java Future containing the result of the ListInvalidations operation returned by the service.
-
listInvalidationsAsync
public Future<ListInvalidationsResult> listInvalidationsAsync(ListInvalidationsRequest request, AsyncHandler<ListInvalidationsRequest, ListInvalidationsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
List invalidation batches.- Specified by:
listInvalidationsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list invalidations.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListInvalidations operation returned by the service.
-
listStreamingDistributionsAsync
public Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request) Description copied from interface:AmazonCloudFrontAsync
List streaming distributions.- Specified by:
listStreamingDistributionsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list your streaming distributions.- Returns:
- A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
-
listStreamingDistributionsAsync
public Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request, AsyncHandler<ListStreamingDistributionsRequest, ListStreamingDistributionsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
List streaming distributions.- Specified by:
listStreamingDistributionsAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to list your streaming distributions.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
-
updateCloudFrontOriginAccessIdentityAsync
public Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsync
Update an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update an origin access identity.- Returns:
- A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
-
updateCloudFrontOriginAccessIdentityAsync
public Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<UpdateCloudFrontOriginAccessIdentityRequest, UpdateCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Update an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentityAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update an origin access identity.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
-
updateDistributionAsync
Description copied from interface:AmazonCloudFrontAsync
Update a distribution.- Specified by:
updateDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update a distribution.- Returns:
- A Java Future containing the result of the UpdateDistribution operation returned by the service.
-
updateDistributionAsync
public Future<UpdateDistributionResult> updateDistributionAsync(UpdateDistributionRequest request, AsyncHandler<UpdateDistributionRequest, UpdateDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Update a distribution.- Specified by:
updateDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update a distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateDistribution operation returned by the service.
-
updateStreamingDistributionAsync
public Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsync
Update a streaming distribution.- Specified by:
updateStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update a streaming distribution.- Returns:
- A Java Future containing the result of the UpdateStreamingDistribution operation returned by the service.
-
updateStreamingDistributionAsync
public Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, AsyncHandler<UpdateStreamingDistributionRequest, UpdateStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsync
Update a streaming distribution.- Specified by:
updateStreamingDistributionAsync
in interfaceAmazonCloudFrontAsync
- Parameters:
request
- The request to update a streaming distribution.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateStreamingDistribution operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()
followed bygetExecutorService().awaitTermination()
prior to calling this method.- Specified by:
shutdown
in interfaceAmazonCloudFront
- Overrides:
shutdown
in classAmazonWebServiceClient
-