- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ContinueDeploymentCommand
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.)
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CodeDeployClient, ContinueDeploymentCommand } from "@aws-sdk/client-codedeploy"; // ES Modules import
// const { CodeDeployClient, ContinueDeploymentCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
const client = new CodeDeployClient(config);
const input = { // ContinueDeploymentInput
deploymentId: "STRING_VALUE",
deploymentWaitType: "READY_WAIT" || "TERMINATION_WAIT",
};
const command = new ContinueDeploymentCommand(input);
const response = await client.send(command);
// {};
ContinueDeploymentCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
deploymentId | string | undefined | The unique ID of a blue/green deployment for which you want to start rerouting traffic to the replacement environment. |
deploymentWaitType | DeploymentWaitType | undefined | The status of the deployment's waiting period. |
ContinueDeploymentCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
DeploymentAlreadyCompletedException | client | The deployment is already complete. |
DeploymentDoesNotExistException | client | The deployment with the user or Amazon Web Services account does not exist. |
DeploymentIdRequiredException | client | At least one deployment ID must be specified. |
DeploymentIsNotInReadyStateException | client | The deployment does not have a status of Ready and can't continue yet. |
InvalidDeploymentIdException | client | At least one of the deployment IDs was specified in an invalid format. |
InvalidDeploymentStatusException | client | The specified deployment status doesn't exist or cannot be determined. |
InvalidDeploymentWaitTypeException | client | The wait type is invalid. |
UnsupportedActionForDeploymentTypeException | client | A call was submitted that is not supported for the specified deployment type. |
CodeDeployServiceException | Base exception class for all service exceptions from CodeDeploy service. |