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.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
Eq CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Read CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Show CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Generic CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type Rep CreateToken :: Type -> Type #

NFData CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Methods

rnf :: CreateToken -> () #

Hashable CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

ToJSON CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

AWSRequest CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type AWSResponse 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

type Rep CreateToken Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

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

Defined in Amazonka.AmplifyBackend.CreateToken

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:

$sel:appId:CreateToken', createToken_appId - The app ID.

Request Lenses

Destructuring the Response

data CreateTokenResponse Source #

See: newCreateTokenResponse smart constructor.

Constructors

CreateTokenResponse' 

Fields

Instances

Instances details
Eq CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Read CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Show CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Generic CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Associated Types

type Rep CreateTokenResponse :: Type -> Type #

NFData CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

Methods

rnf :: CreateTokenResponse -> () #

type Rep CreateTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyBackend.CreateToken

type Rep CreateTokenResponse = D1 ('MetaData "CreateTokenResponse" "Amazonka.AmplifyBackend.CreateToken" "libZSservicesZSamazonka-amplifybackendZSamazonka-amplifybackend" 'False) (C1 ('MetaCons "CreateTokenResponse'" '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)))))

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:

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

$sel:appId:CreateToken', createTokenResponse_appId - The app ID.

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

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

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

Response Lenses

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

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

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

A unique ID provided when creating a new challenge token.

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

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