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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

export interface EntriesArgs extends core.SchemaArgs {
  cidr: string | core.StringOut;

  description: string | core.StringOut;
}

export class Entries extends core.Schema<EntriesArgs> {
  @core.attr(String, { computed: true })
  public cidr!: string | core.StringOut;

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

export interface DsEc2ManagedPrefixListArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

  name?: string | core.StringOut;

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

export class DsEc2ManagedPrefixList extends core.Data<DsEc2ManagedPrefixListArgs> {
  @core.attr(String, { computed: true })
  public addressFamily!: string | core.StringOut;

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

  @core.attr(Entries, { computed: true, kind: "array" })
  public entries!: core.Array<Entries> | core.ArrayOut<Entries>;

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

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

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

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

  constructor(name: string, args?: DsEc2ManagedPrefixListArgs) {
    super(name, "aws_ec2_managed_prefix_list", args);
  }

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