import * as core from "@terrascript/core";

export interface CustomDataIdentifierArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  ignoreWords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  keywords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  maximumMatchDistance?: number | core.NumberOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  regex?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class CustomDataIdentifier extends core.Resource<CustomDataIdentifierArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public createdAt!: string | core.StringOut;

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public ignoreWords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public keywords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number, { computed: true })
  public maximumMatchDistance?: number | core.NumberOut;

  @core.attr(String, { computed: true })
  public name?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public namePrefix?: string | core.StringOut;

  @core.attr(String)
  public regex?: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: CustomDataIdentifierArgs) {
    super(name, "aws_macie2_custom_data_identifier", args);
  }

  public override getNamespace(): string {
    return "aws_macie2";
  }
}
