CustomDataIdentifierArgs

data class CustomDataIdentifierArgs(val description: Output<String>? = null, val ignoreWords: Output<List<String>>? = null, val keywords: Output<List<String>>? = null, val maximumMatchDistance: Output<Int>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val regex: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CustomDataIdentifierArgs>

Provides a resource to manage an AWS Macie Custom Data Identifier.

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.CustomDataIdentifier;
import com.pulumi.aws.macie.CustomDataIdentifierArgs;
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 exampleAccount = new Account("exampleAccount");
var exampleCustomDataIdentifier = new CustomDataIdentifier("exampleCustomDataIdentifier", CustomDataIdentifierArgs.builder()
.regex("[0-9]{3}-[0-9]{2}-[0-9]{4}")
.description("DESCRIPTION")
.maximumMatchDistance(10)
.keywords("keyword")
.ignoreWords("ignore")
.build(), CustomResourceOptions.builder()
.dependsOn(aws_macie2_account.test())
.build());
}
}

Import

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

$ pulumi import aws:macie/customDataIdentifier:CustomDataIdentifier example abcd1

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, ignoreWords: Output<List<String>>? = null, keywords: Output<List<String>>? = null, maximumMatchDistance: Output<Int>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, regex: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

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

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

An 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.

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

An array that lists specific character sequences (keywords), one of which must be within proximity (maximum_match_distance) 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.

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

The 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.

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

A custom name for the custom data identifier. The name can contain as many as 128 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 regex: Output<String>? = null

The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.

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 custom data identifier.

Functions

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