| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.CognitoSync.ListDatasets
Description
Lists datasets for an 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.
ListDatasets can be called with temporary user credentials provided by
Cognito Identity or with developer credentials. You should use the Cognito
Identity credentials to make this API call.
http://docs.aws.amazon.com/cognitosync/latest/APIReference/API_ListDatasets.html
- data ListDatasets
- listDatasets :: Text -> Text -> ListDatasets
- ldIdentityId :: Lens' ListDatasets Text
- ldIdentityPoolId :: Lens' ListDatasets Text
- ldMaxResults :: Lens' ListDatasets (Maybe Int)
- ldNextToken :: Lens' ListDatasets (Maybe Text)
- data ListDatasetsResponse
- listDatasetsResponse :: ListDatasetsResponse
- ldrCount :: Lens' ListDatasetsResponse (Maybe Int)
- ldrDatasets :: Lens' ListDatasetsResponse [Dataset]
- ldrNextToken :: Lens' ListDatasetsResponse (Maybe Text)
Request
data ListDatasets Source
Instances
| Eq ListDatasets | |
| Ord ListDatasets | |
| Read ListDatasets | |
| Show ListDatasets | |
| AWSRequest ListDatasets | |
| ToQuery ListDatasets | |
| ToPath ListDatasets | |
| ToHeaders ListDatasets | |
| ToJSON ListDatasets | |
| type Sv ListDatasets = CognitoSync | |
| type Rs ListDatasets = ListDatasetsResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> ListDatasets |
ListDatasets constructor.
The fields accessible through corresponding lenses are:
ldIdentityId::TextldIdentityPoolId::TextldMaxResults::MaybeIntldNextToken::MaybeText
Request lenses
ldIdentityId :: Lens' ListDatasets 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.
ldIdentityPoolId :: Lens' ListDatasets 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.
ldMaxResults :: Lens' ListDatasets (Maybe Int) Source
The maximum number of results to be returned.
ldNextToken :: Lens' ListDatasets (Maybe Text) Source
A pagination token for obtaining the next page of results.
Response
data ListDatasetsResponse Source
Instances
Response constructor
listDatasetsResponse :: ListDatasetsResponse Source
ListDatasetsResponse constructor.
The fields accessible through corresponding lenses are:
ldrCount::MaybeIntldrDatasets::[Dataset]ldrNextToken::MaybeText
Response lenses
ldrCount :: Lens' ListDatasetsResponse (Maybe Int) Source
Number of datasets returned.
ldrDatasets :: Lens' ListDatasetsResponse [Dataset] Source
A set of datasets.
ldrNextToken :: Lens' ListDatasetsResponse (Maybe Text) Source
A pagination token for obtaining the next page of results.