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

Description

Lists the API keys for a given API.

API keys are deleted automatically 60 days after they expire. However, they may still be included in the response until they have actually been deleted. You can safely call DeleteApiKey to manually delete a key before it's automatically deleted.

This operation returns paginated results.

Synopsis

Creating a Request

data ListApiKeys Source #

See: newListApiKeys smart constructor.

Constructors

ListApiKeys' 

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

Defined in Amazonka.AppSync.ListApiKeys

Methods

toHeaders :: ListApiKeys -> [Header] #

ToPath ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

ToQuery ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

AWSPager ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

AWSRequest ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Associated Types

type AWSResponse ListApiKeys #

Generic ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Associated Types

type Rep ListApiKeys :: Type -> Type #

Read ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Show ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

NFData ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Methods

rnf :: ListApiKeys -> () #

Eq ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Hashable ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

type AWSResponse ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

type Rep ListApiKeys Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

type Rep ListApiKeys = D1 ('MetaData "ListApiKeys" "Amazonka.AppSync.ListApiKeys" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "ListApiKeys'" '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))))

newListApiKeys Source #

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

ListApiKeys, listApiKeys_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.

ListApiKeys, listApiKeys_apiId - The API ID.

Request Lenses

listApiKeys_maxResults :: Lens' ListApiKeys (Maybe Natural) Source #

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

listApiKeys_nextToken :: Lens' ListApiKeys (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 ListApiKeysResponse Source #

See: newListApiKeysResponse smart constructor.

Constructors

ListApiKeysResponse' 

Fields

Instances

Instances details
Generic ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Associated Types

type Rep ListApiKeysResponse :: Type -> Type #

Read ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Show ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

NFData ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

Methods

rnf :: ListApiKeysResponse -> () #

Eq ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

type Rep ListApiKeysResponse Source # 
Instance details

Defined in Amazonka.AppSync.ListApiKeys

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

newListApiKeysResponse Source #

Create a value of ListApiKeysResponse 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:apiKeys:ListApiKeysResponse', listApiKeysResponse_apiKeys - The ApiKey objects.

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

$sel:httpStatus:ListApiKeysResponse', listApiKeysResponse_httpStatus - The response's http status code.

Response Lenses

listApiKeysResponse_nextToken :: Lens' ListApiKeysResponse (Maybe Text) Source #

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