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;
  
  import com.amazonaws.*;
Interface for accessing AmazonCodeDeploy. 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.

 
 public interface AmazonCodeDeploy {

    
Overrides the default endpoint for this client ("https://codedeploy.us-east-1.amazonaws.com/"). Callers can use this method to control which AWS region they want to work with.

Callers can pass in just the endpoint (ex: "codedeploy.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "https://codedeploy.us-east-1.amazonaws.com/"). If the protocol is not specified here, the default protocol from this client's com.amazonaws.ClientConfiguration will be used, which by default is HTTPS.

For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912

This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.

Parameters:
endpoint The endpoint (ex: "codedeploy.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "https://codedeploy.us-east-1.amazonaws.com/") of the region specific AWS endpoint this client will communicate with.
Throws:
java.lang.IllegalArgumentException If any problems are detected with the specified endpoint.
 
     public void setEndpoint(String endpointthrows java.lang.IllegalArgumentException;

    
An alternative to setEndpoint(java.lang.String), sets the regional endpoint for this client's service calls. Callers can use this method to control which AWS region they want to work with.

By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the com.amazonaws.ClientConfiguration supplied at construction.

This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.

 
     public void setRegion(Region regionthrows java.lang.IllegalArgumentException;
    
    

Deregisters an on-premises instance.

Parameters:
deregisterOnPremisesInstanceRequest Container for the necessary parameters to execute the DeregisterOnPremisesInstance service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidInstanceNameException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
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 void deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Changes an existing application's name.

Parameters:
updateApplicationRequest Container for the necessary parameters to execute the UpdateApplication service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationAlreadyExistsException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 void updateApplication(UpdateApplicationRequest updateApplicationRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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

Parameters:
listApplicationsRequest Container for the necessary parameters to execute the ListApplications service method on AmazonCodeDeploy.
Returns:
The response from the ListApplications service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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 ListApplicationsResult listApplications(ListApplicationsRequest listApplicationsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Deletes a deployment group.

Parameters:
deleteDeploymentGroupRequest Container for the necessary parameters to execute the DeleteDeploymentGroup service method on AmazonCodeDeploy.
Returns:
The response from the DeleteDeploymentGroup service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidRoleException
com.amazonaws.services.codedeploy.model.InvalidDeploymentGroupNameException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest deleteDeploymentGroupRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Adds a tag to an on-premises instance.

Parameters:
addTagsToOnPremisesInstancesRequest Container for the necessary parameters to execute the AddTagsToOnPremisesInstances service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InstanceNotRegisteredException
com.amazonaws.services.codedeploy.model.TagLimitExceededException
com.amazonaws.services.codedeploy.model.InstanceLimitExceededException
com.amazonaws.services.codedeploy.model.InvalidTagException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
com.amazonaws.services.codedeploy.model.TagRequiredException
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 void addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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 service method on AmazonCodeDeploy.
Returns:
The response from the ListDeployments service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.DeploymentGroupDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidDeploymentGroupNameException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.InvalidTimeRangeException
com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidDeploymentStatusException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 ListDeploymentsResult listDeployments(ListDeploymentsRequest listDeploymentsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Attempts to stop an ongoing deployment.

Parameters:
stopDeploymentRequest Container for the necessary parameters to execute the StopDeployment service method on AmazonCodeDeploy.
Returns:
The response from the StopDeployment service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.DeploymentAlreadyCompletedException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException
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 StopDeploymentResult stopDeployment(StopDeploymentRequest stopDeploymentRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Creates a new application.

Parameters:
createApplicationRequest Container for the necessary parameters to execute the CreateApplication service method on AmazonCodeDeploy.
Returns:
The response from the CreateApplication service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationAlreadyExistsException
com.amazonaws.services.codedeploy.model.ApplicationLimitExceededException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 CreateApplicationResult createApplication(CreateApplicationRequest createApplicationRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about an application.

Parameters:
getApplicationRequest Container for the necessary parameters to execute the GetApplication service method on AmazonCodeDeploy.
Returns:
The response from the GetApplication service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 GetApplicationResult getApplication(GetApplicationRequest getApplicationRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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

Parameters:
createDeploymentGroupRequest Container for the necessary parameters to execute the CreateDeploymentGroup service method on AmazonCodeDeploy.
Returns:
The response from the CreateDeploymentGroup service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.RoleRequiredException
com.amazonaws.services.codedeploy.model.InvalidRoleException
com.amazonaws.services.codedeploy.model.InvalidDeploymentGroupNameException
com.amazonaws.services.codedeploy.model.DeploymentConfigDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidAutoScalingGroupException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidDeploymentConfigNameException
com.amazonaws.services.codedeploy.model.DeploymentGroupAlreadyExistsException
com.amazonaws.services.codedeploy.model.InvalidTagException
com.amazonaws.services.codedeploy.model.DeploymentGroupLimitExceededException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidEC2TagException
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 CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest createDeploymentGroupRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about one or more on-premises instances.

Parameters:
batchGetOnPremisesInstancesRequest Container for the necessary parameters to execute the BatchGetOnPremisesInstances service method on AmazonCodeDeploy.
Returns:
The response from the BatchGetOnPremisesInstances service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidInstanceNameException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
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;

    

Gets information about one or more deployments.

Parameters:
batchGetDeploymentsRequest Container for the necessary parameters to execute the BatchGetDeployments service method on AmazonCodeDeploy.
Returns:
The response from the BatchGetDeployments service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
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 BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest batchGetDeploymentsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about an instance as part of a deployment.

Parameters:
getDeploymentInstanceRequest Container for the necessary parameters to execute the GetDeploymentInstance service method on AmazonCodeDeploy.
Returns:
The response from the GetDeploymentInstance service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.InstanceIdRequiredException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException
com.amazonaws.services.codedeploy.model.InstanceDoesNotExistException
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 GetDeploymentInstanceResult getDeploymentInstance(GetDeploymentInstanceRequest getDeploymentInstanceRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about an application revision.

Parameters:
getApplicationRevisionRequest Container for the necessary parameters to execute the GetApplicationRevision service method on AmazonCodeDeploy.
Returns:
The response from the GetApplicationRevision service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidRevisionException
com.amazonaws.services.codedeploy.model.RevisionRequiredException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.RevisionDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest getApplicationRevisionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Registers an on-premises instance.

Parameters:
registerOnPremisesInstanceRequest Container for the necessary parameters to execute the RegisterOnPremisesInstance service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidIamUserArnException
com.amazonaws.services.codedeploy.model.InvalidInstanceNameException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
com.amazonaws.services.codedeploy.model.InstanceNameAlreadyRegisteredException
com.amazonaws.services.codedeploy.model.IamUserArnAlreadyRegisteredException
com.amazonaws.services.codedeploy.model.IamUserArnRequiredException
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 void registerOnPremisesInstance(RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about a deployment group.

Parameters:
getDeploymentGroupRequest Container for the necessary parameters to execute the GetDeploymentGroup service method on AmazonCodeDeploy.
Returns:
The response from the GetDeploymentGroup service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.DeploymentGroupDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidDeploymentGroupNameException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Creates a new deployment configuration.

Parameters:
createDeploymentConfigRequest Container for the necessary parameters to execute the CreateDeploymentConfig service method on AmazonCodeDeploy.
Returns:
The response from the CreateDeploymentConfig service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.DeploymentConfigLimitExceededException
com.amazonaws.services.codedeploy.model.InvalidMinimumHealthyHostValueException
com.amazonaws.services.codedeploy.model.InvalidDeploymentConfigNameException
com.amazonaws.services.codedeploy.model.DeploymentConfigAlreadyExistsException
com.amazonaws.services.codedeploy.model.DeploymentConfigNameRequiredException
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 CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest createDeploymentConfigRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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 service method on AmazonCodeDeploy.
Returns:
The response from the ListDeploymentInstances service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.InvalidInstanceStatusException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException
com.amazonaws.services.codedeploy.model.DeploymentNotStartedException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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;

    

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 service method on AmazonCodeDeploy.
Returns:
The response from the ListOnPremisesInstances service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidTagFilterException
com.amazonaws.services.codedeploy.model.InvalidRegistrationStatusException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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;

    

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 service method on AmazonCodeDeploy.
Returns:
The response from the ListDeploymentGroups service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest listDeploymentGroupsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about a deployment configuration.

Parameters:
getDeploymentConfigRequest Container for the necessary parameters to execute the GetDeploymentConfig service method on AmazonCodeDeploy.
Returns:
The response from the GetDeploymentConfig service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.DeploymentConfigDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidDeploymentConfigNameException
com.amazonaws.services.codedeploy.model.DeploymentConfigNameRequiredException
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 GetDeploymentConfigResult getDeploymentConfig(GetDeploymentConfigRequest getDeploymentConfigRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Registers with AWS CodeDeploy a revision for the specified application.

Parameters:
registerApplicationRevisionRequest Container for the necessary parameters to execute the RegisterApplicationRevision service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidRevisionException
com.amazonaws.services.codedeploy.model.RevisionRequiredException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.DescriptionTooLongException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 void registerApplicationRevision(RegisterApplicationRevisionRequest registerApplicationRevisionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about one or more applications.

Parameters:
batchGetApplicationsRequest Container for the necessary parameters to execute the BatchGetApplications service method on AmazonCodeDeploy.
Returns:
The response from the BatchGetApplications service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest batchGetApplicationsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about an on-premises instance.

Parameters:
getOnPremisesInstanceRequest Container for the necessary parameters to execute the GetOnPremisesInstance service method on AmazonCodeDeploy.
Returns:
The response from the GetOnPremisesInstance service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InstanceNotRegisteredException
com.amazonaws.services.codedeploy.model.InvalidInstanceNameException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
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 GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest getOnPremisesInstanceRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Lists information about revisions for an application.

Parameters:
listApplicationRevisionsRequest Container for the necessary parameters to execute the ListApplicationRevisions service method on AmazonCodeDeploy.
Returns:
The response from the ListApplicationRevisions service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidSortByException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.InvalidKeyPrefixFilterException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
com.amazonaws.services.codedeploy.model.BucketNameFilterRequiredException
com.amazonaws.services.codedeploy.model.InvalidSortOrderException
com.amazonaws.services.codedeploy.model.InvalidDeployedStateFilterException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidBucketNameFilterException
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;

    

Changes information about an existing deployment group.

Parameters:
updateDeploymentGroupRequest Container for the necessary parameters to execute the UpdateDeploymentGroup service method on AmazonCodeDeploy.
Returns:
The response from the UpdateDeploymentGroup service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidRoleException
com.amazonaws.services.codedeploy.model.DeploymentGroupDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidDeploymentGroupNameException
com.amazonaws.services.codedeploy.model.DeploymentConfigDoesNotExistException
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.InvalidAutoScalingGroupException
com.amazonaws.services.codedeploy.model.DeploymentGroupNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidDeploymentConfigNameException
com.amazonaws.services.codedeploy.model.DeploymentGroupAlreadyExistsException
com.amazonaws.services.codedeploy.model.InvalidTagException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
com.amazonaws.services.codedeploy.model.InvalidEC2TagException
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 UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest updateDeploymentGroupRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Deletes a deployment configuration.

NOTE:A deployment configuration cannot be deleted if it is currently in use. Also, predefined configurations cannot be deleted.

Parameters:
deleteDeploymentConfigRequest Container for the necessary parameters to execute the DeleteDeploymentConfig service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidOperationException
com.amazonaws.services.codedeploy.model.InvalidDeploymentConfigNameException
com.amazonaws.services.codedeploy.model.DeploymentConfigInUseException
com.amazonaws.services.codedeploy.model.DeploymentConfigNameRequiredException
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 void deleteDeploymentConfig(DeleteDeploymentConfigRequest deleteDeploymentConfigRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Deletes an application.

Parameters:
deleteApplicationRequest Container for the necessary parameters to execute the DeleteApplication service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 void deleteApplication(DeleteApplicationRequest deleteApplicationRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Gets information about a deployment.

Parameters:
getDeploymentRequest Container for the necessary parameters to execute the GetDeployment service method on AmazonCodeDeploy.
Returns:
The response from the GetDeployment service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException
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 GetDeploymentResult getDeployment(GetDeploymentRequest getDeploymentRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Deploys an application revision through the specified deployment group.

    public CreateDeploymentResult createDeployment(CreateDeploymentRequest createDeploymentRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Removes one or more tags from one or more on-premises instances.

Parameters:
removeTagsFromOnPremisesInstancesRequest Container for the necessary parameters to execute the RemoveTagsFromOnPremisesInstances service method on AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InstanceNotRegisteredException
com.amazonaws.services.codedeploy.model.TagLimitExceededException
com.amazonaws.services.codedeploy.model.InstanceLimitExceededException
com.amazonaws.services.codedeploy.model.InvalidTagException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
com.amazonaws.services.codedeploy.model.TagRequiredException
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 void removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest removeTagsFromOnPremisesInstancesRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Lists the deployment configurations with the applicable IAM user or AWS account.

Parameters:
listDeploymentConfigsRequest Container for the necessary parameters to execute the ListDeploymentConfigs service method on AmazonCodeDeploy.
Returns:
The response from the ListDeploymentConfigs service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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;

    

Changes an existing application's name.

Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationAlreadyExistsException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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 void updateApplication() throws AmazonServiceExceptionAmazonClientException;
    
    

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

Returns:
The response from the ListApplications service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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.

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

Gets information about one or more on-premises instances.

Returns:
The response from the BatchGetOnPremisesInstances service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidInstanceNameException
com.amazonaws.services.codedeploy.model.InstanceNameRequiredException
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.

Gets information about one or more deployments.

Returns:
The response from the BatchGetDeployments service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidDeploymentIdException
com.amazonaws.services.codedeploy.model.DeploymentIdRequiredException
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.

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.

Returns:
The response from the ListOnPremisesInstances service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidTagFilterException
com.amazonaws.services.codedeploy.model.InvalidRegistrationStatusException
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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.

Gets information about one or more applications.

Returns:
The response from the BatchGetApplications service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidApplicationNameException
com.amazonaws.services.codedeploy.model.ApplicationDoesNotExistException
com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException
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.

Lists the deployment configurations with the applicable IAM user or AWS account.

Returns:
The response from the ListDeploymentConfigs service method, as returned by AmazonCodeDeploy.
Throws:
com.amazonaws.services.codedeploy.model.InvalidNextTokenException
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.
Shuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.
    public void shutdown();
    
    
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.

Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.

Parameters:
request The originally executed request.
Returns:
The response metadata for the specified request, or null if none is available.
}
        
New to GrepCode? Check out our FAQ X