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

export interface RdsDbInstanceArgs extends core.ResourceArgs {
  dbPassword: string | core.StringOut;

  dbUser: string | core.StringOut;

  rdsDbInstanceArn: string | core.StringOut;

  stackId: string | core.StringOut;
}

export class RdsDbInstance extends core.Resource<RdsDbInstanceArgs> {
  @core.attr(String)
  public dbPassword!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: RdsDbInstanceArgs) {
    super(name, "aws_opsworks_rds_db_instance", args);
  }

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