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
ListDeploymentTargets
call. 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
- ATargetStatus
filter string can beFailed
,InProgress
,Pending
,Ready
,Skipped
,Succeeded
, orUnknown
.ServerInstanceLabel
- AServerInstanceLabel
filter string can beBlue
orGreen
.
(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
ListDeploymentTargets
call to return the next set of deployment targets in the list.
Exceptions