Skip to main content

findings_filters

Creates, updates, deletes, gets or lists a findings_filters resource.

Overview

Namefindings_filters
TypeResource
Idaws.macie2.findings_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the filter.
namestringThe custom name of the filter.
actionstringThe action to perform on findings that match the filter criteria. To suppress (automatically archive) findings that match the criteria, set this value to ARCHIVE. Valid values are: (ARCHIVE, NOOP)
arnstringThe Amazon Resource Name (ARN) of the filter.
descriptionstringThe custom description of the filter.
finding_criteriaobjectSpecifies, as a map, one or more property-based conditions that filter the results of a query for findings.
positionintegerThe 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.
tagsobjectA map of key-value pairs that specifies which tags (keys and values) are associated with the filter.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_findings_filterselectid, regionRetrieves the criteria and other settings for a findings filter.
list_findings_filtersselectregionmaxResults, nextTokenRetrieves a subset of information about all the findings filters for an account.
create_findings_filterinsertregion, action, findingCriteria, nameCreates and defines the criteria and other settings for a findings filter.
update_findings_filterupdateid, regionUpdates the criteria and other settings for a findings filter.
delete_findings_filterdeleteid, regionDeletes a findings filter.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the Amazon Macie resource that the request applies to.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of items to include in each page of a paginated response.
nextTokenstringThe nextToken string that specifies which page of results to return in a paginated response.

SELECT examples

Retrieves the criteria and other settings for a findings filter.

SELECT
id,
name,
action,
arn,
description,
finding_criteria,
position,
tags
FROM aws.macie2.findings_filters
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates and defines the criteria and other settings for a findings filter.

INSERT INTO aws.macie2.findings_filters (
action,
clientToken,
description,
findingCriteria,
name,
position,
tags,
region
)
SELECT
'{{ action }}' /* required */,
'{{ clientToken }}',
'{{ description }}',
'{{ findingCriteria }}' /* required */,
'{{ name }}' /* required */,
{{ position }},
'{{ tags }}',
'{{ region }}'
RETURNING
id,
arn
;

UPDATE examples

Updates the criteria and other settings for a findings filter.

UPDATE aws.macie2.findings_filters
SET
action = '{{ action }}',
clientToken = '{{ clientToken }}',
description = '{{ description }}',
findingCriteria = '{{ findingCriteria }}',
name = '{{ name }}',
position = {{ position }}
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
arn;

DELETE examples

Deletes a findings filter.

DELETE FROM aws.macie2.findings_filters
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;