// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Data Sources */ export interface DataAwsRegionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/region.html#endpoint DataAwsRegion#endpoint} */ readonly endpoint?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/region.html#name DataAwsRegion#name} */ readonly name?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/region.html aws_region} */ export class DataAwsRegion extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_region"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/region.html aws_region} 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 DataAwsRegionConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsRegionConfig = {}) { super(scope, id, { terraformResourceType: 'aws_region', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._endpoint = config.endpoint; this._name = config.name; } // ========== // ATTRIBUTES // ========== // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // endpoint - computed: true, optional: true, required: false private _endpoint?: string; public get endpoint() { return this.getStringAttribute('endpoint'); } public set endpoint(value: string) { this._endpoint = value; } public resetEndpoint() { this._endpoint = undefined; } // Temporarily expose input value. Use with caution. public get endpointInput() { return this._endpoint; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { endpoint: cdktf.stringToTerraform(this._endpoint), name: cdktf.stringToTerraform(this._name), }; } }