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 DsEc2NetworkInsightsPathArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  networkInsightsPathId?: string | core.StringOut;

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

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

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

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

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

  @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(String, { computed: true })
  public networkInsightsPathId?: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: DsEc2NetworkInsightsPathArgs) {
    super(name, "aws_ec2_network_insights_path", args);
  }

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