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

  • maxResults :: Maybe Int

    The maximum number of results to be returned.

  • nextToken :: Maybe Text

    A pagination token for obtaining the next page of results.

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

AWSRequest ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type AWSResponse ListDatasets #

Generic ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasets :: Type -> Type #

Read ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Show ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

NFData ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Methods

rnf :: ListDatasets -> () #

Eq ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Hashable ListDatasets Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

type AWSResponse 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" "amazonka-cognito-sync-2.0-4eAo0O3jWiUGlkSwv2vKaB" 'False) (C1 ('MetaCons "ListDatasets'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "identityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "identityPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:maxResults:ListDatasets', listDatasets_maxResults - The maximum number of results to be returned.

ListDatasets, listDatasets_nextToken - A pagination token for obtaining the next page of results.

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.

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_maxResults :: Lens' ListDatasets (Maybe Int) Source #

The maximum number of results to be returned.

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

A pagination token for obtaining the next page of results.

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
Generic ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Associated Types

type Rep ListDatasetsResponse :: Type -> Type #

Read ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Show ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

NFData ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

Methods

rnf :: ListDatasetsResponse -> () #

Eq ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

type Rep ListDatasetsResponse Source # 
Instance details

Defined in Amazonka.CognitoSync.ListDatasets

type Rep ListDatasetsResponse = D1 ('MetaData "ListDatasetsResponse" "Amazonka.CognitoSync.ListDatasets" "amazonka-cognito-sync-2.0-4eAo0O3jWiUGlkSwv2vKaB" 'False) (C1 ('MetaCons "ListDatasetsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "datasets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dataset]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:datasets:ListDatasetsResponse', listDatasetsResponse_datasets - A set of datasets.

ListDatasets, listDatasetsResponse_nextToken - A pagination token for obtaining the next page of results.

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