Does AWS assertion support extra parameters?
search cancel

Does AWS assertion support extra parameters?

book

Article ID: 203989

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

For example, for the S3 listObjects method, it allows a lot of parameters as per Amazon document,
https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html

But in fact the following 2 payloads have no difference.{
  "bucketName": "xxxxx",
  "delimiter": "/",
  "prefix": "sap",
  "maxKeys": 1
}
 
{
  "bucketName": "xxxxx"
}

Environment

Release : 9.4

Component : API GATEWAY

Resolution

When select a method on the AWS assertion, it will auto populate a template payload, for example,

 

Only the parameters in the auto populated payload are supported, manually adding extra parameters won't work.

Because the AWS assertion uses Amazon SDK and the parameters of a method is hard coded.

https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#method.summary

 

Additional Information

https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#method.summary