// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CodeCommit */ export interface CodecommitApprovalRuleTemplateConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template.html#content CodecommitApprovalRuleTemplate#content} */ readonly content: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template.html#description CodecommitApprovalRuleTemplate#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template.html#name CodecommitApprovalRuleTemplate#name} */ readonly name: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template.html aws_codecommit_approval_rule_template} */ export class CodecommitApprovalRuleTemplate extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_codecommit_approval_rule_template"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/codecommit_approval_rule_template.html aws_codecommit_approval_rule_template} 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 CodecommitApprovalRuleTemplateConfig */ public constructor(scope: Construct, id: string, config: CodecommitApprovalRuleTemplateConfig) { super(scope, id, { terraformResourceType: 'aws_codecommit_approval_rule_template', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._content = config.content; this._description = config.description; this._name = config.name; } // ========== // ATTRIBUTES // ========== // approval_rule_template_id - computed: true, optional: false, required: false public get approvalRuleTemplateId() { return this.getStringAttribute('approval_rule_template_id'); } // content - computed: false, optional: false, required: true private _content?: string; public get content() { return this.getStringAttribute('content'); } public set content(value: string) { this._content = value; } // Temporarily expose input value. Use with caution. public get contentInput() { return this._content; } // creation_date - computed: true, optional: false, required: false public get creationDate() { return this.getStringAttribute('creation_date'); } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_modified_date - computed: true, optional: false, required: false public get lastModifiedDate() { return this.getStringAttribute('last_modified_date'); } // last_modified_user - computed: true, optional: false, required: false public get lastModifiedUser() { return this.getStringAttribute('last_modified_user'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // rule_content_sha256 - computed: true, optional: false, required: false public get ruleContentSha256() { return this.getStringAttribute('rule_content_sha256'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { content: cdktf.stringToTerraform(this._content), description: cdktf.stringToTerraform(this._description), name: cdktf.stringToTerraform(this._name), }; } }