Skip to main content

users

Creates, updates, deletes, gets or lists a users resource.

Overview

Nameusers
TypeResource
Idaws.mq.users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
broker_idstringRequired. The unique ID that Amazon MQ generates for the broker.
console_accessbooleanEnables access to the the ActiveMQ Web Console for the ActiveMQ user.
groupsarrayThe 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.
pendingobjectThe status of the changes pending for the ActiveMQ user.
replication_userbooleanDescribes whether the user is intended for data replication
usernamestringRequired. 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_userselectbroker-id, username, regionReturns information about an ActiveMQ user.
list_usersselectbroker-id, regionmaxResults, nextTokenReturns a list of all ActiveMQ users.
create_userinsertbroker-id, username, region, PasswordCreates an ActiveMQ user. Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
update_userupdatebroker-id, username, regionUpdates the information for an ActiveMQ user.
delete_userdeletebroker-id, username, regionDeletes an ActiveMQ user.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
broker-idstringThe unique ID that Amazon MQ generates for the broker.
regionstringAWS region (default: us-east-1)
usernamestringThe 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.
maxResultsintegerThe maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
nextTokenstringThe token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

SELECT examples

Returns information about an ActiveMQ user.

SELECT
broker_id,
console_access,
groups,
pending,
replication_user,
username
FROM aws.mq.users
WHERE `broker-id` = '{{ broker-id }}' -- required
AND username = '{{ username }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an ActiveMQ user. Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.

INSERT INTO aws.mq.users (
ConsoleAccess,
Groups,
Password,
ReplicationUser,
`broker-id`,
username,
region
)
SELECT
{{ ConsoleAccess }},
'{{ Groups }}',
'{{ Password }}' /* required */,
{{ ReplicationUser }},
'{{ broker-id }}',
'{{ username }}',
'{{ region }}'
;

UPDATE examples

Updates the information for an ActiveMQ user.

UPDATE aws.mq.users
SET
ConsoleAccess = {{ ConsoleAccess }},
Groups = '{{ Groups }}',
Password = '{{ Password }}',
ReplicationUser = {{ ReplicationUser }}
WHERE
`broker-id` = '{{ broker-id }}' --required
AND username = '{{ username }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an ActiveMQ user.

DELETE FROM aws.mq.users
WHERE `broker-id` = '{{ broker-id }}' --required
AND username = '{{ username }}' --required
AND region = '{{ region }}' --required
;