// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EFS */ export interface EfsMountTargetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html#file_system_id EfsMountTarget#file_system_id} */ readonly fileSystemId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html#ip_address EfsMountTarget#ip_address} */ readonly ipAddress?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html#security_groups EfsMountTarget#security_groups} */ readonly securityGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html#subnet_id EfsMountTarget#subnet_id} */ readonly subnetId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html aws_efs_mount_target} */ export class EfsMountTarget extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_efs_mount_target"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/efs_mount_target.html aws_efs_mount_target} 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 EfsMountTargetConfig */ public constructor(scope: Construct, id: string, config: EfsMountTargetConfig) { super(scope, id, { terraformResourceType: 'aws_efs_mount_target', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._fileSystemId = config.fileSystemId; this._ipAddress = config.ipAddress; this._securityGroups = config.securityGroups; this._subnetId = config.subnetId; } // ========== // ATTRIBUTES // ========== // availability_zone_id - computed: true, optional: false, required: false public get availabilityZoneId() { return this.getStringAttribute('availability_zone_id'); } // availability_zone_name - computed: true, optional: false, required: false public get availabilityZoneName() { return this.getStringAttribute('availability_zone_name'); } // dns_name - computed: true, optional: false, required: false public get dnsName() { return this.getStringAttribute('dns_name'); } // file_system_arn - computed: true, optional: false, required: false public get fileSystemArn() { return this.getStringAttribute('file_system_arn'); } // file_system_id - computed: false, optional: false, required: true private _fileSystemId?: string; public get fileSystemId() { return this.getStringAttribute('file_system_id'); } public set fileSystemId(value: string) { this._fileSystemId = value; } // Temporarily expose input value. Use with caution. public get fileSystemIdInput() { return this._fileSystemId; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ip_address - computed: true, optional: true, required: false private _ipAddress?: string; public get ipAddress() { return this.getStringAttribute('ip_address'); } public set ipAddress(value: string) { this._ipAddress = value; } public resetIpAddress() { this._ipAddress = undefined; } // Temporarily expose input value. Use with caution. public get ipAddressInput() { return this._ipAddress; } // mount_target_dns_name - computed: true, optional: false, required: false public get mountTargetDnsName() { return this.getStringAttribute('mount_target_dns_name'); } // network_interface_id - computed: true, optional: false, required: false public get networkInterfaceId() { return this.getStringAttribute('network_interface_id'); } // owner_id - computed: true, optional: false, required: false public get ownerId() { return this.getStringAttribute('owner_id'); } // security_groups - computed: true, optional: true, required: false private _securityGroups?: string[]; public get securityGroups() { return this.getListAttribute('security_groups'); } public set securityGroups(value: string[]) { this._securityGroups = value; } public resetSecurityGroups() { this._securityGroups = undefined; } // Temporarily expose input value. Use with caution. public get securityGroupsInput() { return this._securityGroups; } // subnet_id - computed: false, optional: false, required: true private _subnetId?: string; public get subnetId() { return this.getStringAttribute('subnet_id'); } public set subnetId(value: string) { this._subnetId = value; } // Temporarily expose input value. Use with caution. public get subnetIdInput() { return this._subnetId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { file_system_id: cdktf.stringToTerraform(this._fileSystemId), ip_address: cdktf.stringToTerraform(this._ipAddress), security_groups: cdktf.listMapper(cdktf.stringToTerraform)(this._securityGroups), subnet_id: cdktf.stringToTerraform(this._subnetId), }; } }