associateWirelessGatewayWithThing method

Future<void> associateWirelessGatewayWithThing({
  1. required String id,
  2. required String thingArn,
})

Associates a wireless gateway with a thing.

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 thingArn : The ARN of the thing to associate with the wireless gateway.

Implementation

Future<void> associateWirelessGatewayWithThing({
  required String id,
  required String thingArn,
}) async {
  final $payload = <String, dynamic>{
    'ThingArn': thingArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/wireless-gateways/${Uri.encodeComponent(id)}/thing',
    exceptionFnMap: _exceptionFns,
  );
}