createWirelessGatewayTask method
Creates a task for a wireless gateway.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter id :
The ID of the resource to update.
Parameter wirelessGatewayTaskDefinitionId :
The ID of the WirelessGatewayTaskDefinition.
Implementation
Future<CreateWirelessGatewayTaskResponse> createWirelessGatewayTask({
required String id,
required String wirelessGatewayTaskDefinitionId,
}) async {
final $payload = <String, dynamic>{
'WirelessGatewayTaskDefinitionId': wirelessGatewayTaskDefinitionId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/wireless-gateways/${Uri.encodeComponent(id)}/tasks',
exceptionFnMap: _exceptionFns,
);
return CreateWirelessGatewayTaskResponse.fromJson(response);
}