amazonka-cognito-sync-1.0.0: Amazon Cognito Sync SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoSync.DeleteDataset

Contents

Description

Deletes the specific dataset. The dataset will be deleted permanently, and the action can't be undone. Datasets that this dataset was merged with will no longer report the merge. Any subsequent operation on this dataset will result in a ResourceNotFoundException.

This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

See: AWS API Reference for DeleteDataset.

Synopsis

Creating a Request

deleteDataset Source

Creates a value of DeleteDataset with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

delIdentityPoolId :: Lens' DeleteDataset Text Source

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

delIdentityId :: Lens' DeleteDataset Text Source

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

delDatasetName :: Lens' DeleteDataset Text Source

A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).

Destructuring the Response

deleteDatasetResponse Source

Creates a value of DeleteDatasetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

drsDataset :: Lens' DeleteDatasetResponse (Maybe Dataset) Source

A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs.

drsStatus :: Lens' DeleteDatasetResponse Int Source

The response status code.