| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.SignUp
Description
Registers the user in the specified user pool and creates a user name, password, and user attributes.
- signUp :: Text -> Text -> Text -> SignUp
- data SignUp
- suUserAttributes :: Lens' SignUp [AttributeType]
- suSecretHash :: Lens' SignUp (Maybe Text)
- suValidationData :: Lens' SignUp [AttributeType]
- suClientId :: Lens' SignUp Text
- suUsername :: Lens' SignUp Text
- suPassword :: Lens' SignUp Text
- signUpResponse :: Int -> SignUpResponse
- data SignUpResponse
- sursUserConfirmed :: Lens' SignUpResponse (Maybe Bool)
- sursCodeDeliveryDetails :: Lens' SignUpResponse (Maybe CodeDeliveryDetailsType)
- sursResponseStatus :: Lens' SignUpResponse Int
Creating a Request
Creates a value of SignUp with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
suUserAttributes- An array of name-value pairs representing user attributes.suSecretHash- A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.suValidationData- The validation data in the request to register a user.suClientId- The ID of the client associated with the user pool.suUsername- The user name of the user you wish to register.suPassword- The password of the user you wish to register.
Represents the request to register a user.
See: signUp smart constructor.
Instances
| Eq SignUp Source # | |
| Data SignUp Source # | |
| Read SignUp Source # | |
| Show SignUp Source # | |
| Generic SignUp Source # | |
| Hashable SignUp Source # | |
| ToJSON SignUp Source # | |
| NFData SignUp Source # | |
| AWSRequest SignUp Source # | |
| ToPath SignUp Source # | |
| ToHeaders SignUp Source # | |
| ToQuery SignUp Source # | |
| type Rep SignUp Source # | |
| type Rs SignUp Source # | |
Request Lenses
suUserAttributes :: Lens' SignUp [AttributeType] Source #
An array of name-value pairs representing user attributes.
suSecretHash :: Lens' SignUp (Maybe Text) Source #
A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.
suValidationData :: Lens' SignUp [AttributeType] Source #
The validation data in the request to register a user.
Destructuring the Response
Arguments
| :: Int | |
| -> SignUpResponse |
Creates a value of SignUpResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sursUserConfirmed- A response from the server indicating that a user registration has been confirmed.sursCodeDeliveryDetails- The code delivery details returned by the server response to the user registration request.sursResponseStatus- -- | The response status code.
data SignUpResponse Source #
The response from the server for a registration request.
See: signUpResponse smart constructor.
Response Lenses
sursUserConfirmed :: Lens' SignUpResponse (Maybe Bool) Source #
A response from the server indicating that a user registration has been confirmed.
sursCodeDeliveryDetails :: Lens' SignUpResponse (Maybe CodeDeliveryDetailsType) Source #
The code delivery details returned by the server response to the user registration request.
sursResponseStatus :: Lens' SignUpResponse Int Source #
- - | The response status code.