startSmartHomeApplianceDiscovery method
Initiates the discovery of any smart home appliances associated with the room.
May throw NotFoundException.
Parameter roomArn
:
The room where smart home appliance discovery was initiated.
Implementation
Future<void> startSmartHomeApplianceDiscovery({
required String roomArn,
}) async {
ArgumentError.checkNotNull(roomArn, 'roomArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.StartSmartHomeApplianceDiscovery'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RoomArn': roomArn,
},
);
}