@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonCodeDeploy extends Object implements AmazonCodeDeploy
AmazonCodeDeploy
. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
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: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection- choose-endpoint
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
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 setRegion(Region region)
AmazonCodeDeploy
AmazonCodeDeploy.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.
setRegion
in interface AmazonCodeDeploy
region
- The region this client will communicate with. See Region.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
public AddTagsToOnPremisesInstancesResult addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request)
AmazonCodeDeploy
Adds tags to on-premises instances.
addTagsToOnPremisesInstances
in interface AmazonCodeDeploy
request
- Represents the input of, and adds tags to, an on-premises instance operation.public BatchGetApplicationRevisionsResult batchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request)
AmazonCodeDeploy
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
batchGetApplicationRevisions
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetApplicationRevisions operation.public BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest request)
AmazonCodeDeploy
Gets information about one or more applications. The maximum number of applications that can be returned is 25.
batchGetApplications
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetApplications operation.public BatchGetApplicationsResult batchGetApplications()
AmazonCodeDeploy
batchGetApplications
in interface AmazonCodeDeploy
AmazonCodeDeploy.batchGetApplications(BatchGetApplicationsRequest)
public BatchGetDeploymentGroupsResult batchGetDeploymentGroups(BatchGetDeploymentGroupsRequest request)
AmazonCodeDeploy
Gets information about one or more deployment groups.
batchGetDeploymentGroups
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetDeploymentGroups operation.@Deprecated public BatchGetDeploymentInstancesResult batchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request)
AmazonCodeDeploy
This method works, but is deprecated. Use BatchGetDeploymentTargets
instead.
Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises
and AWS Lambda compute platforms. The newer BatchGetDeploymentTargets
works with all compute
platforms. The maximum number of instances that can be returned is 25.
batchGetDeploymentInstances
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetDeploymentInstances operation.public BatchGetDeploymentTargetsResult batchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request)
AmazonCodeDeploy
Returns an array of one or more targets associated with a deployment. This method works with all compute types
and should be used instead of the deprecated BatchGetDeploymentInstances
. The maximum number of
targets that can be returned is 25.
The type of targets returned depends on the deployment's compute platform:
EC2/On-premises: Information about EC2 instance targets.
AWS Lambda: Information about Lambda functions targets.
Amazon ECS: Information about Amazon ECS service targets.
batchGetDeploymentTargets
in interface AmazonCodeDeploy
public BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest request)
AmazonCodeDeploy
Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.
batchGetDeployments
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetDeployments operation.public BatchGetDeploymentsResult batchGetDeployments()
AmazonCodeDeploy
batchGetDeployments
in interface AmazonCodeDeploy
AmazonCodeDeploy.batchGetDeployments(BatchGetDeploymentsRequest)
public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request)
AmazonCodeDeploy
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
batchGetOnPremisesInstances
in interface AmazonCodeDeploy
request
- Represents the input of a BatchGetOnPremisesInstances operation.public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances()
AmazonCodeDeploy
batchGetOnPremisesInstances
in interface AmazonCodeDeploy
AmazonCodeDeploy.batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest)
public ContinueDeploymentResult continueDeployment(ContinueDeploymentRequest request)
AmazonCodeDeploy
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)
continueDeployment
in interface AmazonCodeDeploy
public CreateApplicationResult createApplication(CreateApplicationRequest request)
AmazonCodeDeploy
Creates an application.
createApplication
in interface AmazonCodeDeploy
request
- Represents the input of a CreateApplication operation.public CreateDeploymentResult createDeployment(CreateDeploymentRequest request)
AmazonCodeDeploy
Deploys an application revision through the specified deployment group.
createDeployment
in interface AmazonCodeDeploy
request
- Represents the input of a CreateDeployment operation.public CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest request)
AmazonCodeDeploy
Creates a deployment configuration.
createDeploymentConfig
in interface AmazonCodeDeploy
request
- Represents the input of a CreateDeploymentConfig operation.public CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest request)
AmazonCodeDeploy
Creates a deployment group to which application revisions are deployed.
createDeploymentGroup
in interface AmazonCodeDeploy
request
- Represents the input of a CreateDeploymentGroup operation.public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request)
AmazonCodeDeploy
Deletes an application.
deleteApplication
in interface AmazonCodeDeploy
request
- Represents the input of a DeleteApplication operation.public DeleteDeploymentConfigResult deleteDeploymentConfig(DeleteDeploymentConfigRequest request)
AmazonCodeDeploy
Deletes a deployment configuration.
A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.
deleteDeploymentConfig
in interface AmazonCodeDeploy
request
- Represents the input of a DeleteDeploymentConfig operation.public DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest request)
AmazonCodeDeploy
Deletes a deployment group.
deleteDeploymentGroup
in interface AmazonCodeDeploy
request
- Represents the input of a DeleteDeploymentGroup operation.public DeleteGitHubAccountTokenResult deleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request)
AmazonCodeDeploy
Deletes a GitHub account connection.
deleteGitHubAccountToken
in interface AmazonCodeDeploy
request
- Represents the input of a DeleteGitHubAccount operation.public DeregisterOnPremisesInstanceResult deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request)
AmazonCodeDeploy
Deregisters an on-premises instance.
deregisterOnPremisesInstance
in interface AmazonCodeDeploy
request
- Represents the input of a DeregisterOnPremisesInstance operation.public GetApplicationResult getApplication(GetApplicationRequest request)
AmazonCodeDeploy
Gets information about an application.
getApplication
in interface AmazonCodeDeploy
request
- Represents the input of a GetApplication operation.public GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest request)
AmazonCodeDeploy
Gets information about an application revision.
getApplicationRevision
in interface AmazonCodeDeploy
request
- Represents the input of a GetApplicationRevision operation.public GetDeploymentResult getDeployment(GetDeploymentRequest request)
AmazonCodeDeploy
Gets information about a deployment.
The content
property of the appSpecContent
object in the returned revision is always
null. Use GetApplicationRevision
and the sha256
property of the returned
appSpecContent
object to get the content of the deployment’s AppSpec file.
getDeployment
in interface AmazonCodeDeploy
request
- Represents the input of a GetDeployment operation.public GetDeploymentConfigResult getDeploymentConfig(GetDeploymentConfigRequest request)
AmazonCodeDeploy
Gets information about a deployment configuration.
getDeploymentConfig
in interface AmazonCodeDeploy
request
- Represents the input of a GetDeploymentConfig operation.public GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest request)
AmazonCodeDeploy
Gets information about a deployment group.
getDeploymentGroup
in interface AmazonCodeDeploy
request
- Represents the input of a GetDeploymentGroup operation.@Deprecated public GetDeploymentInstanceResult getDeploymentInstance(GetDeploymentInstanceRequest request)
AmazonCodeDeploy
Gets information about an instance as part of a deployment.
getDeploymentInstance
in interface AmazonCodeDeploy
request
- Represents the input of a GetDeploymentInstance operation.public GetDeploymentTargetResult getDeploymentTarget(GetDeploymentTargetRequest request)
AmazonCodeDeploy
Returns information about a deployment target.
getDeploymentTarget
in interface AmazonCodeDeploy
public GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest request)
AmazonCodeDeploy
Gets information about an on-premises instance.
getOnPremisesInstance
in interface AmazonCodeDeploy
request
- Represents the input of a GetOnPremisesInstance operation.public ListApplicationRevisionsResult listApplicationRevisions(ListApplicationRevisionsRequest request)
AmazonCodeDeploy
Lists information about revisions for an application.
listApplicationRevisions
in interface AmazonCodeDeploy
request
- Represents the input of a ListApplicationRevisions operation.public ListApplicationsResult listApplications(ListApplicationsRequest request)
AmazonCodeDeploy
Lists the applications registered with the IAM user or AWS account.
listApplications
in interface AmazonCodeDeploy
request
- Represents the input of a ListApplications operation.public ListApplicationsResult listApplications()
AmazonCodeDeploy
listApplications
in interface AmazonCodeDeploy
AmazonCodeDeploy.listApplications(ListApplicationsRequest)
public ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest request)
AmazonCodeDeploy
Lists the deployment configurations with the IAM user or AWS account.
listDeploymentConfigs
in interface AmazonCodeDeploy
request
- Represents the input of a ListDeploymentConfigs operation.public ListDeploymentConfigsResult listDeploymentConfigs()
AmazonCodeDeploy
listDeploymentConfigs
in interface AmazonCodeDeploy
AmazonCodeDeploy.listDeploymentConfigs(ListDeploymentConfigsRequest)
public ListDeploymentGroupsResult listDeploymentGroups(ListDeploymentGroupsRequest request)
AmazonCodeDeploy
Lists the deployment groups for an application registered with the IAM user or AWS account.
listDeploymentGroups
in interface AmazonCodeDeploy
request
- Represents the input of a ListDeploymentGroups operation.@Deprecated public ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest request)
AmazonCodeDeploy
The newer BatchGetDeploymentTargets should be used instead because it works with all compute types.
ListDeploymentInstances
throws an exception if it is used with a compute platform other than
EC2/On-premises or AWS Lambda.
Lists the instance for a deployment associated with the IAM user or AWS account.
listDeploymentInstances
in interface AmazonCodeDeploy
request
- Represents the input of a ListDeploymentInstances operation.public ListDeploymentTargetsResult listDeploymentTargets(ListDeploymentTargetsRequest request)
AmazonCodeDeploy
Returns an array of target IDs that are associated a deployment.
listDeploymentTargets
in interface AmazonCodeDeploy
public ListDeploymentsResult listDeployments(ListDeploymentsRequest request)
AmazonCodeDeploy
Lists the deployments in a deployment group for an application registered with the IAM user or AWS account.
listDeployments
in interface AmazonCodeDeploy
request
- Represents the input of a ListDeployments operation.public ListDeploymentsResult listDeployments()
AmazonCodeDeploy
listDeployments
in interface AmazonCodeDeploy
AmazonCodeDeploy.listDeployments(ListDeploymentsRequest)
public ListGitHubAccountTokenNamesResult listGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request)
AmazonCodeDeploy
Lists the names of stored connections to GitHub accounts.
listGitHubAccountTokenNames
in interface AmazonCodeDeploy
request
- Represents the input of a ListGitHubAccountTokenNames operation.public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest request)
AmazonCodeDeploy
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
listOnPremisesInstances
in interface AmazonCodeDeploy
request
- Represents the input of a ListOnPremisesInstances operation.public ListOnPremisesInstancesResult listOnPremisesInstances()
AmazonCodeDeploy
listOnPremisesInstances
in interface AmazonCodeDeploy
AmazonCodeDeploy.listOnPremisesInstances(ListOnPremisesInstancesRequest)
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
AmazonCodeDeploy
Returns a list of tags for the resource identified by a specified ARN. Tags are used to organize and categorize your CodeDeploy resources.
listTagsForResource
in interface AmazonCodeDeploy
public PutLifecycleEventHookExecutionStatusResult putLifecycleEventHookExecutionStatus(PutLifecycleEventHookExecutionStatusRequest request)
AmazonCodeDeploy
Sets the result of a Lambda validation function. The function validates one or both lifecycle events (
BeforeAllowTraffic
and AfterAllowTraffic
) and returns Succeeded
or
Failed
.
putLifecycleEventHookExecutionStatus
in interface AmazonCodeDeploy
public RegisterApplicationRevisionResult registerApplicationRevision(RegisterApplicationRevisionRequest request)
AmazonCodeDeploy
Registers with AWS CodeDeploy a revision for the specified application.
registerApplicationRevision
in interface AmazonCodeDeploy
request
- Represents the input of a RegisterApplicationRevision operation.public RegisterOnPremisesInstanceResult registerOnPremisesInstance(RegisterOnPremisesInstanceRequest request)
AmazonCodeDeploy
Registers an on-premises instance.
Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
registerOnPremisesInstance
in interface AmazonCodeDeploy
request
- Represents the input of the register on-premises instance operation.public RemoveTagsFromOnPremisesInstancesResult removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request)
AmazonCodeDeploy
Removes one or more tags from one or more on-premises instances.
removeTagsFromOnPremisesInstances
in interface AmazonCodeDeploy
request
- Represents the input of a RemoveTagsFromOnPremisesInstances operation.@Deprecated public SkipWaitTimeForInstanceTerminationResult skipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request)
AmazonCodeDeploy
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
skipWaitTimeForInstanceTermination
in interface AmazonCodeDeploy
public StopDeploymentResult stopDeployment(StopDeploymentRequest request)
AmazonCodeDeploy
Attempts to stop an ongoing deployment.
stopDeployment
in interface AmazonCodeDeploy
request
- Represents the input of a StopDeployment operation.public TagResourceResult tagResource(TagResourceRequest request)
AmazonCodeDeploy
Associates the list of tags in the input Tags
parameter with the resource identified by the
ResourceArn
input parameter.
tagResource
in interface AmazonCodeDeploy
public UntagResourceResult untagResource(UntagResourceRequest request)
AmazonCodeDeploy
Disassociates a resource from a list of tags. The resource is identified by the ResourceArn
input
parameter. The tags are identfied by the list of keys in the TagKeys
input parameter.
untagResource
in interface AmazonCodeDeploy
public UpdateApplicationResult updateApplication(UpdateApplicationRequest request)
AmazonCodeDeploy
Changes the name of an application.
updateApplication
in interface AmazonCodeDeploy
request
- Represents the input of an UpdateApplication operation.public UpdateApplicationResult updateApplication()
AmazonCodeDeploy
updateApplication
in interface AmazonCodeDeploy
AmazonCodeDeploy.updateApplication(UpdateApplicationRequest)
public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest request)
AmazonCodeDeploy
Changes information about a deployment group.
updateDeploymentGroup
in interface AmazonCodeDeploy
request
- Represents the input of an UpdateDeploymentGroup operation.public void shutdown()
AmazonCodeDeploy
shutdown
in interface AmazonCodeDeploy
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonCodeDeploy
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.
getCachedResponseMetadata
in interface AmazonCodeDeploy
request
- The originally executed request.public AmazonCodeDeployWaiters waiters()
waiters
in interface AmazonCodeDeploy
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.