Package com.pulumi.aws.macie
Class CustomDataIdentifier
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.macie.CustomDataIdentifier
-
public class CustomDataIdentifier extends com.pulumi.resources.CustomResourceProvides a resource to manage an [AWS Macie Custom Data Identifier](https://docs.aws.amazon.com/macie/latest/APIReference/custom-data-identifiers-id.html). ## Example Usage
## Import Using `pulumi import`, import `aws.macie.CustomDataIdentifier` using the ID. For example: ```sh $ pulumi import aws:macie/customDataIdentifier:CustomDataIdentifier example abcd1 ```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.CustomDataIdentifier; import com.pulumi.aws.macie.CustomDataIdentifierArgs; import com.pulumi.resources.CustomResourceOptions; import java.util.ArrayList; import java.util.Arrays; 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 exampleCustomDataIdentifier = new CustomDataIdentifier("exampleCustomDataIdentifier", CustomDataIdentifierArgs.builder() .name("NAME OF CUSTOM DATA IDENTIFIER") .regex("[0-9]{3}-[0-9]{2}-[0-9]{4}") .description("DESCRIPTION") .maximumMatchDistance(10) .keywords("keyword") .ignoreWords("ignore") .build(), CustomResourceOptions.builder() .dependsOn(test) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description CustomDataIdentifier(java.lang.String name)CustomDataIdentifier(java.lang.String name, CustomDataIdentifierArgs args)CustomDataIdentifier(java.lang.String name, CustomDataIdentifierArgs 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>arn()com.pulumi.core.Output<java.lang.String>createdAt()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static CustomDataIdentifierget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, CustomDataIdentifierState 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.util.Optional<java.util.List<java.lang.String>>>ignoreWords()com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>keywords()com.pulumi.core.Output<java.lang.Integer>maximumMatchDistance()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>namePrefix()com.pulumi.core.Output<java.util.Optional<java.lang.String>>regex()com.pulumi.core.Output<java.lang.String>region()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
-
CustomDataIdentifier
public CustomDataIdentifier(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
CustomDataIdentifier
public CustomDataIdentifier(java.lang.String name, @Nullable CustomDataIdentifierArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
CustomDataIdentifier
public CustomDataIdentifier(java.lang.String name, @Nullable CustomDataIdentifierArgs 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
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the custom data identifier.
-
createdAt
public com.pulumi.core.Output<java.lang.String> createdAt()
- Returns:
- Date and time, in UTC and extended RFC 3339 format, when the custom data identifier was created.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Custom description of the custom data identifier. Can contain as many as 512 characters.
-
ignoreWords
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> ignoreWords()
- Returns:
- Array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression is the same as any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words are case sensitive.
-
keywords
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> keywords()
- Returns:
- Array that lists specific character sequences (keywords), one of which must be within proximity (`maximumMatchDistance`) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive.
-
maximumMatchDistance
public com.pulumi.core.Output<java.lang.Integer> maximumMatchDistance()
- Returns:
- Maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1 - 300 characters. The default value is 50.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Custom name for the custom data identifier. Can contain as many as 128 characters. If omitted, Terraform assigns a random, unique name. Conflicts with `namePrefix`.
-
namePrefix
public com.pulumi.core.Output<java.lang.String> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
regex
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> regex()
- Returns:
- Regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static CustomDataIdentifier get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable CustomDataIdentifierState 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.
-
-