libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AmplifyBackend.GetToken

Description

Gets the challenge token based on the given appId and sessionId.

Synopsis

Creating a Request

data GetToken Source #

See: newGetToken smart constructor.

Constructors

GetToken' 

Fields

Instances

Instances details
Eq GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Read GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Show GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Generic GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Associated Types

type Rep GetToken :: Type -> Type #

Methods

from :: GetToken -> Rep GetToken x #

to :: Rep GetToken x -> GetToken #

NFData GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Methods

rnf :: GetToken -> () #

Hashable GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Methods

hashWithSalt :: Int -> GetToken -> Int #

hash :: GetToken -> Int #

AWSRequest GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Associated Types

type AWSResponse GetToken #

ToHeaders GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Methods

toHeaders :: GetToken -> [Header] #

ToPath GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

ToQuery GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

type Rep GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

type Rep GetToken = D1 ('MetaData "GetToken" "Amazonka.AmplifyBackend.GetToken" "libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend" 'False) (C1 ('MetaCons "GetToken'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

newGetToken Source #

Create a value of GetToken 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:sessionId:GetToken', getToken_sessionId - The session ID.

$sel:appId:GetToken', getToken_appId - The app ID.

Request Lenses

Destructuring the Response

data GetTokenResponse Source #

See: newGetTokenResponse smart constructor.

Constructors

GetTokenResponse' 

Fields

Instances

Instances details
Eq GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Read GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Show GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Generic GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Associated Types

type Rep GetTokenResponse :: Type -> Type #

NFData GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

Methods

rnf :: GetTokenResponse -> () #

type Rep GetTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.GetToken

type Rep GetTokenResponse = D1 ('MetaData "GetTokenResponse" "Amazonka.AmplifyBackend.GetToken" "libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend" 'False) (C1 ('MetaCons "GetTokenResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "challengeCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetTokenResponse Source #

Create a value of GetTokenResponse 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:ttl:GetTokenResponse', getTokenResponse_ttl - The expiry time for the one-time generated token code.

$sel:appId:GetToken', getTokenResponse_appId - The app ID.

$sel:sessionId:GetToken', getTokenResponse_sessionId - A unique ID provided when creating a new challenge token.

$sel:challengeCode:GetTokenResponse', getTokenResponse_challengeCode - The one-time challenge code for authenticating into the Amplify Admin UI.

$sel:httpStatus:GetTokenResponse', getTokenResponse_httpStatus - The response's http status code.

Response Lenses

getTokenResponse_ttl :: Lens' GetTokenResponse (Maybe Text) Source #

The expiry time for the one-time generated token code.

getTokenResponse_sessionId :: Lens' GetTokenResponse (Maybe Text) Source #

A unique ID provided when creating a new challenge token.

getTokenResponse_challengeCode :: Lens' GetTokenResponse (Maybe Text) Source #

The one-time challenge code for authenticating into the Amplify Admin UI.

getTokenResponse_httpStatus :: Lens' GetTokenResponse Int Source #

The response's http status code.