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

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

  networkInterfaceId: string | core.StringOut;

  packetLength?: number | core.NumberOut;

  sessionNumber: number | core.NumberOut;

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

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

  trafficMirrorFilterId: string | core.StringOut;

  trafficMirrorTargetId: string | core.StringOut;

  virtualNetworkId?: number | core.NumberOut;
}

export class Ec2TrafficMirrorSession extends core.Resource<Ec2TrafficMirrorSessionArgs> {
  @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 networkInterfaceId!: string | core.StringOut;

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

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

  @core.attr(Number)
  public sessionNumber!: number | core.NumberOut;

  @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>;

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

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

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

  constructor(name: string, args?: Ec2TrafficMirrorSessionArgs) {
    super(name, "aws_ec2_traffic_mirror_session", args);
  }

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