-
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. the There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. hmm, I cannot confirm this. I should change the order only for |
||
end | ||
if config.protocol == "query" then | ||
request.query["Action"] = 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.
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