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 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 | 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 |
---|---|
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 |
setEndpoint(String endpoint,
String serviceName,
String regionId) |
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, beforeMarshalling, configSigner, configSigner, configureRegion, 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, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setRegion, shutdown
protected 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.
DefaultAWSCredentialsProviderChain
public 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.).DefaultAWSCredentialsProviderChain
public 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 void deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest deregisterOnPremisesInstanceRequest)
Deregisters an on-premises instance.
deregisterOnPremisesInstance
in interface AmazonCodeDeploy
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.public void updateApplication(UpdateApplicationRequest updateApplicationRequest)
Changes an existing application's name.
updateApplication
in interface AmazonCodeDeploy
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.public ListApplicationsResult listApplications(ListApplicationsRequest listApplicationsRequest)
Lists the applications registered with the applicable IAM user or AWS account.
listApplications
in interface AmazonCodeDeploy
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.public DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest deleteDeploymentGroupRequest)
Deletes a deployment group.
deleteDeploymentGroup
in interface AmazonCodeDeploy
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.public void addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest addTagsToOnPremisesInstancesRequest)
Adds a tag to an on-premises instance.
addTagsToOnPremisesInstances
in interface AmazonCodeDeploy
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.public ListDeploymentsResult listDeployments(ListDeploymentsRequest listDeploymentsRequest)
Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.
listDeployments
in interface AmazonCodeDeploy
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.public StopDeploymentResult stopDeployment(StopDeploymentRequest stopDeploymentRequest)
Attempts to stop an ongoing deployment.
stopDeployment
in interface AmazonCodeDeploy
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.public CreateApplicationResult createApplication(CreateApplicationRequest createApplicationRequest)
Creates a new application.
createApplication
in interface AmazonCodeDeploy
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.public GetApplicationResult getApplication(GetApplicationRequest getApplicationRequest)
Gets information about an application.
getApplication
in interface AmazonCodeDeploy
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.public CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest createDeploymentGroupRequest)
Creates a new deployment group for application revisions to be deployed to.
createDeploymentGroup
in interface AmazonCodeDeploy
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.public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest batchGetOnPremisesInstancesRequest)
Gets information about one or more on-premises instances.
batchGetOnPremisesInstances
in interface AmazonCodeDeploy
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.public BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest batchGetDeploymentsRequest)
Gets information about one or more deployments.
batchGetDeployments
in interface AmazonCodeDeploy
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.public GetDeploymentInstanceResult getDeploymentInstance(GetDeploymentInstanceRequest getDeploymentInstanceRequest)
Gets information about an instance as part of a deployment.
getDeploymentInstance
in interface AmazonCodeDeploy
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.public GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest getApplicationRevisionRequest)
Gets information about an application revision.
getApplicationRevision
in interface AmazonCodeDeploy
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.public void registerOnPremisesInstance(RegisterOnPremisesInstanceRequest registerOnPremisesInstanceRequest)
Registers an on-premises instance.
registerOnPremisesInstance
in interface AmazonCodeDeploy
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.public GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest getDeploymentGroupRequest)
Gets information about a deployment group.
getDeploymentGroup
in interface AmazonCodeDeploy
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.public CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest createDeploymentConfigRequest)
Creates a new deployment configuration.
createDeploymentConfig
in interface AmazonCodeDeploy
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.public ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest listDeploymentInstancesRequest)
Lists the instances for a deployment associated with the applicable IAM user or AWS account.
listDeploymentInstances
in interface AmazonCodeDeploy
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.public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest listOnPremisesInstancesRequest)
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.
listOnPremisesInstances
in interface AmazonCodeDeploy
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.public ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest listDeploymentGroupsRequest)
Lists the deployment groups for an application registered with the applicable IAM user or AWS account.
listDeploymentGroups
in interface AmazonCodeDeploy
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.public GetDeploymentConfigResult getDeploymentConfig(GetDeploymentConfigRequest getDeploymentConfigRequest)
Gets information about a deployment configuration.
getDeploymentConfig
in interface AmazonCodeDeploy
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.public void registerApplicationRevision(RegisterApplicationRevisionRequest registerApplicationRevisionRequest)
Registers with AWS CodeDeploy a revision for the specified application.
registerApplicationRevision
in interface AmazonCodeDeploy
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.public BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest batchGetApplicationsRequest)
Gets information about one or more applications.
batchGetApplications
in interface AmazonCodeDeploy
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.public GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest getOnPremisesInstanceRequest)
Gets information about an on-premises instance.
getOnPremisesInstance
in interface AmazonCodeDeploy
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.public ListApplicationRevisionsResult listApplicationRevisions(ListApplicationRevisionsRequest listApplicationRevisionsRequest)
Lists information about revisions for an application.
listApplicationRevisions
in interface AmazonCodeDeploy
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.public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest updateDeploymentGroupRequest)
Changes information about an existing deployment group.
updateDeploymentGroup
in interface AmazonCodeDeploy
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.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 AmazonCodeDeploy
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.public void deleteApplication(DeleteApplicationRequest deleteApplicationRequest)
Deletes an application.
deleteApplication
in interface AmazonCodeDeploy
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.public GetDeploymentResult getDeployment(GetDeploymentRequest getDeploymentRequest)
Gets information about a deployment.
getDeployment
in interface AmazonCodeDeploy
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.public CreateDeploymentResult createDeployment(CreateDeploymentRequest createDeploymentRequest)
Deploys an application revision through the specified deployment group.
createDeployment
in interface AmazonCodeDeploy
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.public void removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest removeTagsFromOnPremisesInstancesRequest)
Removes one or more tags from one or more on-premises instances.
removeTagsFromOnPremisesInstances
in interface AmazonCodeDeploy
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.public ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest listDeploymentConfigsRequest)
Lists the deployment configurations with the applicable IAM user or AWS account.
listDeploymentConfigs
in interface AmazonCodeDeploy
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.public void updateApplication() throws AmazonServiceException, AmazonClientException
Changes an existing application's name.
updateApplication
in interface 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.public ListApplicationsResult listApplications() throws AmazonServiceException, AmazonClientException
Lists the applications registered with the applicable IAM user or AWS account.
listApplications
in interface 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.public ListDeploymentsResult listDeployments() throws AmazonServiceException, AmazonClientException
Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.
listDeployments
in interface 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.public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances() throws AmazonServiceException, AmazonClientException
Gets information about one or more on-premises instances.
batchGetOnPremisesInstances
in interface 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.public BatchGetDeploymentsResult batchGetDeployments() throws AmazonServiceException, AmazonClientException
Gets information about one or more deployments.
batchGetDeployments
in interface 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.public 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.
listOnPremisesInstances
in interface 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.public BatchGetApplicationsResult batchGetApplications() throws AmazonServiceException, AmazonClientException
Gets information about one or more applications.
batchGetApplications
in interface 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.public ListDeploymentConfigsResult listDeploymentConfigs() throws AmazonServiceException, AmazonClientException
Lists the deployment configurations with the applicable IAM user or AWS account.
listDeploymentConfigs
in interface 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.public void setEndpoint(String endpoint)
AmazonCodeDeploy
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.
setEndpoint
in interface AmazonCodeDeploy
setEndpoint
in class AmazonWebServiceClient
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.public void setEndpoint(String endpoint, String serviceName, String regionId) throws IllegalArgumentException
setEndpoint
in class AmazonWebServiceClient
IllegalArgumentException
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 AmazonCodeDeploy
request
- The originally executed requestCopyright © 2015. All rights reserved.