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

export interface DbInstanceRoleAssociationArgs extends core.ResourceArgs {
  dbInstanceIdentifier: string | core.StringOut;

  featureName: string | core.StringOut;

  roleArn: string | core.StringOut;
}

export class DbInstanceRoleAssociation extends core.Resource<DbInstanceRoleAssociationArgs> {
  @core.attr(String)
  public dbInstanceIdentifier!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DbInstanceRoleAssociationArgs) {
    super(name, "aws_db_instance_role_association", args);
  }

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