Skip to content

describe_replication_backfill_results

describe_replication_backfill_results(
    replication_backfill_id: ReplicationBackfillId,
    *,
    config_overrides: Optional[ECRClientConfig] = None,
    registry_id: Optional[RegistryId] = None,
    result_status_filter: Optional[ReplicationBackfillResultStatus] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeReplicationBackfillResultsResponse

Returns the status, progress, and per-image results for a replication backfill. The backfill to describe is identified by the replicationBackfillId returned by the StartReplicationBackfill operation.

The per-image results are available only after the replication backfill reaches a terminal status.

Parameters:

  • registry_id (Optional[RegistryId], default: None ) –

    The Amazon Web Services account ID associated with the registry that contains the replication backfill to describe. If you do not specify a registry, the default registry is assumed.

  • replication_backfill_id (ReplicationBackfillId) –

    The ID of the replication backfill to describe.

  • result_status_filter (Optional[ReplicationBackfillResultStatus], default: None ) –

    The status used to filter the returned results. Each result has a status of COMPLETE or FAILED. If you omit this parameter, results with both statuses are returned.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of replication backfill results returned by DescribeReplicationBackfillResults in paginated output. When this parameter is used, DescribeReplicationBackfillResults only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeReplicationBackfillResults request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeReplicationBackfillResults returns up to 100 results and a nextToken value, if applicable.

  • next_token (Optional[NextToken], default: None ) –

    The nextToken value returned from a previous paginated DescribeReplicationBackfillResults request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

Raises:

Source code in docs_src/capo_ecr/_services/ecr.py
def describe_replication_backfill_results(
    self,
    replication_backfill_id: "capo_ecr.types.replication_backfill_id.ReplicationBackfillId",
    *,
    config_overrides: Optional[ECRClientConfig] = None,
    registry_id: Optional["capo_ecr.types.registry_id.RegistryId"] = None,
    result_status_filter: Optional[
        "capo_ecr.types.replication_backfill_result_status.ReplicationBackfillResultStatus"
    ] = None,
    max_results: Optional["capo_ecr.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_ecr.types.next_token.NextToken"] = None,
) -> "capo_ecr.types.describe_replication_backfill_results_response.DescribeReplicationBackfillResultsResponse":
    """<p>Returns the status, progress, and per-image results for a replication backfill. The backfill to describe is identified by the <code>replicationBackfillId</code> returned by the <a>StartReplicationBackfill</a> operation.</p> <note> <p>The per-image results are available only after the replication backfill reaches a terminal status.</p> </note>

    Args:
        registry_id: <p>The Amazon Web Services account ID associated with the registry that contains the replication backfill to describe. If you do not specify a registry, the default registry is assumed.</p>
        replication_backfill_id: <p>The ID of the replication backfill to describe.</p>
        result_status_filter: <p>The status used to filter the returned results. Each result has a status of <code>COMPLETE</code> or <code>FAILED</code>. If you omit this parameter, results with both statuses are returned.</p>
        max_results: <p>The maximum number of replication backfill results returned by <code>DescribeReplicationBackfillResults</code> in paginated output. When this parameter is used, <code>DescribeReplicationBackfillResults</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>DescribeReplicationBackfillResults</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 1000. If this parameter is not used, then <code>DescribeReplicationBackfillResults</code> returns up to 100 results and a <code>nextToken</code> value, if applicable.</p>
        next_token: <p>The <code>nextToken</code> value returned from a previous paginated <code>DescribeReplicationBackfillResults</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return.</p> <note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>

    Raises:
        capo_ecr.errors.invalid_parameter_exception.InvalidParameterException: <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
        capo_ecr.errors.replication_backfill_not_found_exception.ReplicationBackfillNotFoundException: <p>The specified replication backfill could not be found. Check the specified replication backfill ID and ensure that you are operating on the correct registry.</p>
        capo_ecr.errors.server_exception.ServerException: <p>These errors are usually caused by a server-side issue.</p>
        capo_ecr.errors.validation_exception.ValidationException: <p>There was an exception validating this request.</p>
        capo_ecr.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ecr.types.describe_replication_backfill_results_request.DescribeReplicationBackfillResultsRequest]",
    ) -> OperationResponse[
        "capo_ecr.types.describe_replication_backfill_results_response.DescribeReplicationBackfillResultsResponse"
    ]:
        import capo_ecr._operations.amazon_ec2_container_registry_v20150921.describe_replication_backfill_results

        output, http_response = (
            capo_ecr._operations.amazon_ec2_container_registry_v20150921.describe_replication_backfill_results.describe_replication_backfill_results(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeReplicationBackfillResults")
    )
    input_: capo_ecr.types.describe_replication_backfill_results_request.DescribeReplicationBackfillResultsRequest = {
        "replication_backfill_id": replication_backfill_id
    }
    if registry_id is not None:
        input_["registry_id"] = registry_id
    if result_status_filter is not None:
        input_["result_status_filter"] = result_status_filter
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output