update_filter
¶
update_filter(
filter_arn: FilterArn,
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
action: Optional[FilterAction] = None,
description: Optional[FilterDescription] = None,
filter_criteria: Optional[FilterCriteria] = None,
name: Optional[FilterName] = None,
reason: Optional[FilterReason] = None,
) -> UpdateFilterResponse
Specifies the action that is to be applied to the findings that match the filter.
Parameters:
-
action(Optional[FilterAction], default:None) –Specifies the action that is to be applied to the findings that match the filter.
-
description(Optional[FilterDescription], default:None) –A description of the filter.
-
filter_criteria(Optional[FilterCriteria], default:None) –Defines the criteria to be update in the filter.
-
name(Optional[FilterName], default:None) –The name of the filter.
-
filter_arn(FilterArn) –The Amazon Resource Number (ARN) of the filter to update.
-
reason(Optional[FilterReason], default:None) –The reason the filter was updated.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_inspector2/_services/inspector2.py
5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 | |