{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-greengrass/json-schema/amazon-iot-greengrass-get-bulk-deployment-status-response-schema.json",
  "title": "GetBulkDeploymentStatusResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-greengrass-operations-api-openapi.yml#/components/schemas/GetBulkDeploymentStatusResponse",
  "type": "object",
  "properties": {
    "BulkDeploymentMetrics": {
      "$ref": "#/$defs/BulkDeploymentMetrics"
    },
    "BulkDeploymentStatus": {
      "type": "string",
      "enum": [
        "Initializing",
        "Running",
        "Completed",
        "Stopping",
        "Stopped",
        "Failed"
      ],
      "description": "The status of the bulk deployment."
    },
    "CreatedAt": {
      "type": "string",
      "description": "The time, in ISO format, when the deployment was created."
    },
    "ErrorDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ErrorDetail"
      },
      "description": "Error details"
    },
    "ErrorMessage": {
      "type": "string",
      "description": "Error message"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tag(s) attached to the resource arn."
    }
  },
  "$defs": {
    "BulkDeploymentMetrics": {
      "type": "object",
      "properties": {
        "InvalidInputRecords": {
          "type": "integer",
          "description": "The total number of records that returned a non-retryable error. For example, this can occur if a group record from the input file uses an invalid format or specifies a nonexistent group version, or if the execution role doesn't grant permission to deploy a group or group version."
        },
        "RecordsProcessed": {
          "type": "integer",
          "description": "The total number of group records from the input file that have been processed so far, or attempted."
        },
        "RetryAttempts": {
          "type": "integer",
          "description": "The total number of deployment attempts that returned a retryable error. For example, a retry is triggered if the attempt to deploy a group returns a throttling error. ''StartBulkDeployment'' retries a group deployment up to five times."
        }
      }
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "DetailedErrorCode": {
          "type": "string",
          "description": "A detailed error code."
        },
        "DetailedErrorMessage": {
          "type": "string",
          "description": "A detailed error message."
        }
      }
    }
  }
}