| 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.DeleteToken
Description
Deletes the challenge token based on the given appId and sessionId.
Synopsis
- data DeleteToken = DeleteToken' {}
- newDeleteToken :: Text -> Text -> DeleteToken
- deleteToken_sessionId :: Lens' DeleteToken Text
- deleteToken_appId :: Lens' DeleteToken Text
- data DeleteTokenResponse = DeleteTokenResponse' {
- isSuccess :: Maybe Bool
- httpStatus :: Int
- newDeleteTokenResponse :: Int -> DeleteTokenResponse
- deleteTokenResponse_isSuccess :: Lens' DeleteTokenResponse (Maybe Bool)
- deleteTokenResponse_httpStatus :: Lens' DeleteTokenResponse Int
Creating a Request
data DeleteToken Source #
See: newDeleteToken smart constructor.
Constructors
| DeleteToken' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteToken |
Create a value of DeleteToken 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:DeleteToken', deleteToken_sessionId - The session ID.
DeleteToken, deleteToken_appId - The app ID.
Request Lenses
deleteToken_sessionId :: Lens' DeleteToken Text Source #
The session ID.
deleteToken_appId :: Lens' DeleteToken Text Source #
The app ID.
Destructuring the Response
data DeleteTokenResponse Source #
See: newDeleteTokenResponse smart constructor.
Constructors
| DeleteTokenResponse' | |
Fields
| |
Instances
newDeleteTokenResponse Source #
Arguments
| :: Int | |
| -> DeleteTokenResponse |
Create a value of DeleteTokenResponse 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:isSuccess:DeleteTokenResponse', deleteTokenResponse_isSuccess - Indicates whether the request succeeded or failed.
$sel:httpStatus:DeleteTokenResponse', deleteTokenResponse_httpStatus - The response's http status code.
Response Lenses
deleteTokenResponse_isSuccess :: Lens' DeleteTokenResponse (Maybe Bool) Source #
Indicates whether the request succeeded or failed.
deleteTokenResponse_httpStatus :: Lens' DeleteTokenResponse Int Source #
The response's http status code.