stopThingRegistrationTask method
Cancels a bulk thing provisioning task.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw InternalFailureException. May throw ResourceNotFoundException.
Parameter taskId
:
The bulk thing provisioning task ID.
Implementation
Future<void> stopThingRegistrationTask({
required String taskId,
}) async {
ArgumentError.checkNotNull(taskId, 'taskId');
_s.validateStringLength(
'taskId',
taskId,
0,
40,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/thing-registration-tasks/${Uri.encodeComponent(taskId)}/cancel',
exceptionFnMap: _exceptionFns,
);
}