deleteUser method

Future<void> deleteUser({
  1. required String brokerId,
  2. required String username,
})

Deletes an ActiveMQ user.

May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter brokerId : The unique ID that Amazon MQ generates for the broker.

Parameter 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.

Implementation

Future<void> deleteUser({
  required String brokerId,
  required String username,
}) async {
  ArgumentError.checkNotNull(brokerId, 'brokerId');
  ArgumentError.checkNotNull(username, 'username');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/brokers/${Uri.encodeComponent(brokerId)}/users/${Uri.encodeComponent(username)}',
    exceptionFnMap: _exceptionFns,
  );
}