createDomain method

Future<void> createDomain({
  1. required String domainName,
})

The CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete. The client can create up to 100 domains per account.

If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/.

May throw InvalidParameterValue. May throw MissingParameter. May throw NumberDomainsExceeded.

Parameter domainName : The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.

Implementation

Future<void> createDomain({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  final $request = <String, dynamic>{};
  $request['DomainName'] = domainName;
  await _protocol.send(
    $request,
    action: 'CreateDomain',
    version: '2009-04-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CreateDomainRequest'],
    shapes: shapes,
  );
}