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',
        ]
    }
)
ListDeploymentTargets call. It can be used to return the next set of deployment targets in the list.A key used to filter the returned targets. The two valid values are:
TargetStatus - A TargetStatus filter string can be Failed , InProgress , Pending , Ready , Skipped , Succeeded , or Unknown .ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or Green .dict
Response Syntax
{
    'targetIds': [
        'string',
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
targetIds (list) --
The unique IDs of deployment targets.
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
CodeDeploy.Client.exceptions.DeploymentIdRequiredExceptionCodeDeploy.Client.exceptions.DeploymentDoesNotExistExceptionCodeDeploy.Client.exceptions.DeploymentNotStartedExceptionCodeDeploy.Client.exceptions.InvalidNextTokenExceptionCodeDeploy.Client.exceptions.InvalidDeploymentIdExceptionCodeDeploy.Client.exceptions.InvalidInstanceStatusExceptionCodeDeploy.Client.exceptions.InvalidInstanceTypeExceptionCodeDeploy.Client.exceptions.InvalidDeploymentInstanceTypeException