// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CodeCommit */ export interface CodecommitRepositoryConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html#default_branch CodecommitRepository#default_branch} */ readonly defaultBranch?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html#description CodecommitRepository#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html#repository_name CodecommitRepository#repository_name} */ readonly repositoryName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html#tags CodecommitRepository#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html#tags_all CodecommitRepository#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html aws_codecommit_repository} */ export class CodecommitRepository extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_codecommit_repository"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html aws_codecommit_repository} 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 CodecommitRepositoryConfig */ public constructor(scope: Construct, id: string, config: CodecommitRepositoryConfig) { super(scope, id, { terraformResourceType: 'aws_codecommit_repository', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._defaultBranch = config.defaultBranch; this._description = config.description; this._repositoryName = config.repositoryName; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // clone_url_http - computed: true, optional: false, required: false public get cloneUrlHttp() { return this.getStringAttribute('clone_url_http'); } // clone_url_ssh - computed: true, optional: false, required: false public get cloneUrlSsh() { return this.getStringAttribute('clone_url_ssh'); } // default_branch - computed: false, optional: true, required: false private _defaultBranch?: string; public get defaultBranch() { return this.getStringAttribute('default_branch'); } public set defaultBranch(value: string) { this._defaultBranch = value; } public resetDefaultBranch() { this._defaultBranch = undefined; } // Temporarily expose input value. Use with caution. public get defaultBranchInput() { return this._defaultBranch; } // 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'); } // repository_id - computed: true, optional: false, required: false public get repositoryId() { return this.getStringAttribute('repository_id'); } // repository_name - computed: false, optional: false, required: true private _repositoryName?: string; public get repositoryName() { return this.getStringAttribute('repository_name'); } public set repositoryName(value: string) { this._repositoryName = value; } // Temporarily expose input value. Use with caution. public get repositoryNameInput() { return this._repositoryName; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { default_branch: cdktf.stringToTerraform(this._defaultBranch), description: cdktf.stringToTerraform(this._description), repository_name: cdktf.stringToTerraform(this._repositoryName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }