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