// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EFS */ export interface DataAwsEfsAccessPointsConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/efs_access_points.html#file_system_id DataAwsEfsAccessPoints#file_system_id} */ readonly fileSystemId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/efs_access_points.html aws_efs_access_points} */ export class DataAwsEfsAccessPoints extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_efs_access_points"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/efs_access_points.html aws_efs_access_points} 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 DataAwsEfsAccessPointsConfig */ public constructor(scope: Construct, id: string, config: DataAwsEfsAccessPointsConfig) { super(scope, id, { terraformResourceType: 'aws_efs_access_points', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._fileSystemId = config.fileSystemId; } // ========== // ATTRIBUTES // ========== // arns - computed: true, optional: false, required: false public get arns() { return this.getListAttribute('arns'); } // 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'); } // ids - computed: true, optional: false, required: false public get ids() { return this.getListAttribute('ids'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { file_system_id: cdktf.stringToTerraform(this._fileSystemId), }; } }