mosche commented on a change in pull request #16503:
URL: https://github.com/apache/beam/pull/16503#discussion_r790492045
##########
File path:
sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/sns/SnsIO.java
##########
@@ -385,6 +378,15 @@ private static boolean isTopicExists(SnsClient client,
String topicArn) {
return result;
}
+ private boolean checkTopicExists() {
+ try (SnsClient client = getSnsClientProvider().getSnsClient()) {
+ client.getTopicAttributes(b -> b.topicArn(getTopicArn()));
+ return true;
+ } catch (NotFoundException | InvalidParameterException e) {
+ return false;
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]