Deletes an inference experiment.
This operation does not delete your endpoint, variants, or any underlying resources. This operation only deletes the metadata of your experiment.
Parameters:
Raises:
-
ConflictException
–
There was a conflict when you attempted to modify a SageMaker entity such as an Experiment or Artifact.
-
ResourceNotFound
–
Resource being access is not found.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
| async def delete_inference_experiment(
self,
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
name: Optional[
"capo_sagemaker.types.inference_experiment_name.InferenceExperimentName"
] = None,
) -> "capo_sagemaker.types.delete_inference_experiment_response.DeleteInferenceExperimentResponse":
"""<p>Deletes an inference experiment.</p> <note> <p> This operation does not delete your endpoint, variants, or any underlying resources. This operation only deletes the metadata of your experiment. </p> </note>
Args:
name: <p>The name of the inference experiment you want to delete.</p>
Raises:
capo_sagemaker.errors.conflict_exception.ConflictException: <p>There was a conflict when you attempted to modify a SageMaker entity such as an <code>Experiment</code> or <code>Artifact</code>.</p>
capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sagemaker.types.delete_inference_experiment_request.DeleteInferenceExperimentRequest]",
) -> AsyncOperationResponse[
"capo_sagemaker.types.delete_inference_experiment_response.DeleteInferenceExperimentResponse"
]:
import capo_sagemaker._operations.sage_maker.delete_inference_experiment
(
output,
http_response,
) = await capo_sagemaker._operations.sage_maker.delete_inference_experiment.async_delete_inference_experiment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteInferenceExperiment")
)
input_: capo_sagemaker.types.delete_inference_experiment_request.DeleteInferenceExperimentRequest = {}
if name is not None:
input_["name"] = name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|