deleteRoomSkillParameter method
Deletes room skill parameter details by room, skill, and parameter key ID.
May throw ConcurrentModificationException.
Parameter parameterKey
:
The room skill parameter key for which to remove details.
Parameter skillId
:
The ID of the skill from which to remove the room skill parameter details.
Parameter roomArn
:
The ARN of the room from which to remove the room skill parameter details.
Implementation
Future<void> deleteRoomSkillParameter({
required String parameterKey,
required String skillId,
String? roomArn,
}) async {
ArgumentError.checkNotNull(parameterKey, 'parameterKey');
_s.validateStringLength(
'parameterKey',
parameterKey,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(skillId, 'skillId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DeleteRoomSkillParameter'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ParameterKey': parameterKey,
'SkillId': skillId,
if (roomArn != null) 'RoomArn': roomArn,
},
);
}