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

export interface ClusterRoleAssociationArgs extends core.ResourceArgs {
  dbClusterIdentifier: string | core.StringOut;

  featureName: string | core.StringOut;

  roleArn: string | core.StringOut;
}

export class ClusterRoleAssociation extends core.Resource<ClusterRoleAssociationArgs> {
  @core.attr(String)
  public dbClusterIdentifier!: 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?: ClusterRoleAssociationArgs) {
    super(name, "aws_rds_cluster_role_association", args);
  }

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