aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

No examples for client-guardduty `FindingCriteria`

Open tomchiverton opened this issue 7 months ago • 2 comments

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/

tomchiverton avatar Apr 24 '25 13:04 tomchiverton

Hey @tomchiverton ,

Thanks for the feedback. I will forward this feedback to the doc team.

Thanks for your contribution!

Maggie

zshzbh avatar Apr 25 '25 17:04 zshzbh

ref : V1754555594

zshzbh avatar Apr 25 '25 18:04 zshzbh

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.

aBurmeseDev avatar Oct 21 '25 00:10 aBurmeseDev

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.

github-actions[bot] avatar Oct 21 '25 00:10 github-actions[bot]

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.

github-actions[bot] avatar Nov 05 '25 00:11 github-actions[bot]