Amazon CodeDeploy · JSON Structure

Amazon Codedeploy Instance Target Structure

A target Amazon EC2 or on-premises instance during a deployment that uses the EC2/On-premises compute platform.

Type: object Properties: 7
AmazonDeploymentDevOpsCI/CDRelease ManagementBlue/Green Deployment

InstanceTarget is a JSON Structure definition published by Amazon CodeDeploy, describing 7 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

deploymentId targetId targetArn status lastUpdatedAt lifecycleEvents instanceLabel

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codedeploy/refs/heads/main/json-structure/amazon-codedeploy-instance-target-structure.json",
  "name": "InstanceTarget",
  "description": " A target Amazon EC2 or on-premises instance during a deployment that uses the EC2/On-premises compute platform. ",
  "type": "object",
  "properties": {
    "deploymentId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DeploymentId"
        },
        {
          "description": " The unique ID of a deployment. "
        }
      ]
    },
    "targetId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TargetId"
        },
        {
          "description": " The unique ID of a deployment target that has a type of <code>instanceTarget</code>. "
        }
      ]
    },
    "targetArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TargetArn"
        },
        {
          "description": " The Amazon Resource Name (ARN) of the target. "
        }
      ]
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TargetStatus"
        },
        {
          "description": " The status an EC2/On-premises deployment's target instance. "
        }
      ]
    },
    "lastUpdatedAt": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Time"
        },
        {
          "description": " The date and time when the target instance was updated by a deployment. "
        }
      ]
    },
    "lifecycleEvents": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LifecycleEventList"
        },
        {
          "description": " The lifecycle events of the deployment to this target instance. "
        }
      ]
    },
    "instanceLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TargetLabel"
        },
        {
          "description": " A label that identifies whether the instance is an original target (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). "
        }
      ]
    }
  }
}