public interface AmazonCodeDeploy
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 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.
Modifier and Type | Method and Description |
---|---|
void |
addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest)
Adds a tag to an on-premises instance.
|
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.
|
BatchGetOnPremisesInstancesResult |
batchGetOnPremisesInstances()
Gets information about one or more on-premises instances.
|
BatchGetOnPremisesInstancesResult |
batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest batchGetOnPremisesInstancesRequest)
Gets information about one or more on-premises instances.
|
CreateApplicationResult |
createApplication(CreateApplicationRequest createApplicationRequest)
Creates a new application.
|
CreateDeploymentResult |
createDeployment(CreateDeploymentRequest createDeploymentRequest)
Deploys an application revision through 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.
|
void |
deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest)
Deregisters an on-premises instance.
|
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 instance as part of a deployment.
|
GetOnPremisesInstanceResult |
getOnPremisesInstance(GetOnPremisesInstanceRequest getOnPremisesInstanceRequest)
Gets information about an on-premises instance.
|
ListApplicationRevisionsResult |
listApplicationRevisions(ListApplicationRevisionsRequest listApplicationRevisionsRequest)
Lists information about revisions for an application.
|
ListApplicationsResult |
listApplications()
Lists the applications registered with the applicable IAM user or AWS
account.
|
ListApplicationsResult |
listApplications(ListApplicationsRequest listApplicationsRequest)
Lists the applications registered with the applicable IAM user or AWS
account.
|
ListDeploymentConfigsResult |
listDeploymentConfigs()
Lists the deployment configurations with the applicable IAM user or
AWS account.
|
ListDeploymentConfigsResult |
listDeploymentConfigs(ListDeploymentConfigsRequest listDeploymentConfigsRequest)
Lists the deployment configurations with the applicable IAM user or
AWS account.
|
ListDeploymentGroupsResult |
listDeploymentGroups(ListDeploymentGroupsRequest listDeploymentGroupsRequest)
Lists the deployment groups for an application registered with the
applicable IAM user or AWS account.
|
ListDeploymentInstancesResult |
listDeploymentInstances(ListDeploymentInstancesRequest listDeploymentInstancesRequest)
Lists the instances for a deployment associated with the applicable
IAM user or AWS account.
|
ListDeploymentsResult |
listDeployments()
Lists the deployments within a deployment group for an application
registered with the applicable IAM user or AWS account.
|
ListDeploymentsResult |
listDeployments(ListDeploymentsRequest listDeploymentsRequest)
Lists the deployments within a deployment group for an application
registered with the applicable IAM user or AWS account.
|
ListOnPremisesInstancesResult |
listOnPremisesInstances()
Gets a list of one or more on-premises instance names.
|
ListOnPremisesInstancesResult |
listOnPremisesInstances(ListOnPremisesInstancesRequest listOnPremisesInstancesRequest)
Gets a list of one or more on-premises instance names.
|
void |
registerApplicationRevision(RegisterApplicationRevisionRequest registerApplicationRevisionRequest)
Registers with AWS CodeDeploy a revision for the specified
application.
|
void |
registerOnPremisesInstance(RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest)
Registers an on-premises instance.
|
void |
removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest removeTagsFromOnPremisesInstancesRequest)
Removes one or more tags from one or more on-premises instances.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://codedeploy.us-east-1.amazonaws.com/").
|
void |
setRegion(Region region)
An alternative to
setEndpoint(String) , sets the
regional endpoint for this client's service calls. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
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.
|
void setEndpoint(String endpoint) throws IllegalArgumentException
Callers can pass in just the endpoint (ex: "codedeploy.us-east-1.amazonaws.com/") or a full
URL, including the protocol (ex: "https://codedeploy.us-east-1.amazonaws.com/"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
endpoint
- The endpoint (ex: "codedeploy.us-east-1.amazonaws.com/") or a full URL,
including the protocol (ex: "https://codedeploy.us-east-1.amazonaws.com/") of
the region specific AWS endpoint this client will communicate
with.IllegalArgumentException
- If any problems are detected with the specified endpoint.void setRegion(Region region) throws IllegalArgumentException
setEndpoint(String)
, sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
region
- The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions)
for
accessing a given region.IllegalArgumentException
- If the given region is null, or if this service isn't
available in the given region. See
Region.isServiceSupported(String)
Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
void deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest) throws AmazonServiceException, AmazonClientException
Deregisters an on-premises instance.
deregisterOnPremisesInstanceRequest
- Container for the necessary
parameters to execute the DeregisterOnPremisesInstance service method
on AmazonCodeDeploy.InvalidInstanceNameException
InstanceNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void updateApplication(UpdateApplicationRequest updateApplicationRequest) throws AmazonServiceException, AmazonClientException
Changes an existing application's name.
updateApplicationRequest
- Container for the necessary parameters
to execute the UpdateApplication service method on AmazonCodeDeploy.InvalidApplicationNameException
ApplicationAlreadyExistsException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListApplicationsResult listApplications(ListApplicationsRequest listApplicationsRequest) throws AmazonServiceException, AmazonClientException
Lists the applications registered with the applicable IAM user or AWS account.
listApplicationsRequest
- Container for the necessary parameters
to execute the ListApplications service method on AmazonCodeDeploy.InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest deleteDeploymentGroupRequest) throws AmazonServiceException, AmazonClientException
Deletes a deployment group.
deleteDeploymentGroupRequest
- Container for the necessary
parameters to execute the DeleteDeploymentGroup service method on
AmazonCodeDeploy.InvalidRoleException
InvalidDeploymentGroupNameException
InvalidApplicationNameException
DeploymentGroupNameRequiredException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest) throws AmazonServiceException, AmazonClientException
Adds a tag to an on-premises instance.
addTagsToOnPremisesInstancesRequest
- Container for the necessary
parameters to execute the AddTagsToOnPremisesInstances service method
on AmazonCodeDeploy.InstanceNotRegisteredException
TagLimitExceededException
InstanceLimitExceededException
InvalidTagException
InstanceNameRequiredException
TagRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentsResult listDeployments(ListDeploymentsRequest listDeploymentsRequest) throws AmazonServiceException, AmazonClientException
Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.
listDeploymentsRequest
- Container for the necessary parameters
to execute the ListDeployments service method on AmazonCodeDeploy.DeploymentGroupDoesNotExistException
InvalidDeploymentGroupNameException
InvalidApplicationNameException
InvalidTimeRangeException
DeploymentGroupNameRequiredException
InvalidNextTokenException
ApplicationDoesNotExistException
InvalidDeploymentStatusException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.StopDeploymentResult stopDeployment(StopDeploymentRequest stopDeploymentRequest) throws AmazonServiceException, AmazonClientException
Attempts to stop an ongoing deployment.
stopDeploymentRequest
- Container for the necessary parameters to
execute the StopDeployment service method on AmazonCodeDeploy.InvalidDeploymentIdException
DeploymentAlreadyCompletedException
DeploymentIdRequiredException
DeploymentDoesNotExistException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.CreateApplicationResult createApplication(CreateApplicationRequest createApplicationRequest) throws AmazonServiceException, AmazonClientException
Creates a new application.
createApplicationRequest
- Container for the necessary parameters
to execute the CreateApplication service method on AmazonCodeDeploy.InvalidApplicationNameException
ApplicationAlreadyExistsException
ApplicationLimitExceededException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetApplicationResult getApplication(GetApplicationRequest getApplicationRequest) throws AmazonServiceException, AmazonClientException
Gets information about an application.
getApplicationRequest
- Container for the necessary parameters to
execute the GetApplication service method on AmazonCodeDeploy.InvalidApplicationNameException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest createDeploymentGroupRequest) throws AmazonServiceException, AmazonClientException
Creates a new deployment group for application revisions to be deployed to.
createDeploymentGroupRequest
- Container for the necessary
parameters to execute the CreateDeploymentGroup service method on
AmazonCodeDeploy.RoleRequiredException
InvalidRoleException
InvalidDeploymentGroupNameException
DeploymentConfigDoesNotExistException
InvalidAutoScalingGroupException
InvalidApplicationNameException
DeploymentGroupNameRequiredException
InvalidDeploymentConfigNameException
DeploymentGroupAlreadyExistsException
InvalidTagException
DeploymentGroupLimitExceededException
ApplicationDoesNotExistException
ApplicationNameRequiredException
InvalidEC2TagException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest batchGetOnPremisesInstancesRequest) throws AmazonServiceException, AmazonClientException
Gets information about one or more on-premises instances.
batchGetOnPremisesInstancesRequest
- Container for the necessary
parameters to execute the BatchGetOnPremisesInstances service method
on AmazonCodeDeploy.InvalidInstanceNameException
InstanceNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest batchGetDeploymentsRequest) throws AmazonServiceException, AmazonClientException
Gets information about one or more deployments.
batchGetDeploymentsRequest
- Container for the necessary
parameters to execute the BatchGetDeployments service method on
AmazonCodeDeploy.InvalidDeploymentIdException
DeploymentIdRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetDeploymentInstanceResult getDeploymentInstance(GetDeploymentInstanceRequest getDeploymentInstanceRequest) throws AmazonServiceException, AmazonClientException
Gets information about an instance as part of a deployment.
getDeploymentInstanceRequest
- Container for the necessary
parameters to execute the GetDeploymentInstance service method on
AmazonCodeDeploy.InvalidDeploymentIdException
InstanceIdRequiredException
DeploymentIdRequiredException
DeploymentDoesNotExistException
InstanceDoesNotExistException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest getApplicationRevisionRequest) throws AmazonServiceException, AmazonClientException
Gets information about an application revision.
getApplicationRevisionRequest
- Container for the necessary
parameters to execute the GetApplicationRevision service method on
AmazonCodeDeploy.InvalidRevisionException
RevisionRequiredException
InvalidApplicationNameException
RevisionDoesNotExistException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void registerOnPremisesInstance(RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest) throws AmazonServiceException, AmazonClientException
Registers an on-premises instance.
registerOnPremisesInstanceRequest
- Container for the necessary
parameters to execute the RegisterOnPremisesInstance service method on
AmazonCodeDeploy.InvalidIamUserArnException
InvalidInstanceNameException
InstanceNameRequiredException
InstanceNameAlreadyRegisteredException
IamUserArnAlreadyRegisteredException
IamUserArnRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest) throws AmazonServiceException, AmazonClientException
Gets information about a deployment group.
getDeploymentGroupRequest
- Container for the necessary
parameters to execute the GetDeploymentGroup service method on
AmazonCodeDeploy.DeploymentGroupDoesNotExistException
InvalidDeploymentGroupNameException
InvalidApplicationNameException
DeploymentGroupNameRequiredException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest createDeploymentConfigRequest) throws AmazonServiceException, AmazonClientException
Creates a new deployment configuration.
createDeploymentConfigRequest
- Container for the necessary
parameters to execute the CreateDeploymentConfig service method on
AmazonCodeDeploy.DeploymentConfigLimitExceededException
InvalidMinimumHealthyHostValueException
InvalidDeploymentConfigNameException
DeploymentConfigAlreadyExistsException
DeploymentConfigNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest listDeploymentInstancesRequest) throws AmazonServiceException, AmazonClientException
Lists the instances for a deployment associated with the applicable IAM user or AWS account.
listDeploymentInstancesRequest
- Container for the necessary
parameters to execute the ListDeploymentInstances service method on
AmazonCodeDeploy.InvalidDeploymentIdException
InvalidInstanceStatusException
DeploymentIdRequiredException
DeploymentDoesNotExistException
DeploymentNotStartedException
InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest listOnPremisesInstancesRequest) throws AmazonServiceException, AmazonClientException
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.
listOnPremisesInstancesRequest
- Container for the necessary
parameters to execute the ListOnPremisesInstances service method on
AmazonCodeDeploy.InvalidTagFilterException
InvalidRegistrationStatusException
InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest listDeploymentGroupsRequest) throws AmazonServiceException, AmazonClientException
Lists the deployment groups for an application registered with the applicable IAM user or AWS account.
listDeploymentGroupsRequest
- Container for the necessary
parameters to execute the ListDeploymentGroups service method on
AmazonCodeDeploy.InvalidApplicationNameException
InvalidNextTokenException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetDeploymentConfigResult getDeploymentConfig(GetDeploymentConfigRequest getDeploymentConfigRequest) throws AmazonServiceException, AmazonClientException
Gets information about a deployment configuration.
getDeploymentConfigRequest
- Container for the necessary
parameters to execute the GetDeploymentConfig service method on
AmazonCodeDeploy.DeploymentConfigDoesNotExistException
InvalidDeploymentConfigNameException
DeploymentConfigNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void registerApplicationRevision(RegisterApplicationRevisionRequest registerApplicationRevisionRequest) throws AmazonServiceException, AmazonClientException
Registers with AWS CodeDeploy a revision for the specified application.
registerApplicationRevisionRequest
- Container for the necessary
parameters to execute the RegisterApplicationRevision service method
on AmazonCodeDeploy.InvalidRevisionException
RevisionRequiredException
InvalidApplicationNameException
DescriptionTooLongException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest batchGetApplicationsRequest) throws AmazonServiceException, AmazonClientException
Gets information about one or more applications.
batchGetApplicationsRequest
- Container for the necessary
parameters to execute the BatchGetApplications service method on
AmazonCodeDeploy.InvalidApplicationNameException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest getOnPremisesInstanceRequest) throws AmazonServiceException, AmazonClientException
Gets information about an on-premises instance.
getOnPremisesInstanceRequest
- Container for the necessary
parameters to execute the GetOnPremisesInstance service method on
AmazonCodeDeploy.InstanceNotRegisteredException
InvalidInstanceNameException
InstanceNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListApplicationRevisionsResult listApplicationRevisions(ListApplicationRevisionsRequest listApplicationRevisionsRequest) throws AmazonServiceException, AmazonClientException
Lists information about revisions for an application.
listApplicationRevisionsRequest
- Container for the necessary
parameters to execute the ListApplicationRevisions service method on
AmazonCodeDeploy.InvalidSortByException
InvalidApplicationNameException
InvalidKeyPrefixFilterException
InvalidNextTokenException
BucketNameFilterRequiredException
InvalidSortOrderException
InvalidDeployedStateFilterException
ApplicationDoesNotExistException
ApplicationNameRequiredException
InvalidBucketNameFilterException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest updateDeploymentGroupRequest) throws AmazonServiceException, AmazonClientException
Changes information about an existing deployment group.
updateDeploymentGroupRequest
- Container for the necessary
parameters to execute the UpdateDeploymentGroup service method on
AmazonCodeDeploy.InvalidRoleException
DeploymentGroupDoesNotExistException
InvalidDeploymentGroupNameException
DeploymentConfigDoesNotExistException
InvalidApplicationNameException
InvalidAutoScalingGroupException
DeploymentGroupNameRequiredException
InvalidDeploymentConfigNameException
DeploymentGroupAlreadyExistsException
InvalidTagException
ApplicationDoesNotExistException
ApplicationNameRequiredException
InvalidEC2TagException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void deleteDeploymentConfig(DeleteDeploymentConfigRequest deleteDeploymentConfigRequest) throws AmazonServiceException, AmazonClientException
Deletes a deployment configuration.
NOTE:A deployment configuration cannot be deleted if it is currently in use. Also, predefined configurations cannot be deleted.
deleteDeploymentConfigRequest
- Container for the necessary
parameters to execute the DeleteDeploymentConfig service method on
AmazonCodeDeploy.InvalidOperationException
InvalidDeploymentConfigNameException
DeploymentConfigInUseException
DeploymentConfigNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws AmazonServiceException, AmazonClientException
Deletes an application.
deleteApplicationRequest
- Container for the necessary parameters
to execute the DeleteApplication service method on AmazonCodeDeploy.InvalidApplicationNameException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.GetDeploymentResult getDeployment(GetDeploymentRequest getDeploymentRequest) throws AmazonServiceException, AmazonClientException
Gets information about a deployment.
getDeploymentRequest
- Container for the necessary parameters to
execute the GetDeployment service method on AmazonCodeDeploy.InvalidDeploymentIdException
DeploymentIdRequiredException
DeploymentDoesNotExistException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.CreateDeploymentResult createDeployment(CreateDeploymentRequest createDeploymentRequest) throws AmazonServiceException, AmazonClientException
Deploys an application revision through the specified deployment group.
createDeploymentRequest
- Container for the necessary parameters
to execute the CreateDeployment service method on AmazonCodeDeploy.InvalidRevisionException
DeploymentGroupDoesNotExistException
RevisionRequiredException
InvalidDeploymentGroupNameException
DeploymentConfigDoesNotExistException
InvalidApplicationNameException
DeploymentGroupNameRequiredException
DescriptionTooLongException
InvalidDeploymentConfigNameException
DeploymentLimitExceededException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest removeTagsFromOnPremisesInstancesRequest) throws AmazonServiceException, AmazonClientException
Removes one or more tags from one or more on-premises instances.
removeTagsFromOnPremisesInstancesRequest
- Container for the
necessary parameters to execute the RemoveTagsFromOnPremisesInstances
service method on AmazonCodeDeploy.InstanceNotRegisteredException
TagLimitExceededException
InstanceLimitExceededException
InvalidTagException
InstanceNameRequiredException
TagRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest listDeploymentConfigsRequest) throws AmazonServiceException, AmazonClientException
Lists the deployment configurations with the applicable IAM user or AWS account.
listDeploymentConfigsRequest
- Container for the necessary
parameters to execute the ListDeploymentConfigs service method on
AmazonCodeDeploy.InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void updateApplication() throws AmazonServiceException, AmazonClientException
Changes an existing application's name.
InvalidApplicationNameException
ApplicationAlreadyExistsException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListApplicationsResult listApplications() throws AmazonServiceException, AmazonClientException
Lists the applications registered with the applicable IAM user or AWS account.
InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentsResult listDeployments() throws AmazonServiceException, AmazonClientException
Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.
DeploymentGroupDoesNotExistException
InvalidDeploymentGroupNameException
InvalidApplicationNameException
InvalidTimeRangeException
DeploymentGroupNameRequiredException
InvalidNextTokenException
ApplicationDoesNotExistException
InvalidDeploymentStatusException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances() throws AmazonServiceException, AmazonClientException
Gets information about one or more on-premises instances.
InvalidInstanceNameException
InstanceNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetDeploymentsResult batchGetDeployments() throws AmazonServiceException, AmazonClientException
Gets information about one or more deployments.
InvalidDeploymentIdException
DeploymentIdRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListOnPremisesInstancesResult listOnPremisesInstances() throws AmazonServiceException, AmazonClientException
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.
InvalidTagFilterException
InvalidRegistrationStatusException
InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.BatchGetApplicationsResult batchGetApplications() throws AmazonServiceException, AmazonClientException
Gets information about one or more applications.
InvalidApplicationNameException
ApplicationDoesNotExistException
ApplicationNameRequiredException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.ListDeploymentConfigsResult listDeploymentConfigs() throws AmazonServiceException, AmazonClientException
Lists the deployment configurations with the applicable IAM user or AWS account.
InvalidNextTokenException
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.AmazonServiceException
- If an error response is returned by AmazonCodeDeploy indicating
either a problem with the data in the request, or a server side issue.void shutdown()
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 a request.
request
- The originally executed request.Copyright © 2015. All rights reserved.