static AddNotificationChannelRequest translateToAddNotificationChannelRequest()

in aws-devopsguru-notificationchannel/src/main/java/software/amazon/devopsguru/notificationchannel/Translator.java [24:32]


  static AddNotificationChannelRequest translateToAddNotificationChannelRequest(final ResourceModel model) {
    if(model.getConfig().getSns().getTopicArn() == null){
      throw new CfnInvalidRequestException(String.format("Could not find SNS TopicArn in %s", model.toString()));
    }

    return AddNotificationChannelRequest.builder()
            .config(configFromModel(model))
            .build();
  }