import * as core from "@terrascript/core"; export interface CustomDataIdentifierArgs extends core.ResourceArgs { /** * (Optional) A custom description of the custom data identifier. The description can contain as many a * s 512 characters. */ description?: string | core.StringOut; /** * (Optional) An array that lists specific character sequences (ignore words) to exclude from the resul * ts. If the text matched by the regular expression is the same as any string in this array, Amazon Ma * cie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 9 * 0 characters. Ignore words are case sensitive. */ ignoreWords?: core.Array | core.ArrayOut; /** * (Optional) 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 m * any as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive. */ keywords?: core.Array | core.ArrayOut; /** * (Optional) The maximum number of characters that can exist between text that matches the regex patte * rn 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. */ maximumMatchDistance?: number | core.NumberOut; /** * (Optional) A custom name for the custom data identifier. The name can contain as many as 128 charact * ers. If omitted, Terraform will assign a random, unique name. Conflicts with `name_prefix`. */ name?: string | core.StringOut; /** * (Optional) Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: string | core.StringOut; /** * (Optional) The regular expression (regex) that defines the pattern to match. The expression can cont * ain as many as 512 characters. */ regex?: string | core.StringOut; /** * (Optional) A map of key-value pairs that specifies the tags to associate with the custom data identi * fier. */ tags?: core.Map | core.MapOut; tagsAll?: core.Map | core.MapOut; } export class CustomDataIdentifier extends core.Resource { /** * The Amazon Resource Name (ARN) of the custom data identifier. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The date and time, in UTC and extended RFC 3339 format, when the Amazon Macie account was created. */ @core.attr(String, { computed: true }) public createdAt!: string | core.StringOut; /** * (Optional) A custom description of the custom data identifier. The description can contain as many a * s 512 characters. */ @core.attr(String) public description?: string | core.StringOut; /** * The unique identifier (ID) of the macie custom data identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) An array that lists specific character sequences (ignore words) to exclude from the resul * ts. If the text matched by the regular expression is the same as any string in this array, Amazon Ma * cie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4 - 9 * 0 characters. Ignore words are case sensitive. */ @core.attr(String, { kind: "array" }) public ignoreWords?: core.Array | core.ArrayOut; /** * (Optional) 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 m * any as 50 keywords. Each keyword can contain 3 - 90 characters. Keywords aren't case sensitive. */ @core.attr(String, { kind: "array" }) public keywords?: core.Array | core.ArrayOut; /** * (Optional) The maximum number of characters that can exist between text that matches the regex patte * rn 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. */ @core.attr(Number, { computed: true }) public maximumMatchDistance?: number | core.NumberOut; /** * (Optional) A custom name for the custom data identifier. The name can contain as many as 128 charact * ers. If omitted, Terraform will assign a random, unique name. Conflicts with `name_prefix`. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional) Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ @core.attr(String, { computed: true }) public namePrefix?: string | core.StringOut; /** * (Optional) The regular expression (regex) that defines the pattern to match. The expression can cont * ain as many as 512 characters. */ @core.attr(String) public regex?: string | core.StringOut; /** * (Optional) A map of key-value pairs that specifies the tags to associate with the custom data identi * fier. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: CustomDataIdentifierArgs) { super(name, "aws_macie2_custom_data_identifier", args); } public override getNamespace(): string { return "aws_macie2"; } }