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

export interface DbProxyEndpointArgs extends core.ResourceArgs {
  dbProxyEndpointName: string | core.StringOut;

  dbProxyName: string | core.StringOut;

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

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

  targetRole?: string | core.StringOut;

  vpcSecurityGroupIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public isDefault!: boolean | core.BooleanOut;

  @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 targetRole?: string | core.StringOut;

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

  @core.attr(String, { computed: true, kind: "array" })
  public vpcSecurityGroupIds?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  constructor(name: string, args?: DbProxyEndpointArgs) {
    super(name, "aws_db_proxy_endpoint", args);
  }

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