Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns a unique generated shared secret key code for the user account. The request takes an access token or a session string, but not both.
- associateSoftwareToken :: AssociateSoftwareToken
- data AssociateSoftwareToken
- astAccessToken :: Lens' AssociateSoftwareToken (Maybe Text)
- astSession :: Lens' AssociateSoftwareToken (Maybe Text)
- associateSoftwareTokenResponse :: Int -> AssociateSoftwareTokenResponse
- data AssociateSoftwareTokenResponse
- astrsSecretCode :: Lens' AssociateSoftwareTokenResponse (Maybe Text)
- astrsSession :: Lens' AssociateSoftwareTokenResponse (Maybe Text)
- astrsResponseStatus :: Lens' AssociateSoftwareTokenResponse Int
Creating a Request
associateSoftwareToken :: AssociateSoftwareToken Source #
Creates a value of AssociateSoftwareToken
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
astAccessToken
- The access token.astSession
- The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
data AssociateSoftwareToken Source #
See: associateSoftwareToken
smart constructor.
Request Lenses
astAccessToken :: Lens' AssociateSoftwareToken (Maybe Text) Source #
The access token.
astSession :: Lens' AssociateSoftwareToken (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
Destructuring the Response
associateSoftwareTokenResponse Source #
Creates a value of AssociateSoftwareTokenResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
astrsSecretCode
- A unique generated shared secret code that is used in the TOTP algorithm to generate a one time code.astrsSession
- The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.astrsResponseStatus
- -- | The response status code.
data AssociateSoftwareTokenResponse Source #
See: associateSoftwareTokenResponse
smart constructor.
Response Lenses
astrsSecretCode :: Lens' AssociateSoftwareTokenResponse (Maybe Text) Source #
A unique generated shared secret code that is used in the TOTP algorithm to generate a one time code.
astrsSession :: Lens' AssociateSoftwareTokenResponse (Maybe Text) Source #
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
astrsResponseStatus :: Lens' AssociateSoftwareTokenResponse Int Source #
- - | The response status code.