AWS code-library documentation change
Summary
Added runtime monitoring examples for UpdateDetector API
Security assessment
Documents runtime threat detection features but doesn't address specific vulnerabilities. The examples show standard feature enablement without security incident context.
Diff
diff --git a/code-library/latest/ug/cli_2_guardduty_code_examples.md b/code-library/latest/ug/cli_2_guardduty_code_examples.md index 8def3badd..76776036e 100644 --- a//code-library/latest/ug/cli_2_guardduty_code_examples.md +++ b//code-library/latest/ug/cli_2_guardduty_code_examples.md @@ -868,0 +869,38 @@ For more information, see [Understanding the relationship between GuardDuty admi +The following code example shows how to use `update-detector`. + +**AWS CLI** + + +**Example 1: To enable runtime monitoring in GuardDuty** + +The following `update-detector` example enables runtime monitoring without additional configuration. + + + aws guardduty update-detector \ + --detector-id 12abc34d567e8fa901bc2d34eexample \ + --features 'Name=RUNTIME_MONITORING,Status=ENABLED' + + +This command produces no output. + +For more information, see [Runtime monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html) in the _GuardDuty User Guide_. + +**Example 2: To enable runtime monitoring with additional configuration** + +The following `update-detector` example enables runtime monitoring with additional configuration for EC2, ECS Fargate, and EKS. + + + aws guardduty update-detector \ + --detector-id 12abc34d567e8fa901bc2d34eexample \ + --features 'Name=RUNTIME_MONITORING,Status=ENABLED,AdditionalConfiguration=[{Name=EC2_AGENT_MANAGEMENT,Status=ENABLED},{Name=ECS_FARGATE_AGENT_MANAGEMENT,Status=ENABLED},{Name=EKS_ADDON_MANAGEMENT,Status=ENABLED}]' + + +This command produces no output. + +For more information, see [Runtime monitoring](https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html) in the _GuardDuty User Guide_. + + * For API details, see [UpdateDetector](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/guardduty/update-detector.html) in _AWS CLI Command Reference_. + + + +