deleteOrganization method
Deletes the organization. You can delete an organization only by using credentials from the management account. The organization must be empty of member accounts.
May throw AccessDeniedException. May throw AWSOrganizationsNotInUseException. May throw ConcurrentModificationException. May throw InvalidInputException. May throw OrganizationNotEmptyException. May throw ServiceException. May throw TooManyRequestsException.
Implementation
Future<void> deleteOrganization() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSOrganizationsV20161128.DeleteOrganization'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
}