forgetSmartHomeAppliances method

Future<void> forgetSmartHomeAppliances({
  1. required String roomArn,
})

Forgets smart home appliances associated to a room.

May throw NotFoundException.

Parameter roomArn : The room that the appliances are associated with.

Implementation

Future<void> forgetSmartHomeAppliances({
  required String roomArn,
}) async {
  ArgumentError.checkNotNull(roomArn, 'roomArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.ForgetSmartHomeAppliances'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RoomArn': roomArn,
    },
  );
}