disassociateSkillGroupFromRoom method
Disassociates a skill group from a specified room. This disables all skills in the skill group on all devices in the room.
May throw ConcurrentModificationException.
Parameter roomArn
:
The ARN of the room from which the skill group is to be disassociated.
Required.
Parameter skillGroupArn
:
The ARN of the skill group to disassociate from a room. Required.
Implementation
Future<void> disassociateSkillGroupFromRoom({
String? roomArn,
String? skillGroupArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DisassociateSkillGroupFromRoom'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (roomArn != null) 'RoomArn': roomArn,
if (skillGroupArn != null) 'SkillGroupArn': skillGroupArn,
},
);
}