Skip to content

list_parallel_data async

list_parallel_data(
    *,
    config_overrides: Optional[AsyncTranslateClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResultsInteger] = None,
) -> ListParallelDataResponse

Provides a list of your parallel data resources in Amazon Translate.

Parameters:

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

    A string that specifies the next page of results to return in a paginated response.

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

    The maximum number of parallel data resources returned for each request.

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.

  • 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 list_parallel_data(
    self,
    *,
    config_overrides: Optional[AsyncTranslateClientConfig] = None,
    next_token: Optional["capo_translate.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_translate.types.max_results_integer.MaxResultsInteger"
    ] = None,
) -> "capo_translate.types.list_parallel_data_response.ListParallelDataResponse":
    """<p>Provides a list of your parallel data resources in Amazon Translate.</p>

    Args:
        next_token: <p>A string that specifies the next page of results to return in a paginated response.</p>
        max_results: <p>The maximum number of parallel data resources returned for each request.</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.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.list_parallel_data_request.ListParallelDataRequest]",
    ) -> AsyncOperationResponse[
        "capo_translate.types.list_parallel_data_response.ListParallelDataResponse"
    ]:
        import capo_translate._operations.aws_shine_frontend_service_20170701.list_parallel_data

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListParallelData")
    )
    input_: capo_translate.types.list_parallel_data_request.ListParallelDataRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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