disableOrganizationAdminAccount method
Disables a Security Hub administrator account. Can only be called by the organization management account.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException.
Parameter adminAccountId
:
The AWS account identifier of the Security Hub administrator account.
Implementation
Future<void> disableOrganizationAdminAccount({
required String adminAccountId,
}) async {
ArgumentError.checkNotNull(adminAccountId, 'adminAccountId');
final $payload = <String, dynamic>{
'AdminAccountId': adminAccountId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/organization/admin/disable',
exceptionFnMap: _exceptionFns,
);
}