deleteIdentities method

Future<DeleteIdentitiesResponse> deleteIdentities({
  1. required List<String> identityIdsToDelete,
})

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use Amazon Web Services developer credentials to call this operation.

May throw InternalErrorException. May throw InvalidParameterException. May throw TooManyRequestsException.

Parameter identityIdsToDelete : A list of 1-60 identities that you want to delete.

Implementation

Future<DeleteIdentitiesResponse> deleteIdentities({
  required List<String> identityIdsToDelete,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSCognitoIdentityService.DeleteIdentities'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'IdentityIdsToDelete': identityIdsToDelete,
    },
  );

  return DeleteIdentitiesResponse.fromJson(jsonResponse.body);
}