Skip to main content

findings_filters

Creates, updates, deletes or gets a findings_filter resource or lists findings_filters in a region

Overview

Namefindings_filters
TypeResource
DescriptionMacie FindingsFilter resource schema.
Idaws.macie.findings_filters

Fields

NameDatatypeDescription
namestringFindings filter name
descriptionstringFindings filter description
finding_criteriaobjectFindings filter criteria.
actionstringFindings filter action.
positionintegerFindings filter position.
idstringFindings filter ID.
arnstringFindings filter ARN.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, FindingCriteria, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all findings_filters in a region.

SELECT
region,
name,
description,
finding_criteria,
action,
position,
id,
arn,
tags
FROM aws.macie.findings_filters
WHERE region = 'us-east-1';

Gets all properties from an individual findings_filter.

SELECT
region,
name,
description,
finding_criteria,
action,
position,
id,
arn,
tags
FROM aws.macie.findings_filters
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new findings_filter resource, using stack-deploy.

/*+ create */
INSERT INTO aws.macie.findings_filters (
Name,
FindingCriteria,
region
)
SELECT
'{{ Name }}',
'{{ FindingCriteria }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.macie.findings_filters
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the findings_filters resource, the following permissions are required:

Create

macie2:GetFindingsFilter,
macie2:CreateFindingsFilter,
macie2:TagResource

Read

macie2:GetFindingsFilter

Update

macie2:GetFindingsFilter,
macie2:UpdateFindingsFilter,
macie2:TagResource,
macie2:UntagResource

Delete

macie2:DeleteFindingsFilter

List

macie2:ListFindingsFilters