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

export interface Ec2NetworkInsightsPathArgs extends core.ResourceArgs {
  destination: string | core.StringOut;

  destinationIp?: string | core.StringOut;

  destinationPort?: number | core.NumberOut;

  protocol: string | core.StringOut;

  source: string | core.StringOut;

  sourceIp?: string | core.StringOut;

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

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

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

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

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

  @core.attr(Number)
  public destinationPort?: number | core.NumberOut;

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

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

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

  @core.attr(String)
  public sourceIp?: 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?: Ec2NetworkInsightsPathArgs) {
    super(name, "aws_ec2_network_insights_path", args);
  }

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