{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-edge-deployment-plan-response-schema.json",
  "title": "DescribeEdgeDeploymentPlanResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-edge-deployment-plan-api-openapi.yml#/components/schemas/DescribeEdgeDeploymentPlanResponse",
  "type": "object",
  "properties": {
    "EdgeDeploymentPlanArn": {
      "type": "string",
      "description": "The ARN of edge deployment plan."
    },
    "EdgeDeploymentPlanName": {
      "type": "string",
      "description": "The name of the edge deployment plan."
    },
    "ModelConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EdgeDeploymentModelConfig"
      },
      "description": "List of models associated with the edge deployment plan."
    },
    "DeviceFleetName": {
      "type": "string",
      "description": "The device fleet used for this edge deployment plan."
    },
    "EdgeDeploymentSuccess": {
      "type": "integer",
      "description": "The number of edge devices with the successful deployment."
    },
    "EdgeDeploymentPending": {
      "type": "integer",
      "description": "The number of edge devices yet to pick up deployment, or in progress."
    },
    "EdgeDeploymentFailed": {
      "type": "integer",
      "description": "The number of edge devices that failed the deployment."
    },
    "Stages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeploymentStageStatusSummary"
      },
      "description": "List of stages in the edge deployment plan."
    },
    "NextToken": {
      "type": "string",
      "description": "Token to use when calling the next set of stages in the edge deployment plan."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the edge deployment plan was created."
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the edge deployment plan was last updated."
    }
  },
  "required": [
    "EdgeDeploymentPlanArn",
    "EdgeDeploymentPlanName",
    "ModelConfigs",
    "DeviceFleetName",
    "Stages"
  ],
  "$defs": {
    "DeploymentStageStatusSummary": {
      "type": "object",
      "properties": {
        "StageName": {
          "type": "string",
          "description": "The name of the stage."
        },
        "DeviceSelectionConfig": {
          "$ref": "#/$defs/DeviceSelectionConfig"
        },
        "DeploymentConfig": {
          "$ref": "#/$defs/EdgeDeploymentConfig"
        },
        "DeploymentStatus": {
          "$ref": "#/$defs/EdgeDeploymentStatus"
        }
      },
      "required": [
        "StageName",
        "DeviceSelectionConfig",
        "DeploymentConfig",
        "DeploymentStatus"
      ]
    },
    "DeviceSelectionConfig": {
      "type": "object",
      "properties": {
        "DeviceSubsetType": {
          "type": "string",
          "enum": [
            "PERCENTAGE",
            "SELECTION",
            "NAMECONTAINS"
          ],
          "description": "Type of device subsets to deploy to the current stage."
        },
        "Percentage": {
          "type": "integer",
          "description": "Percentage of devices in the fleet to deploy to the current stage."
        },
        "DeviceNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of devices chosen to deploy."
        },
        "DeviceNameContains": {
          "type": "string",
          "description": "A filter to select devices with names containing this name."
        }
      },
      "required": [
        "DeviceSubsetType"
      ]
    },
    "EdgeDeploymentConfig": {
      "type": "object",
      "properties": {
        "FailureHandlingPolicy": {
          "type": "string",
          "enum": [
            "ROLLBACK_ON_FAILURE",
            "DO_NOTHING"
          ],
          "description": "Toggle that determines whether to rollback to previous configuration if the current deployment fails. By default this is turned on. You may turn this off if you want to investigate the errors yourself."
        }
      },
      "required": [
        "FailureHandlingPolicy"
      ]
    },
    "EdgeDeploymentModelConfig": {
      "type": "object",
      "properties": {
        "ModelHandle": {
          "type": "string",
          "description": "The name the device application uses to reference this model."
        },
        "EdgePackagingJobName": {
          "type": "string",
          "description": "The edge packaging job associated with this deployment."
        }
      },
      "required": [
        "ModelHandle",
        "EdgePackagingJobName"
      ]
    },
    "EdgeDeploymentStatus": {
      "type": "object",
      "properties": {
        "StageStatus": {
          "type": "string",
          "enum": [
            "CREATING",
            "READYTODEPLOY",
            "STARTING",
            "INPROGRESS",
            "DEPLOYED",
            "FAILED",
            "STOPPING",
            "STOPPED"
          ],
          "description": "The general status of the current stage."
        },
        "EdgeDeploymentSuccessInStage": {
          "type": "integer",
          "description": "The number of edge devices with the successful deployment in the current stage."
        },
        "EdgeDeploymentPendingInStage": {
          "type": "integer",
          "description": "The number of edge devices yet to pick up the deployment in current stage, or in progress."
        },
        "EdgeDeploymentFailedInStage": {
          "type": "integer",
          "description": "The number of edge devices that failed the deployment in current stage."
        },
        "EdgeDeploymentStatusMessage": {
          "type": "string",
          "description": "A detailed message about deployment status in current stage."
        },
        "EdgeDeploymentStageStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the deployment API started."
        }
      },
      "required": [
        "StageStatus",
        "EdgeDeploymentSuccessInStage",
        "EdgeDeploymentPendingInStage",
        "EdgeDeploymentFailedInStage"
      ]
    }
  }
}