FindingsFilterArgs

data class FindingsFilterArgs(val action: Output<String>? = null, val description: Output<String>? = null, val findingCriteria: Output<FindingsFilterFindingCriteriaArgs>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val position: Output<Int>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<FindingsFilterArgs>

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

Constructors

Link copied to clipboard
constructor(action: Output<String>? = null, description: Output<String>? = null, findingCriteria: Output<FindingsFilterFindingCriteriaArgs>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, position: Output<Int>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val action: Output<String>? = null

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 description: Output<String>? = null

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 name: Output<String>? = null

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>? = null

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

Link copied to clipboard
val position: Output<Int>? = null

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 tags: Output<Map<String, String>>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): FindingsFilterArgs