describeUser method

Future<DescribeUserResponse> describeUser({
  1. required String brokerId,
  2. required String username,
})

Returns information about 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<DescribeUserResponse> describeUser({
  required String brokerId,
  required String username,
}) async {
  ArgumentError.checkNotNull(brokerId, 'brokerId');
  ArgumentError.checkNotNull(username, 'username');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/brokers/${Uri.encodeComponent(brokerId)}/users/${Uri.encodeComponent(username)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeUserResponse.fromJson(response);
}