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

Synopsis

Creating a Request

data ListDatasets Source #

Request for a list of datasets for an identity.

See: newListDatasets smart constructor.

Constructors

ListDatasets' 

Fields

  • nextToken :: Maybe Text

    A pagination token for obtaining the next page of results.

  • maxResults :: Maybe Int

    The maximum number of results to be returned.

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

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

Instances

Instances details
Eq ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Read ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Show ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Generic ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasets :: Type -> Type #

NFData ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Methods

rnf :: ListDatasets -> () #

Hashable ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

AWSRequest ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type AWSResponse ListDatasets #

ToHeaders ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

ToPath ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

ToQuery ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

type Rep ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

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

Defined in Amazonka.CognitoSync.ListDatasets

newListDatasets Source #

Create a value of ListDatasets 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:nextToken:ListDatasets', listDatasets_nextToken - A pagination token for obtaining the next page of results.

$sel:maxResults:ListDatasets', listDatasets_maxResults - The maximum number of results to be returned.

$sel:identityId:ListDatasets', listDatasets_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:identityPoolId:ListDatasets', listDatasets_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.

Request Lenses

listDatasets_nextToken :: Lens' ListDatasets (Maybe Text) Source #

A pagination token for obtaining the next page of results.

listDatasets_maxResults :: Lens' ListDatasets (Maybe Int) Source #

The maximum number of results to be returned.

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

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

Destructuring the Response

data ListDatasetsResponse Source #

Returned for a successful ListDatasets request.

See: newListDatasetsResponse smart constructor.

Constructors

ListDatasetsResponse' 

Fields

Instances

Instances details
Eq ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Read ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Show ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Generic ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasetsResponse :: Type -> Type #

NFData ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Methods

rnf :: ListDatasetsResponse -> () #

type Rep ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

type Rep ListDatasetsResponse = D1 ('MetaData "ListDatasetsResponse" "Amazonka.CognitoSync.ListDatasets" "libZSservicesZSamazonka-cognito-syncZSamazonka-cognito-sync" 'False) (C1 ('MetaCons "ListDatasetsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "datasets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dataset])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListDatasetsResponse Source #

Create a value of ListDatasetsResponse 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:count:ListDatasetsResponse', listDatasetsResponse_count - Number of datasets returned.

$sel:nextToken:ListDatasets', listDatasetsResponse_nextToken - A pagination token for obtaining the next page of results.

$sel:datasets:ListDatasetsResponse', listDatasetsResponse_datasets - A set of datasets.

$sel:httpStatus:ListDatasetsResponse', listDatasetsResponse_httpStatus - The response's http status code.

Response Lenses

listDatasetsResponse_nextToken :: Lens' ListDatasetsResponse (Maybe Text) Source #

A pagination token for obtaining the next page of results.