ChrisSamo632 commented on a change in pull request #5504:
URL: https://github.com/apache/nifi/pull/5504#discussion_r762613490
##########
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:
An (unexpected) invoke of the gateway seems like it could be problematic
for some use cases (e.g. if calling a non-idempotent API) - would it be
better/possible to do some sort of "gateway exists" check instead?
--
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]