deleteNamespace method
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails.
May throw DuplicateRequest.
May throw InvalidInput.
May throw NamespaceNotFound.
May throw ResourceInUse.
Parameter id :
The ID or Amazon Resource Name (ARN) of the namespace that you want to
delete.
Implementation
Future<DeleteNamespaceResponse> deleteNamespace({
required String id,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53AutoNaming_v20170314.DeleteNamespace'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Id': id,
},
);
return DeleteNamespaceResponse.fromJson(jsonResponse.body);
}