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:
Source code in docs_src/capo_translate/_services/translate.py
| def list_parallel_data(
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_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.
"""
def _handler(
req: "OperationRequest[capo_translate.types.list_parallel_data_request.ListParallelDataRequest]",
) -> OperationResponse[
"capo_translate.types.list_parallel_data_response.ListParallelDataResponse"
]:
import capo_translate._operations.aws_shine_frontend_service_20170701.list_parallel_data
output, http_response = (
capo_translate._operations.aws_shine_frontend_service_20170701.list_parallel_data.list_parallel_data(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|