sagemaker.serve.ai_inference_recommender.exceptions

sagemaker.serve.ai_inference_recommender.exceptions#

Exceptions for the AI inference recommender module.

Exceptions

FeatureGatedError([message, runbook_url])

Raised when the AI inference recommender feature is not enabled for the account.

WorkloadValidationError([message])

Raised when the server rejects a workload spec.

exception sagemaker.serve.ai_inference_recommender.exceptions.FeatureGatedError(message: str = '', runbook_url: str = 'https://docs.aws.amazon.com/sagemaker/latest/dg/generative-ai-inference-recommendations.html')[source]#

Bases: SageMakerCoreError

Raised when the AI inference recommender feature is not enabled for the account.

fmt = 'The AI inference recommender feature is not enabled for this account. {message} See {runbook_url} for enrollment information.'#
exception sagemaker.serve.ai_inference_recommender.exceptions.WorkloadValidationError(message='', **kwargs)[source]#

Bases: ValidationError

Raised when the server rejects a workload spec.

fmt = 'Server rejected workload: {message}'#