Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.cloudfront;
  
  
  
Asynchronous client for accessing AmazonCloudFront. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread.
  
          implements AmazonCloudFrontAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonCloudFrontAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonCloudFront (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AmazonCloudFrontAsyncClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

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.
 
     public AmazonCloudFrontAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

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.
 
     public AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

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.
 
     public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

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).
 
     public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCloudFront using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

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.
 
     public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
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 call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Delete a distribution.

Parameters:
deleteDistributionRequest Container for the necessary parameters to execute the DeleteDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the DeleteDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteDistributionAsync(final DeleteDistributionRequest deleteDistributionRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteDistribution(deleteDistributionRequest);
                 return null;
         }
     });
     }

    

Delete a distribution.

Parameters:
deleteDistributionRequest Container for the necessary parameters to execute the DeleteDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteDistributionRequest deleteDistributionRequest,
             final AsyncHandler<DeleteDistributionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteDistribution(deleteDistributionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteDistributionRequestnull);
                  return null;
         }
     });
     }
    
    

Update a distribution.

Parameters:
updateDistributionRequest Container for the necessary parameters to execute the UpdateDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the UpdateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<UpdateDistributionResultupdateDistributionAsync(final UpdateDistributionRequest updateDistributionRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateDistributionResult>() {
             public UpdateDistributionResult call() throws Exception {
                 return updateDistribution(updateDistributionRequest);
         }
     });
     }

    

Update a distribution.

Parameters:
updateDistributionRequest Container for the necessary parameters to execute the UpdateDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateDistributionRequest updateDistributionRequest,
             final AsyncHandler<UpdateDistributionRequestUpdateDistributionResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateDistributionResult>() {
             public UpdateDistributionResult call() throws Exception {
               UpdateDistributionResult result;
                 try {
                 result = updateDistribution(updateDistributionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateDistributionRequestresult);
                  return result;
         }
     });
     }
    
    

List invalidation batches.

Parameters:
listInvalidationsRequest Container for the necessary parameters to execute the ListInvalidations operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the ListInvalidations service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListInvalidationsResultlistInvalidationsAsync(final ListInvalidationsRequest listInvalidationsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListInvalidationsResult>() {
             public ListInvalidationsResult call() throws Exception {
                 return listInvalidations(listInvalidationsRequest);
         }
     });
     }

    

List invalidation batches.

Parameters:
listInvalidationsRequest Container for the necessary parameters to execute the ListInvalidations operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListInvalidations service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final ListInvalidationsRequest listInvalidationsRequest,
             final AsyncHandler<ListInvalidationsRequestListInvalidationsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListInvalidationsResult>() {
             public ListInvalidationsResult call() throws Exception {
               ListInvalidationsResult result;
                 try {
                 result = listInvalidations(listInvalidationsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listInvalidationsRequestresult);
                  return result;
         }
     });
     }
    
    

Update a streaming distribution.

Parameters:
updateStreamingDistributionRequest Container for the necessary parameters to execute the UpdateStreamingDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the UpdateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public UpdateStreamingDistributionResult call() throws Exception {
                 return updateStreamingDistribution(updateStreamingDistributionRequest);
         }
     });
     }

    

Update a streaming distribution.

Parameters:
updateStreamingDistributionRequest Container for the necessary parameters to execute the UpdateStreamingDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateStreamingDistributionRequest updateStreamingDistributionRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public UpdateStreamingDistributionResult call() throws Exception {
               UpdateStreamingDistributionResult result;
                 try {
                 result = updateStreamingDistribution(updateStreamingDistributionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateStreamingDistributionRequestresult);
                  return result;
         }
     });
     }
    
    

Get the information about a streaming distribution.

Parameters:
getStreamingDistributionRequest Container for the necessary parameters to execute the GetStreamingDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetStreamingDistributionResultgetStreamingDistributionAsync(final GetStreamingDistributionRequest getStreamingDistributionRequest
             throws AmazonServiceExceptionAmazonClientException {
             public GetStreamingDistributionResult call() throws Exception {
                 return getStreamingDistribution(getStreamingDistributionRequest);
         }
     });
     }

    

Get the information about a streaming distribution.

Parameters:
getStreamingDistributionRequest Container for the necessary parameters to execute the GetStreamingDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final GetStreamingDistributionRequest getStreamingDistributionRequest,
             final AsyncHandler<GetStreamingDistributionRequestGetStreamingDistributionResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public GetStreamingDistributionResult call() throws Exception {
               GetStreamingDistributionResult result;
                 try {
                 result = getStreamingDistribution(getStreamingDistributionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getStreamingDistributionRequestresult);
                  return result;
         }
     });
     }
    
    

Delete a streaming distribution.

Parameters:
deleteStreamingDistributionRequest Container for the necessary parameters to execute the DeleteStreamingDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the DeleteStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteStreamingDistributionAsync(final DeleteStreamingDistributionRequest deleteStreamingDistributionRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteStreamingDistribution(deleteStreamingDistributionRequest);
                 return null;
         }
     });
     }

    

Delete a streaming distribution.

Parameters:
deleteStreamingDistributionRequest Container for the necessary parameters to execute the DeleteStreamingDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteStreamingDistributionRequest deleteStreamingDistributionRequest,
             final AsyncHandler<DeleteStreamingDistributionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteStreamingDistribution(deleteStreamingDistributionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteStreamingDistributionRequestnull);
                  return null;
         }
     });
     }
    
    

Get the information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public GetCloudFrontOriginAccessIdentityResult call() throws Exception {
                 return getCloudFrontOriginAccessIdentity(getCloudFrontOriginAccessIdentityRequest);
         }
     });
     }

    

Get the information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public GetCloudFrontOriginAccessIdentityResult call() throws Exception {
               GetCloudFrontOriginAccessIdentityResult result;
                 try {
                 result = getCloudFrontOriginAccessIdentity(getCloudFrontOriginAccessIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getCloudFrontOriginAccessIdentityRequestresult);
                  return result;
         }
     });
     }
    
    

Create a new origin access identity.

Parameters:
createCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the CreateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public CreateCloudFrontOriginAccessIdentityResult call() throws Exception {
                 return createCloudFrontOriginAccessIdentity(createCloudFrontOriginAccessIdentityRequest);
         }
     });
     }

    

Create a new origin access identity.

Parameters:
createCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final CreateCloudFrontOriginAccessIdentityRequest createCloudFrontOriginAccessIdentityRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public CreateCloudFrontOriginAccessIdentityResult call() throws Exception {
               CreateCloudFrontOriginAccessIdentityResult result;
                 try {
                 result = createCloudFrontOriginAccessIdentity(createCloudFrontOriginAccessIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createCloudFrontOriginAccessIdentityRequestresult);
                  return result;
         }
     });
     }
    
    

Get the configuration information about a distribution.

Parameters:
getDistributionConfigRequest Container for the necessary parameters to execute the GetDistributionConfig operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetDistributionConfigResultgetDistributionConfigAsync(final GetDistributionConfigRequest getDistributionConfigRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetDistributionConfigResult>() {
             public GetDistributionConfigResult call() throws Exception {
                 return getDistributionConfig(getDistributionConfigRequest);
         }
     });
     }

    

Get the configuration information about a distribution.

Parameters:
getDistributionConfigRequest Container for the necessary parameters to execute the GetDistributionConfig operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             final GetDistributionConfigRequest getDistributionConfigRequest,
             final AsyncHandler<GetDistributionConfigRequestGetDistributionConfigResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetDistributionConfigResult>() {
             public GetDistributionConfigResult call() throws Exception {
               GetDistributionConfigResult result;
                 try {
                 result = getDistributionConfig(getDistributionConfigRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getDistributionConfigRequestresult);
                  return result;
         }
     });
     }
    
    

Update an origin access identity.

Parameters:
updateCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public UpdateCloudFrontOriginAccessIdentityResult call() throws Exception {
                 return updateCloudFrontOriginAccessIdentity(updateCloudFrontOriginAccessIdentityRequest);
         }
     });
     }

    

Update an origin access identity.

Parameters:
updateCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public UpdateCloudFrontOriginAccessIdentityResult call() throws Exception {
              UpdateCloudFrontOriginAccessIdentityResult result;
                try {
                result = updateCloudFrontOriginAccessIdentity(updateCloudFrontOriginAccessIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(updateCloudFrontOriginAccessIdentityRequestresult);
                 return result;
        }
    });
    }
    
    

Create a new distribution.

Parameters:
createDistributionRequest Container for the necessary parameters to execute the CreateDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the CreateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateDistributionResultcreateDistributionAsync(final CreateDistributionRequest createDistributionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDistributionResult>() {
            public CreateDistributionResult call() throws Exception {
                return createDistribution(createDistributionRequest);
        }
    });
    }

    

Create a new distribution.

Parameters:
createDistributionRequest Container for the necessary parameters to execute the CreateDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final CreateDistributionRequest createDistributionRequest,
            final AsyncHandler<CreateDistributionRequestCreateDistributionResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateDistributionResult>() {
            public CreateDistributionResult call() throws Exception {
              CreateDistributionResult result;
                try {
                result = createDistribution(createDistributionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDistributionRequestresult);
                 return result;
        }
    });
    }
    
    

List origin access identities.

Parameters:
listCloudFrontOriginAccessIdentitiesRequest Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the ListCloudFrontOriginAccessIdentities service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ListCloudFrontOriginAccessIdentitiesResult call() throws Exception {
                return listCloudFrontOriginAccessIdentities(listCloudFrontOriginAccessIdentitiesRequest);
        }
    });
    }

    

List origin access identities.

Parameters:
listCloudFrontOriginAccessIdentitiesRequest Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListCloudFrontOriginAccessIdentities service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public ListCloudFrontOriginAccessIdentitiesResult call() throws Exception {
              ListCloudFrontOriginAccessIdentitiesResult result;
                try {
                result = listCloudFrontOriginAccessIdentities(listCloudFrontOriginAccessIdentitiesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listCloudFrontOriginAccessIdentitiesRequestresult);
                 return result;
        }
    });
    }
    
    

Get the configuration information about a streaming distribution.

Parameters:
getStreamingDistributionConfigRequest Container for the necessary parameters to execute the GetStreamingDistributionConfig operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetStreamingDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetStreamingDistributionConfigResult call() throws Exception {
                return getStreamingDistributionConfig(getStreamingDistributionConfigRequest);
        }
    });
    }

    

Get the configuration information about a streaming distribution.

Parameters:
getStreamingDistributionConfigRequest Container for the necessary parameters to execute the GetStreamingDistributionConfig operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetStreamingDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public GetStreamingDistributionConfigResult call() throws Exception {
              GetStreamingDistributionConfigResult result;
                try {
                result = getStreamingDistributionConfig(getStreamingDistributionConfigRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getStreamingDistributionConfigRequestresult);
                 return result;
        }
    });
    }
    
    

Get the configuration information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityConfigRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetCloudFrontOriginAccessIdentityConfigResult call() throws Exception {
                return getCloudFrontOriginAccessIdentityConfig(getCloudFrontOriginAccessIdentityConfigRequest);
        }
    });
    }

    

Get the configuration information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityConfigRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public GetCloudFrontOriginAccessIdentityConfigResult call() throws Exception {
              GetCloudFrontOriginAccessIdentityConfigResult result;
                try {
                result = getCloudFrontOriginAccessIdentityConfig(getCloudFrontOriginAccessIdentityConfigRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getCloudFrontOriginAccessIdentityConfigRequestresult);
                 return result;
        }
    });
    }
    
    

Create a new invalidation.

Parameters:
createInvalidationRequest Container for the necessary parameters to execute the CreateInvalidation operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the CreateInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateInvalidationResultcreateInvalidationAsync(final CreateInvalidationRequest createInvalidationRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateInvalidationResult>() {
            public CreateInvalidationResult call() throws Exception {
                return createInvalidation(createInvalidationRequest);
        }
    });
    }

    

Create a new invalidation.

Parameters:
createInvalidationRequest Container for the necessary parameters to execute the CreateInvalidation operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final CreateInvalidationRequest createInvalidationRequest,
            final AsyncHandler<CreateInvalidationRequestCreateInvalidationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateInvalidationResult>() {
            public CreateInvalidationResult call() throws Exception {
              CreateInvalidationResult result;
                try {
                result = createInvalidation(createInvalidationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createInvalidationRequestresult);
                 return result;
        }
    });
    }
    
    

Delete an origin access identity.

Parameters:
deleteCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteCloudFrontOriginAccessIdentityAsync(final DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteCloudFrontOriginAccessIdentity(deleteCloudFrontOriginAccessIdentityRequest);
                return null;
        }
    });
    }

    

Delete an origin access identity.

Parameters:
deleteCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest,
            final AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteCloudFrontOriginAccessIdentity(deleteCloudFrontOriginAccessIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteCloudFrontOriginAccessIdentityRequestnull);
                 return null;
        }
    });
    }
    
    

List distributions.

Parameters:
listDistributionsRequest Container for the necessary parameters to execute the ListDistributions operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the ListDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<ListDistributionsResultlistDistributionsAsync(final ListDistributionsRequest listDistributionsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListDistributionsResult>() {
            public ListDistributionsResult call() throws Exception {
                return listDistributions(listDistributionsRequest);
        }
    });
    }

    

List distributions.

Parameters:
listDistributionsRequest Container for the necessary parameters to execute the ListDistributions operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final ListDistributionsRequest listDistributionsRequest,
            final AsyncHandler<ListDistributionsRequestListDistributionsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListDistributionsResult>() {
            public ListDistributionsResult call() throws Exception {
              ListDistributionsResult result;
                try {
                result = listDistributions(listDistributionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listDistributionsRequestresult);
                 return result;
        }
    });
    }
    
    

Get the information about an invalidation.

Parameters:
getInvalidationRequest Container for the necessary parameters to execute the GetInvalidation operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<GetInvalidationResultgetInvalidationAsync(final GetInvalidationRequest getInvalidationRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetInvalidationResult>() {
            public GetInvalidationResult call() throws Exception {
                return getInvalidation(getInvalidationRequest);
        }
    });
    }

    

Get the information about an invalidation.

Parameters:
getInvalidationRequest Container for the necessary parameters to execute the GetInvalidation operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final GetInvalidationRequest getInvalidationRequest,
            final AsyncHandler<GetInvalidationRequestGetInvalidationResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetInvalidationResult>() {
            public GetInvalidationResult call() throws Exception {
              GetInvalidationResult result;
                try {
                result = getInvalidation(getInvalidationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getInvalidationRequestresult);
                 return result;
        }
    });
    }
    
    

List streaming distributions.

Parameters:
listStreamingDistributionsRequest Container for the necessary parameters to execute the ListStreamingDistributions operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the ListStreamingDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ListStreamingDistributionsResult call() throws Exception {
                return listStreamingDistributions(listStreamingDistributionsRequest);
        }
    });
    }

    

List streaming distributions.

Parameters:
listStreamingDistributionsRequest Container for the necessary parameters to execute the ListStreamingDistributions operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListStreamingDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final ListStreamingDistributionsRequest listStreamingDistributionsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public ListStreamingDistributionsResult call() throws Exception {
              ListStreamingDistributionsResult result;
                try {
                result = listStreamingDistributions(listStreamingDistributionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listStreamingDistributionsRequestresult);
                 return result;
        }
    });
    }
    
    

Get the information about a distribution.

Parameters:
getDistributionRequest Container for the necessary parameters to execute the GetDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the GetDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDistributionResultgetDistributionAsync(final GetDistributionRequest getDistributionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDistributionResult>() {
            public GetDistributionResult call() throws Exception {
                return getDistribution(getDistributionRequest);
        }
    });
    }

    

Get the information about a distribution.

Parameters:
getDistributionRequest Container for the necessary parameters to execute the GetDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final GetDistributionRequest getDistributionRequest,
            final AsyncHandler<GetDistributionRequestGetDistributionResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDistributionResult>() {
            public GetDistributionResult call() throws Exception {
              GetDistributionResult result;
                try {
                result = getDistribution(getDistributionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getDistributionRequestresult);
                 return result;
        }
    });
    }
    
    

Create a new streaming distribution.

Parameters:
createStreamingDistributionRequest Container for the necessary parameters to execute the CreateStreamingDistribution operation on AmazonCloudFront.
Returns:
A Java Future object containing the response from the CreateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CreateStreamingDistributionResult call() throws Exception {
                return createStreamingDistribution(createStreamingDistributionRequest);
        }
    });
    }

    

Create a new streaming distribution.

Parameters:
createStreamingDistributionRequest Container for the necessary parameters to execute the CreateStreamingDistribution operation on AmazonCloudFront.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
            final CreateStreamingDistributionRequest createStreamingDistributionRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateStreamingDistributionResult call() throws Exception {
              CreateStreamingDistributionResult result;
                try {
                result = createStreamingDistribution(createStreamingDistributionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createStreamingDistributionRequestresult);
                 return result;
        }
    });
    }
    
}