list_deployment_targets
async
¶
list_deployment_targets(
deployment_id: DeploymentId,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
next_token: Optional[NextToken] = None,
target_filters: Optional[TargetFilters] = None,
) -> ListDeploymentTargetsOutput
Returns an array of target IDs that are associated a deployment.
Parameters:
-
deployment_id(DeploymentId) –The unique ID of a deployment.
-
next_token(Optional[NextToken], default:None) –A token identifier returned from the previous
ListDeploymentTargetscall. It can be used to return the next set of deployment targets in the list. -
target_filters(Optional[TargetFilters], default:None) –A key used to filter the returned targets. The two valid values are:
-
TargetStatus- ATargetStatusfilter string can beFailed,InProgress,Pending,Ready,Skipped,Succeeded, orUnknown. -
ServerInstanceLabel- AServerInstanceLabelfilter string can beBlueorGreen.
-
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.
-
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/async_code_deploy.py
2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 | |