Skip to content

stop_replication_backfill

stop_replication_backfill(
    replication_backfill_id: ReplicationBackfillId,
    *,
    config_overrides: Optional[ECRClientConfig] = None,
    registry_id: Optional[RegistryId] = None,
) -> StopReplicationBackfillResponse

Stops an in progress replication backfill for a registry. The backfill to stop is identified by the replicationBackfillId returned by the StartReplicationBackfill operation.

Images that have already been replicated are not affected, and replications that are already in progress continue to completion.

Parameters:

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

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

  • replication_backfill_id (ReplicationBackfillId) –

    The ID of the replication backfill to stop.

Raises:

Source code in docs_src/capo_ecr/_services/ecr.py
def stop_replication_backfill(
    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,
) -> "capo_ecr.types.stop_replication_backfill_response.StopReplicationBackfillResponse":
    """<p>Stops an in progress replication backfill for a registry. The backfill to stop is identified by the <code>replicationBackfillId</code> returned by the <a>StartReplicationBackfill</a> operation.</p> <note> <p>Images that have already been replicated are not affected, and replications that are already in progress continue to completion.</p> </note>

    Args:
        registry_id: <p>The Amazon Web Services account ID associated with the registry that contains the replication backfill to stop. If you do not specify a registry, the default registry is assumed.</p>
        replication_backfill_id: <p>The ID of the replication backfill to stop.</p>

    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_invalid_status_exception.ReplicationBackfillInvalidStatusException: <p>The requested operation can't be performed on the replication backfill because it is not in a valid status for that operation. For example, you can't stop a replication backfill that has already reached a terminal status. Use the <a>DescribeReplicationBackfillResults</a> operation to check the current status before retrying.</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.stop_replication_backfill_request.StopReplicationBackfillRequest]",
    ) -> OperationResponse[
        "capo_ecr.types.stop_replication_backfill_response.StopReplicationBackfillResponse"
    ]:
        import capo_ecr._operations.amazon_ec2_container_registry_v20150921.stop_replication_backfill

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopReplicationBackfill")
    )
    input_: capo_ecr.types.stop_replication_backfill_request.StopReplicationBackfillRequest = {
        "replication_backfill_id": replication_backfill_id
    }
    if registry_id is not None:
        input_["registry_id"] = registry_id

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