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 |
Gets the challenge token based on the given appId and sessionId.
Synopsis
- data GetToken = GetToken' {}
- newGetToken :: Text -> Text -> GetToken
- getToken_sessionId :: Lens' GetToken Text
- getToken_appId :: Lens' GetToken Text
- data GetTokenResponse = GetTokenResponse' {}
- newGetTokenResponse :: Int -> GetTokenResponse
- getTokenResponse_ttl :: Lens' GetTokenResponse (Maybe Text)
- getTokenResponse_appId :: Lens' GetTokenResponse (Maybe Text)
- getTokenResponse_sessionId :: Lens' GetTokenResponse (Maybe Text)
- getTokenResponse_challengeCode :: Lens' GetTokenResponse (Maybe Text)
- getTokenResponse_httpStatus :: Lens' GetTokenResponse Int
Creating a Request
See: newGetToken
smart constructor.
Instances
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.
GetTokenResponse' | |
|
Instances
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_appId :: Lens' GetTokenResponse (Maybe Text) Source #
The app ID.
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.