Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_appId :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_challengeCode :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_sessionId :: Lens' CreateTokenResponse (Maybe Text)
- createTokenResponse_ttl :: 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:
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:
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_appId :: Lens' CreateTokenResponse (Maybe Text) Source #
The app ID.
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.
createTokenResponse_httpStatus :: Lens' CreateTokenResponse Int Source #
The response's http status code.