// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * API Gateway */ export interface DataAwsApiGatewayApiKeyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_api_key.html#id DataAwsApiGatewayApiKey#id} */ readonly id: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_api_key.html#tags DataAwsApiGatewayApiKey#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_api_key.html aws_api_gateway_api_key} */ export class DataAwsApiGatewayApiKey extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_api_gateway_api_key"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_api_key.html aws_api_gateway_api_key} 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 DataAwsApiGatewayApiKeyConfig */ public constructor(scope: Construct, id: string, config: DataAwsApiGatewayApiKeyConfig) { super(scope, id, { terraformResourceType: 'aws_api_gateway_api_key', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._id = config.id; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // created_date - computed: true, optional: false, required: false public get createdDate() { return this.getStringAttribute('created_date'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // id - computed: false, optional: false, required: true private _id?: string; public get id() { return this.getStringAttribute('id'); } public set id(value: string) { this._id = value; } // Temporarily expose input value. Use with caution. public get idInput() { return this._id; } // last_updated_date - computed: true, optional: false, required: false public get lastUpdatedDate() { return this.getStringAttribute('last_updated_date'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // 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; } // value - computed: true, optional: false, required: false public get value() { return this.getStringAttribute('value'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { id: cdktf.stringToTerraform(this._id), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }