CustomDataIdentifier

class CustomDataIdentifier : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the custom data identifier.

Link copied to clipboard
val createdAt: Output<String>

The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created.

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

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

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

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

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

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>

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>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regex: Output<String>?

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

A map of key-value pairs that specifies the tags to associate with the custom data identifier.

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