| 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 | 
Amazonka.AmplifyBackend.GetToken
Description
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_appId :: Lens' GetTokenResponse (Maybe Text)
 - getTokenResponse_challengeCode :: Lens' GetTokenResponse (Maybe Text)
 - getTokenResponse_sessionId :: Lens' GetTokenResponse (Maybe Text)
 - getTokenResponse_ttl :: 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:
GetToken, getToken_sessionId - The session ID.
GetToken, getToken_appId - The app ID.
Request Lenses
Destructuring the Response
data GetTokenResponse Source #
See: newGetTokenResponse smart constructor.
Constructors
| GetTokenResponse' | |
Fields 
  | |
Instances
Arguments
| :: Int | |
| -> GetTokenResponse | 
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:
GetToken, getTokenResponse_appId - The app ID.
$sel:challengeCode:GetTokenResponse', getTokenResponse_challengeCode - The one-time challenge code for authenticating into the Amplify Admin
 UI.
GetToken, getTokenResponse_sessionId - A unique ID provided when creating a new challenge token.
$sel:ttl:GetTokenResponse', getTokenResponse_ttl - The expiry time for the one-time generated token code.
$sel:httpStatus:GetTokenResponse', getTokenResponse_httpStatus - The response's http status code.
Response Lenses
getTokenResponse_appId :: Lens' GetTokenResponse (Maybe Text) Source #
The app ID.
getTokenResponse_challengeCode :: Lens' GetTokenResponse (Maybe Text) Source #
The one-time challenge code for authenticating into the Amplify Admin UI.
getTokenResponse_sessionId :: Lens' GetTokenResponse (Maybe Text) Source #
A unique ID provided when creating a new challenge token.
getTokenResponse_ttl :: Lens' GetTokenResponse (Maybe Text) Source #
The expiry time for the one-time generated token code.
getTokenResponse_httpStatus :: Lens' GetTokenResponse Int Source #
The response's http status code.