list_deployment_instances
¶
list_deployment_instances(
deployment_id: DeploymentId,
*,
config_overrides: Optional[CodeDeployClientConfig] = None,
next_token: Optional[NextToken] = None,
instance_status_filter: Optional[InstanceStatusList] = None,
instance_type_filter: Optional[InstanceTypeList] = None,
) -> ListDeploymentInstancesOutput
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 Lambda.
Lists the instance for a deployment associated with the user or Amazon Web Services account.
Parameters:
-
deployment_id(DeploymentId) –The unique ID of a deployment.
-
next_token(Optional[NextToken], default:None) –An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list.
-
instance_status_filter(Optional[InstanceStatusList], default:None) –A subset of instances to list by status:
-
Pending: Include those instances with pending deployments. -
InProgress: Include those instances where deployments are still in progress. -
Succeeded: Include those instances with successful deployments. -
Failed: Include those instances with failed deployments. -
Skipped: Include those instances with skipped deployments. -
Unknown: Include those instances with deployments in an unknown state.
-
-
instance_type_filter(Optional[InstanceTypeList], default:None) –The set of instances in a blue/green deployment, either those in the original environment ("BLUE") or those in the replacement environment ("GREEN"), for which you want to view instance information.
Raises:
-
ApplicationDoesNotExistException–The application does not exist with the user or Amazon Web Services account.
-
DeploymentDoesNotExistException–The deployment with the user or Amazon Web Services account does not exist.
-
DeploymentGroupDoesNotExistException–The named deployment group with the user or Amazon Web Services account does not exist.
-
DeploymentIdRequiredException–At least one deployment ID must be specified.
-
DeploymentNotStartedException–The specified deployment has not started.
-
InvalidComputePlatformException–The computePlatform is invalid. The computePlatform should be
Lambda,Server, orECS. -
InvalidDeploymentIdException–At least one of the deployment IDs was specified in an invalid format.
-
InvalidDeploymentInstanceTypeException–An instance type was specified for an in-place deployment. Instance types are supported for blue/green deployments only.
-
InvalidInstanceStatusException–The specified instance status does not exist.
-
InvalidInstanceTypeException–An invalid instance type was specified for instances in a blue/green deployment. Valid values include "Blue" for an original environment and "Green" for a replacement environment.
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidTargetFilterNameException–The target filter name is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/code_deploy.py
2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 | |