Skip to content

Bedrock

CloudMock emulates Amazon Bedrock, supporting foundation model listing, provisioned throughput management, model customization jobs, guardrails, model invocation, and tagging.

OperationStatusNotes
GetFoundationModelSupportedReturns foundation model details
ListFoundationModelsSupportedLists available foundation models
CreateProvisionedModelThroughputSupportedCreates provisioned throughput
GetProvisionedModelThroughputSupportedReturns provisioned throughput details
ListProvisionedModelThroughputsSupportedLists provisioned throughputs
UpdateProvisionedModelThroughputSupportedUpdates provisioned throughput
DeleteProvisionedModelThroughputSupportedDeletes provisioned throughput
CreateModelCustomizationJobSupportedCreates a model customization job
GetModelCustomizationJobSupportedReturns customization job details
ListModelCustomizationJobsSupportedLists customization jobs
StopModelCustomizationJobSupportedStops a customization job
InvokeModelSupportedReturns a stub model response
CreateGuardrailSupportedCreates a guardrail
ApplyGuardrailSupportedApplies a guardrail to content
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { BedrockClient, ListFoundationModelsCommand } from '@aws-sdk/client-bedrock';
const client = new BedrockClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { modelSummaries } = await client.send(new ListFoundationModelsCommand({}));
console.log(modelSummaries);
import boto3
client = boto3.client('bedrock',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.list_foundation_models()
print(response['modelSummaries'])
cloudmock.yml
services:
bedrock:
enabled: true
  • InvokeModel returns stub responses, not actual model inference results
  • Foundation model list contains a predefined set of models
  • Model customization jobs do not perform actual training
  • Guardrail evaluation is simplified