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 AWS Developer credentials to call this API.

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

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

Implementation

Future<DeleteIdentitiesResponse> deleteIdentities({
  required List<String> identityIdsToDelete,
}) async {
  ArgumentError.checkNotNull(identityIdsToDelete, 'identityIdsToDelete');
  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);
}