Skip to content

list_terminologies async

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

Provides a list of custom terminologies associated with your account.

Parameters:

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

    If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies.

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

    The maximum number of custom terminologies returned per list 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_terminologies(
    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_terminologies_response.ListTerminologiesResponse":
    """<p>Provides a list of custom terminologies associated with your account.</p>

    Args:
        next_token: <p>If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. </p>
        max_results: <p>The maximum number of custom terminologies returned per list 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_terminologies_request.ListTerminologiesRequest]",
    ) -> AsyncOperationResponse[
        "capo_translate.types.list_terminologies_response.ListTerminologiesResponse"
    ]:
        import capo_translate._operations.aws_shine_frontend_service_20170701.list_terminologies

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListTerminologies")
    )
    input_: capo_translate.types.list_terminologies_request.ListTerminologiesRequest = {}
    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