amazonka-appsync-2.0: Amazon AppSync 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.AppSync.ListDataSources

Description

Lists the data sources for a given API.

This operation returns paginated results.

Synopsis

Creating a Request

data ListDataSources Source #

See: newListDataSources smart constructor.

Constructors

ListDataSources' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results that you want the request to return.

  • nextToken :: Maybe Text

    An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

  • apiId :: Text

    The API ID.

Instances

Instances details
ToHeaders ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

ToPath ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

ToQuery ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

AWSPager ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

AWSRequest ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Associated Types

type AWSResponse ListDataSources #

Generic ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Associated Types

type Rep ListDataSources :: Type -> Type #

Read ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Show ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

NFData ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Methods

rnf :: ListDataSources -> () #

Eq ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Hashable ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

type AWSResponse ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

type Rep ListDataSources Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

type Rep ListDataSources = D1 ('MetaData "ListDataSources" "Amazonka.AppSync.ListDataSources" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "ListDataSources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListDataSources Source #

Create a value of ListDataSources 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:ListDataSources', listDataSources_maxResults - The maximum number of results that you want the request to return.

ListDataSources, listDataSources_nextToken - An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

ListDataSources, listDataSources_apiId - The API ID.

Request Lenses

listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listDataSources_nextToken :: Lens' ListDataSources (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

Destructuring the Response

data ListDataSourcesResponse Source #

See: newListDataSourcesResponse smart constructor.

Constructors

ListDataSourcesResponse' 

Fields

Instances

Instances details
Generic ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Associated Types

type Rep ListDataSourcesResponse :: Type -> Type #

Read ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Show ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

NFData ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

Methods

rnf :: ListDataSourcesResponse -> () #

Eq ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

type Rep ListDataSourcesResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListDataSources

type Rep ListDataSourcesResponse = D1 ('MetaData "ListDataSourcesResponse" "Amazonka.AppSync.ListDataSources" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "ListDataSourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataSources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DataSource])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListDataSourcesResponse Source #

Create a value of ListDataSourcesResponse 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:dataSources:ListDataSourcesResponse', listDataSourcesResponse_dataSources - The DataSource objects.

ListDataSources, listDataSourcesResponse_nextToken - An identifier to pass in the next request to this operation to return the next set of items in the list.

$sel:httpStatus:ListDataSourcesResponse', listDataSourcesResponse_httpStatus - The response's http status code.

Response Lenses

listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.