async def get_call_analytics_category(
self,
category_name: "capo_transcribe.types.category_name.CategoryName",
*,
config_overrides: Optional[AsyncTranscribeClientConfig] = None,
) -> "capo_transcribe.types.get_call_analytics_category_response.GetCallAnalyticsCategoryResponse":
"""<p>Provides information about the specified Call Analytics category.</p> <p>To get a list of your Call Analytics categories, use the operation.</p>
Args:
category_name: <p>The name of the Call Analytics category you want information about. Category names are case sensitive.</p>
Raises:
capo_transcribe.errors.bad_request_exception.BadRequestException: <p>Your request didn't pass one or more validation tests. This can occur when a parameter has an invalid value, when you combine parameters in a way that isn't supported, when the entity you're trying to delete doesn't exist, or if it's in a non-terminal state (such as <code>IN PROGRESS</code>). See the exception message field for more information.</p>
capo_transcribe.errors.internal_failure_exception.InternalFailureException: <p>There was an internal error. Check the error message, correct the issue, and try your request again.</p>
capo_transcribe.errors.limit_exceeded_exception.LimitExceededException: <p>You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again.</p>
capo_transcribe.errors.not_found_exception.NotFoundException: <p>We can't find the requested resource. Check that the specified name is correct and try your request again.</p>
capo_transcribe.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_transcribe.types.get_call_analytics_category_request.GetCallAnalyticsCategoryRequest]",
) -> AsyncOperationResponse[
"capo_transcribe.types.get_call_analytics_category_response.GetCallAnalyticsCategoryResponse"
]:
if req.options.protocol == "awsJson1_1":
import capo_transcribe._operations.transcribe.aws_json1_1.get_call_analytics_category
(
output,
http_response,
) = await capo_transcribe._operations.transcribe.aws_json1_1.get_call_analytics_category.async_get_call_analytics_category(
req.options, req.input
)
elif req.options.protocol == "rpcv2Cbor":
import capo_transcribe._operations.transcribe.rpcv2_cbor.get_call_analytics_category
(
output,
http_response,
) = await capo_transcribe._operations.transcribe.rpcv2_cbor.get_call_analytics_category.async_get_call_analytics_category(
req.options, req.input
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCallAnalyticsCategory")
)
input_: capo_transcribe.types.get_call_analytics_category_request.GetCallAnalyticsCategoryRequest = {
"category_name": category_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output