listInputDeviceTransfers method

Future<ListInputDeviceTransfersResponse> listInputDeviceTransfers({
  1. required String transferType,
  2. int? maxResults,
  3. String? nextToken,
})

List input devices that are currently being transferred. List input devices that you are transferring from your AWS account or input devices that another AWS account is transferring to you.

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

Implementation

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