amazonka-amplifybackend-2.0: Amazon AmplifyBackend 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.AmplifyBackend.CreateToken

Description

Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.

Synopsis

Creating a Request

data CreateToken Source #

See: newCreateToken smart constructor.

Constructors

CreateToken' 

Fields

Instances

Instances details
ToJSON CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

ToHeaders CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Methods

toHeaders :: CreateToken -> [Header] #

ToPath CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

ToQuery CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

AWSRequest CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type AWSResponse CreateToken #

Generic CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type Rep CreateToken :: Type -> Type #

Read CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Show CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

NFData CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Methods

rnf :: CreateToken -> () #

Eq CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Hashable CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

type AWSResponse CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

type Rep CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

type Rep CreateToken = D1 ('MetaData "CreateToken" "Amazonka.AmplifyBackend.CreateToken" "amazonka-amplifybackend-2.0-KAbme26dIsGHSomQ2pZcRc" 'False) (C1 ('MetaCons "CreateToken'" 'PrefixI 'True) (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateToken Source #

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

CreateToken, createToken_appId - The app ID.

Request Lenses

Destructuring the Response

data CreateTokenResponse Source #

See: newCreateTokenResponse smart constructor.

Constructors

CreateTokenResponse' 

Fields

Instances

Instances details
Generic CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type Rep CreateTokenResponse :: Type -> Type #

Read CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Show CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

NFData CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Methods

rnf :: CreateTokenResponse -> () #

Eq CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

type Rep CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

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

newCreateTokenResponse Source #

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

CreateToken, createTokenResponse_appId - The app ID.

$sel:challengeCode:CreateTokenResponse', createTokenResponse_challengeCode - One-time challenge code for authenticating into the Amplify Admin UI.

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

$sel:ttl:CreateTokenResponse', createTokenResponse_ttl - The expiry time for the one-time generated token code.

$sel:httpStatus:CreateTokenResponse', createTokenResponse_httpStatus - The response's http status code.

Response Lenses

createTokenResponse_challengeCode :: Lens' CreateTokenResponse (Maybe Text) Source #

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

createTokenResponse_sessionId :: Lens' CreateTokenResponse (Maybe Text) Source #

A unique ID provided when creating a new challenge token.

createTokenResponse_ttl :: Lens' CreateTokenResponse (Maybe Text) Source #

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