Skip to content

Account

CloudMock emulates AWS Account Management, supporting contact information management, alternate contacts, and region opt-in controls.

OperationStatusNotes
GetContactInformationSupportedReturns account contact information
PutContactInformationSupportedUpdates account contact information
GetAlternateContactSupportedReturns an alternate contact
PutAlternateContactSupportedCreates or updates an alternate contact
DeleteAlternateContactSupportedRemoves an alternate contact
GetRegionOptStatusSupportedReturns region opt-in status
ListRegionsSupportedLists available regions and their status
EnableRegionSupportedEnables an opt-in region
DisableRegionSupportedDisables an opt-in region
import { AccountClient, GetContactInformationCommand } from '@aws-sdk/client-account';
const client = new AccountClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const result = await client.send(new GetContactInformationCommand({}));
console.log(result.ContactInformation);
import boto3
client = boto3.client('account',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.get_contact_information()
print(response['ContactInformation'])
cloudmock.yml
services:
account:
enabled: true
  • Region opt-in status changes are stored in-memory only
  • No validation of contact information fields beyond basic presence checks