// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template_association aws_codecommit_approval_rule_template_association}
*/
export class CodecommitApprovalRuleTemplateAssociation extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_codecommit_approval_rule_template_association";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template_association aws_codecommit_approval_rule_template_association} Resource
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options CodecommitApprovalRuleTemplateAssociationConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_codecommit_approval_rule_template_association',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._approvalRuleTemplateName = config.approvalRuleTemplateName;
        this._repositoryName = config.repositoryName;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // approval_rule_template_name - computed: false, optional: false, required: true
    _approvalRuleTemplateName;
    get approvalRuleTemplateName() {
        return this.getStringAttribute('approval_rule_template_name');
    }
    set approvalRuleTemplateName(value) {
        this._approvalRuleTemplateName = value;
    }
    // Temporarily expose input value. Use with caution.
    get approvalRuleTemplateNameInput() {
        return this._approvalRuleTemplateName;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // repository_name - computed: false, optional: false, required: true
    _repositoryName;
    get repositoryName() {
        return this.getStringAttribute('repository_name');
    }
    set repositoryName(value) {
        this._repositoryName = value;
    }
    // Temporarily expose input value. Use with caution.
    get repositoryNameInput() {
        return this._repositoryName;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            approval_rule_template_name: cdktf.stringToTerraform(this._approvalRuleTemplateName),
            repository_name: cdktf.stringToTerraform(this._repositoryName),
        };
    }
}
//# sourceMappingURL=codecommit-approval-rule-template-association.js.map