create_findings_filter
async
¶
create_findings_filter(
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
action: Optional[FindingsFilterAction] = None,
client_token: Optional[__string] = None,
description: Optional[__string] = None,
finding_criteria: Optional[FindingCriteria] = None,
name: Optional[__string] = None,
position: Optional[__integer] = None,
tags: Optional[TagMap] = None,
) -> CreateFindingsFilterResponse
Creates and defines the criteria and other settings for a findings filter.
Parameters:
-
action(Optional[FindingsFilterAction], default:None) –The action to perform on findings that match the filter criteria (findingCriteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.
-
client_token(Optional[__string], default:None) –A unique, case-sensitive token that you provide to ensure the idempotency of the request.
-
description(Optional[__string], default:None) –A custom description of the filter. The description can contain as many as 512 characters.
We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users of your account might be able to see this description, depending on the actions that they're allowed to perform in Amazon Macie.
-
finding_criteria(Optional[FindingCriteria], default:None) –The criteria to use to filter findings.
-
name(Optional[__string], default:None) –A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters.
We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users of your account might be able to see this name, depending on the actions that they're allowed to perform in Amazon Macie.
-
position(Optional[__integer], default:None) –The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.
-
tags(Optional[TagMap], default:None) –A map of key-value pairs that specifies the tags to associate with the filter.
A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
ConflictException–Provides information about an error that occurred due to a versioning conflict for a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException–Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/async_macie2.py
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 | |