gresockj commented on a change in pull request #5504:
URL: https://github.com/apache/nifi/pull/5504#discussion_r762614281



##########
File path: 
nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/wag/InvokeAWSGatewayApi.java
##########
@@ -380,4 +355,87 @@ public void onTrigger(ProcessContext context, 
ProcessSession session) throws Pro
             }
         }
     }
+
+    @Override
+    public List<ConfigVerificationResult> verify(final ProcessContext context, 
final ComponentLog verificationLogger, final Map<String, String> attributes) {
+        final List<ConfigVerificationResult> results = new 
ArrayList<>(super.verify(context, verificationLogger, attributes));
+
+        final String method = context.getProperty(PROP_METHOD).getValue();
+        final String endpoint = 
context.getProperty(PROP_AWS_GATEWAY_API_ENDPOINT).getValue();
+        final String resource = 
context.getProperty(PROP_RESOURCE_NAME).getValue();
+        try {
+            final GenericApiGatewayClient client = 
getConfiguration(context).getClient();
+
+            final GatewayResponse gatewayResponse = invokeGateway(client, 
context, null, null, attributes, verificationLogger);

Review comment:
       Great point -- I should add a check and only execute the call if it's a 
GET.




-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to