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 |
Creates an ActiveMQ user.
Synopsis
- createUser :: Text -> Text -> CreateUser
- data CreateUser
- cuGroups :: Lens' CreateUser [Text]
- cuConsoleAccess :: Lens' CreateUser (Maybe Bool)
- cuPassword :: Lens' CreateUser (Maybe Text)
- cuUsername :: Lens' CreateUser Text
- cuBrokerId :: Lens' CreateUser Text
- createUserResponse :: Int -> CreateUserResponse
- data CreateUserResponse
- cursResponseStatus :: Lens' CreateUserResponse Int
Creating a Request
Creates a value of CreateUser
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cuGroups
- 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.cuConsoleAccess
- Enables access to the the ActiveMQ Web Console for the ActiveMQ user.cuPassword
- 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.cuUsername
- 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.cuBrokerId
- The unique ID that Amazon MQ generates for the broker.
data CreateUser Source #
Creates a new ActiveMQ user.
See: createUser
smart constructor.
Instances
Request Lenses
cuGroups :: Lens' CreateUser [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.
cuConsoleAccess :: Lens' CreateUser (Maybe Bool) Source #
Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
cuPassword :: Lens' CreateUser (Maybe 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.
cuUsername :: 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.
cuBrokerId :: Lens' CreateUser Text Source #
The unique ID that Amazon MQ generates for the broker.
Destructuring the Response
Creates a value of CreateUserResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cursResponseStatus
- -- | The response status code.
data CreateUserResponse Source #
See: createUserResponse
smart constructor.
Instances
Response Lenses
cursResponseStatus :: Lens' CreateUserResponse Int Source #
- - | The response status code.