@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonCodeDeployAsyncClient extends AmazonCodeDeployClient implements AmazonCodeDeployAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your own facility, serverless Lambda functions, or applications in an Amazon ECS service.
You can deploy a nearly unlimited variety of application content, such as an updated Lambda function, updated applications in an Amazon ECS service, code, web and configuration files, executables, packages, scripts, multimedia files, and so on. CodeDeploy can deploy application content stored in Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. You do not need to make changes to your existing code before you can use CodeDeploy.
CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during application deployment, and handles the complexity of updating your applications, without many of the risks associated with error-prone manual deployments.
CodeDeploy Components
Use the information in this guide to help you work with the following CodeDeploy components:
Application: A name that uniquely identifies the application you want to deploy. CodeDeploy uses this name, which functions as a container, to ensure the correct combination of revision, deployment configuration, and deployment group are referenced during a deployment.
Deployment group: A set of individual instances, CodeDeploy Lambda deployment configuration settings, or an Amazon ECS service and network details. A Lambda deployment group specifies how to route traffic to a new version of a Lambda function. An Amazon ECS deployment group specifies the service created in Amazon ECS to deploy, a load balancer, and a listener to reroute production traffic to an updated containerized application. An Amazon EC2/On-premises deployment group contains individually tagged instances, Amazon EC2 instances in Amazon EC2 Auto Scaling groups, or both. All deployment groups can specify optional trigger, alarm, and rollback settings.
Deployment configuration: A set of deployment rules and deployment success and failure conditions used by CodeDeploy during a deployment.
Deployment: The process and the components used when updating a Lambda function, a containerized application in an Amazon ECS service, or of installing content on one or more instances.
Application revisions: For an Lambda deployment, this is an AppSpec file that specifies the Lambda function to be updated and one or more functions to validate deployment lifecycle events. For an Amazon ECS deployment, this is an AppSpec file that specifies the Amazon ECS task definition, container, and port where production traffic is rerouted. For an EC2/On-premises deployment, this is an archive file that contains source content—source code, webpages, executable files, and deployment scripts—along with an AppSpec file. Revisions are stored in Amazon S3 buckets or GitHub repositories. For Amazon S3, a revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both. For GitHub, a revision is uniquely identified by its commit ID.
This guide also contains information to help you get details about the instances in your deployments, to make on-premises instances available for CodeDeploy deployments, to get details about a Lambda function deployment, and to get details about Amazon ECS service deployments.
CodeDeploy Information Resources
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AmazonCodeDeployAsyncClient()
Deprecated.
|
AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AmazonCodeDeployAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
addTagsToOnPremisesInstances, batchGetApplicationRevisions, batchGetApplications, batchGetApplications, batchGetDeploymentGroups, batchGetDeploymentInstances, batchGetDeployments, batchGetDeployments, batchGetDeploymentTargets, batchGetOnPremisesInstances, batchGetOnPremisesInstances, builder, continueDeployment, createApplication, createDeployment, createDeploymentConfig, createDeploymentGroup, deleteApplication, deleteDeploymentConfig, deleteDeploymentGroup, deleteGitHubAccountToken, deleteResourcesByExternalId, deregisterOnPremisesInstance, getApplication, getApplicationRevision, getCachedResponseMetadata, getDeployment, getDeploymentConfig, getDeploymentGroup, getDeploymentInstance, getDeploymentTarget, getOnPremisesInstance, listApplicationRevisions, listApplications, listApplications, listDeploymentConfigs, listDeploymentConfigs, listDeploymentGroups, listDeploymentInstances, listDeployments, listDeployments, listDeploymentTargets, listGitHubAccountTokenNames, listOnPremisesInstances, listOnPremisesInstances, listTagsForResource, putLifecycleEventHookExecutionStatus, registerApplicationRevision, registerOnPremisesInstance, removeTagsFromOnPremisesInstances, skipWaitTimeForInstanceTermination, stopDeployment, tagResource, untagResource, updateApplication, updateApplication, updateDeploymentGroup, waiters
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTagsToOnPremisesInstances, batchGetApplicationRevisions, batchGetApplications, batchGetApplications, batchGetDeploymentGroups, batchGetDeploymentInstances, batchGetDeployments, batchGetDeployments, batchGetDeploymentTargets, batchGetOnPremisesInstances, batchGetOnPremisesInstances, continueDeployment, createApplication, createDeployment, createDeploymentConfig, createDeploymentGroup, deleteApplication, deleteDeploymentConfig, deleteDeploymentGroup, deleteGitHubAccountToken, deleteResourcesByExternalId, deregisterOnPremisesInstance, getApplication, getApplicationRevision, getCachedResponseMetadata, getDeployment, getDeploymentConfig, getDeploymentGroup, getDeploymentInstance, getDeploymentTarget, getOnPremisesInstance, listApplicationRevisions, listApplications, listApplications, listDeploymentConfigs, listDeploymentConfigs, listDeploymentGroups, listDeploymentInstances, listDeployments, listDeployments, listDeploymentTargets, listGitHubAccountTokenNames, listOnPremisesInstances, listOnPremisesInstances, listTagsForResource, putLifecycleEventHookExecutionStatus, registerApplicationRevision, registerOnPremisesInstance, removeTagsFromOnPremisesInstances, setEndpoint, setRegion, skipWaitTimeForInstanceTermination, stopDeployment, tagResource, untagResource, updateApplication, updateApplication, updateDeploymentGroup, waiters
@Deprecated public AmazonCodeDeployAsyncClient()
AmazonCodeDeployAsyncClientBuilder.defaultClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
@Deprecated public AmazonCodeDeployAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client connects to CodeDeploy (ex: proxy settings,
retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
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).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AmazonCodeDeployAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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 static AmazonCodeDeployAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AddTagsToOnPremisesInstancesResult> addTagsToOnPremisesInstancesAsync(AddTagsToOnPremisesInstancesRequest request)
AmazonCodeDeployAsync
Adds tags to on-premises instances.
addTagsToOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of, and adds tags to, an on-premises instance operation.public Future<AddTagsToOnPremisesInstancesResult> addTagsToOnPremisesInstancesAsync(AddTagsToOnPremisesInstancesRequest request, AsyncHandler<AddTagsToOnPremisesInstancesRequest,AddTagsToOnPremisesInstancesResult> asyncHandler)
AmazonCodeDeployAsync
Adds tags to on-premises instances.
addTagsToOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of, and adds tags to, an on-premises instance operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetApplicationRevisionsResult> batchGetApplicationRevisionsAsync(BatchGetApplicationRevisionsRequest request)
AmazonCodeDeployAsync
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
batchGetApplicationRevisionsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetApplicationRevisions
operation.public Future<BatchGetApplicationRevisionsResult> batchGetApplicationRevisionsAsync(BatchGetApplicationRevisionsRequest request, AsyncHandler<BatchGetApplicationRevisionsRequest,BatchGetApplicationRevisionsResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
batchGetApplicationRevisionsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetApplicationRevisions
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetApplicationsResult> batchGetApplicationsAsync(BatchGetApplicationsRequest request)
AmazonCodeDeployAsync
Gets information about one or more applications. The maximum number of applications that can be returned is 100.
batchGetApplicationsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetApplications
operation.public Future<BatchGetApplicationsResult> batchGetApplicationsAsync(BatchGetApplicationsRequest request, AsyncHandler<BatchGetApplicationsRequest,BatchGetApplicationsResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about one or more applications. The maximum number of applications that can be returned is 100.
batchGetApplicationsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetApplications
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetApplicationsResult> batchGetApplicationsAsync()
batchGetApplicationsAsync
in interface AmazonCodeDeployAsync
batchGetApplicationsAsync(BatchGetApplicationsRequest)
public Future<BatchGetApplicationsResult> batchGetApplicationsAsync(AsyncHandler<BatchGetApplicationsRequest,BatchGetApplicationsResult> asyncHandler)
batchGetApplicationsAsync
in interface AmazonCodeDeployAsync
batchGetApplicationsAsync(BatchGetApplicationsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<BatchGetDeploymentGroupsResult> batchGetDeploymentGroupsAsync(BatchGetDeploymentGroupsRequest request)
AmazonCodeDeployAsync
Gets information about one or more deployment groups.
batchGetDeploymentGroupsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeploymentGroups
operation.public Future<BatchGetDeploymentGroupsResult> batchGetDeploymentGroupsAsync(BatchGetDeploymentGroupsRequest request, AsyncHandler<BatchGetDeploymentGroupsRequest,BatchGetDeploymentGroupsResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about one or more deployment groups.
batchGetDeploymentGroupsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeploymentGroups
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.@Deprecated public Future<BatchGetDeploymentInstancesResult> batchGetDeploymentInstancesAsync(BatchGetDeploymentInstancesRequest request)
AmazonCodeDeployAsync
This method works, but is deprecated. Use BatchGetDeploymentTargets
instead.
Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises
and Lambda compute platforms. The newer BatchGetDeploymentTargets
works with all compute platforms.
The maximum number of instances that can be returned is 25.
batchGetDeploymentInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeploymentInstances
operation.@Deprecated public Future<BatchGetDeploymentInstancesResult> batchGetDeploymentInstancesAsync(BatchGetDeploymentInstancesRequest request, AsyncHandler<BatchGetDeploymentInstancesRequest,BatchGetDeploymentInstancesResult> asyncHandler)
AmazonCodeDeployAsync
This method works, but is deprecated. Use BatchGetDeploymentTargets
instead.
Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises
and Lambda compute platforms. The newer BatchGetDeploymentTargets
works with all compute platforms.
The maximum number of instances that can be returned is 25.
batchGetDeploymentInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeploymentInstances
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetDeploymentTargetsResult> batchGetDeploymentTargetsAsync(BatchGetDeploymentTargetsRequest request)
AmazonCodeDeployAsync
Returns an array of one or more targets associated with a deployment. This method works with all compute types
and should be used instead of the deprecated BatchGetDeploymentInstances
. The maximum number of
targets that can be returned is 25.
The type of targets returned depends on the deployment's compute platform or deployment method:
EC2/On-premises: Information about Amazon EC2 instance targets.
Lambda: Information about Lambda functions targets.
Amazon ECS: Information about Amazon ECS service targets.
CloudFormation: Information about targets of blue/green deployments initiated by a CloudFormation stack update.
batchGetDeploymentTargetsAsync
in interface AmazonCodeDeployAsync
public Future<BatchGetDeploymentTargetsResult> batchGetDeploymentTargetsAsync(BatchGetDeploymentTargetsRequest request, AsyncHandler<BatchGetDeploymentTargetsRequest,BatchGetDeploymentTargetsResult> asyncHandler)
AmazonCodeDeployAsync
Returns an array of one or more targets associated with a deployment. This method works with all compute types
and should be used instead of the deprecated BatchGetDeploymentInstances
. The maximum number of
targets that can be returned is 25.
The type of targets returned depends on the deployment's compute platform or deployment method:
EC2/On-premises: Information about Amazon EC2 instance targets.
Lambda: Information about Lambda functions targets.
Amazon ECS: Information about Amazon ECS service targets.
CloudFormation: Information about targets of blue/green deployments initiated by a CloudFormation stack update.
batchGetDeploymentTargetsAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetDeploymentsResult> batchGetDeploymentsAsync(BatchGetDeploymentsRequest request)
AmazonCodeDeployAsync
Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.
batchGetDeploymentsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeployments
operation.public Future<BatchGetDeploymentsResult> batchGetDeploymentsAsync(BatchGetDeploymentsRequest request, AsyncHandler<BatchGetDeploymentsRequest,BatchGetDeploymentsResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.
batchGetDeploymentsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetDeployments
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetDeploymentsResult> batchGetDeploymentsAsync()
batchGetDeploymentsAsync
in interface AmazonCodeDeployAsync
batchGetDeploymentsAsync(BatchGetDeploymentsRequest)
public Future<BatchGetDeploymentsResult> batchGetDeploymentsAsync(AsyncHandler<BatchGetDeploymentsRequest,BatchGetDeploymentsResult> asyncHandler)
batchGetDeploymentsAsync
in interface AmazonCodeDeployAsync
batchGetDeploymentsAsync(BatchGetDeploymentsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<BatchGetOnPremisesInstancesResult> batchGetOnPremisesInstancesAsync(BatchGetOnPremisesInstancesRequest request)
AmazonCodeDeployAsync
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
batchGetOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetOnPremisesInstances
operation.public Future<BatchGetOnPremisesInstancesResult> batchGetOnPremisesInstancesAsync(BatchGetOnPremisesInstancesRequest request, AsyncHandler<BatchGetOnPremisesInstancesRequest,BatchGetOnPremisesInstancesResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
batchGetOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a BatchGetOnPremisesInstances
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetOnPremisesInstancesResult> batchGetOnPremisesInstancesAsync()
batchGetOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
batchGetOnPremisesInstancesAsync(BatchGetOnPremisesInstancesRequest)
public Future<BatchGetOnPremisesInstancesResult> batchGetOnPremisesInstancesAsync(AsyncHandler<BatchGetOnPremisesInstancesRequest,BatchGetOnPremisesInstancesResult> asyncHandler)
public Future<ContinueDeploymentResult> continueDeploymentAsync(ContinueDeploymentRequest request)
AmazonCodeDeployAsync
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)
continueDeploymentAsync
in interface AmazonCodeDeployAsync
public Future<ContinueDeploymentResult> continueDeploymentAsync(ContinueDeploymentRequest request, AsyncHandler<ContinueDeploymentRequest,ContinueDeploymentResult> asyncHandler)
AmazonCodeDeployAsync
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)
continueDeploymentAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request)
AmazonCodeDeployAsync
Creates an application.
createApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateApplication
operation.public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request, AsyncHandler<CreateApplicationRequest,CreateApplicationResult> asyncHandler)
AmazonCodeDeployAsync
Creates an application.
createApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateApplication
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest request)
AmazonCodeDeployAsync
Deploys an application revision through the specified deployment group.
createDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeployment
operation.public Future<CreateDeploymentResult> createDeploymentAsync(CreateDeploymentRequest request, AsyncHandler<CreateDeploymentRequest,CreateDeploymentResult> asyncHandler)
AmazonCodeDeployAsync
Deploys an application revision through the specified deployment group.
createDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeployment
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDeploymentConfigResult> createDeploymentConfigAsync(CreateDeploymentConfigRequest request)
AmazonCodeDeployAsync
Creates a deployment configuration.
createDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeploymentConfig
operation.public Future<CreateDeploymentConfigResult> createDeploymentConfigAsync(CreateDeploymentConfigRequest request, AsyncHandler<CreateDeploymentConfigRequest,CreateDeploymentConfigResult> asyncHandler)
AmazonCodeDeployAsync
Creates a deployment configuration.
createDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeploymentConfig
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDeploymentGroupResult> createDeploymentGroupAsync(CreateDeploymentGroupRequest request)
AmazonCodeDeployAsync
Creates a deployment group to which application revisions are deployed.
createDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeploymentGroup
operation.public Future<CreateDeploymentGroupResult> createDeploymentGroupAsync(CreateDeploymentGroupRequest request, AsyncHandler<CreateDeploymentGroupRequest,CreateDeploymentGroupResult> asyncHandler)
AmazonCodeDeployAsync
Creates a deployment group to which application revisions are deployed.
createDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a CreateDeploymentGroup
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request)
AmazonCodeDeployAsync
Deletes an application.
deleteApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteApplication
operation.public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request, AsyncHandler<DeleteApplicationRequest,DeleteApplicationResult> asyncHandler)
AmazonCodeDeployAsync
Deletes an application.
deleteApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteApplication
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteDeploymentConfigResult> deleteDeploymentConfigAsync(DeleteDeploymentConfigRequest request)
AmazonCodeDeployAsync
Deletes a deployment configuration.
A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.
deleteDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteDeploymentConfig
operation.public Future<DeleteDeploymentConfigResult> deleteDeploymentConfigAsync(DeleteDeploymentConfigRequest request, AsyncHandler<DeleteDeploymentConfigRequest,DeleteDeploymentConfigResult> asyncHandler)
AmazonCodeDeployAsync
Deletes a deployment configuration.
A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.
deleteDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteDeploymentConfig
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteDeploymentGroupResult> deleteDeploymentGroupAsync(DeleteDeploymentGroupRequest request)
AmazonCodeDeployAsync
Deletes a deployment group.
deleteDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteDeploymentGroup
operation.public Future<DeleteDeploymentGroupResult> deleteDeploymentGroupAsync(DeleteDeploymentGroupRequest request, AsyncHandler<DeleteDeploymentGroupRequest,DeleteDeploymentGroupResult> asyncHandler)
AmazonCodeDeployAsync
Deletes a deployment group.
deleteDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteDeploymentGroup
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteGitHubAccountTokenResult> deleteGitHubAccountTokenAsync(DeleteGitHubAccountTokenRequest request)
AmazonCodeDeployAsync
Deletes a GitHub account connection.
deleteGitHubAccountTokenAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteGitHubAccount
operation.public Future<DeleteGitHubAccountTokenResult> deleteGitHubAccountTokenAsync(DeleteGitHubAccountTokenRequest request, AsyncHandler<DeleteGitHubAccountTokenRequest,DeleteGitHubAccountTokenResult> asyncHandler)
AmazonCodeDeployAsync
Deletes a GitHub account connection.
deleteGitHubAccountTokenAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeleteGitHubAccount
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteResourcesByExternalIdResult> deleteResourcesByExternalIdAsync(DeleteResourcesByExternalIdRequest request)
AmazonCodeDeployAsync
Deletes resources linked to an external ID. This action only applies if you have configured blue/green deployments through CloudFormation.
It is not necessary to call this action directly. CloudFormation calls it on your behalf when it needs to delete stack resources. This action is offered publicly in case you need to delete resources to comply with General Data Protection Regulation (GDPR) requirements.
deleteResourcesByExternalIdAsync
in interface AmazonCodeDeployAsync
public Future<DeleteResourcesByExternalIdResult> deleteResourcesByExternalIdAsync(DeleteResourcesByExternalIdRequest request, AsyncHandler<DeleteResourcesByExternalIdRequest,DeleteResourcesByExternalIdResult> asyncHandler)
AmazonCodeDeployAsync
Deletes resources linked to an external ID. This action only applies if you have configured blue/green deployments through CloudFormation.
It is not necessary to call this action directly. CloudFormation calls it on your behalf when it needs to delete stack resources. This action is offered publicly in case you need to delete resources to comply with General Data Protection Regulation (GDPR) requirements.
deleteResourcesByExternalIdAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeregisterOnPremisesInstanceResult> deregisterOnPremisesInstanceAsync(DeregisterOnPremisesInstanceRequest request)
AmazonCodeDeployAsync
Deregisters an on-premises instance.
deregisterOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeregisterOnPremisesInstance
operation.public Future<DeregisterOnPremisesInstanceResult> deregisterOnPremisesInstanceAsync(DeregisterOnPremisesInstanceRequest request, AsyncHandler<DeregisterOnPremisesInstanceRequest,DeregisterOnPremisesInstanceResult> asyncHandler)
AmazonCodeDeployAsync
Deregisters an on-premises instance.
deregisterOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a DeregisterOnPremisesInstance
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request)
AmazonCodeDeployAsync
Gets information about an application.
getApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetApplication
operation.public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request, AsyncHandler<GetApplicationRequest,GetApplicationResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about an application.
getApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetApplication
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetApplicationRevisionResult> getApplicationRevisionAsync(GetApplicationRevisionRequest request)
AmazonCodeDeployAsync
Gets information about an application revision.
getApplicationRevisionAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetApplicationRevision
operation.public Future<GetApplicationRevisionResult> getApplicationRevisionAsync(GetApplicationRevisionRequest request, AsyncHandler<GetApplicationRevisionRequest,GetApplicationRevisionResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about an application revision.
getApplicationRevisionAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetApplicationRevision
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDeploymentResult> getDeploymentAsync(GetDeploymentRequest request)
AmazonCodeDeployAsync
Gets information about a deployment.
The content
property of the appSpecContent
object in the returned revision is always
null. Use GetApplicationRevision
and the sha256
property of the returned
appSpecContent
object to get the content of the deployment’s AppSpec file.
getDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeployment
operation.public Future<GetDeploymentResult> getDeploymentAsync(GetDeploymentRequest request, AsyncHandler<GetDeploymentRequest,GetDeploymentResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about a deployment.
The content
property of the appSpecContent
object in the returned revision is always
null. Use GetApplicationRevision
and the sha256
property of the returned
appSpecContent
object to get the content of the deployment’s AppSpec file.
getDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeployment
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDeploymentConfigResult> getDeploymentConfigAsync(GetDeploymentConfigRequest request)
AmazonCodeDeployAsync
Gets information about a deployment configuration.
getDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentConfig
operation.public Future<GetDeploymentConfigResult> getDeploymentConfigAsync(GetDeploymentConfigRequest request, AsyncHandler<GetDeploymentConfigRequest,GetDeploymentConfigResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about a deployment configuration.
getDeploymentConfigAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentConfig
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDeploymentGroupResult> getDeploymentGroupAsync(GetDeploymentGroupRequest request)
AmazonCodeDeployAsync
Gets information about a deployment group.
getDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentGroup
operation.public Future<GetDeploymentGroupResult> getDeploymentGroupAsync(GetDeploymentGroupRequest request, AsyncHandler<GetDeploymentGroupRequest,GetDeploymentGroupResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about a deployment group.
getDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentGroup
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.@Deprecated public Future<GetDeploymentInstanceResult> getDeploymentInstanceAsync(GetDeploymentInstanceRequest request)
AmazonCodeDeployAsync
Gets information about an instance as part of a deployment.
getDeploymentInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentInstance
operation.@Deprecated public Future<GetDeploymentInstanceResult> getDeploymentInstanceAsync(GetDeploymentInstanceRequest request, AsyncHandler<GetDeploymentInstanceRequest,GetDeploymentInstanceResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about an instance as part of a deployment.
getDeploymentInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetDeploymentInstance
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDeploymentTargetResult> getDeploymentTargetAsync(GetDeploymentTargetRequest request)
AmazonCodeDeployAsync
Returns information about a deployment target.
getDeploymentTargetAsync
in interface AmazonCodeDeployAsync
public Future<GetDeploymentTargetResult> getDeploymentTargetAsync(GetDeploymentTargetRequest request, AsyncHandler<GetDeploymentTargetRequest,GetDeploymentTargetResult> asyncHandler)
AmazonCodeDeployAsync
Returns information about a deployment target.
getDeploymentTargetAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetOnPremisesInstanceResult> getOnPremisesInstanceAsync(GetOnPremisesInstanceRequest request)
AmazonCodeDeployAsync
Gets information about an on-premises instance.
getOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetOnPremisesInstance
operation.public Future<GetOnPremisesInstanceResult> getOnPremisesInstanceAsync(GetOnPremisesInstanceRequest request, AsyncHandler<GetOnPremisesInstanceRequest,GetOnPremisesInstanceResult> asyncHandler)
AmazonCodeDeployAsync
Gets information about an on-premises instance.
getOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a GetOnPremisesInstance
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListApplicationRevisionsResult> listApplicationRevisionsAsync(ListApplicationRevisionsRequest request)
AmazonCodeDeployAsync
Lists information about revisions for an application.
listApplicationRevisionsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListApplicationRevisions
operation.public Future<ListApplicationRevisionsResult> listApplicationRevisionsAsync(ListApplicationRevisionsRequest request, AsyncHandler<ListApplicationRevisionsRequest,ListApplicationRevisionsResult> asyncHandler)
AmazonCodeDeployAsync
Lists information about revisions for an application.
listApplicationRevisionsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListApplicationRevisions
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request)
AmazonCodeDeployAsync
Lists the applications registered with the user or Amazon Web Services account.
listApplicationsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListApplications
operation.public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request, AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
AmazonCodeDeployAsync
Lists the applications registered with the user or Amazon Web Services account.
listApplicationsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListApplications
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListApplicationsResult> listApplicationsAsync()
listApplicationsAsync
in interface AmazonCodeDeployAsync
listApplicationsAsync(ListApplicationsRequest)
public Future<ListApplicationsResult> listApplicationsAsync(AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
listApplicationsAsync
in interface AmazonCodeDeployAsync
listApplicationsAsync(ListApplicationsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<ListDeploymentConfigsResult> listDeploymentConfigsAsync(ListDeploymentConfigsRequest request)
AmazonCodeDeployAsync
Lists the deployment configurations with the user or Amazon Web Services account.
listDeploymentConfigsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentConfigs
operation.public Future<ListDeploymentConfigsResult> listDeploymentConfigsAsync(ListDeploymentConfigsRequest request, AsyncHandler<ListDeploymentConfigsRequest,ListDeploymentConfigsResult> asyncHandler)
AmazonCodeDeployAsync
Lists the deployment configurations with the user or Amazon Web Services account.
listDeploymentConfigsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentConfigs
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDeploymentConfigsResult> listDeploymentConfigsAsync()
listDeploymentConfigsAsync
in interface AmazonCodeDeployAsync
listDeploymentConfigsAsync(ListDeploymentConfigsRequest)
public Future<ListDeploymentConfigsResult> listDeploymentConfigsAsync(AsyncHandler<ListDeploymentConfigsRequest,ListDeploymentConfigsResult> asyncHandler)
listDeploymentConfigsAsync
in interface AmazonCodeDeployAsync
listDeploymentConfigsAsync(ListDeploymentConfigsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<ListDeploymentGroupsResult> listDeploymentGroupsAsync(ListDeploymentGroupsRequest request)
AmazonCodeDeployAsync
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
listDeploymentGroupsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentGroups
operation.public Future<ListDeploymentGroupsResult> listDeploymentGroupsAsync(ListDeploymentGroupsRequest request, AsyncHandler<ListDeploymentGroupsRequest,ListDeploymentGroupsResult> asyncHandler)
AmazonCodeDeployAsync
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
listDeploymentGroupsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentGroups
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.@Deprecated public Future<ListDeploymentInstancesResult> listDeploymentInstancesAsync(ListDeploymentInstancesRequest request)
AmazonCodeDeployAsync
The newer BatchGetDeploymentTargets
should be used instead because it works with all compute types.
ListDeploymentInstances
throws an exception if it is used with a compute platform other than
EC2/On-premises or Lambda.
Lists the instance for a deployment associated with the user or Amazon Web Services account.
listDeploymentInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentInstances
operation.@Deprecated public Future<ListDeploymentInstancesResult> listDeploymentInstancesAsync(ListDeploymentInstancesRequest request, AsyncHandler<ListDeploymentInstancesRequest,ListDeploymentInstancesResult> asyncHandler)
AmazonCodeDeployAsync
The newer BatchGetDeploymentTargets
should be used instead because it works with all compute types.
ListDeploymentInstances
throws an exception if it is used with a compute platform other than
EC2/On-premises or Lambda.
Lists the instance for a deployment associated with the user or Amazon Web Services account.
listDeploymentInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeploymentInstances
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDeploymentTargetsResult> listDeploymentTargetsAsync(ListDeploymentTargetsRequest request)
AmazonCodeDeployAsync
Returns an array of target IDs that are associated a deployment.
listDeploymentTargetsAsync
in interface AmazonCodeDeployAsync
public Future<ListDeploymentTargetsResult> listDeploymentTargetsAsync(ListDeploymentTargetsRequest request, AsyncHandler<ListDeploymentTargetsRequest,ListDeploymentTargetsResult> asyncHandler)
AmazonCodeDeployAsync
Returns an array of target IDs that are associated a deployment.
listDeploymentTargetsAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDeploymentsResult> listDeploymentsAsync(ListDeploymentsRequest request)
AmazonCodeDeployAsync
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
listDeploymentsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeployments
operation.public Future<ListDeploymentsResult> listDeploymentsAsync(ListDeploymentsRequest request, AsyncHandler<ListDeploymentsRequest,ListDeploymentsResult> asyncHandler)
AmazonCodeDeployAsync
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
listDeploymentsAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListDeployments
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDeploymentsResult> listDeploymentsAsync()
listDeploymentsAsync
in interface AmazonCodeDeployAsync
listDeploymentsAsync(ListDeploymentsRequest)
public Future<ListDeploymentsResult> listDeploymentsAsync(AsyncHandler<ListDeploymentsRequest,ListDeploymentsResult> asyncHandler)
listDeploymentsAsync
in interface AmazonCodeDeployAsync
listDeploymentsAsync(ListDeploymentsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<ListGitHubAccountTokenNamesResult> listGitHubAccountTokenNamesAsync(ListGitHubAccountTokenNamesRequest request)
AmazonCodeDeployAsync
Lists the names of stored connections to GitHub accounts.
listGitHubAccountTokenNamesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListGitHubAccountTokenNames
operation.public Future<ListGitHubAccountTokenNamesResult> listGitHubAccountTokenNamesAsync(ListGitHubAccountTokenNamesRequest request, AsyncHandler<ListGitHubAccountTokenNamesRequest,ListGitHubAccountTokenNamesResult> asyncHandler)
AmazonCodeDeployAsync
Lists the names of stored connections to GitHub accounts.
listGitHubAccountTokenNamesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListGitHubAccountTokenNames
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync(ListOnPremisesInstancesRequest request)
AmazonCodeDeployAsync
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
listOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListOnPremisesInstances
operation.public Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync(ListOnPremisesInstancesRequest request, AsyncHandler<ListOnPremisesInstancesRequest,ListOnPremisesInstancesResult> asyncHandler)
AmazonCodeDeployAsync
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
listOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a ListOnPremisesInstances
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync()
listOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
listOnPremisesInstancesAsync(ListOnPremisesInstancesRequest)
public Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync(AsyncHandler<ListOnPremisesInstancesRequest,ListOnPremisesInstancesResult> asyncHandler)
listOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
listOnPremisesInstancesAsync(ListOnPremisesInstancesRequest, com.amazonaws.handlers.AsyncHandler)
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonCodeDeployAsync
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.
listTagsForResourceAsync
in interface AmazonCodeDeployAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonCodeDeployAsync
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.
listTagsForResourceAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutLifecycleEventHookExecutionStatusResult> putLifecycleEventHookExecutionStatusAsync(PutLifecycleEventHookExecutionStatusRequest request)
AmazonCodeDeployAsync
Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that
uses the Lambda or Amazon ECS compute platform. For Lambda deployments, the available lifecycle hooks are
BeforeAllowTraffic
and AfterAllowTraffic
. For Amazon ECS deployments, the available
lifecycle hooks are BeforeInstall
, AfterInstall
, AfterAllowTestTraffic
,
BeforeAllowTraffic
, and AfterAllowTraffic
. Lambda validation functions return
Succeeded
or Failed
. For more information, see AppSpec 'hooks' Section for an Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment.
putLifecycleEventHookExecutionStatusAsync
in interface AmazonCodeDeployAsync
public Future<PutLifecycleEventHookExecutionStatusResult> putLifecycleEventHookExecutionStatusAsync(PutLifecycleEventHookExecutionStatusRequest request, AsyncHandler<PutLifecycleEventHookExecutionStatusRequest,PutLifecycleEventHookExecutionStatusResult> asyncHandler)
AmazonCodeDeployAsync
Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that
uses the Lambda or Amazon ECS compute platform. For Lambda deployments, the available lifecycle hooks are
BeforeAllowTraffic
and AfterAllowTraffic
. For Amazon ECS deployments, the available
lifecycle hooks are BeforeInstall
, AfterInstall
, AfterAllowTestTraffic
,
BeforeAllowTraffic
, and AfterAllowTraffic
. Lambda validation functions return
Succeeded
or Failed
. For more information, see AppSpec 'hooks' Section for an Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment.
putLifecycleEventHookExecutionStatusAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RegisterApplicationRevisionResult> registerApplicationRevisionAsync(RegisterApplicationRevisionRequest request)
AmazonCodeDeployAsync
Registers with CodeDeploy a revision for the specified application.
registerApplicationRevisionAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a RegisterApplicationRevision operation.public Future<RegisterApplicationRevisionResult> registerApplicationRevisionAsync(RegisterApplicationRevisionRequest request, AsyncHandler<RegisterApplicationRevisionRequest,RegisterApplicationRevisionResult> asyncHandler)
AmazonCodeDeployAsync
Registers with CodeDeploy a revision for the specified application.
registerApplicationRevisionAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a RegisterApplicationRevision operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RegisterOnPremisesInstanceResult> registerOnPremisesInstanceAsync(RegisterOnPremisesInstanceRequest request)
AmazonCodeDeployAsync
Registers an on-premises instance.
Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
registerOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of the register on-premises instance operation.public Future<RegisterOnPremisesInstanceResult> registerOnPremisesInstanceAsync(RegisterOnPremisesInstanceRequest request, AsyncHandler<RegisterOnPremisesInstanceRequest,RegisterOnPremisesInstanceResult> asyncHandler)
AmazonCodeDeployAsync
Registers an on-premises instance.
Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
registerOnPremisesInstanceAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of the register on-premises instance operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RemoveTagsFromOnPremisesInstancesResult> removeTagsFromOnPremisesInstancesAsync(RemoveTagsFromOnPremisesInstancesRequest request)
AmazonCodeDeployAsync
Removes one or more tags from one or more on-premises instances.
removeTagsFromOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a RemoveTagsFromOnPremisesInstances
operation.public Future<RemoveTagsFromOnPremisesInstancesResult> removeTagsFromOnPremisesInstancesAsync(RemoveTagsFromOnPremisesInstancesRequest request, AsyncHandler<RemoveTagsFromOnPremisesInstancesRequest,RemoveTagsFromOnPremisesInstancesResult> asyncHandler)
AmazonCodeDeployAsync
Removes one or more tags from one or more on-premises instances.
removeTagsFromOnPremisesInstancesAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a RemoveTagsFromOnPremisesInstances
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.@Deprecated public Future<SkipWaitTimeForInstanceTerminationResult> skipWaitTimeForInstanceTerminationAsync(SkipWaitTimeForInstanceTerminationRequest request)
AmazonCodeDeployAsync
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
skipWaitTimeForInstanceTerminationAsync
in interface AmazonCodeDeployAsync
@Deprecated public Future<SkipWaitTimeForInstanceTerminationResult> skipWaitTimeForInstanceTerminationAsync(SkipWaitTimeForInstanceTerminationRequest request, AsyncHandler<SkipWaitTimeForInstanceTerminationRequest,SkipWaitTimeForInstanceTerminationResult> asyncHandler)
AmazonCodeDeployAsync
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
skipWaitTimeForInstanceTerminationAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopDeploymentResult> stopDeploymentAsync(StopDeploymentRequest request)
AmazonCodeDeployAsync
Attempts to stop an ongoing deployment.
stopDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a StopDeployment
operation.public Future<StopDeploymentResult> stopDeploymentAsync(StopDeploymentRequest request, AsyncHandler<StopDeploymentRequest,StopDeploymentResult> asyncHandler)
AmazonCodeDeployAsync
Attempts to stop an ongoing deployment.
stopDeploymentAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of a StopDeployment
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonCodeDeployAsync
Associates the list of tags in the input Tags
parameter with the resource identified by the
ResourceArn
input parameter.
tagResourceAsync
in interface AmazonCodeDeployAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonCodeDeployAsync
Associates the list of tags in the input Tags
parameter with the resource identified by the
ResourceArn
input parameter.
tagResourceAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonCodeDeployAsync
Disassociates a resource from a list of tags. The resource is identified by the ResourceArn
input
parameter. The tags are identified by the list of keys in the TagKeys
input parameter.
untagResourceAsync
in interface AmazonCodeDeployAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonCodeDeployAsync
Disassociates a resource from a list of tags. The resource is identified by the ResourceArn
input
parameter. The tags are identified by the list of keys in the TagKeys
input parameter.
untagResourceAsync
in interface AmazonCodeDeployAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateApplicationResult> updateApplicationAsync(UpdateApplicationRequest request)
AmazonCodeDeployAsync
Changes the name of an application.
updateApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of an UpdateApplication
operation.public Future<UpdateApplicationResult> updateApplicationAsync(UpdateApplicationRequest request, AsyncHandler<UpdateApplicationRequest,UpdateApplicationResult> asyncHandler)
AmazonCodeDeployAsync
Changes the name of an application.
updateApplicationAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of an UpdateApplication
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateApplicationResult> updateApplicationAsync()
updateApplicationAsync
in interface AmazonCodeDeployAsync
updateApplicationAsync(UpdateApplicationRequest)
public Future<UpdateApplicationResult> updateApplicationAsync(AsyncHandler<UpdateApplicationRequest,UpdateApplicationResult> asyncHandler)
updateApplicationAsync
in interface AmazonCodeDeployAsync
updateApplicationAsync(UpdateApplicationRequest, com.amazonaws.handlers.AsyncHandler)
public Future<UpdateDeploymentGroupResult> updateDeploymentGroupAsync(UpdateDeploymentGroupRequest request)
AmazonCodeDeployAsync
Changes information about a deployment group.
updateDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of an UpdateDeploymentGroup
operation.public Future<UpdateDeploymentGroupResult> updateDeploymentGroupAsync(UpdateDeploymentGroupRequest request, AsyncHandler<UpdateDeploymentGroupRequest,UpdateDeploymentGroupResult> asyncHandler)
AmazonCodeDeployAsync
Changes information about a deployment group.
updateDeploymentGroupAsync
in interface AmazonCodeDeployAsync
request
- Represents the input of an UpdateDeploymentGroup
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonCodeDeploy
shutdown
in class AmazonCodeDeployClient