describeUsers method

Future<DescribeUsersResult> describeUsers({
  1. String? engine,
  2. List<Filter>? filters,
  3. String? marker,
  4. int? maxRecords,
  5. String? userId,
})

Returns a list of users.

May throw UserNotFoundFault. May throw InvalidParameterCombinationException.

Parameter engine : The Redis engine.

Parameter filters : Filter to determine the list of User IDs to return.

Parameter marker : An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. >

Parameter maxRecords : The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Parameter userId : The ID of the user.

Implementation

Future<DescribeUsersResult> describeUsers({
  String? engine,
  List<Filter>? filters,
  String? marker,
  int? maxRecords,
  String? userId,
}) async {
  _s.validateStringLength(
    'userId',
    userId,
    1,
    1152921504606846976,
  );
  final $request = <String, dynamic>{};
  engine?.also((arg) => $request['Engine'] = arg);
  filters?.also((arg) => $request['Filters'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  userId?.also((arg) => $request['UserId'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeUsers',
    version: '2015-02-02',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeUsersMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeUsersResult',
  );
  return DescribeUsersResult.fromXml($result);
}