deleteMembers method

Future<DeleteMembersResponse> deleteMembers({
  1. required List<String> accountIds,
})

Deletes the specified member accounts from Security Hub.

Can be used to delete member accounts that belong to an organization as well as member accounts that were invited manually.

May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException. May throw ResourceNotFoundException.

Parameter accountIds : The list of account IDs for the member accounts to delete.

Implementation

Future<DeleteMembersResponse> deleteMembers({
  required List<String> accountIds,
}) async {
  ArgumentError.checkNotNull(accountIds, 'accountIds');
  final $payload = <String, dynamic>{
    'AccountIds': accountIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/members/delete',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteMembersResponse.fromJson(response);
}