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

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

Network.AWS.CognitoSync.ListRecords

Contents

Description

Gets paginated records, optionally changed after a particular sync count for a dataset and identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.

ListRecords can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.

Synopsis

Creating a Request

listRecords Source #

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

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

  • lrLastSyncCount - The last server sync count for this record.
  • lrNextToken - A pagination token for obtaining the next page of results.
  • lrSyncSessionToken - A token containing a session ID, identity ID, and expiration.
  • lrMaxResults - The maximum number of results to be returned.
  • lrIdentityPoolId - 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.
  • lrIdentityId - 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.
  • lrDatasetName - A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), - (dash), and . (dot).

data ListRecords Source #

A request for a list of records.

See: listRecords smart constructor.

Instances
Eq ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Data ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListRecords -> c ListRecords #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListRecords #

toConstr :: ListRecords -> Constr #

dataTypeOf :: ListRecords -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListRecords) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListRecords) #

gmapT :: (forall b. Data b => b -> b) -> ListRecords -> ListRecords #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListRecords -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListRecords -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListRecords -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListRecords -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListRecords -> m ListRecords #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRecords -> m ListRecords #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRecords -> m ListRecords #

Read ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Show ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Generic ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Associated Types

type Rep ListRecords :: Type -> Type #

Hashable ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

AWSRequest ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Associated Types

type Rs ListRecords :: Type #

ToHeaders ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Methods

toHeaders :: ListRecords -> [Header] #

ToPath ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

ToQuery ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

NFData ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Methods

rnf :: ListRecords -> () #

type Rep ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

type Rep ListRecords = D1 (MetaData "ListRecords" "Network.AWS.CognitoSync.ListRecords" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" False) (C1 (MetaCons "ListRecords'" PrefixI True) ((S1 (MetaSel (Just "_lrLastSyncCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_lrNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lrSyncSessionToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_lrMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_lrIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_lrIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_lrDatasetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListRecords Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Request Lenses

lrLastSyncCount :: Lens' ListRecords (Maybe Integer) Source #

The last server sync count for this record.

lrNextToken :: Lens' ListRecords (Maybe Text) Source #

A pagination token for obtaining the next page of results.

lrSyncSessionToken :: Lens' ListRecords (Maybe Text) Source #

A token containing a session ID, identity ID, and expiration.

lrMaxResults :: Lens' ListRecords (Maybe Int) Source #

The maximum number of results to be returned.

lrIdentityPoolId :: Lens' ListRecords 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.

lrIdentityId :: Lens' ListRecords 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.

lrDatasetName :: Lens' ListRecords 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

listRecordsResponse Source #

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

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

data ListRecordsResponse Source #

Returned for a successful ListRecordsRequest.

See: listRecordsResponse smart constructor.

Instances
Eq ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Data ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListRecordsResponse -> c ListRecordsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListRecordsResponse #

toConstr :: ListRecordsResponse -> Constr #

dataTypeOf :: ListRecordsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListRecordsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListRecordsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListRecordsResponse -> ListRecordsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListRecordsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListRecordsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListRecordsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListRecordsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListRecordsResponse -> m ListRecordsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRecordsResponse -> m ListRecordsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRecordsResponse -> m ListRecordsResponse #

Read ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Show ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Generic ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Associated Types

type Rep ListRecordsResponse :: Type -> Type #

NFData ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

Methods

rnf :: ListRecordsResponse -> () #

type Rep ListRecordsResponse Source # 
Instance details

Defined in Network.AWS.CognitoSync.ListRecords

type Rep ListRecordsResponse = D1 (MetaData "ListRecordsResponse" "Network.AWS.CognitoSync.ListRecords" "amazonka-cognito-sync-1.6.1-ha9SVGJqZqDpQMx6bgfWw" False) (C1 (MetaCons "ListRecordsResponse'" PrefixI True) (((S1 (MetaSel (Just "_lrrsDatasetDeletedAfterRequestedSyncCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_lrrsDatasetExists") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_lrrsCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 (MetaSel (Just "_lrrsRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Record])) :*: S1 (MetaSel (Just "_lrrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_lrrsMergedDatasetNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_lrrsSyncSessionToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lrrsLastModifiedBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lrrsDatasetSyncCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "_lrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

lrrsDatasetDeletedAfterRequestedSyncCount :: Lens' ListRecordsResponse (Maybe Bool) Source #

A boolean value specifying whether to delete the dataset locally.

lrrsDatasetExists :: Lens' ListRecordsResponse (Maybe Bool) Source #

Indicates whether the dataset exists.

lrrsCount :: Lens' ListRecordsResponse (Maybe Int) Source #

Total number of records.

lrrsRecords :: Lens' ListRecordsResponse [Record] Source #

A list of all records.

lrrsNextToken :: Lens' ListRecordsResponse (Maybe Text) Source #

A pagination token for obtaining the next page of results.

lrrsSyncSessionToken :: Lens' ListRecordsResponse (Maybe Text) Source #

A token containing a session ID, identity ID, and expiration.

lrrsLastModifiedBy :: Lens' ListRecordsResponse (Maybe Text) Source #

The user/device that made the last change to this record.

lrrsDatasetSyncCount :: Lens' ListRecordsResponse (Maybe Integer) Source #

Server sync count for this dataset.

lrrsResponseStatus :: Lens' ListRecordsResponse Int Source #

  • - | The response status code.