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

Description

Gets the device.

Synopsis

Creating a Request

data GetDevice Source #

Represents the request to get the device.

See: newGetDevice smart constructor.

Constructors

GetDevice' 

Fields

Instances

Instances details
ToJSON GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

ToHeaders GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

Methods

toHeaders :: GetDevice -> [Header] #

ToPath GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

ToQuery GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

AWSRequest GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

Associated Types

type AWSResponse GetDevice #

Generic GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

Associated Types

type Rep GetDevice :: Type -> Type #

Show GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

NFData GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

Methods

rnf :: GetDevice -> () #

Eq GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

Hashable GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

type AWSResponse GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

type Rep GetDevice Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetDevice

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

newGetDevice Source #

Arguments

:: Text

GetDevice

-> GetDevice 

Create a value of GetDevice 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:

GetDevice, getDevice_accessToken - A valid access token that Amazon Cognito issued to the user whose device information you want to request.

GetDevice, getDevice_deviceKey - The device key.

Request Lenses

getDevice_accessToken :: Lens' GetDevice (Maybe Text) Source #

A valid access token that Amazon Cognito issued to the user whose device information you want to request.

Destructuring the Response

data GetDeviceResponse Source #

Gets the device response.

See: newGetDeviceResponse smart constructor.

Constructors

GetDeviceResponse' 

Fields

newGetDeviceResponse Source #

Create a value of GetDeviceResponse 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:httpStatus:GetDeviceResponse', getDeviceResponse_httpStatus - The response's http status code.

$sel:device:GetDeviceResponse', getDeviceResponse_device - The device.

Response Lenses

getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int Source #

The response's http status code.