deletePermissionGroup method

Future<DeletePermissionGroupResponse> deletePermissionGroup({
  1. required String permissionGroupId,
  2. String? clientToken,
})

Deletes a permission group. This action is irreversible.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter permissionGroupId : The unique identifier for the permission group that you want to delete.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Implementation

Future<DeletePermissionGroupResponse> deletePermissionGroup({
  required String permissionGroupId,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/permission-group/${Uri.encodeComponent(permissionGroupId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DeletePermissionGroupResponse.fromJson(response);
}