Skip to content

SageMaker

CloudMock emulates Amazon SageMaker, supporting notebook instances, training jobs, models, endpoint configurations, endpoints, processing jobs, transform jobs, inference invocation, and tagging.

OperationStatusNotes
CreateNotebookInstanceSupportedCreates a notebook instance
DescribeNotebookInstanceSupportedReturns notebook instance details
ListNotebookInstancesSupportedLists notebook instances
DeleteNotebookInstanceSupportedDeletes a notebook instance
StartNotebookInstanceSupportedStarts a notebook instance
StopNotebookInstanceSupportedStops a notebook instance
UpdateNotebookInstanceSupportedUpdates a notebook instance
CreateTrainingJobSupportedCreates a training job
DescribeTrainingJobSupportedReturns training job details
ListTrainingJobsSupportedLists training jobs
StopTrainingJobSupportedStops a training job
CreateModelSupportedCreates a model
DescribeModelSupportedReturns model details
ListModelsSupportedLists models
DeleteModelSupportedDeletes a model
CreateEndpointConfigSupportedCreates an endpoint configuration
DescribeEndpointConfigSupportedReturns endpoint config details
ListEndpointConfigsSupportedLists endpoint configurations
DeleteEndpointConfigSupportedDeletes an endpoint configuration
CreateEndpointSupportedCreates an endpoint
DescribeEndpointSupportedReturns endpoint details
ListEndpointsSupportedLists endpoints
DeleteEndpointSupportedDeletes an endpoint
UpdateEndpointSupportedUpdates an endpoint
CreateProcessingJobSupportedCreates a processing job
DescribeProcessingJobSupportedReturns processing job details
ListProcessingJobsSupportedLists processing jobs
StopProcessingJobSupportedStops a processing job
CreateTransformJobSupportedCreates a batch transform job
DescribeTransformJobSupportedReturns transform job details
ListTransformJobsSupportedLists transform jobs
StopTransformJobSupportedStops a transform job
InvokeEndpointSupportedReturns a stub inference response
AddTagsSupportedAdds tags to a resource
DeleteTagsSupportedRemoves tags from a resource
ListTagsSupportedLists tags for a resource
import { SageMakerClient, CreateNotebookInstanceCommand } from '@aws-sdk/client-sagemaker';
const client = new SageMakerClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateNotebookInstanceCommand({
NotebookInstanceName: 'my-notebook',
InstanceType: 'ml.t3.medium',
RoleArn: 'arn:aws:iam::000000000000:role/sagemaker-role',
}));
import boto3
client = boto3.client('sagemaker',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_notebook_instance(
NotebookInstanceName='my-notebook',
InstanceType='ml.t3.medium',
RoleArn='arn:aws:iam::000000000000:role/sagemaker-role')
cloudmock.yml
services:
sagemaker:
enabled: true
  • No actual ML infrastructure is provisioned
  • Training and processing jobs do not execute real workloads
  • InvokeEndpoint returns stub responses, not model inference
  • Notebook instances are metadata-only