Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.
Synopsis
- data CreateToken = CreateToken' {}
- newCreateToken :: Text -> CreateToken
- createToken_appId :: Lens' CreateToken Text
- data CreateTokenResponse = CreateTokenResponse' {}
- newCreateTokenResponse :: Int -> CreateTokenResponse
- createTokenResponse_ttl :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_appId :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_sessionId :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_challengeCode :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_httpStatus :: Lens' CreateTokenResponse Int
Creating a Request
data CreateToken Source #
See: newCreateToken
smart constructor.
Instances
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
createToken_appId :: Lens' CreateToken Text Source #
The app ID.
Destructuring the Response
data CreateTokenResponse Source #
See: newCreateTokenResponse
smart constructor.
CreateTokenResponse' | |
|
Instances
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_appId :: Lens' CreateTokenResponse (Maybe Text) Source #
The app ID.
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.
createTokenResponse_httpStatus :: Lens' CreateTokenResponse Int Source #
The response's http status code.