list_deployment_targets
¶
list_deployment_targets(
deployment_id: DeploymentId,
*,
config_overrides: Optional[CodeDeployClientConfig] = 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/code_deploy.py
2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 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 | |