A synchronous action that deletes a custom terminology.
Parameters:
-
name
(ResourceName)
–
The name of the custom terminology being deleted.
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 delete_terminology(
self,
name: "capo_translate.types.resource_name.ResourceName",
*,
config_overrides: Optional[TranslateClientConfig] = None,
) -> None:
"""<p>A synchronous action that deletes a custom terminology.</p>
Args:
name: <p>The name of the custom terminology being deleted. </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.delete_terminology_request.DeleteTerminologyRequest]",
) -> OperationResponse[None]:
import capo_translate._operations.aws_shine_frontend_service_20170701.delete_terminology
output, http_response = (
capo_translate._operations.aws_shine_frontend_service_20170701.delete_terminology.delete_terminology(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteTerminology")
)
input_: capo_translate.types.delete_terminology_request.DeleteTerminologyRequest = {
"name": name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|