FindingsFilter

class FindingsFilter : KotlinCustomResource

Provides a resource to manage an Amazon Macie Findings Filter.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie2.Account;
import com.pulumi.aws.macie.FindingsFilter;
import com.pulumi.aws.macie.FindingsFilterArgs;
import com.pulumi.aws.macie.inputs.FindingsFilterFindingCriteriaArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Account("example");
var test = new FindingsFilter("test", FindingsFilterArgs.builder()
.description("DESCRIPTION")
.position(1)
.action("ARCHIVE")
.findingCriteria(FindingsFilterFindingCriteriaArgs.builder()
.criterions(FindingsFilterFindingCriteriaCriterionArgs.builder()
.field("region")
.eqs(data.aws_region().current().name())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(aws_macie2_account.test())
.build());
}
}

Import

aws_macie2_findings_filter can be imported using the id, e.g.,

$ pulumi import aws:macie/findingsFilter:FindingsFilter example abcd1

Properties

Link copied to clipboard
val action: Output<String>

The action to perform on findings that meet the filter criteria (finding_criteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the Findings Filter.

Link copied to clipboard
val description: Output<String>?

A custom description of the filter. The description can contain as many as 512 characters.

Link copied to clipboard

The criteria to use to filter findings.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters. If omitted, the provider will assign a random, unique name. Conflicts with name_prefix.

Link copied to clipboard
val namePrefix: Output<String>

Creates a unique name beginning with the specified prefix. Conflicts with name.

Link copied to clipboard
val position: Output<Int>

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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of key-value pairs that specifies the tags to associate with the filter.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>