disassociateAccounts method

Future<DisassociateAccountsOutput> disassociateAccounts({
  1. required List<String> accountIds,
  2. required String arn,
})

Removes the specified list of account IDs from the given billing group.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter accountIds : The array of account IDs to disassociate.

Parameter arn : The Amazon Resource Name (ARN) of the billing group that the array of account IDs will disassociate from.

Implementation

Future<DisassociateAccountsOutput> disassociateAccounts({
  required List<String> accountIds,
  required String arn,
}) async {
  final $payload = <String, dynamic>{
    'AccountIds': accountIds,
    'Arn': arn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/disassociate-accounts',
    exceptionFnMap: _exceptionFns,
  );
  return DisassociateAccountsOutput.fromJson(response);
}