Skip to content

Resource: awsCodecommitApprovalRuleTemplateAssociation

Associates a CodeCommit Approval Rule Template with a Repository.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.codecommitApprovalRuleTemplateAssociation.CodecommitApprovalRuleTemplateAssociation(
  this,
  "example",
  {
    approvalRuleTemplateName:
      "${aws_codecommit_approval_rule_template.example.name}",
    repositoryName: "${aws_codecommit_repository.example.repository_name}",
  }
);

Argument Reference

The following arguments are supported:

  • approvalRuleTemplateName - (Required) The name for the approval rule template.
  • repositoryName - (Required) The name of the repository that you want to associate with the template.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The name of the approval rule template and name of the repository, separated by a comma (,).

Import

CodeCommit approval rule template associations can be imported using the approvalRuleTemplateName and repositoryName separated by a comma (,), e.g.

$ terraform import aws_codecommit_approval_rule_template_association.example approver-rule-for-example,MyExampleRepo