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.codedeploy;
  
  
  
Asynchronous client for accessing AmazonCodeDeploy. 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. AWS CodeDeploy Overview

This is the AWS CodeDeploy API Reference. This guide provides descriptions of the AWS CodeDeploy APIs. For additional information, see the AWS CodeDeploy User Guide .

Using the APIs

You can use the AWS CodeDeploy APIs to work with the following items:

  • Applications are unique identifiers that AWS CodeDeploy uses to ensure that the correct combinations of revisions, deployment configurations, and deployment groups are being referenced during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update applications.

  • Deployment configurations are sets of deployment rules and deployment success and failure conditions that AWS CodeDeploy uses during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment configurations.

  • Deployment groups are groups of instances to which application revisions can be deployed.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update deployment groups.

  • Instances represent Amazon EC2 instances to which application revisions are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling group names. Instances belong to deployment groups.

    You can use the AWS CodeDeploy APIs to get and list instances.

  • Deployments represent the process of deploying revisions to instances.

    You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments.

  • Application revisions are archive files that are stored in Amazon S3 buckets or GitHub repositories. These revisions contain source content (such as source code, web pages, executable files, any deployment scripts, and similar) along with an Application Specification file (AppSpec file). (The AppSpec file is unique to AWS CodeDeploy; it defines a series of deployment actions that you want AWS CodeDeploy to execute.) An application revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both (for application revisions that are stored in Amazon S3 buckets) or by its repository name and commit ID (for applications revisions that are stored in GitHub repositories). Application revisions are deployed through deployment groups.

    You can use the AWS CodeDeploy APIs to get, list, and register application revisions.

 
         implements AmazonCodeDeployAsync {

    
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 AmazonCodeDeploy. 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 AmazonCodeDeployAsyncClient() {
         this(new DefaultAWSCredentialsProviderChain());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy. 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 AmazonCodeDeploy (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonCodeDeployAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCodeDeploy 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 AmazonCodeDeployAsyncClient(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();
     }
            
    

Deregisters an on-premises instance.

Parameters:
deregisterOnPremisesInstanceRequest Container for the necessary parameters to execute the DeregisterOnPremisesInstance operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the DeregisterOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidderegisterOnPremisesInstanceAsync(final DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deregisterOnPremisesInstance(deregisterOnPremisesInstanceRequest);
                 return null;
         }
     });
     }

    

Deregisters an on-premises instance.

Parameters:
deregisterOnPremisesInstanceRequest Container for the necessary parameters to execute the DeregisterOnPremisesInstance operation on AmazonCodeDeploy.
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 DeregisterOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest,
             final AsyncHandler<DeregisterOnPremisesInstanceRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deregisterOnPremisesInstance(deregisterOnPremisesInstanceRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deregisterOnPremisesInstanceRequestnull);
                  return null;
         }
     });
     }
    
    

Changes an existing application's name.

Parameters:
updateApplicationRequest Container for the necessary parameters to execute the UpdateApplication operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the UpdateApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidupdateApplicationAsync(final UpdateApplicationRequest updateApplicationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 updateApplication(updateApplicationRequest);
                 return null;
         }
     });
     }

    

Changes an existing application's name.

Parameters:
updateApplicationRequest Container for the necessary parameters to execute the UpdateApplication operation on AmazonCodeDeploy.
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 UpdateApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateApplicationRequest updateApplicationRequest,
             final AsyncHandler<UpdateApplicationRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 updateApplication(updateApplicationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateApplicationRequestnull);
                  return null;
         }
     });
     }
    
    

Lists the applications registered with the applicable IAM user or AWS account.

Parameters:
listApplicationsRequest Container for the necessary parameters to execute the ListApplications operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListApplications service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListApplicationsResultlistApplicationsAsync(final ListApplicationsRequest listApplicationsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListApplicationsResult>() {
             public ListApplicationsResult call() throws Exception {
                 return listApplications(listApplicationsRequest);
         }
     });
     }

    

Lists the applications registered with the applicable IAM user or AWS account.

Parameters:
listApplicationsRequest Container for the necessary parameters to execute the ListApplications operation on AmazonCodeDeploy.
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 ListApplications service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final ListApplicationsRequest listApplicationsRequest,
             final AsyncHandler<ListApplicationsRequestListApplicationsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListApplicationsResult>() {
             public ListApplicationsResult call() throws Exception {
               ListApplicationsResult result;
                 try {
                 result = listApplications(listApplicationsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listApplicationsRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes a deployment group.

Parameters:
deleteDeploymentGroupRequest Container for the necessary parameters to execute the DeleteDeploymentGroup operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the DeleteDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteDeploymentGroupResultdeleteDeploymentGroupAsync(final DeleteDeploymentGroupRequest deleteDeploymentGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteDeploymentGroupResult>() {
             public DeleteDeploymentGroupResult call() throws Exception {
                 return deleteDeploymentGroup(deleteDeploymentGroupRequest);
         }
     });
     }

    

Deletes a deployment group.

Parameters:
deleteDeploymentGroupRequest Container for the necessary parameters to execute the DeleteDeploymentGroup operation on AmazonCodeDeploy.
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 DeleteDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteDeploymentGroupRequest deleteDeploymentGroupRequest,
             final AsyncHandler<DeleteDeploymentGroupRequestDeleteDeploymentGroupResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteDeploymentGroupResult>() {
             public DeleteDeploymentGroupResult call() throws Exception {
               DeleteDeploymentGroupResult result;
                 try {
                 result = deleteDeploymentGroup(deleteDeploymentGroupRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteDeploymentGroupRequestresult);
                  return result;
         }
     });
     }
    
    

Adds a tag to an on-premises instance.

Parameters:
addTagsToOnPremisesInstancesRequest Container for the necessary parameters to execute the AddTagsToOnPremisesInstances operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the AddTagsToOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidaddTagsToOnPremisesInstancesAsync(final AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 addTagsToOnPremisesInstances(addTagsToOnPremisesInstancesRequest);
                 return null;
         }
     });
     }

    

Adds a tag to an on-premises instance.

Parameters:
addTagsToOnPremisesInstancesRequest Container for the necessary parameters to execute the AddTagsToOnPremisesInstances operation on AmazonCodeDeploy.
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 AddTagsToOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest,
             final AsyncHandler<AddTagsToOnPremisesInstancesRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 addTagsToOnPremisesInstances(addTagsToOnPremisesInstancesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(addTagsToOnPremisesInstancesRequestnull);
                  return null;
         }
     });
     }
    
    

Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.

Parameters:
listDeploymentsRequest Container for the necessary parameters to execute the ListDeployments operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListDeployments service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListDeploymentsResultlistDeploymentsAsync(final ListDeploymentsRequest listDeploymentsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListDeploymentsResult>() {
             public ListDeploymentsResult call() throws Exception {
                 return listDeployments(listDeploymentsRequest);
         }
     });
     }

    

Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.

Parameters:
listDeploymentsRequest Container for the necessary parameters to execute the ListDeployments operation on AmazonCodeDeploy.
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 ListDeployments service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final ListDeploymentsRequest listDeploymentsRequest,
             final AsyncHandler<ListDeploymentsRequestListDeploymentsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListDeploymentsResult>() {
             public ListDeploymentsResult call() throws Exception {
               ListDeploymentsResult result;
                 try {
                 result = listDeployments(listDeploymentsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listDeploymentsRequestresult);
                  return result;
         }
     });
     }
    
    

Attempts to stop an ongoing deployment.

Parameters:
stopDeploymentRequest Container for the necessary parameters to execute the StopDeployment operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the StopDeployment service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<StopDeploymentResultstopDeploymentAsync(final StopDeploymentRequest stopDeploymentRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<StopDeploymentResult>() {
             public StopDeploymentResult call() throws Exception {
                 return stopDeployment(stopDeploymentRequest);
         }
     });
     }

    

Attempts to stop an ongoing deployment.

Parameters:
stopDeploymentRequest Container for the necessary parameters to execute the StopDeployment operation on AmazonCodeDeploy.
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 StopDeployment service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final StopDeploymentRequest stopDeploymentRequest,
             final AsyncHandler<StopDeploymentRequestStopDeploymentResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<StopDeploymentResult>() {
             public StopDeploymentResult call() throws Exception {
               StopDeploymentResult result;
                 try {
                 result = stopDeployment(stopDeploymentRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(stopDeploymentRequestresult);
                  return result;
         }
     });
     }
    
    

Creates a new application.

Parameters:
createApplicationRequest Container for the necessary parameters to execute the CreateApplication operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the CreateApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateApplicationResultcreateApplicationAsync(final CreateApplicationRequest createApplicationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateApplicationResult>() {
             public CreateApplicationResult call() throws Exception {
                 return createApplication(createApplicationRequest);
         }
     });
     }

    

Creates a new application.

Parameters:
createApplicationRequest Container for the necessary parameters to execute the CreateApplication operation on AmazonCodeDeploy.
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 CreateApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final CreateApplicationRequest createApplicationRequest,
             final AsyncHandler<CreateApplicationRequestCreateApplicationResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateApplicationResult>() {
             public CreateApplicationResult call() throws Exception {
               CreateApplicationResult result;
                 try {
                 result = createApplication(createApplicationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createApplicationRequestresult);
                  return result;
         }
     });
     }
    
    

Gets information about an application.

Parameters:
getApplicationRequest Container for the necessary parameters to execute the GetApplication operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetApplicationResultgetApplicationAsync(final GetApplicationRequest getApplicationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetApplicationResult>() {
             public GetApplicationResult call() throws Exception {
                 return getApplication(getApplicationRequest);
         }
     });
     }

    

Gets information about an application.

Parameters:
getApplicationRequest Container for the necessary parameters to execute the GetApplication operation on AmazonCodeDeploy.
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 GetApplication service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
 
             final GetApplicationRequest getApplicationRequest,
             final AsyncHandler<GetApplicationRequestGetApplicationResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetApplicationResult>() {
             public GetApplicationResult call() throws Exception {
               GetApplicationResult result;
                try {
                result = getApplication(getApplicationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getApplicationRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new deployment group for application revisions to be deployed to.

Parameters:
createDeploymentGroupRequest Container for the necessary parameters to execute the CreateDeploymentGroup operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the CreateDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateDeploymentGroupResultcreateDeploymentGroupAsync(final CreateDeploymentGroupRequest createDeploymentGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
            public CreateDeploymentGroupResult call() throws Exception {
                return createDeploymentGroup(createDeploymentGroupRequest);
        }
    });
    }

    

Creates a new deployment group for application revisions to be deployed to.

Parameters:
createDeploymentGroupRequest Container for the necessary parameters to execute the CreateDeploymentGroup operation on AmazonCodeDeploy.
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 CreateDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final CreateDeploymentGroupRequest createDeploymentGroupRequest,
            final AsyncHandler<CreateDeploymentGroupRequestCreateDeploymentGroupResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateDeploymentGroupResult call() throws Exception {
              CreateDeploymentGroupResult result;
                try {
                result = createDeploymentGroup(createDeploymentGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDeploymentGroupRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about one or more on-premises instances.

Parameters:
batchGetOnPremisesInstancesRequest Container for the necessary parameters to execute the BatchGetOnPremisesInstances operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the BatchGetOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public BatchGetOnPremisesInstancesResult call() throws Exception {
                return batchGetOnPremisesInstances(batchGetOnPremisesInstancesRequest);
        }
    });
    }

    

Gets information about one or more on-premises instances.

Parameters:
batchGetOnPremisesInstancesRequest Container for the necessary parameters to execute the BatchGetOnPremisesInstances operation on AmazonCodeDeploy.
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 BatchGetOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final BatchGetOnPremisesInstancesRequest batchGetOnPremisesInstancesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public BatchGetOnPremisesInstancesResult call() throws Exception {
              BatchGetOnPremisesInstancesResult result;
                try {
                result = batchGetOnPremisesInstances(batchGetOnPremisesInstancesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(batchGetOnPremisesInstancesRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about one or more deployments.

Parameters:
batchGetDeploymentsRequest Container for the necessary parameters to execute the BatchGetDeployments operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the BatchGetDeployments service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<BatchGetDeploymentsResultbatchGetDeploymentsAsync(final BatchGetDeploymentsRequest batchGetDeploymentsRequest
            throws AmazonServiceExceptionAmazonClientException {
            public BatchGetDeploymentsResult call() throws Exception {
                return batchGetDeployments(batchGetDeploymentsRequest);
        }
    });
    }

    

Gets information about one or more deployments.

Parameters:
batchGetDeploymentsRequest Container for the necessary parameters to execute the BatchGetDeployments operation on AmazonCodeDeploy.
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 BatchGetDeployments service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final BatchGetDeploymentsRequest batchGetDeploymentsRequest,
            final AsyncHandler<BatchGetDeploymentsRequestBatchGetDeploymentsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public BatchGetDeploymentsResult call() throws Exception {
              BatchGetDeploymentsResult result;
                try {
                result = batchGetDeployments(batchGetDeploymentsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(batchGetDeploymentsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about an instance as part of a deployment.

Parameters:
getDeploymentInstanceRequest Container for the necessary parameters to execute the GetDeploymentInstance operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetDeploymentInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDeploymentInstanceResultgetDeploymentInstanceAsync(final GetDeploymentInstanceRequest getDeploymentInstanceRequest
            throws AmazonServiceExceptionAmazonClientException {
            public GetDeploymentInstanceResult call() throws Exception {
                return getDeploymentInstance(getDeploymentInstanceRequest);
        }
    });
    }

    

Gets information about an instance as part of a deployment.

Parameters:
getDeploymentInstanceRequest Container for the necessary parameters to execute the GetDeploymentInstance operation on AmazonCodeDeploy.
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 GetDeploymentInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final GetDeploymentInstanceRequest getDeploymentInstanceRequest,
            final AsyncHandler<GetDeploymentInstanceRequestGetDeploymentInstanceResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public GetDeploymentInstanceResult call() throws Exception {
              GetDeploymentInstanceResult result;
                try {
                result = getDeploymentInstance(getDeploymentInstanceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getDeploymentInstanceRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about an application revision.

Parameters:
getApplicationRevisionRequest Container for the necessary parameters to execute the GetApplicationRevision operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetApplicationRevision service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetApplicationRevisionResult call() throws Exception {
                return getApplicationRevision(getApplicationRevisionRequest);
        }
    });
    }

    

Gets information about an application revision.

Parameters:
getApplicationRevisionRequest Container for the necessary parameters to execute the GetApplicationRevision operation on AmazonCodeDeploy.
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 GetApplicationRevision service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final GetApplicationRevisionRequest getApplicationRevisionRequest,
            final AsyncHandler<GetApplicationRevisionRequestGetApplicationRevisionResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public GetApplicationRevisionResult call() throws Exception {
              GetApplicationRevisionResult result;
                try {
                result = getApplicationRevision(getApplicationRevisionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getApplicationRevisionRequestresult);
                 return result;
        }
    });
    }
    
    

Registers an on-premises instance.

Parameters:
registerOnPremisesInstanceRequest Container for the necessary parameters to execute the RegisterOnPremisesInstance operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the RegisterOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidregisterOnPremisesInstanceAsync(final RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                registerOnPremisesInstance(registerOnPremisesInstanceRequest);
                return null;
        }
    });
    }

    

Registers an on-premises instance.

Parameters:
registerOnPremisesInstanceRequest Container for the necessary parameters to execute the RegisterOnPremisesInstance operation on AmazonCodeDeploy.
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 RegisterOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest,
            final AsyncHandler<RegisterOnPremisesInstanceRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                registerOnPremisesInstance(registerOnPremisesInstanceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(registerOnPremisesInstanceRequestnull);
                 return null;
        }
    });
    }
    
    

Gets information about a deployment group.

Parameters:
getDeploymentGroupRequest Container for the necessary parameters to execute the GetDeploymentGroup operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDeploymentGroupResultgetDeploymentGroupAsync(final GetDeploymentGroupRequest getDeploymentGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDeploymentGroupResult>() {
            public GetDeploymentGroupResult call() throws Exception {
                return getDeploymentGroup(getDeploymentGroupRequest);
        }
    });
    }

    

Gets information about a deployment group.

Parameters:
getDeploymentGroupRequest Container for the necessary parameters to execute the GetDeploymentGroup operation on AmazonCodeDeploy.
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 GetDeploymentGroup service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final GetDeploymentGroupRequest getDeploymentGroupRequest,
            final AsyncHandler<GetDeploymentGroupRequestGetDeploymentGroupResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetDeploymentGroupResult>() {
            public GetDeploymentGroupResult call() throws Exception {
              GetDeploymentGroupResult result;
                try {
                result = getDeploymentGroup(getDeploymentGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getDeploymentGroupRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new deployment configuration.

Parameters:
createDeploymentConfigRequest Container for the necessary parameters to execute the CreateDeploymentConfig operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the CreateDeploymentConfig service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CreateDeploymentConfigResult call() throws Exception {
                return createDeploymentConfig(createDeploymentConfigRequest);
        }
    });
    }

    

Creates a new deployment configuration.

Parameters:
createDeploymentConfigRequest Container for the necessary parameters to execute the CreateDeploymentConfig operation on AmazonCodeDeploy.
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 CreateDeploymentConfig service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final CreateDeploymentConfigRequest createDeploymentConfigRequest,
            final AsyncHandler<CreateDeploymentConfigRequestCreateDeploymentConfigResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateDeploymentConfigResult call() throws Exception {
              CreateDeploymentConfigResult result;
                try {
                result = createDeploymentConfig(createDeploymentConfigRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDeploymentConfigRequestresult);
                 return result;
        }
    });
    }
    
    

Lists the instances for a deployment associated with the applicable IAM user or AWS account.

Parameters:
listDeploymentInstancesRequest Container for the necessary parameters to execute the ListDeploymentInstances operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListDeploymentInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ListDeploymentInstancesResult call() throws Exception {
                return listDeploymentInstances(listDeploymentInstancesRequest);
        }
    });
    }

    

Lists the instances for a deployment associated with the applicable IAM user or AWS account.

Parameters:
listDeploymentInstancesRequest Container for the necessary parameters to execute the ListDeploymentInstances operation on AmazonCodeDeploy.
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 ListDeploymentInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final ListDeploymentInstancesRequest listDeploymentInstancesRequest,
            final AsyncHandler<ListDeploymentInstancesRequestListDeploymentInstancesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public ListDeploymentInstancesResult call() throws Exception {
              ListDeploymentInstancesResult result;
                try {
                result = listDeploymentInstances(listDeploymentInstancesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listDeploymentInstancesRequestresult);
                 return result;
        }
    });
    }
    
    

Gets a list of one or more on-premises instance names.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

Parameters:
listOnPremisesInstancesRequest Container for the necessary parameters to execute the ListOnPremisesInstances operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ListOnPremisesInstancesResult call() throws Exception {
                return listOnPremisesInstances(listOnPremisesInstancesRequest);
        }
    });
    }

    

Gets a list of one or more on-premises instance names.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

Parameters:
listOnPremisesInstancesRequest Container for the necessary parameters to execute the ListOnPremisesInstances operation on AmazonCodeDeploy.
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 ListOnPremisesInstances service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final ListOnPremisesInstancesRequest listOnPremisesInstancesRequest,
            final AsyncHandler<ListOnPremisesInstancesRequestListOnPremisesInstancesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public ListOnPremisesInstancesResult call() throws Exception {
              ListOnPremisesInstancesResult result;
                try {
                result = listOnPremisesInstances(listOnPremisesInstancesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listOnPremisesInstancesRequestresult);
                 return result;
        }
    });
    }
    
    

Lists the deployment groups for an application registered with the applicable IAM user or AWS account.

Parameters:
listDeploymentGroupsRequest Container for the necessary parameters to execute the ListDeploymentGroups operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListDeploymentGroups service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<ListDeploymentGroupsResultlistDeploymentGroupsAsync(final ListDeploymentGroupsRequest listDeploymentGroupsRequest
            throws AmazonServiceExceptionAmazonClientException {
            public ListDeploymentGroupsResult call() throws Exception {
                return listDeploymentGroups(listDeploymentGroupsRequest);
        }
    });
    }

    

Lists the deployment groups for an application registered with the applicable IAM user or AWS account.

Parameters:
listDeploymentGroupsRequest Container for the necessary parameters to execute the ListDeploymentGroups operation on AmazonCodeDeploy.
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 ListDeploymentGroups service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final ListDeploymentGroupsRequest listDeploymentGroupsRequest,
            final AsyncHandler<ListDeploymentGroupsRequestListDeploymentGroupsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public ListDeploymentGroupsResult call() throws Exception {
              ListDeploymentGroupsResult result;
                try {
                result = listDeploymentGroups(listDeploymentGroupsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listDeploymentGroupsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about a deployment configuration.

Parameters:
getDeploymentConfigRequest Container for the necessary parameters to execute the GetDeploymentConfig operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetDeploymentConfig service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<GetDeploymentConfigResultgetDeploymentConfigAsync(final GetDeploymentConfigRequest getDeploymentConfigRequest
            throws AmazonServiceExceptionAmazonClientException {
            public GetDeploymentConfigResult call() throws Exception {
                return getDeploymentConfig(getDeploymentConfigRequest);
        }
    });
    }

    

Gets information about a deployment configuration.

Parameters:
getDeploymentConfigRequest Container for the necessary parameters to execute the GetDeploymentConfig operation on AmazonCodeDeploy.
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 GetDeploymentConfig service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final GetDeploymentConfigRequest getDeploymentConfigRequest,
            final AsyncHandler<GetDeploymentConfigRequestGetDeploymentConfigResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public GetDeploymentConfigResult call() throws Exception {
              GetDeploymentConfigResult result;
                try {
                result = getDeploymentConfig(getDeploymentConfigRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getDeploymentConfigRequestresult);
                 return result;
        }
    });
    }
    
    

Registers with AWS CodeDeploy a revision for the specified application.

Parameters:
registerApplicationRevisionRequest Container for the necessary parameters to execute the RegisterApplicationRevision operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the RegisterApplicationRevision service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidregisterApplicationRevisionAsync(final RegisterApplicationRevisionRequest registerApplicationRevisionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                registerApplicationRevision(registerApplicationRevisionRequest);
                return null;
        }
    });
    }

    

Registers with AWS CodeDeploy a revision for the specified application.

Parameters:
registerApplicationRevisionRequest Container for the necessary parameters to execute the RegisterApplicationRevision operation on AmazonCodeDeploy.
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 RegisterApplicationRevision service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final RegisterApplicationRevisionRequest registerApplicationRevisionRequest,
            final AsyncHandler<RegisterApplicationRevisionRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                registerApplicationRevision(registerApplicationRevisionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(registerApplicationRevisionRequestnull);
                 return null;
        }
    });
    }
    
    

Gets information about one or more applications.

Parameters:
batchGetApplicationsRequest Container for the necessary parameters to execute the BatchGetApplications operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the BatchGetApplications service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<BatchGetApplicationsResultbatchGetApplicationsAsync(final BatchGetApplicationsRequest batchGetApplicationsRequest
            throws AmazonServiceExceptionAmazonClientException {
            public BatchGetApplicationsResult call() throws Exception {
                return batchGetApplications(batchGetApplicationsRequest);
        }
    });
    }

    

Gets information about one or more applications.

Parameters:
batchGetApplicationsRequest Container for the necessary parameters to execute the BatchGetApplications operation on AmazonCodeDeploy.
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 BatchGetApplications service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final BatchGetApplicationsRequest batchGetApplicationsRequest,
            final AsyncHandler<BatchGetApplicationsRequestBatchGetApplicationsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public BatchGetApplicationsResult call() throws Exception {
              BatchGetApplicationsResult result;
                try {
                result = batchGetApplications(batchGetApplicationsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(batchGetApplicationsRequestresult);
                 return result;
        }
    });
    }
    
    

Gets information about an on-premises instance.

Parameters:
getOnPremisesInstanceRequest Container for the necessary parameters to execute the GetOnPremisesInstance operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the GetOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
    public Future<GetOnPremisesInstanceResultgetOnPremisesInstanceAsync(final GetOnPremisesInstanceRequest getOnPremisesInstanceRequest
            throws AmazonServiceExceptionAmazonClientException {
            public GetOnPremisesInstanceResult call() throws Exception {
                return getOnPremisesInstance(getOnPremisesInstanceRequest);
        }
    });
    }

    

Gets information about an on-premises instance.

Parameters:
getOnPremisesInstanceRequest Container for the necessary parameters to execute the GetOnPremisesInstance operation on AmazonCodeDeploy.
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 GetOnPremisesInstance service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final GetOnPremisesInstanceRequest getOnPremisesInstanceRequest,
            final AsyncHandler<GetOnPremisesInstanceRequestGetOnPremisesInstanceResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public GetOnPremisesInstanceResult call() throws Exception {
              GetOnPremisesInstanceResult result;
                try {
                result = getOnPremisesInstance(getOnPremisesInstanceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getOnPremisesInstanceRequestresult);
                 return result;
        }
    });
    }
    
    

Lists information about revisions for an application.

Parameters:
listApplicationRevisionsRequest Container for the necessary parameters to execute the ListApplicationRevisions operation on AmazonCodeDeploy.
Returns:
A Java Future object containing the response from the ListApplicationRevisions service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ListApplicationRevisionsResult call() throws Exception {
                return listApplicationRevisions(listApplicationRevisionsRequest);
        }
    });
    }

    

Lists information about revisions for an application.

Parameters:
listApplicationRevisionsRequest Container for the necessary parameters to execute the ListApplicationRevisions operation on AmazonCodeDeploy.
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 ListApplicationRevisions service method, as returned by AmazonCodeDeploy.
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 AmazonCodeDeploy indicating either a problem with the data in the request, or a server side issue.
            final ListApplicationRevisionsRequest listApplicationRevisionsRequest