Skip to content

delete_parallel_data async

delete_parallel_data(
    name: ResourceName, *, config_overrides: Optional[AsyncTranslateClientConfig] = None
) -> DeleteParallelDataResponse

Deletes a parallel data resource in Amazon Translate.

Parameters:

  • name (ResourceName) –

    The name of the parallel data resource that is being deleted.

Raises:

  • ConcurrentModificationException –

    Another modification is being made. That modification must complete before you can make your change.

  • InternalServerException –

    An internal server error occurred. Retry your request.

  • ResourceNotFoundException –

    The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request.

  • TooManyRequestsException –

    You have made too many requests within a short period of time. Wait for a short time and then try your request again.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_translate/_services/async_translate.py
async def delete_parallel_data(
    self,
    name: "capo_translate.types.resource_name.ResourceName",
    *,
    config_overrides: Optional[AsyncTranslateClientConfig] = None,
) -> (
    "capo_translate.types.delete_parallel_data_response.DeleteParallelDataResponse"
):
    """<p>Deletes a parallel data resource in Amazon Translate.</p>

    Args:
        name: <p>The name of the parallel data resource that is being deleted.</p>

    Raises:
        capo_translate.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Another modification is being made. That modification must complete before you can make your change.</p>
        capo_translate.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_translate.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request.</p>
        capo_translate.errors.too_many_requests_exception.TooManyRequestsException: <p> You have made too many requests within a short period of time. Wait for a short time and then try your request again.</p>
        capo_translate.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_translate.types.delete_parallel_data_request.DeleteParallelDataRequest]",
    ) -> AsyncOperationResponse[
        "capo_translate.types.delete_parallel_data_response.DeleteParallelDataResponse"
    ]:
        import capo_translate._operations.aws_shine_frontend_service_20170701.delete_parallel_data

        (
            output,
            http_response,
        ) = await capo_translate._operations.aws_shine_frontend_service_20170701.delete_parallel_data.async_delete_parallel_data(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteParallelData")
    )
    input_: capo_translate.types.delete_parallel_data_request.DeleteParallelDataRequest = {
        "name": name
    }

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