{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecr/json-schema/amazon-ecr-describe-replication-backfill-results-response-schema.json",
  "title": "DescribeReplicationBackfillResultsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecr-operations-api-openapi.yml#/components/schemas/DescribeReplicationBackfillResultsResponse",
  "type": "object",
  "properties": {
    "registryId": {
      "type": "string",
      "description": "The registry ID associated with the request."
    },
    "replicationBackfillId": {
      "type": "string",
      "description": "The ID of the replication backfill."
    },
    "destination": {
      "$ref": "#/$defs/ReplicationDestination"
    },
    "status": {
      "type": "string",
      "enum": [
        "PREPARING",
        "IN_PROGRESS",
        "COMPLETE",
        "FAILED",
        "STOPPING",
        "STOPPED"
      ],
      "description": "The current status of the replication backfill."
    },
    "failureCode": {
      "type": "string",
      "description": "The failure code for a replication backfill that has failed."
    },
    "progress": {
      "$ref": "#/$defs/ReplicationBackfillProgress"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReplicationBackfillResult"
      },
      "description": "The per-image results for the replication backfill. Results are available only after the replication backfill reaches a terminal status."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time, in JavaScript date format, when the replication backfill was started."
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time, in JavaScript date format, when the replication backfill ended. This value is null while the replication backfill is still in progress."
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value to include in a future DescribeReplicationBackfillResults request. When the results of a DescribeReplicationBackfillResults request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."
    }
  },
  "$defs": {
    "ImageIdentifier": {
      "type": "object",
      "properties": {
        "imageDigest": {
          "type": "string",
          "description": "The sha256 digest of the image manifest."
        },
        "imageTag": {
          "type": "string",
          "description": "The tag used for the image."
        }
      }
    },
    "ReplicationBackfillProgress": {
      "type": "object",
      "properties": {
        "totalReplicationCount": {
          "type": "integer",
          "description": "The total number of replications that the backfill will perform. Each image and tag combination is counted as a single replication."
        },
        "completedReplicationCount": {
          "type": "integer",
          "description": "The number of replications that have completed successfully."
        },
        "failedReplicationCount": {
          "type": "integer",
          "description": "The number of replications that have failed."
        },
        "failureCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The distinct failure codes for the replications that have failed. Each failure code appears at most once, regardless of how many replications failed with that code."
        }
      },
      "required": [
        "totalReplicationCount",
        "completedReplicationCount",
        "failedReplicationCount",
        "failureCodes"
      ]
    },
    "ReplicationBackfillResult": {
      "type": "object",
      "properties": {
        "repositoryName": {
          "type": "string",
          "description": "The name of the repository that contains the image."
        },
        "imageId": {
          "$ref": "#/$defs/ImageIdentifier"
        },
        "status": {
          "type": "string",
          "enum": [
            "COMPLETE",
            "FAILED"
          ],
          "description": "The replication status of the image."
        },
        "failureCode": {
          "type": "string",
          "description": "The failure code for a replication that has failed."
        },
        "subImageFailureCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The distinct failure codes for the images referenced by a manifest list that failed to replicate. Each failure code appears at most once, regardless of how many referenced images failed with that code. This field is present only when the image is a manifest list."
        }
      },
      "required": [
        "repositoryName",
        "imageId",
        "status"
      ]
    },
    "ReplicationDestination": {
      "type": "object",
      "properties": {
        "region": {
          "type": "string",
          "description": "The Region to replicate to."
        },
        "registryId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID."
        }
      },
      "required": [
        "region",
        "registryId"
      ]
    }
  }
}