Describes the given algorithm.
Parameters:
-
algorithm_arn
(Arn)
–
The Amazon Resource Name (ARN) of the algorithm to describe.
Raises:
Source code in docs_src/capo_personalize/_services/async_personalize.py
| async def describe_algorithm(
self,
algorithm_arn: "capo_personalize.types.arn.Arn",
*,
config_overrides: Optional[AsyncPersonalizeClientConfig] = None,
) -> "capo_personalize.types.describe_algorithm_response.DescribeAlgorithmResponse":
"""<p>Describes the given algorithm.</p>
Args:
algorithm_arn: <p>The Amazon Resource Name (ARN) of the algorithm to describe.</p>
Raises:
capo_personalize.errors.invalid_input_exception.InvalidInputException: <p>Provide a valid value for the field or parameter.</p>
capo_personalize.errors.resource_not_found_exception.ResourceNotFoundException: <p>Could not find the specified resource.</p>
capo_personalize.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_personalize.types.describe_algorithm_request.DescribeAlgorithmRequest]",
) -> AsyncOperationResponse[
"capo_personalize.types.describe_algorithm_response.DescribeAlgorithmResponse"
]:
import capo_personalize._operations.amazon_personalize.describe_algorithm
(
output,
http_response,
) = await capo_personalize._operations.amazon_personalize.describe_algorithm.async_describe_algorithm(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAlgorithm")
)
input_: capo_personalize.types.describe_algorithm_request.DescribeAlgorithmRequest = {
"algorithm_arn": algorithm_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|