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 |
Creates a new user within the specified identity store.
Synopsis
- data CreateUser = CreateUser' {
- addresses :: Maybe (NonEmpty Address)
- displayName :: Maybe (Sensitive Text)
- emails :: Maybe (NonEmpty Email)
- locale :: Maybe (Sensitive Text)
- name :: Maybe Name
- nickName :: Maybe (Sensitive Text)
- phoneNumbers :: Maybe (NonEmpty PhoneNumber)
- preferredLanguage :: Maybe (Sensitive Text)
- profileUrl :: Maybe (Sensitive Text)
- timezone :: Maybe (Sensitive Text)
- title :: Maybe (Sensitive Text)
- userName :: Maybe (Sensitive Text)
- userType :: Maybe (Sensitive Text)
- identityStoreId :: Text
- newCreateUser :: Text -> CreateUser
- createUser_addresses :: Lens' CreateUser (Maybe (NonEmpty Address))
- createUser_displayName :: Lens' CreateUser (Maybe Text)
- createUser_emails :: Lens' CreateUser (Maybe (NonEmpty Email))
- createUser_locale :: Lens' CreateUser (Maybe Text)
- createUser_name :: Lens' CreateUser (Maybe Name)
- createUser_nickName :: Lens' CreateUser (Maybe Text)
- createUser_phoneNumbers :: Lens' CreateUser (Maybe (NonEmpty PhoneNumber))
- createUser_preferredLanguage :: Lens' CreateUser (Maybe Text)
- createUser_profileUrl :: Lens' CreateUser (Maybe Text)
- createUser_timezone :: Lens' CreateUser (Maybe Text)
- createUser_title :: Lens' CreateUser (Maybe Text)
- createUser_userName :: Lens' CreateUser (Maybe Text)
- createUser_userType :: Lens' CreateUser (Maybe Text)
- createUser_identityStoreId :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- httpStatus :: Int
- userId :: Text
- identityStoreId :: Text
- newCreateUserResponse :: Int -> Text -> Text -> CreateUserResponse
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
- createUserResponse_userId :: Lens' CreateUserResponse Text
- createUserResponse_identityStoreId :: Lens' CreateUserResponse Text
Creating a Request
data CreateUser Source #
See: newCreateUser
smart constructor.
CreateUser' | |
|
Instances
:: Text | |
-> CreateUser |
Create a value of CreateUser
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:
CreateUser
, createUser_addresses
- A list of Address
objects containing addresses associated with the
user.
CreateUser
, createUser_displayName
- A string containing the user's name. This value is typically formatted
for display when the user is referenced. For example, "John Doe."
CreateUser
, createUser_emails
- A list of Email
objects containing email addresses associated with the
user.
CreateUser
, createUser_locale
- A string containing the user's geographical region or location.
CreateUser
, createUser_name
- An object containing the user's name.
CreateUser
, createUser_nickName
- A string containing an alternate name for the user.
CreateUser
, createUser_phoneNumbers
- A list of PhoneNumber
objects containing phone numbers associated with
the user.
CreateUser
, createUser_preferredLanguage
- A string containing the preferred language of the user. For example,
"American English" or "en-us."
CreateUser
, createUser_profileUrl
- A string containing a URL that may be associated with the user.
CreateUser
, createUser_timezone
- A string containing the user's time zone.
CreateUser
, createUser_title
- A string containing the user's title. Possible values are left
unspecified given that they depend on each customer's specific needs.
CreateUser
, createUser_userName
- A unique string used to identify the user. The length limit is 128
characters. This value can consist of letters, accented characters,
symbols, numbers, and punctuation. This value is specified at the time
the user is created and stored as an attribute of the user object in the
identity store.
CreateUser
, createUser_userType
- A string indicating the user's type. Possible values depend on each
customer's specific needs, so they are left unspecified.
CreateUser
, createUser_identityStoreId
- The globally unique identifier for the identity store.
Request Lenses
createUser_addresses :: Lens' CreateUser (Maybe (NonEmpty Address)) Source #
A list of Address
objects containing addresses associated with the
user.
createUser_displayName :: Lens' CreateUser (Maybe Text) Source #
A string containing the user's name. This value is typically formatted for display when the user is referenced. For example, "John Doe."
createUser_emails :: Lens' CreateUser (Maybe (NonEmpty Email)) Source #
A list of Email
objects containing email addresses associated with the
user.
createUser_locale :: Lens' CreateUser (Maybe Text) Source #
A string containing the user's geographical region or location.
createUser_name :: Lens' CreateUser (Maybe Name) Source #
An object containing the user's name.
createUser_nickName :: Lens' CreateUser (Maybe Text) Source #
A string containing an alternate name for the user.
createUser_phoneNumbers :: Lens' CreateUser (Maybe (NonEmpty PhoneNumber)) Source #
A list of PhoneNumber
objects containing phone numbers associated with
the user.
createUser_preferredLanguage :: Lens' CreateUser (Maybe Text) Source #
A string containing the preferred language of the user. For example, "American English" or "en-us."
createUser_profileUrl :: Lens' CreateUser (Maybe Text) Source #
A string containing a URL that may be associated with the user.
createUser_timezone :: Lens' CreateUser (Maybe Text) Source #
A string containing the user's time zone.
createUser_title :: Lens' CreateUser (Maybe Text) Source #
A string containing the user's title. Possible values are left unspecified given that they depend on each customer's specific needs.
createUser_userName :: Lens' CreateUser (Maybe Text) Source #
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
createUser_userType :: Lens' CreateUser (Maybe Text) Source #
A string indicating the user's type. Possible values depend on each customer's specific needs, so they are left unspecified.
createUser_identityStoreId :: Lens' CreateUser Text Source #
The globally unique identifier for the identity store.
Destructuring the Response
data CreateUserResponse Source #
See: newCreateUserResponse
smart constructor.
CreateUserResponse' | |
|
Instances
newCreateUserResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateUserResponse |
Create a value of CreateUserResponse
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:httpStatus:CreateUserResponse'
, createUserResponse_httpStatus
- The response's http status code.
CreateUserResponse
, createUserResponse_userId
- The identifier of the newly created user in the identity store.
CreateUser
, createUserResponse_identityStoreId
- The globally unique identifier for the identity store.
Response Lenses
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.
createUserResponse_userId :: Lens' CreateUserResponse Text Source #
The identifier of the newly created user in the identity store.
createUserResponse_identityStoreId :: Lens' CreateUserResponse Text Source #
The globally unique identifier for the identity store.