listInputDevices method

Future<ListInputDevicesResponse> listInputDevices({
  1. int? maxResults,
  2. String? nextToken,
})

List input devices

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw GatewayTimeoutException. May throw TooManyRequestsException.

Implementation

Future<ListInputDevicesResponse> listInputDevices({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/prod/inputDevices',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListInputDevicesResponse.fromJson(response);
}