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:
Source code in docs_src/capo_translate/_services/translate.py
| def list_terminologies(
self,
*,
config_overrides: Optional[TranslateClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_translate.types.list_terminologies_request.ListTerminologiesRequest]",
) -> OperationResponse[
"capo_translate.types.list_terminologies_response.ListTerminologiesResponse"
]:
import capo_translate._operations.aws_shine_frontend_service_20170701.list_terminologies
output, http_response = (
capo_translate._operations.aws_shine_frontend_service_20170701.list_terminologies.list_terminologies(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|