// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Outposts */ export interface DataAwsOutpostsOutpostsConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html#availability_zone DataAwsOutpostsOutposts#availability_zone} */ readonly availabilityZone?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html#availability_zone_id DataAwsOutpostsOutposts#availability_zone_id} */ readonly availabilityZoneId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html#owner_id DataAwsOutpostsOutposts#owner_id} */ readonly ownerId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html#site_id DataAwsOutpostsOutposts#site_id} */ readonly siteId?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html aws_outposts_outposts} */ export class DataAwsOutpostsOutposts extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_outposts_outposts"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/outposts_outposts.html aws_outposts_outposts} 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 DataAwsOutpostsOutpostsConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsOutpostsOutpostsConfig = {}) { super(scope, id, { terraformResourceType: 'aws_outposts_outposts', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._availabilityZone = config.availabilityZone; this._availabilityZoneId = config.availabilityZoneId; this._ownerId = config.ownerId; this._siteId = config.siteId; } // ========== // ATTRIBUTES // ========== // arns - computed: true, optional: false, required: false public get arns() { return this.getListAttribute('arns'); } // availability_zone - computed: true, optional: true, required: false private _availabilityZone?: string; public get availabilityZone() { return this.getStringAttribute('availability_zone'); } public set availabilityZone(value: string) { this._availabilityZone = value; } public resetAvailabilityZone() { this._availabilityZone = undefined; } // Temporarily expose input value. Use with caution. public get availabilityZoneInput() { return this._availabilityZone; } // availability_zone_id - computed: true, optional: true, required: false private _availabilityZoneId?: string; public get availabilityZoneId() { return this.getStringAttribute('availability_zone_id'); } public set availabilityZoneId(value: string) { this._availabilityZoneId = value; } public resetAvailabilityZoneId() { this._availabilityZoneId = undefined; } // Temporarily expose input value. Use with caution. public get availabilityZoneIdInput() { return this._availabilityZoneId; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ids - computed: true, optional: false, required: false public get ids() { return this.getListAttribute('ids'); } // owner_id - computed: true, optional: true, required: false private _ownerId?: string; public get ownerId() { return this.getStringAttribute('owner_id'); } public set ownerId(value: string) { this._ownerId = value; } public resetOwnerId() { this._ownerId = undefined; } // Temporarily expose input value. Use with caution. public get ownerIdInput() { return this._ownerId; } // site_id - computed: true, optional: true, required: false private _siteId?: string; public get siteId() { return this.getStringAttribute('site_id'); } public set siteId(value: string) { this._siteId = value; } public resetSiteId() { this._siteId = undefined; } // Temporarily expose input value. Use with caution. public get siteIdInput() { return this._siteId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { availability_zone: cdktf.stringToTerraform(this._availabilityZone), availability_zone_id: cdktf.stringToTerraform(this._availabilityZoneId), owner_id: cdktf.stringToTerraform(this._ownerId), site_id: cdktf.stringToTerraform(this._siteId), }; } }