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 java.net.*;
  import java.util.*;
  
  
  import com.amazonaws.*;
  
Client for accessing AmazonCodeDeploy. All service calls made using this client are blocking, and will not return until the service call completes.

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 class AmazonCodeDeployClient extends AmazonWebServiceClient implements AmazonCodeDeploy {

    
Provider for AWS credentials.
 
 
     private static final Log log = LogFactory.getLog(AmazonCodeDeploy.class);

    
List of exception unmarshallers for all AmazonCodeDeploy exceptions.
 
     protected List<JsonErrorUnmarshallerjsonErrorUnmarshallers;

    
Constructs a new client to invoke service methods on AmazonCodeDeploy. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

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

 
     public AmazonCodeDeployClient() {
         this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonCodeDeploy. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

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

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

    
Constructs a new client to invoke service methods on AmazonCodeDeploy using the specified AWS account credentials.

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonCodeDeployClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

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

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonCodeDeploy (ex: proxy settings, retry counts, etc.).
 
     public AmazonCodeDeployClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(adjustClientConfiguration(clientConfiguration));
         
         this. = new StaticCredentialsProvider(awsCredentials);
         
         init();
     }

    
Constructs a new client to invoke service methods on AmazonCodeDeploy using the specified AWS account credentials provider.

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

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

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonCodeDeploy (ex: proxy settings, retry counts, etc.).
 
     public AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

    
Constructs a new client to invoke service methods on AmazonCodeDeploy using the specified AWS account credentials provider, client configuration options and request metric collector.

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonCodeDeploy (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
         
         this. = awsCredentialsProvider;
         
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("codedeploy.us-east-1.amazonaws.com/");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/codedeploy/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/codedeploy/request.handler2s"));
     }
 
         ClientConfiguration config = orig;
         
         return config;
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(deregisterOnPremisesInstanceRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeregisterOnPremisesInstanceRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeregisterOnPremisesInstanceRequestMarshaller().marshall(super.beforeMarshalling(deregisterOnPremisesInstanceRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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) {
         ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateApplicationRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateApplicationRequestMarshaller().marshall(super.beforeMarshalling(updateApplicationRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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) {
         ExecutionContext executionContext = createExecutionContext(listApplicationsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListApplicationsRequestrequest = null;
         Response<ListApplicationsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListApplicationsRequestMarshaller().marshall(super.beforeMarshalling(listApplicationsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListApplicationsResultJsonUnmarshallerContextunmarshaller =
                 new ListApplicationsResultJsonUnmarshaller();
             JsonResponseHandler<ListApplicationsResultresponseHandler =
                 new JsonResponseHandler<ListApplicationsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(deleteDeploymentGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeleteDeploymentGroupRequestrequest = null;
         Response<DeleteDeploymentGroupResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteDeploymentGroupRequestMarshaller().marshall(super.beforeMarshalling(deleteDeploymentGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeleteDeploymentGroupResultJsonUnmarshallerContextunmarshaller =
                 new DeleteDeploymentGroupResultJsonUnmarshaller();
             JsonResponseHandler<DeleteDeploymentGroupResultresponseHandler =
                 new JsonResponseHandler<DeleteDeploymentGroupResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(addTagsToOnPremisesInstancesRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<AddTagsToOnPremisesInstancesRequestrequest = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new AddTagsToOnPremisesInstancesRequestMarshaller().marshall(super.beforeMarshalling(addTagsToOnPremisesInstancesRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
             invoke(requestresponseHandlerexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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) {
         ExecutionContext executionContext = createExecutionContext(listDeploymentsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListDeploymentsRequestrequest = null;
         Response<ListDeploymentsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListDeploymentsRequestMarshaller().marshall(super.beforeMarshalling(listDeploymentsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListDeploymentsResultJsonUnmarshallerContextunmarshaller =
                 new ListDeploymentsResultJsonUnmarshaller();
             JsonResponseHandler<ListDeploymentsResultresponseHandler =
                 new JsonResponseHandler<ListDeploymentsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(stopDeploymentRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<StopDeploymentRequestrequest = null;
         Response<StopDeploymentResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new StopDeploymentRequestMarshaller().marshall(super.beforeMarshalling(stopDeploymentRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<StopDeploymentResultJsonUnmarshallerContextunmarshaller =
                 new StopDeploymentResultJsonUnmarshaller();
             JsonResponseHandler<StopDeploymentResultresponseHandler =
                 new JsonResponseHandler<StopDeploymentResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(createApplicationRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateApplicationRequestrequest = null;
         Response<CreateApplicationResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateApplicationRequestMarshaller().marshall(super.beforeMarshalling(createApplicationRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<CreateApplicationResultJsonUnmarshallerContextunmarshaller =
                 new CreateApplicationResultJsonUnmarshaller();
             JsonResponseHandler<CreateApplicationResultresponseHandler =
                 new JsonResponseHandler<CreateApplicationResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(getApplicationRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetApplicationRequestrequest = null;
         Response<GetApplicationResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetApplicationRequestMarshaller().marshall(super.beforeMarshalling(getApplicationRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<GetApplicationResultJsonUnmarshallerContextunmarshaller =
                 new GetApplicationResultJsonUnmarshaller();
             JsonResponseHandler<GetApplicationResultresponseHandler =
                 new JsonResponseHandler<GetApplicationResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(createDeploymentGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateDeploymentGroupRequestrequest = null;
         Response<CreateDeploymentGroupResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateDeploymentGroupRequestMarshaller().marshall(super.beforeMarshalling(createDeploymentGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<CreateDeploymentGroupResultJsonUnmarshallerContextunmarshaller =
                 new CreateDeploymentGroupResultJsonUnmarshaller();
             JsonResponseHandler<CreateDeploymentGroupResultresponseHandler =
                 new JsonResponseHandler<CreateDeploymentGroupResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.
 
         ExecutionContext executionContext = createExecutionContext(batchGetOnPremisesInstancesRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<BatchGetOnPremisesInstancesRequestrequest = null;
         Response<BatchGetOnPremisesInstancesResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new BatchGetOnPremisesInstancesRequestMarshaller().marshall(super.beforeMarshalling(batchGetOnPremisesInstancesRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<BatchGetOnPremisesInstancesResultJsonUnmarshallerContextunmarshaller =
                 new BatchGetOnPremisesInstancesResultJsonUnmarshaller();
             JsonResponseHandler<BatchGetOnPremisesInstancesResultresponseHandler =
                 new JsonResponseHandler<BatchGetOnPremisesInstancesResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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) {
         ExecutionContext executionContext = createExecutionContext(batchGetDeploymentsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<BatchGetDeploymentsRequestrequest = null;
         Response<BatchGetDeploymentsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new BatchGetDeploymentsRequestMarshaller().marshall(super.beforeMarshalling(batchGetDeploymentsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<BatchGetDeploymentsResultJsonUnmarshallerContextunmarshaller =
                 new BatchGetDeploymentsResultJsonUnmarshaller();
            JsonResponseHandler<BatchGetDeploymentsResultresponseHandler =
                new JsonResponseHandler<BatchGetDeploymentsResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.
        ExecutionContext executionContext = createExecutionContext(getDeploymentInstanceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetDeploymentInstanceRequestrequest = null;
        Response<GetDeploymentInstanceResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetDeploymentInstanceRequestMarshaller().marshall(super.beforeMarshalling(getDeploymentInstanceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<GetDeploymentInstanceResultJsonUnmarshallerContextunmarshaller =
                new GetDeploymentInstanceResultJsonUnmarshaller();
            JsonResponseHandler<GetDeploymentInstanceResultresponseHandler =
                new JsonResponseHandler<GetDeploymentInstanceResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.
        ExecutionContext executionContext = createExecutionContext(getApplicationRevisionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetApplicationRevisionRequestrequest = null;
        Response<GetApplicationRevisionResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetApplicationRevisionRequestMarshaller().marshall(super.beforeMarshalling(getApplicationRevisionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<GetApplicationRevisionResultJsonUnmarshallerContextunmarshaller =
                new GetApplicationRevisionResultJsonUnmarshaller();
            JsonResponseHandler<GetApplicationRevisionResultresponseHandler =
                new JsonResponseHandler<GetApplicationRevisionResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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) {
        ExecutionContext executionContext = createExecutionContext(registerOnPremisesInstanceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RegisterOnPremisesInstanceRequestrequest = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RegisterOnPremisesInstanceRequestMarshaller().marshall(super.beforeMarshalling(registerOnPremisesInstanceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            JsonResponseHandler<VoidresponseHandler = new JsonResponseHandler<Void>(null);
            invoke(requestresponseHandlerexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

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) {
        ExecutionContext executionContext = createExecutionContext(getDeploymentGroupRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetDeploymentGroupRequestrequest = null;
        Response<GetDeploymentGroupResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetDeploymentGroupRequestMarshaller().marshall(super.beforeMarshalling(getDeploymentGroupRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<GetDeploymentGroupResultJsonUnmarshallerContextunmarshaller =
                new GetDeploymentGroupResultJsonUnmarshaller();
            JsonResponseHandler<GetDeploymentGroupResultresponseHandler =
                new JsonResponseHandler<GetDeploymentGroupResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.
        ExecutionContext executionContext = createExecutionContext(createDeploymentConfigRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateDeploymentConfigRequestrequest = null;
        Response<CreateDeploymentConfigResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateDeploymentConfigRequestMarshaller().marshall(super.beforeMarshalling(createDeploymentConfigRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<CreateDeploymentConfigResultJsonUnmarshallerContextunmarshaller =
                new CreateDeploymentConfigResultJsonUnmarshaller();
            JsonResponseHandler<CreateDeploymentConfigResultresponseHandler =
                new JsonResponseHandler<CreateDeploymentConfigResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.
        ExecutionContext executionContext = createExecutionContext(listDeploymentInstancesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListDeploymentInstancesRequestrequest = null;
        Response<ListDeploymentInstancesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListDeploymentInstancesRequestMarshaller().marshall(super.beforeMarshalling(listDeploymentInstancesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<ListDeploymentInstancesResultJsonUnmarshallerContextunmarshaller =
                new ListDeploymentInstancesResultJsonUnmarshaller();
            JsonResponseHandler<ListDeploymentInstancesResultresponseHandler =
                new JsonResponseHandler<ListDeploymentInstancesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.
        ExecutionContext executionContext = createExecutionContext(listOnPremisesInstancesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListOnPremisesInstancesRequestrequest = null;
        Response<ListOnPremisesInstancesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListOnPremisesInstancesRequestMarshaller().marshall(super.beforeMarshalling(listOnPremisesInstancesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<ListOnPremisesInstancesResultJsonUnmarshallerContextunmarshaller =
                new ListOnPremisesInstancesResultJsonUnmarshaller();
            JsonResponseHandler<ListOnPremisesInstancesResultresponseHandler =
                new JsonResponseHandler<ListOnPremisesInstancesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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) {
        ExecutionContext executionContext = createExecutionContext(listDeploymentGroupsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListDeploymentGroupsRequestrequest = null;
        Response<ListDeploymentGroupsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListDeploymentGroupsRequestMarshaller().marshall(super.beforeMarshalling(listDeploymentGroupsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<ListDeploymentGroupsResultJsonUnmarshallerContextunmarshaller =
                new ListDeploymentGroupsResultJsonUnmarshaller();
            JsonResponseHandler<ListDeploymentGroupsResultresponseHandler =
                new JsonResponseHandler<ListDeploymentGroupsResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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) {
        ExecutionContext executionContext = createExecutionContext(getDeploymentConfigRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetDeploymentConfigRequestrequest = null;
        Response<GetDeploymentConfigResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetDeploymentConfigRequestMarshaller().marshall(super.beforeMarshalling(getDeploymentConfigRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<GetDeploymentConfigResultJsonUnmarshallerContextunmarshaller =
                new GetDeploymentConfigResultJsonUnmarshaller();
            JsonResponseHandler<GetDeploymentConfigResultresponseHandler =
                new JsonResponseHandler<GetDeploymentConfigResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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) {
        ExecutionContext executionContext = createExecutionContext(registerApplicationRevisionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RegisterApplicationRevisionRequestrequest = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RegisterApplicationRevisionRequestMarshaller().marshall(super.beforeMarshalling(registerApplicationRevisionRequest));