GetDeploymentTarget
Returns information about a deployment target.
Request Syntax
{
"deploymentId": "string
",
"targetId": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- deploymentId
-
The unique ID of a deployment.
Type: String
Required: Yes
- targetId
-
The unique ID of a deployment target.
Type: String
Required: Yes
Response Syntax
{
"deploymentTarget": {
"cloudFormationTarget": {
"deploymentId": "string",
"lastUpdatedAt": number,
"lifecycleEvents": [
{
"diagnostics": {
"errorCode": "string",
"logTail": "string",
"message": "string",
"scriptName": "string"
},
"endTime": number,
"lifecycleEventName": "string",
"startTime": number,
"status": "string"
}
],
"resourceType": "string",
"status": "string",
"targetId": "string",
"targetVersionWeight": number
},
"deploymentTargetType": "string",
"ecsTarget": {
"deploymentId": "string",
"lastUpdatedAt": number,
"lifecycleEvents": [
{
"diagnostics": {
"errorCode": "string",
"logTail": "string",
"message": "string",
"scriptName": "string"
},
"endTime": number,
"lifecycleEventName": "string",
"startTime": number,
"status": "string"
}
],
"status": "string",
"targetArn": "string",
"targetId": "string",
"taskSetsInfo": [
{
"desiredCount": number,
"identifer": "string",
"pendingCount": number,
"runningCount": number,
"status": "string",
"targetGroup": {
"name": "string"
},
"taskSetLabel": "string",
"trafficWeight": number
}
]
},
"instanceTarget": {
"deploymentId": "string",
"instanceLabel": "string",
"lastUpdatedAt": number,
"lifecycleEvents": [
{
"diagnostics": {
"errorCode": "string",
"logTail": "string",
"message": "string",
"scriptName": "string"
},
"endTime": number,
"lifecycleEventName": "string",
"startTime": number,
"status": "string"
}
],
"status": "string",
"targetArn": "string",
"targetId": "string"
},
"lambdaTarget": {
"deploymentId": "string",
"lambdaFunctionInfo": {
"currentVersion": "string",
"functionAlias": "string",
"functionName": "string",
"targetVersion": "string",
"targetVersionWeight": number
},
"lastUpdatedAt": number,
"lifecycleEvents": [
{
"diagnostics": {
"errorCode": "string",
"logTail": "string",
"message": "string",
"scriptName": "string"
},
"endTime": number,
"lifecycleEventName": "string",
"startTime": number,
"status": "string"
}
],
"status": "string",
"targetArn": "string",
"targetId": "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- deploymentTarget
-
A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target's type (
instanceTarget
,lambdaTarget
, orecsTarget
).Type: DeploymentTarget object
Errors
For information about the errors that are common to all actions, see Common Errors.
- DeploymentDoesNotExistException
-
The deployment with the user or Amazon Web Services account does not exist.
HTTP Status Code: 400
- DeploymentIdRequiredException
-
At least one deployment ID must be specified.
HTTP Status Code: 400
- DeploymentNotStartedException
-
The specified deployment has not started.
HTTP Status Code: 400
- DeploymentTargetDoesNotExistException
-
The provided target ID does not belong to the attempted deployment.
HTTP Status Code: 400
- DeploymentTargetIdRequiredException
-
A deployment target ID was not provided.
HTTP Status Code: 400
- InvalidDeploymentIdException
-
At least one of the deployment IDs was specified in an invalid format.
HTTP Status Code: 400
- InvalidDeploymentTargetIdException
-
The target ID provided was not valid.
HTTP Status Code: 400
- InvalidInstanceNameException
-
The on-premises instance name was specified in an invalid format.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: