-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support DetectToxicContent #7
Conversation
Luacheck Report2 tests 2 ✅ 0s ⏱️ Results for commit 4eeed8c. ♻️ This comment has been updated with latest results. |
@@ -78,6 +78,66 @@ local aws_config = { | |||
api = {}, | |||
} | |||
|
|||
local detect_toxic_content_spec = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lua table representation of ToxicContent operation.
It can be found here too:
https://github.com/aws/aws-sdk-js-v3/blob/0899e938946741970e9bb4ad27c4ec8966ccbc09/codegen/sdk-codegen/aws-models/comprehend.json#L4977
src/resty/aws/request/build.lua
Outdated
@@ -106,7 +106,7 @@ local function build_request(operation, config, params) | |||
local body_tbl = {} | |||
|
|||
if config.signingName or config.targetPrefix then | |||
request.headers["X-Amz-Target"] = (config.signingName or config.targetPrefix) .. "." .. operation.name | |||
request.headers["X-Amz-Target"] = (config.targetPrefix or config.signingName) .. "." .. operation.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the x-amz-target
should have the Comprehend_20171127
prefix. In this case targetPrefix
has the Comprehend_20171127
value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this affect other APIs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I cannot confirm this. I should change the order only for DetectToxicity
then.
No description provided.