// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CodeStar */ export interface DataAwsCodestarconnectionsConnectionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codestarconnections_connection.html#arn DataAwsCodestarconnectionsConnection#arn} */ readonly arn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/codestarconnections_connection.html#tags DataAwsCodestarconnectionsConnection#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/codestarconnections_connection.html aws_codestarconnections_connection} */ export class DataAwsCodestarconnectionsConnection extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_codestarconnections_connection"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/codestarconnections_connection.html aws_codestarconnections_connection} 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 DataAwsCodestarconnectionsConnectionConfig */ public constructor(scope: Construct, id: string, config: DataAwsCodestarconnectionsConnectionConfig) { super(scope, id, { terraformResourceType: 'aws_codestarconnections_connection', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._arn = config.arn; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: false, optional: false, required: true private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } // connection_status - computed: true, optional: false, required: false public get connectionStatus() { return this.getStringAttribute('connection_status'); } // host_arn - computed: true, optional: false, required: false public get hostArn() { return this.getStringAttribute('host_arn'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // provider_type - computed: true, optional: false, required: false public get providerType() { return this.getStringAttribute('provider_type'); } // tags - computed: true, 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { arn: cdktf.stringToTerraform(this._arn), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }