Skip to content

list_replication_backfills async

list_replication_backfills(
    *,
    config_overrides: Optional[AsyncECRClientConfig] = None,
    registry_id: Optional[RegistryId] = None,
    max_results: Optional[FiftyMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListReplicationBackfillsResponse

Lists the replication backfills for a registry, including their status and progress.

Replication backfills that have reached a terminal status are retained for 90 days after they end, after which they are no longer returned.

Parameters:

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

    The Amazon Web Services account ID associated with the registry for which to list replication backfills. If you do not specify a registry, the default registry is assumed.

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

    The maximum number of replication backfill results returned by ListReplicationBackfills in paginated output. When this parameter is used, ListReplicationBackfills 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 ListReplicationBackfills request with the returned nextToken value. This value can be between 1 and 50. If this parameter is not used, then ListReplicationBackfills returns up to 25 results and a nextToken value, if applicable.

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

    The nextToken value returned from a previous paginated ListReplicationBackfills 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/async_ecr.py
async def list_replication_backfills(
    self,
    *,
    config_overrides: Optional[AsyncECRClientConfig] = None,
    registry_id: Optional["capo_ecr.types.registry_id.RegistryId"] = None,
    max_results: Optional[
        "capo_ecr.types.fifty_max_results.FiftyMaxResults"
    ] = None,
    next_token: Optional["capo_ecr.types.next_token.NextToken"] = None,
) -> "capo_ecr.types.list_replication_backfills_response.ListReplicationBackfillsResponse":
    """<p>Lists the replication backfills for a registry, including their status and progress.</p> <note> <p>Replication backfills that have reached a terminal status are retained for 90 days after they end, after which they are no longer returned.</p> </note>

    Args:
        registry_id: <p>The Amazon Web Services account ID associated with the registry for which to list replication backfills. If you do not specify a registry, the default registry is assumed.</p>
        max_results: <p>The maximum number of replication backfill results returned by <code>ListReplicationBackfills</code> in paginated output. When this parameter is used, <code>ListReplicationBackfills</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>ListReplicationBackfills</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 50. If this parameter is not used, then <code>ListReplicationBackfills</code> returns up to 25 results and a <code>nextToken</code> value, if applicable.</p>
        next_token: <p>The <code>nextToken</code> value returned from a previous paginated <code>ListReplicationBackfills</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.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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ecr.types.list_replication_backfills_request.ListReplicationBackfillsRequest]",
    ) -> AsyncOperationResponse[
        "capo_ecr.types.list_replication_backfills_response.ListReplicationBackfillsResponse"
    ]:
        import capo_ecr._operations.amazon_ec2_container_registry_v20150921.list_replication_backfills

        (
            output,
            http_response,
        ) = await capo_ecr._operations.amazon_ec2_container_registry_v20150921.list_replication_backfills.async_list_replication_backfills(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListReplicationBackfills")
    )
    input_: capo_ecr.types.list_replication_backfills_request.ListReplicationBackfillsRequest = {}
    if registry_id is not None:
        input_["registry_id"] = registry_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output