amazonka-cognito-sync-2.0: Amazon Cognito Sync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoSync.Types.Dataset

Description

 
Synopsis

Documentation

data 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.

See: newDataset smart constructor.

Constructors

Dataset' 

Fields

Instances

Instances details
FromJSON Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Generic Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Associated Types

type Rep Dataset :: Type -> Type #

Methods

from :: Dataset -> Rep Dataset x #

to :: Rep Dataset x -> Dataset #

Read Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Show Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

NFData Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Methods

rnf :: Dataset -> () #

Eq Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Methods

(==) :: Dataset -> Dataset -> Bool #

(/=) :: Dataset -> Dataset -> Bool #

Hashable Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

Methods

hashWithSalt :: Int -> Dataset -> Int #

hash :: Dataset -> Int #

type Rep Dataset Source # 
Instance details

Defined in Amazonka.CognitoSync.Types.Dataset

type Rep Dataset = D1 ('MetaData "Dataset" "Amazonka.CognitoSync.Types.Dataset" "amazonka-cognito-sync-2.0-4eAo0O3jWiUGlkSwv2vKaB" 'False) (C1 ('MetaCons "Dataset'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "dataStorage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "datasetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastModifiedBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastModifiedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "numRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))))

newDataset :: Dataset Source #

Create a value of Dataset 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:creationDate:Dataset', dataset_creationDate - Date on which the dataset was created.

$sel:dataStorage:Dataset', dataset_dataStorage - Total size in bytes of the records in this dataset.

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

$sel:identityId:Dataset', dataset_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:lastModifiedBy:Dataset', dataset_lastModifiedBy - The device that made the last change to this dataset.

$sel:lastModifiedDate:Dataset', dataset_lastModifiedDate - Date when the dataset was last modified.

$sel:numRecords:Dataset', dataset_numRecords - Number of records in this dataset.

dataset_creationDate :: Lens' Dataset (Maybe UTCTime) Source #

Date on which the dataset was created.

dataset_dataStorage :: Lens' Dataset (Maybe Integer) Source #

Total size in bytes of the records in this dataset.

dataset_datasetName :: Lens' Dataset (Maybe Text) Source #

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

dataset_identityId :: Lens' Dataset (Maybe 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.

dataset_lastModifiedBy :: Lens' Dataset (Maybe Text) Source #

The device that made the last change to this dataset.

dataset_lastModifiedDate :: Lens' Dataset (Maybe UTCTime) Source #

Date when the dataset was last modified.

dataset_numRecords :: Lens' Dataset (Maybe Integer) Source #

Number of records in this dataset.