Package com.pulumi.aws.macie
Class FindingsFilter
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.macie.FindingsFilter
-
public class FindingsFilter extends com.pulumi.resources.CustomResource
Provides a resource to manage an [Amazon Macie Findings Filter](https://docs.aws.amazon.com/macie/latest/APIReference/findingsfilters-id.html). ## Example Usage <!--Start PulumiCodeChooser --> ```java 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 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() .name("NAME OF THE FINDINGS FILTER") .description("DESCRIPTION") .position(1) .action("ARCHIVE") .findingCriteria(FindingsFilterFindingCriteriaArgs.builder() .criterions(FindingsFilterFindingCriteriaCriterionArgs.builder() .field("region") .eqs(current.name()) .build()) .build()) .build()); } } ``` <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_macie2_findings_filter` using the id. For example: ```sh $ pulumi import aws:macie/findingsFilter:FindingsFilter example abcd1 ```
-
-
Constructor Summary
Constructors Constructor Description FindingsFilter(java.lang.String name)
FindingsFilter(java.lang.String name, FindingsFilterArgs args)
FindingsFilter(java.lang.String name, FindingsFilterArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
action()
com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
com.pulumi.core.Output<FindingsFilterFindingCriteria>
findingCriteria()
static FindingsFilter
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, FindingsFilterState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
namePrefix()
com.pulumi.core.Output<java.lang.Integer>
position()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
-
-
-
Constructor Detail
-
FindingsFilter
public FindingsFilter(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
FindingsFilter
public FindingsFilter(java.lang.String name, FindingsFilterArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
FindingsFilter
public FindingsFilter(java.lang.String name, FindingsFilterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
action
public com.pulumi.core.Output<java.lang.String> action()
- Returns:
- 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.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The Amazon Resource Name (ARN) of the Findings Filter.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- A custom description of the filter. The description can contain as many as 512 characters.
-
findingCriteria
public com.pulumi.core.Output<FindingsFilterFindingCriteria> findingCriteria()
- Returns:
- The criteria to use to filter findings.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- 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`.
-
namePrefix
public com.pulumi.core.Output<java.lang.String> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
position
public com.pulumi.core.Output<java.lang.Integer> position()
- Returns:
- 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
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of key-value pairs that specifies the tags to associate with the filter.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
-
get
public static FindingsFilter get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable FindingsFilterState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-