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

export interface VpcConnectorArgs extends core.ResourceArgs {
  securityGroups: core.Array<string> | core.ArrayOut<core.StringOut>;

  subnets: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  vpcConnectorName: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  constructor(name: string, args?: VpcConnectorArgs) {
    super(name, "aws_apprunner_vpc_connector", args);
  }

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