aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
No examples for client-guardduty `FindingCriteria`
Describe the issue
No examples of filtering, here is one I would have found useful
{
DetectorId: _detectorId,
FindingCriteria: {
Criterion: {
"type": {
"Eq":["Object:S3/MaliciousFile"]
}
}
}
```
### Links
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/ListFindingsCommand/
Hey @tomchiverton ,
Thanks for the feedback. I will forward this feedback to the doc team.
Thanks for your contribution!
Maggie
ref : V1754555594
Apologies for the wait. After reviewing this, team decided not to add a specific example to avoid confusing since FindingCriteria accepts one of many querying findings as valid values and by adding a specific value to replace placeholder "<keys>", it might make it more confusing. Service docs for reference: https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListFindings.html#API_ListFindings_RequestBody
Criterion: { // Criterion
"<keys>": { // Condition
Eq: [ // Eq
"STRING_VALUE",
],
},
},
Closing as not planned.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.