updateSkillGroup method

Future<void> updateSkillGroup({
  1. String? description,
  2. String? skillGroupArn,
  3. String? skillGroupName,
})

Updates skill group details by skill group ARN.

May throw NotFoundException. May throw NameInUseException. May throw ConcurrentModificationException.

Parameter description : The updated description for the skill group.

Parameter skillGroupArn : The ARN of the skill group to update.

Parameter skillGroupName : The updated name for the skill group.

Implementation

Future<void> updateSkillGroup({
  String? description,
  String? skillGroupArn,
  String? skillGroupName,
}) async {
  _s.validateStringLength(
    'description',
    description,
    1,
    200,
  );
  _s.validateStringLength(
    'skillGroupName',
    skillGroupName,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.UpdateSkillGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (description != null) 'Description': description,
      if (skillGroupArn != null) 'SkillGroupArn': skillGroupArn,
      if (skillGroupName != null) 'SkillGroupName': skillGroupName,
    },
  );
}