deleteSkillGroup method

Future<void> deleteSkillGroup({
  1. String? skillGroupArn,
})

Deletes a skill group by skill group ARN.

May throw NotFoundException. May throw ConcurrentModificationException.

Parameter skillGroupArn : The ARN of the skill group to delete. Required.

Implementation

Future<void> deleteSkillGroup({
  String? skillGroupArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.DeleteSkillGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (skillGroupArn != null) 'SkillGroupArn': skillGroupArn,
    },
  );
}