Returns a description of the specified algorithm that is in your account.
Parameters:
-
algorithm_name
(Optional[ArnOrName], default:
None
)
–
The name of the algorithm to describe.
Raises:
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def describe_algorithm(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
algorithm_name: Optional["capo_sagemaker.types.arn_or_name.ArnOrName"] = None,
) -> "capo_sagemaker.types.describe_algorithm_output.DescribeAlgorithmOutput":
"""<p>Returns a description of the specified algorithm that is in your account.</p>
Args:
algorithm_name: <p>The name of the algorithm to describe.</p>
Raises:
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sagemaker.types.describe_algorithm_input.DescribeAlgorithmInput]",
) -> AsyncOperationResponse[
"capo_sagemaker.types.describe_algorithm_output.DescribeAlgorithmOutput"
]:
import capo_sagemaker._operations.sage_maker.describe_algorithm
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.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_sagemaker.types.describe_algorithm_input.DescribeAlgorithmInput = {}
if algorithm_name is not None:
input_["algorithm_name"] = algorithm_name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|