amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider 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.CognitoIdentityProvider.ListDevices

Description

Lists the sign-in devices that Amazon Cognito has registered to the current user.

Synopsis

Creating a Request

data ListDevices Source #

Represents the request to list the devices.

See: newListDevices smart constructor.

Constructors

ListDevices' 

Fields

Instances

Instances details
ToJSON ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

ToHeaders ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Methods

toHeaders :: ListDevices -> [Header] #

ToPath ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

ToQuery ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

AWSRequest ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Associated Types

type AWSResponse ListDevices #

Generic ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Associated Types

type Rep ListDevices :: Type -> Type #

Show ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

NFData ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Methods

rnf :: ListDevices -> () #

Eq ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Hashable ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

type AWSResponse ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

type Rep ListDevices Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

type Rep ListDevices = D1 ('MetaData "ListDevices" "Amazonka.CognitoIdentityProvider.ListDevices" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "ListDevices'" 'PrefixI 'True) (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "paginationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))

newListDevices Source #

Create a value of ListDevices 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:limit:ListDevices', listDevices_limit - The limit of the device request.

ListDevices, listDevices_paginationToken - The pagination token for the list request.

ListDevices, listDevices_accessToken - A valid access token that Amazon Cognito issued to the user whose list of devices you want to view.

Request Lenses

listDevices_limit :: Lens' ListDevices (Maybe Natural) Source #

The limit of the device request.

listDevices_paginationToken :: Lens' ListDevices (Maybe Text) Source #

The pagination token for the list request.

listDevices_accessToken :: Lens' ListDevices Text Source #

A valid access token that Amazon Cognito issued to the user whose list of devices you want to view.

Destructuring the Response

data ListDevicesResponse Source #

Represents the response to list devices.

See: newListDevicesResponse smart constructor.

Constructors

ListDevicesResponse' 

Fields

Instances

Instances details
Generic ListDevicesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Associated Types

type Rep ListDevicesResponse :: Type -> Type #

Show ListDevicesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

NFData ListDevicesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

Methods

rnf :: ListDevicesResponse -> () #

Eq ListDevicesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

type Rep ListDevicesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ListDevices

type Rep ListDevicesResponse = D1 ('MetaData "ListDevicesResponse" "Amazonka.CognitoIdentityProvider.ListDevices" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "ListDevicesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "devices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeviceType])) :*: (S1 ('MetaSel ('Just "paginationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListDevicesResponse Source #

Create a value of ListDevicesResponse 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:devices:ListDevicesResponse', listDevicesResponse_devices - The devices returned in the list devices response.

ListDevices, listDevicesResponse_paginationToken - The pagination token for the list device response.

$sel:httpStatus:ListDevicesResponse', listDevicesResponse_httpStatus - The response's http status code.

Response Lenses

listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceType]) Source #

The devices returned in the list devices response.

listDevicesResponse_paginationToken :: Lens' ListDevicesResponse (Maybe Text) Source #

The pagination token for the list device response.