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

export interface ApprovalRuleTemplateAssociationArgs extends core.ResourceArgs {
  approvalRuleTemplateName: string | core.StringOut;

  repositoryName: string | core.StringOut;
}

export class ApprovalRuleTemplateAssociation extends core.Resource<ApprovalRuleTemplateAssociationArgs> {
  @core.attr(String)
  public approvalRuleTemplateName!: string | core.StringOut;

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

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

  constructor(name: string, args?: ApprovalRuleTemplateAssociationArgs) {
    super(name, "aws_codecommit_approval_rule_template_association", args);
  }

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