Skip to content

CreateUser

Source: src/AWS/MQ/CreateUser.ts

Runtime binding for the CreateUser operation (IAM action mq:CreateUser), scoped to one Broker.

Creates a broker user — e.g. provisioning per-tenant credentials at runtime. On ActiveMQ the change is staged and applied at the next broker reboot or maintenance window; on RabbitMQ it takes effect immediately. The password is marked sensitive — pass a Redacted value and it stays redacted until wire encoding. Provide the implementation with Effect.provide(AWS.MQ.CreateUserHttp).

const createUser = yield* MQ.CreateUser(broker);
yield* createUser({
Username: "tenant-42",
Password: Redacted.make("SuperSecretPassw0rd"),
});