Copyright | (c) 2013-2021 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 |
Creates an ActiveMQ user.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> Text -> Text -> CreateUser
- createUser_groups :: Lens' CreateUser (Maybe [Text])
- createUser_consoleAccess :: Lens' CreateUser (Maybe Bool)
- createUser_username :: Lens' CreateUser Text
- createUser_brokerId :: Lens' CreateUser Text
- createUser_password :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
Creates a new ActiveMQ user.
See: newCreateUser
smart constructor.
CreateUser' | |
|
Instances
:: Text | |
-> Text | |
-> 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:
$sel:groups:CreateUser'
, createUser_groups
- The list of groups (20 maximum) to which the ActiveMQ user belongs. This
value can contain only alphanumeric characters, dashes, periods,
underscores, and tildes (- . _ ~). This value must be 2-100 characters
long.
$sel:consoleAccess:CreateUser'
, createUser_consoleAccess
- Enables access to the ActiveMQ Web Console for the ActiveMQ user.
$sel:username:CreateUser'
, createUser_username
- The username of the ActiveMQ user. This value can contain only
alphanumeric characters, dashes, periods, underscores, and tildes (- . _
~). This value must be 2-100 characters long.
$sel:brokerId:CreateUser'
, createUser_brokerId
- The unique ID that Amazon MQ generates for the broker.
$sel:password:CreateUser'
, createUser_password
- Required. The password of the user. This value must be at least 12
characters long, must contain at least 4 unique characters, and must not
contain commas, colons, or equal signs (,:=).
Request Lenses
createUser_groups :: Lens' CreateUser (Maybe [Text]) Source #
The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
createUser_consoleAccess :: Lens' CreateUser (Maybe Bool) Source #
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
createUser_username :: Lens' CreateUser Text Source #
The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
createUser_brokerId :: Lens' CreateUser Text Source #
The unique ID that Amazon MQ generates for the broker.
createUser_password :: Lens' CreateUser Text Source #
Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).
Destructuring the Response
data CreateUserResponse Source #
See: newCreateUserResponse
smart constructor.
CreateUserResponse' | |
|
Instances
newCreateUserResponse Source #
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.
Response Lenses
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.