libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoSync.DeleteDataset

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.

Synopsis

Creating a Request

data DeleteDataset Source #

A request to delete the specific dataset.

See: newDeleteDataset smart constructor.

Constructors

DeleteDataset' 

Fields

  • identityPoolId :: Text

    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.

  • identityId :: Text

    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.

  • datasetName :: Text

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

Instances

Instances details
Eq DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Read DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Show DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Generic DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Associated Types

type Rep DeleteDataset :: Type -> Type #

NFData DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Methods

rnf :: DeleteDataset -> () #

Hashable DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

AWSRequest DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Associated Types

type AWSResponse DeleteDataset #

ToHeaders DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

ToPath DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

ToQuery DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

type Rep DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

type Rep DeleteDataset = D1 ('MetaData "DeleteDataset" "Amazonka.CognitoSync.DeleteDataset" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "DeleteDataset'" 'PrefixI 'True) (S1 ('MetaSel ('Just "identityPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "datasetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteDataset Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

newDeleteDataset Source #

Create a value of DeleteDataset with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:identityPoolId:DeleteDataset', deleteDataset_identityPoolId - 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.

$sel:identityId:DeleteDataset', deleteDataset_identityId - 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.

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

Request Lenses

deleteDataset_identityPoolId :: 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.

deleteDataset_identityId :: 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.

deleteDataset_datasetName :: 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

data DeleteDatasetResponse Source #

Response to a successful DeleteDataset request.

See: newDeleteDatasetResponse smart constructor.

Constructors

DeleteDatasetResponse' 

Fields

  • dataset :: Maybe Dataset

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Read DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Show DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Generic DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Associated Types

type Rep DeleteDatasetResponse :: Type -> Type #

NFData DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

Methods

rnf :: DeleteDatasetResponse -> () #

type Rep DeleteDatasetResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.DeleteDataset

type Rep DeleteDatasetResponse = D1 ('MetaData "DeleteDatasetResponse" "Amazonka.CognitoSync.DeleteDataset" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "DeleteDatasetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Dataset)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteDatasetResponse Source #

Create a value of DeleteDatasetResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataset:DeleteDatasetResponse', deleteDatasetResponse_dataset - 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.

$sel:httpStatus:DeleteDatasetResponse', deleteDatasetResponse_httpStatus - The response's http status code.

Response Lenses

deleteDatasetResponse_dataset :: 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.