public class AmazonCodeDeployClient extends AmazonWebServiceClient implements 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 APIsYou can use the AWS CodeDeploy APIs to work with the following items:
Applications , which 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 work with applications by calling CreateApplication, DeleteApplication, GetApplication, ListApplications, BatchGetApplications, and UpdateApplication to create, delete, and get information about applications, and to change information about an application, respectively.
Deployment configurations , which are sets of deployment rules and deployment success and failure conditions that AWS CodeDeploy uses during deployments.
You can work with deployment configurations by calling CreateDeploymentConfig, DeleteDeploymentConfig, GetDeploymentConfig, and ListDeploymentConfigs to create, delete, and get information about deployment configurations, respectively.
Deployment groups , which represent groups of Amazon EC2 instances to which application revisions can be deployed.
You can work with deployment groups by calling CreateDeploymentGroup, DeleteDeploymentGroup, GetDeploymentGroup, ListDeploymentGroups, and UpdateDeploymentGroup to create, delete, and get information about single and multiple deployment groups, and to change information about a deployment group, respectively.
Deployment instances (also known simply as instances ), which represent Amazon EC2 instances to which application revisions are deployed. Deployment instances are identified by their Amazon EC2 tags or Auto Scaling group names. Deployment instances belong to deployment groups.
You can work with deployment instances by calling GetDeploymentInstance and ListDeploymentInstances to get information about single and multiple deployment instances, respectively.
Deployments , which represent the process of deploying revisions to deployment groups.
You can work with deployments by calling CreateDeployment, GetDeployment, ListDeployments, BatchGetDeployments, and StopDeployment to create and get information about deployments, and to stop a deployment, respectively.
Application revisions (also known simply as revisions ), which 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. Application revisions are deployed to deployment groups.
You can work with application revisions by calling GetApplicationRevision, ListApplicationRevisions, and RegisterApplicationRevision to get information about application revisions and to inform AWS CodeDeploy about an application revision, respectively.
| Modifier and Type | Field and Description |
|---|---|
protected List<com.amazonaws.transform.JsonErrorUnmarshaller> |
jsonErrorUnmarshallers
List of exception unmarshallers for all AmazonCodeDeploy exceptions.
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset| Constructor and Description |
|---|
AmazonCodeDeployClient()
Constructs a new client to invoke service methods on
AmazonCodeDeploy.
|
AmazonCodeDeployClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on
AmazonCodeDeploy using the specified AWS account credentials.
|
AmazonCodeDeployClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCodeDeploy using the specified AWS account credentials
and client configuration options.
|
AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on
AmazonCodeDeploy using the specified AWS account credentials provider.
|
AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCodeDeploy using the specified AWS account credentials
provider and client configuration options.
|
AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on
AmazonCodeDeploy using the specified AWS account credentials
provider, client configuration options and request metric collector.
|
AmazonCodeDeployClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCodeDeploy.
|
| Modifier and Type | Method and Description |
|---|---|
BatchGetApplicationsResult |
batchGetApplications()
Gets information about one or more applications.
|
BatchGetApplicationsResult |
batchGetApplications(BatchGetApplicationsRequest batchGetApplicationsRequest)
Gets information about one or more applications.
|
BatchGetDeploymentsResult |
batchGetDeployments()
Gets information about one or more deployments.
|
BatchGetDeploymentsResult |
batchGetDeployments(BatchGetDeploymentsRequest batchGetDeploymentsRequest)
Gets information about one or more deployments.
|
CreateApplicationResult |
createApplication(CreateApplicationRequest createApplicationRequest)
Creates a new application.
|
CreateDeploymentResult |
createDeployment(CreateDeploymentRequest createDeploymentRequest)
Deploys an application revision to the specified deployment group.
|
CreateDeploymentConfigResult |
createDeploymentConfig(CreateDeploymentConfigRequest createDeploymentConfigRequest)
Creates a new deployment configuration.
|
CreateDeploymentGroupResult |
createDeploymentGroup(CreateDeploymentGroupRequest createDeploymentGroupRequest)
Creates a new deployment group for application revisions to be
deployed to.
|
void |
deleteApplication(DeleteApplicationRequest deleteApplicationRequest)
Deletes an application.
|
void |
deleteDeploymentConfig(DeleteDeploymentConfigRequest deleteDeploymentConfigRequest)
Deletes a deployment configuration.
|
DeleteDeploymentGroupResult |
deleteDeploymentGroup(DeleteDeploymentGroupRequest deleteDeploymentGroupRequest)
Deletes a deployment group.
|
GetApplicationResult |
getApplication(GetApplicationRequest getApplicationRequest)
Gets information about an application.
|
GetApplicationRevisionResult |
getApplicationRevision(GetApplicationRevisionRequest getApplicationRevisionRequest)
Gets information about an application revision.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for
debugging issues where a service isn't acting as expected.
|
GetDeploymentResult |
getDeployment(GetDeploymentRequest getDeploymentRequest)
Gets information about a deployment.
|
GetDeploymentConfigResult |
getDeploymentConfig(GetDeploymentConfigRequest getDeploymentConfigRequest)
Gets information about a deployment configuration.
|
GetDeploymentGroupResult |
getDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest)
Gets information about a deployment group.
|
GetDeploymentInstanceResult |
getDeploymentInstance(GetDeploymentInstanceRequest getDeploymentInstanceRequest)
Gets information about an Amazon EC2 instance as part of a
deployment.
|
ListApplicationRevisionsResult |
listApplicationRevisions(ListApplicationRevisionsRequest listApplicationRevisionsRequest)
Lists information about revisions for an application.
|
ListApplicationsResult |
listApplications()
Lists the applications registered within the AWS user account.
|
ListApplicationsResult |
listApplications(ListApplicationsRequest listApplicationsRequest)
Lists the applications registered within the AWS user account.
|
ListDeploymentConfigsResult |
listDeploymentConfigs()
Lists the deployment configurations within the AWS user account.
|
ListDeploymentConfigsResult |
listDeploymentConfigs(ListDeploymentConfigsRequest listDeploymentConfigsRequest)
Lists the deployment configurations within the AWS user account.
|
ListDeploymentGroupsResult |
listDeploymentGroups(ListDeploymentGroupsRequest listDeploymentGroupsRequest)
Lists the deployment groups for an application registered within the
AWS user account.
|
ListDeploymentInstancesResult |
listDeploymentInstances(ListDeploymentInstancesRequest listDeploymentInstancesRequest)
Lists the Amazon EC2 instances for a deployment within the AWS user
account.
|
ListDeploymentsResult |
listDeployments()
Lists the deployments under a deployment group for an application
registered within the AWS user account.
|
ListDeploymentsResult |
listDeployments(ListDeploymentsRequest listDeploymentsRequest)
Lists the deployments under a deployment group for an application
registered within the AWS user account.
|
void |
registerApplicationRevision(RegisterApplicationRevisionRequest registerApplicationRevisionRequest)
Registers with AWS CodeDeploy a revision for the specified
application.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client.
|
void |
setEndpoint(String endpoint,
String serviceName,
String regionId)
An internal method that is not expected to be normally
called except for AWS internal development purposes.
|
StopDeploymentResult |
stopDeployment(StopDeploymentRequest stopDeploymentRequest)
Attempts to stop an ongoing deployment.
|
void |
updateApplication()
Changes an existing application's name.
|
void |
updateApplication(UpdateApplicationRequest updateApplicationRequest)
Changes an existing application's name.
|
UpdateDeploymentGroupResult |
updateDeploymentGroup(UpdateDeploymentGroupRequest updateDeploymentGroupRequest)
Changes information about an existing deployment group.
|
addRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegion, shutdownprotected List<com.amazonaws.transform.JsonErrorUnmarshaller> jsonErrorUnmarshallers
public AmazonCodeDeployClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AmazonCodeDeployClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this
client connects to AmazonCodeDeploy
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonCodeDeployClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCodeDeployClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonCodeDeployClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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 awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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 collectorpublic GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest)
Gets information about a deployment group.
getDeploymentGroup in interface AmazonCodeDeploygetDeploymentGroupRequest - Container for the necessary
parameters to execute the GetDeploymentGroup service method on
AmazonCodeDeploy.DeploymentGroupDoesNotExistExceptionInvalidDeploymentGroupNameExceptionInvalidApplicationNameExceptionDeploymentGroupNameRequiredExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Changes an existing application's name.
updateApplication in interface AmazonCodeDeployupdateApplicationRequest - Container for the necessary parameters
to execute the UpdateApplication service method on AmazonCodeDeploy.InvalidApplicationNameExceptionApplicationAlreadyExistsExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Creates a new deployment configuration.
createDeploymentConfig in interface AmazonCodeDeploycreateDeploymentConfigRequest - Container for the necessary
parameters to execute the CreateDeploymentConfig service method on
AmazonCodeDeploy.DeploymentConfigLimitExceededExceptionInvalidMinimumHealthyHostValueExceptionInvalidDeploymentConfigNameExceptionDeploymentConfigAlreadyExistsExceptionDeploymentConfigNameRequiredExceptionAmazonClientException - 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.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 ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest listDeploymentInstancesRequest)
Lists the Amazon EC2 instances for a deployment within the AWS user account.
listDeploymentInstances in interface AmazonCodeDeploylistDeploymentInstancesRequest - Container for the necessary
parameters to execute the ListDeploymentInstances service method on
AmazonCodeDeploy.InvalidDeploymentIdExceptionInvalidInstanceStatusExceptionDeploymentIdRequiredExceptionDeploymentDoesNotExistExceptionDeploymentNotStartedExceptionInvalidNextTokenExceptionAmazonClientException - 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.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)
Lists the applications registered within the AWS user account.
listApplications in interface AmazonCodeDeploylistApplicationsRequest - Container for the necessary parameters
to execute the ListApplications service method on AmazonCodeDeploy.InvalidNextTokenExceptionAmazonClientException - 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.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)
Registers with AWS CodeDeploy a revision for the specified application.
registerApplicationRevision in interface AmazonCodeDeployregisterApplicationRevisionRequest - Container for the necessary
parameters to execute the RegisterApplicationRevision service method
on AmazonCodeDeploy.InvalidRevisionExceptionRevisionRequiredExceptionInvalidApplicationNameExceptionDescriptionTooLongExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Gets information about a deployment configuration.
getDeploymentConfig in interface AmazonCodeDeploygetDeploymentConfigRequest - Container for the necessary
parameters to execute the GetDeploymentConfig service method on
AmazonCodeDeploy.DeploymentConfigDoesNotExistExceptionInvalidDeploymentConfigNameExceptionDeploymentConfigNameRequiredExceptionAmazonClientException - 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.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)
Lists the deployment groups for an application registered within the AWS user account.
listDeploymentGroups in interface AmazonCodeDeploylistDeploymentGroupsRequest - Container for the necessary
parameters to execute the ListDeploymentGroups service method on
AmazonCodeDeploy.InvalidApplicationNameExceptionInvalidNextTokenExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Gets information about one or more applications.
batchGetApplications in interface AmazonCodeDeploybatchGetApplicationsRequest - Container for the necessary
parameters to execute the BatchGetApplications service method on
AmazonCodeDeploy.InvalidApplicationNameExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Deletes a deployment group.
deleteDeploymentGroup in interface AmazonCodeDeploydeleteDeploymentGroupRequest - Container for the necessary
parameters to execute the DeleteDeploymentGroup service method on
AmazonCodeDeploy.InvalidRoleExceptionInvalidDeploymentGroupNameExceptionInvalidApplicationNameExceptionDeploymentGroupNameRequiredExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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 ListApplicationRevisionsResult listApplicationRevisions(ListApplicationRevisionsRequest listApplicationRevisionsRequest)
Lists information about revisions for an application.
listApplicationRevisions in interface AmazonCodeDeploylistApplicationRevisionsRequest - Container for the necessary
parameters to execute the ListApplicationRevisions service method on
AmazonCodeDeploy.InvalidSortByExceptionInvalidApplicationNameExceptionInvalidKeyPrefixFilterExceptionInvalidNextTokenExceptionBucketNameFilterRequiredExceptionInvalidSortOrderExceptionInvalidDeployedStateFilterExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionInvalidBucketNameFilterExceptionAmazonClientException - 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.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)
Changes information about an existing deployment group.
updateDeploymentGroup in interface AmazonCodeDeployupdateDeploymentGroupRequest - Container for the necessary
parameters to execute the UpdateDeploymentGroup service method on
AmazonCodeDeploy.InvalidRoleExceptionInvalidDeploymentGroupNameExceptionDeploymentConfigDoesNotExistExceptionInvalidApplicationNameExceptionInvalidAutoScalingGroupExceptionDeploymentGroupNameRequiredExceptionInvalidDeploymentConfigNameExceptionDeploymentGroupAlreadyExistsExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionInvalidEC2TagExceptionAmazonClientException - 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.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)
Lists the deployments under a deployment group for an application registered within the AWS user account.
listDeployments in interface AmazonCodeDeploylistDeploymentsRequest - Container for the necessary parameters
to execute the ListDeployments service method on AmazonCodeDeploy.DeploymentGroupDoesNotExistExceptionInvalidDeploymentGroupNameExceptionInvalidApplicationNameExceptionInvalidTimeRangeExceptionDeploymentGroupNameRequiredExceptionInvalidNextTokenExceptionApplicationDoesNotExistExceptionInvalidDeploymentStatusExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Gets information about an application.
getApplication in interface AmazonCodeDeploygetApplicationRequest - Container for the necessary parameters to
execute the GetApplication service method on AmazonCodeDeploy.InvalidApplicationNameExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Creates a new application.
createApplication in interface AmazonCodeDeploycreateApplicationRequest - Container for the necessary parameters
to execute the CreateApplication service method on AmazonCodeDeploy.InvalidApplicationNameExceptionApplicationAlreadyExistsExceptionApplicationLimitExceededExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Attempts to stop an ongoing deployment.
stopDeployment in interface AmazonCodeDeploystopDeploymentRequest - Container for the necessary parameters to
execute the StopDeployment service method on AmazonCodeDeploy.InvalidDeploymentIdExceptionDeploymentAlreadyCompletedExceptionDeploymentIdRequiredExceptionDeploymentDoesNotExistExceptionAmazonClientException - 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.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)
Creates a new deployment group for application revisions to be deployed to.
createDeploymentGroup in interface AmazonCodeDeploycreateDeploymentGroupRequest - Container for the necessary
parameters to execute the CreateDeploymentGroup service method on
AmazonCodeDeploy.RoleRequiredExceptionInvalidRoleExceptionInvalidDeploymentGroupNameExceptionDeploymentConfigDoesNotExistExceptionInvalidApplicationNameExceptionInvalidAutoScalingGroupExceptionDeploymentGroupNameRequiredExceptionInvalidDeploymentConfigNameExceptionDeploymentGroupAlreadyExistsExceptionDeploymentGroupLimitExceededExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionInvalidEC2TagExceptionAmazonClientException - 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.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)
Deletes an application.
deleteApplication in interface AmazonCodeDeploydeleteApplicationRequest - Container for the necessary parameters
to execute the DeleteApplication service method on AmazonCodeDeploy.InvalidApplicationNameExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Gets information about one or more deployments.
batchGetDeployments in interface AmazonCodeDeploybatchGetDeploymentsRequest - Container for the necessary
parameters to execute the BatchGetDeployments service method on
AmazonCodeDeploy.InvalidDeploymentIdExceptionDeploymentIdRequiredExceptionAmazonClientException - 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.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)
Deletes a deployment configuration.
NOTE:A deployment configuration cannot be deleted if it is currently in use. Also, predefined configurations cannot be deleted.
deleteDeploymentConfig in interface AmazonCodeDeploydeleteDeploymentConfigRequest - Container for the necessary
parameters to execute the DeleteDeploymentConfig service method on
AmazonCodeDeploy.InvalidOperationExceptionInvalidDeploymentConfigNameExceptionDeploymentConfigInUseExceptionDeploymentConfigNameRequiredExceptionAmazonClientException - 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.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)
Gets information about a deployment.
getDeployment in interface AmazonCodeDeploygetDeploymentRequest - Container for the necessary parameters to
execute the GetDeployment service method on AmazonCodeDeploy.InvalidDeploymentIdExceptionDeploymentIdRequiredExceptionDeploymentDoesNotExistExceptionAmazonClientException - 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.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 CreateDeploymentResult createDeployment(CreateDeploymentRequest createDeploymentRequest)
Deploys an application revision to the specified deployment group.
createDeployment in interface AmazonCodeDeploycreateDeploymentRequest - Container for the necessary parameters
to execute the CreateDeployment service method on AmazonCodeDeploy.InvalidRevisionExceptionDeploymentGroupDoesNotExistExceptionRevisionRequiredExceptionInvalidDeploymentGroupNameExceptionDeploymentConfigDoesNotExistExceptionInvalidApplicationNameExceptionDeploymentGroupNameRequiredExceptionDescriptionTooLongExceptionInvalidDeploymentConfigNameExceptionDeploymentLimitExceededExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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)
Gets information about an Amazon EC2 instance as part of a deployment.
getDeploymentInstance in interface AmazonCodeDeploygetDeploymentInstanceRequest - Container for the necessary
parameters to execute the GetDeploymentInstance service method on
AmazonCodeDeploy.InvalidDeploymentIdExceptionInstanceIdRequiredExceptionDeploymentIdRequiredExceptionDeploymentDoesNotExistExceptionInstanceDoesNotExistExceptionAmazonClientException - 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.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 ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest listDeploymentConfigsRequest)
Lists the deployment configurations within the AWS user account.
listDeploymentConfigs in interface AmazonCodeDeploylistDeploymentConfigsRequest - Container for the necessary
parameters to execute the ListDeploymentConfigs service method on
AmazonCodeDeploy.InvalidNextTokenExceptionAmazonClientException - 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.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)
Gets information about an application revision.
getApplicationRevision in interface AmazonCodeDeploygetApplicationRevisionRequest - Container for the necessary
parameters to execute the GetApplicationRevision service method on
AmazonCodeDeploy.InvalidRevisionExceptionRevisionRequiredExceptionInvalidApplicationNameExceptionRevisionDoesNotExistExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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 AmazonServiceException,
AmazonClientException
Changes an existing application's name.
updateApplication in interface AmazonCodeDeployInvalidApplicationNameExceptionApplicationAlreadyExistsExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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() throws AmazonServiceException, AmazonClientException
Lists the applications registered within the AWS user account.
listApplications in interface AmazonCodeDeployInvalidNextTokenExceptionAmazonClientException - 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.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() throws AmazonServiceException, AmazonClientException
Gets information about one or more applications.
batchGetApplications in interface AmazonCodeDeployInvalidApplicationNameExceptionApplicationDoesNotExistExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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() throws AmazonServiceException, AmazonClientException
Lists the deployments under a deployment group for an application registered within the AWS user account.
listDeployments in interface AmazonCodeDeployDeploymentGroupDoesNotExistExceptionInvalidDeploymentGroupNameExceptionInvalidApplicationNameExceptionInvalidTimeRangeExceptionDeploymentGroupNameRequiredExceptionInvalidNextTokenExceptionApplicationDoesNotExistExceptionInvalidDeploymentStatusExceptionApplicationNameRequiredExceptionAmazonClientException - 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.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() throws AmazonServiceException, AmazonClientException
Gets information about one or more deployments.
batchGetDeployments in interface AmazonCodeDeployInvalidDeploymentIdExceptionDeploymentIdRequiredExceptionAmazonClientException - 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.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 ListDeploymentConfigsResult listDeploymentConfigs() throws AmazonServiceException, AmazonClientException
Lists the deployment configurations within the AWS user account.
listDeploymentConfigs in interface AmazonCodeDeployInvalidNextTokenExceptionAmazonClientException - 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.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 setEndpoint(String endpoint)
AmazonWebServiceClientThis method is not threadsafe. Endpoints 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.
Callers can pass in just the endpoint (ex: "ec2.amazonaws.com") or a full
URL, including the protocol (ex: "https://ec2.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
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
setEndpoint in interface AmazonCodeDeploysetEndpoint in class AmazonWebServiceClientendpoint - The endpoint (ex: "ec2.amazonaws.com") or a full URL,
including the protocol (ex: "https://ec2.amazonaws.com") of
the region specific AWS endpoint this client will communicate
with.public void setEndpoint(String endpoint, String serviceName, String regionId) throws IllegalArgumentException
AmazonWebServiceClientOverrides the default endpoint for this client ("http://dynamodb.us-east-1.amazonaws.com/") and explicitly provides an AWS region ID and AWS service name to use when the client calculates a signature for requests. In almost all cases, this region ID and service name are automatically determined from the endpoint, and callers should use the simpler one-argument form of setEndpoint instead of this method.
Callers can pass in just the endpoint (ex:
"dynamodb.us-east-1.amazonaws.com/") or a full URL, including the
protocol (ex: "http://dynamodb.us-east-1.amazonaws.com/"). If the
protocol is not specified here, the default protocol from this client's
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
setEndpoint in class AmazonWebServiceClientendpoint - The endpoint (ex: "dynamodb.us-east-1.amazonaws.com/") or a
full URL, including the protocol (ex:
"http://dynamodb.us-east-1.amazonaws.com/") of the region
specific AWS endpoint this client will communicate with.serviceName - This parameter is ignored.regionId - The ID of the region in which this service resides AND the
overriding region for signing purposes.IllegalArgumentException - If any problems are detected with the specified endpoint.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 the request.
getCachedResponseMetadata in interface AmazonCodeDeployrequest - The originally executed requestCopyright © 2015. All rights reserved.