// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 */ export interface EbsVolumeConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#availability_zone EbsVolume#availability_zone} */ readonly availabilityZone: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#encrypted EbsVolume#encrypted} */ readonly encrypted?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#iops EbsVolume#iops} */ readonly iops?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#kms_key_id EbsVolume#kms_key_id} */ readonly kmsKeyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#multi_attach_enabled EbsVolume#multi_attach_enabled} */ readonly multiAttachEnabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#outpost_arn EbsVolume#outpost_arn} */ readonly outpostArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#size EbsVolume#size} */ readonly size?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#snapshot_id EbsVolume#snapshot_id} */ readonly snapshotId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#tags EbsVolume#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#tags_all EbsVolume#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#throughput EbsVolume#throughput} */ readonly throughput?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html#type EbsVolume#type} */ readonly type?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html aws_ebs_volume} */ export class EbsVolume extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ebs_volume"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ebs_volume.html aws_ebs_volume} Resource * * @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 EbsVolumeConfig */ public constructor(scope: Construct, id: string, config: EbsVolumeConfig) { super(scope, id, { terraformResourceType: 'aws_ebs_volume', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._availabilityZone = config.availabilityZone; this._encrypted = config.encrypted; this._iops = config.iops; this._kmsKeyId = config.kmsKeyId; this._multiAttachEnabled = config.multiAttachEnabled; this._outpostArn = config.outpostArn; this._size = config.size; this._snapshotId = config.snapshotId; this._tags = config.tags; this._tagsAll = config.tagsAll; this._throughput = config.throughput; this._type = config.type; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // availability_zone - computed: false, optional: false, required: true private _availabilityZone?: string; public get availabilityZone() { return this.getStringAttribute('availability_zone'); } public set availabilityZone(value: string) { this._availabilityZone = value; } // Temporarily expose input value. Use with caution. public get availabilityZoneInput() { return this._availabilityZone; } // encrypted - computed: true, optional: true, required: false private _encrypted?: boolean | cdktf.IResolvable; public get encrypted() { return this.getBooleanAttribute('encrypted') as any; } public set encrypted(value: boolean | cdktf.IResolvable) { this._encrypted = value; } public resetEncrypted() { this._encrypted = undefined; } // Temporarily expose input value. Use with caution. public get encryptedInput() { return this._encrypted; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // iops - computed: true, optional: true, required: false private _iops?: number; public get iops() { return this.getNumberAttribute('iops'); } public set iops(value: number) { this._iops = value; } public resetIops() { this._iops = undefined; } // Temporarily expose input value. Use with caution. public get iopsInput() { return this._iops; } // kms_key_id - computed: true, optional: true, required: false private _kmsKeyId?: string; public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } public set kmsKeyId(value: string) { this._kmsKeyId = value; } public resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyIdInput() { return this._kmsKeyId; } // multi_attach_enabled - computed: false, optional: true, required: false private _multiAttachEnabled?: boolean | cdktf.IResolvable; public get multiAttachEnabled() { return this.getBooleanAttribute('multi_attach_enabled') as any; } public set multiAttachEnabled(value: boolean | cdktf.IResolvable) { this._multiAttachEnabled = value; } public resetMultiAttachEnabled() { this._multiAttachEnabled = undefined; } // Temporarily expose input value. Use with caution. public get multiAttachEnabledInput() { return this._multiAttachEnabled; } // outpost_arn - computed: false, optional: true, required: false private _outpostArn?: string; public get outpostArn() { return this.getStringAttribute('outpost_arn'); } public set outpostArn(value: string) { this._outpostArn = value; } public resetOutpostArn() { this._outpostArn = undefined; } // Temporarily expose input value. Use with caution. public get outpostArnInput() { return this._outpostArn; } // size - computed: true, optional: true, required: false private _size?: number; public get size() { return this.getNumberAttribute('size'); } public set size(value: number) { this._size = value; } public resetSize() { this._size = undefined; } // Temporarily expose input value. Use with caution. public get sizeInput() { return this._size; } // snapshot_id - computed: true, optional: true, required: false private _snapshotId?: string; public get snapshotId() { return this.getStringAttribute('snapshot_id'); } public set snapshotId(value: string) { this._snapshotId = value; } public resetSnapshotId() { this._snapshotId = undefined; } // Temporarily expose input value. Use with caution. public get snapshotIdInput() { return this._snapshotId; } // tags - computed: false, 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; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // throughput - computed: true, optional: true, required: false private _throughput?: number; public get throughput() { return this.getNumberAttribute('throughput'); } public set throughput(value: number) { this._throughput = value; } public resetThroughput() { this._throughput = undefined; } // Temporarily expose input value. Use with caution. public get throughputInput() { return this._throughput; } // type - computed: true, optional: true, required: false private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } public resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { availability_zone: cdktf.stringToTerraform(this._availabilityZone), encrypted: cdktf.booleanToTerraform(this._encrypted), iops: cdktf.numberToTerraform(this._iops), kms_key_id: cdktf.stringToTerraform(this._kmsKeyId), multi_attach_enabled: cdktf.booleanToTerraform(this._multiAttachEnabled), outpost_arn: cdktf.stringToTerraform(this._outpostArn), size: cdktf.numberToTerraform(this._size), snapshot_id: cdktf.stringToTerraform(this._snapshotId), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), throughput: cdktf.numberToTerraform(this._throughput), type: cdktf.stringToTerraform(this._type), }; } }