public static void addChannelNotifications()

in aws-codeguruprofiler-profilinggroup/src/main/java/software/amazon/codeguruprofiler/profilinggroup/NotificationChannelHelper.java [24:32]


    public static void addChannelNotifications(String pgName, List<software.amazon.codeguruprofiler.profilinggroup.Channel> channels,
                                               AmazonWebServicesClientProxy proxy, CodeGuruProfilerClient profilerClient) {
        addConvertedChannelNotifications(pgName, channels.stream().map(pgChannel -> Channel.builder()
                .uri(pgChannel.getChannelUri())
                .eventPublishers(ImmutableSet.of(EventPublisher.ANOMALY_DETECTION))
                .id(pgChannel.getChannelId())
                .build()
        ).collect(Collectors.toList()), proxy, profilerClient);
    }