// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CodeArtifact */ export interface DataAwsCodeartifactRepositoryEndpointConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html#domain DataAwsCodeartifactRepositoryEndpoint#domain} */ readonly domain: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html#domain_owner DataAwsCodeartifactRepositoryEndpoint#domain_owner} */ readonly domainOwner?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html#format DataAwsCodeartifactRepositoryEndpoint#format} */ readonly format: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html#repository DataAwsCodeartifactRepositoryEndpoint#repository} */ readonly repository: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html aws_codeartifact_repository_endpoint} */ export class DataAwsCodeartifactRepositoryEndpoint extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_codeartifact_repository_endpoint"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/codeartifact_repository_endpoint.html aws_codeartifact_repository_endpoint} Data Source * * @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 DataAwsCodeartifactRepositoryEndpointConfig */ public constructor(scope: Construct, id: string, config: DataAwsCodeartifactRepositoryEndpointConfig) { super(scope, id, { terraformResourceType: 'aws_codeartifact_repository_endpoint', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._domain = config.domain; this._domainOwner = config.domainOwner; this._format = config.format; this._repository = config.repository; } // ========== // ATTRIBUTES // ========== // domain - computed: false, optional: false, required: true private _domain?: string; public get domain() { return this.getStringAttribute('domain'); } public set domain(value: string) { this._domain = value; } // Temporarily expose input value. Use with caution. public get domainInput() { return this._domain; } // domain_owner - computed: true, optional: true, required: false private _domainOwner?: string; public get domainOwner() { return this.getStringAttribute('domain_owner'); } public set domainOwner(value: string) { this._domainOwner = value; } public resetDomainOwner() { this._domainOwner = undefined; } // Temporarily expose input value. Use with caution. public get domainOwnerInput() { return this._domainOwner; } // format - computed: false, optional: false, required: true private _format?: string; public get format() { return this.getStringAttribute('format'); } public set format(value: string) { this._format = value; } // Temporarily expose input value. Use with caution. public get formatInput() { return this._format; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // repository - computed: false, optional: false, required: true private _repository?: string; public get repository() { return this.getStringAttribute('repository'); } public set repository(value: string) { this._repository = value; } // Temporarily expose input value. Use with caution. public get repositoryInput() { return this._repository; } // repository_endpoint - computed: true, optional: false, required: false public get repositoryEndpoint() { return this.getStringAttribute('repository_endpoint'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { domain: cdktf.stringToTerraform(this._domain), domain_owner: cdktf.stringToTerraform(this._domainOwner), format: cdktf.stringToTerraform(this._format), repository: cdktf.stringToTerraform(this._repository), }; } }