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

export interface V2IpSetArgs extends core.ResourceArgs {
  addresses?: core.Array<string> | core.ArrayOut<core.StringOut>;

  description?: string | core.StringOut;

  ipAddressVersion: string | core.StringOut;

  name: string | core.StringOut;

  scope: string | core.StringOut;

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

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

export class V2IpSet extends core.Resource<V2IpSetArgs> {
  @core.attr(String, { kind: "array" })
  public addresses?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  @core.attr(String)
  public ipAddressVersion!: string | core.StringOut;

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

  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String)
  public scope!: 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?: V2IpSetArgs) {
    super(name, "aws_wafv2_ip_set", args);
  }

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