listThingRegistrationTasks method
List bulk thing provisioning tasks.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw InternalFailureException.
Parameter maxResults
:
The maximum number of results to return at one time.
Parameter nextToken
:
To retrieve the next set of results, the nextToken
value from
a previous response; otherwise null to receive the first set of
results.
Parameter status
:
The status of the bulk thing provisioning task.
Implementation
Future<ListThingRegistrationTasksResponse> listThingRegistrationTasks({
int? maxResults,
String? nextToken,
Status? status,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (status != null) 'status': [status.toValue()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/thing-registration-tasks',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListThingRegistrationTasksResponse.fromJson(response);
}