CmdID

CmdID / aws / aws inspector2

aws inspector2 update-filter

Specifies the action that is to be applied to the findings that match the filter. AWS CLI reference

1 example 6 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a filter

The following update-filter example updates a filter to omit Lambda findings instead of ECR instance findings.

aws inspector2 update-filter --filter-arn "arn:aws:inspector2:us-west-2:123456789012:owner/o-EXAMPLE222/filter/EXAMPLE444444444" --name "ExampleSuppressionRuleLambda" --description "This suppression rule omits Lambda instance findings" --reason "Updating filter to omit Lambda instance findings instead of ECR instance findings"Identify
--filter-arnThe Amazon Resource Number (ARN) of the filter to update.
--nameThe name of the filter.
--descriptionA description of the filter.
--reasonThe reason the filter was updated.
Its output
{
    "arn": "arn:aws:inspector2:us-west-2:123456789012:owner/o-EXAMPLE222/filter/EXAMPLE444444444"
}

For more information, see Managing findings in Amazon Inspector in the Amazon Inspector User Guide.

Options

6 in the AWS CLI reference
--actionSpecifies the action that is to be applied to the findings that match the filter.
--descriptionA description of the filter.
--filter-arnThe Amazon Resource Number (ARN) of the filter to update.
--filter-criteriaDefines the criteria to be update in the filter.
--nameThe name of the filter.
--reasonThe reason the filter was updated.