// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EFS */ export interface DataAwsEfsMountTargetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/efs_mount_target.html#access_point_id DataAwsEfsMountTarget#access_point_id} */ readonly accessPointId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/efs_mount_target.html#file_system_id DataAwsEfsMountTarget#file_system_id} */ readonly fileSystemId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/efs_mount_target.html#mount_target_id DataAwsEfsMountTarget#mount_target_id} */ readonly mountTargetId?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/efs_mount_target.html aws_efs_mount_target} */ export class DataAwsEfsMountTarget extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_efs_mount_target"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/efs_mount_target.html aws_efs_mount_target} 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 DataAwsEfsMountTargetConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsEfsMountTargetConfig = {}) { super(scope, id, { terraformResourceType: 'aws_efs_mount_target', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._accessPointId = config.accessPointId; this._fileSystemId = config.fileSystemId; this._mountTargetId = config.mountTargetId; } // ========== // ATTRIBUTES // ========== // access_point_id - computed: false, optional: true, required: false private _accessPointId?: string; public get accessPointId() { return this.getStringAttribute('access_point_id'); } public set accessPointId(value: string) { this._accessPointId = value; } public resetAccessPointId() { this._accessPointId = undefined; } // Temporarily expose input value. Use with caution. public get accessPointIdInput() { return this._accessPointId; } // 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: true, optional: true, required: false private _fileSystemId?: string; public get fileSystemId() { return this.getStringAttribute('file_system_id'); } public set fileSystemId(value: string) { this._fileSystemId = value; } public resetFileSystemId() { this._fileSystemId = undefined; } // 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: false, required: false public get ipAddress() { return this.getStringAttribute('ip_address'); } // mount_target_dns_name - computed: true, optional: false, required: false public get mountTargetDnsName() { return this.getStringAttribute('mount_target_dns_name'); } // mount_target_id - computed: true, optional: true, required: false private _mountTargetId?: string; public get mountTargetId() { return this.getStringAttribute('mount_target_id'); } public set mountTargetId(value: string) { this._mountTargetId = value; } public resetMountTargetId() { this._mountTargetId = undefined; } // Temporarily expose input value. Use with caution. public get mountTargetIdInput() { return this._mountTargetId; } // 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: false, required: false public get securityGroups() { return this.getListAttribute('security_groups'); } // subnet_id - computed: true, optional: false, required: false public get subnetId() { return this.getStringAttribute('subnet_id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { access_point_id: cdktf.stringToTerraform(this._accessPointId), file_system_id: cdktf.stringToTerraform(this._fileSystemId), mount_target_id: cdktf.stringToTerraform(this._mountTargetId), }; } }