deleteDomain method
The DeleteDomain
operation deletes a domain. Any items (and
their attributes) in the domain are deleted as well. The
DeleteDomain
operation might take 10 or more seconds to
complete.
May throw MissingParameter.
Parameter domainName
:
The name of the domain to delete.
Implementation
Future<void> deleteDomain({
required String domainName,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
final $request = <String, dynamic>{};
$request['DomainName'] = domainName;
await _protocol.send(
$request,
action: 'DeleteDomain',
version: '2009-04-15',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDomainRequest'],
shapes: shapes,
);
}