Skip to content

get_parallel_data

get_parallel_data(
    name: ResourceName, *, config_overrides: Optional[TranslateClientConfig] = None
) -> GetParallelDataResponse

Provides information about a parallel data resource.

Parameters:

  • name (ResourceName) –

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

Raises:

  • InternalServerException –

    An internal server error occurred. Retry your request.

  • InvalidParameterValueException –

    The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.

  • 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/translate.py
def get_parallel_data(
    self,
    name: "capo_translate.types.resource_name.ResourceName",
    *,
    config_overrides: Optional[TranslateClientConfig] = None,
) -> "capo_translate.types.get_parallel_data_response.GetParallelDataResponse":
    """<p>Provides information about a parallel data resource.</p>

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

    Raises:
        capo_translate.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_translate.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.</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.
    """

    def _handler(
        req: "OperationRequest[capo_translate.types.get_parallel_data_request.GetParallelDataRequest]",
    ) -> OperationResponse[
        "capo_translate.types.get_parallel_data_response.GetParallelDataResponse"
    ]:
        import capo_translate._operations.aws_shine_frontend_service_20170701.get_parallel_data

        output, http_response = (
            capo_translate._operations.aws_shine_frontend_service_20170701.get_parallel_data.get_parallel_data(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetParallelData")
    )
    input_: capo_translate.types.get_parallel_data_request.GetParallelDataRequest = {
        "name": name
    }

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