CodeDeploy / Client / list_deployment_targets
list_deployment_targets#
- CodeDeploy.Client.list_deployment_targets(**kwargs)#
Returns an array of target IDs that are associated a deployment.
See also: AWS API Documentation
Request Syntax
response = client.list_deployment_targets( deploymentId='string', nextToken='string', targetFilters={ 'string': [ 'string', ] } )
- Parameters:
deploymentId (string) –
[REQUIRED]
The unique ID of a deployment.
nextToken (string) – A token identifier returned from the previous
ListDeploymentTargetscall. It can be used to return the next set of deployment targets in the list.targetFilters (dict) –
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.
(string) –
(list) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'targetIds': [ 'string', ], 'nextToken': 'string' }
Response Structure
(dict) –
targetIds (list) –
The unique IDs of deployment targets.
(string) –
nextToken (string) –
If a large amount of information is returned, a token identifier is also returned. It can be used in a subsequent
ListDeploymentTargetscall to return the next set of deployment targets in the list.
Exceptions
CodeDeploy.Client.exceptions.DeploymentIdRequiredExceptionCodeDeploy.Client.exceptions.DeploymentDoesNotExistExceptionCodeDeploy.Client.exceptions.DeploymentNotStartedExceptionCodeDeploy.Client.exceptions.InvalidNextTokenExceptionCodeDeploy.Client.exceptions.InvalidDeploymentIdExceptionCodeDeploy.Client.exceptions.InvalidInstanceStatusExceptionCodeDeploy.Client.exceptions.InvalidInstanceTypeExceptionCodeDeploy.Client.exceptions.InvalidDeploymentInstanceTypeExceptionCodeDeploy.Client.exceptions.InvalidTargetFilterNameException