putRoomSkillParameter method

Future<void> putRoomSkillParameter({
  1. required RoomSkillParameter roomSkillParameter,
  2. required String skillId,
  3. String? roomArn,
})

Updates room skill parameter details by room, skill, and parameter key ID. Not all skills have a room skill parameter.

May throw ConcurrentModificationException.

Parameter roomSkillParameter : The updated room skill parameter. Required.

Parameter skillId : The ARN of the skill associated with the room skill parameter. Required.

Parameter roomArn : The ARN of the room associated with the room skill parameter. Required.

Implementation

Future<void> putRoomSkillParameter({
  required RoomSkillParameter roomSkillParameter,
  required String skillId,
  String? roomArn,
}) async {
  ArgumentError.checkNotNull(roomSkillParameter, 'roomSkillParameter');
  ArgumentError.checkNotNull(skillId, 'skillId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.PutRoomSkillParameter'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RoomSkillParameter': roomSkillParameter,
      'SkillId': skillId,
      if (roomArn != null) 'RoomArn': roomArn,
    },
  );
}