deleteGroup method
Deletes a group resource.
May throw InvalidRequestException. May throw ThrottledException.
Parameter groupARN
:
The ARN of the group that was generated on creation.
Parameter groupName
:
The case-sensitive name of the group.
Implementation
Future<void> deleteGroup({
String? groupARN,
String? groupName,
}) async {
_s.validateStringLength(
'groupARN',
groupARN,
1,
400,
);
_s.validateStringLength(
'groupName',
groupName,
1,
32,
);
final $payload = <String, dynamic>{
if (groupARN != null) 'GroupARN': groupARN,
if (groupName != null) 'GroupName': groupName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/DeleteGroup',
exceptionFnMap: _exceptionFns,
);
}