// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS File System FSx */ export interface FsxLustreFileSystemConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#auto_import_policy FsxLustreFileSystem#auto_import_policy} */ readonly autoImportPolicy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#automatic_backup_retention_days FsxLustreFileSystem#automatic_backup_retention_days} */ readonly automaticBackupRetentionDays?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#backup_id FsxLustreFileSystem#backup_id} */ readonly backupId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#copy_tags_to_backups FsxLustreFileSystem#copy_tags_to_backups} */ readonly copyTagsToBackups?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#daily_automatic_backup_start_time FsxLustreFileSystem#daily_automatic_backup_start_time} */ readonly dailyAutomaticBackupStartTime?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#data_compression_type FsxLustreFileSystem#data_compression_type} */ readonly dataCompressionType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#deployment_type FsxLustreFileSystem#deployment_type} */ readonly deploymentType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#drive_cache_type FsxLustreFileSystem#drive_cache_type} */ readonly driveCacheType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#export_path FsxLustreFileSystem#export_path} */ readonly exportPath?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#import_path FsxLustreFileSystem#import_path} */ readonly importPath?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#imported_file_chunk_size FsxLustreFileSystem#imported_file_chunk_size} */ readonly importedFileChunkSize?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#kms_key_id FsxLustreFileSystem#kms_key_id} */ readonly kmsKeyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#per_unit_storage_throughput FsxLustreFileSystem#per_unit_storage_throughput} */ readonly perUnitStorageThroughput?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#security_group_ids FsxLustreFileSystem#security_group_ids} */ readonly securityGroupIds?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#storage_capacity FsxLustreFileSystem#storage_capacity} */ readonly storageCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#storage_type FsxLustreFileSystem#storage_type} */ readonly storageType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#subnet_ids FsxLustreFileSystem#subnet_ids} */ readonly subnetIds: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#tags FsxLustreFileSystem#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#tags_all FsxLustreFileSystem#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#weekly_maintenance_start_time FsxLustreFileSystem#weekly_maintenance_start_time} */ readonly weeklyMaintenanceStartTime?: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#timeouts FsxLustreFileSystem#timeouts} */ readonly timeouts?: FsxLustreFileSystemTimeouts; } export interface FsxLustreFileSystemTimeouts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#create FsxLustreFileSystem#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#delete FsxLustreFileSystem#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html#update FsxLustreFileSystem#update} */ readonly update?: string; } export function fsxLustreFileSystemTimeoutsToTerraform(struct?: FsxLustreFileSystemTimeoutsOutputReference | FsxLustreFileSystemTimeouts): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct!.create), delete: cdktf.stringToTerraform(struct!.delete), update: cdktf.stringToTerraform(struct!.update), } } export class FsxLustreFileSystemTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): FsxLustreFileSystemTimeouts | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: FsxLustreFileSystemTimeouts | undefined) { if (value === undefined) { this.isEmptyObject = false; this._create = undefined; this._delete = undefined; this._update = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._create = value.create; this._delete = value.delete; this._update = value.update; } } // create - computed: false, optional: true, required: false private _create?: string; public get create() { return this.getStringAttribute('create'); } public set create(value: string) { this._create = value; } public resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. public get createInput() { return this._create; } // delete - computed: false, optional: true, required: false private _delete?: string; public get delete() { return this.getStringAttribute('delete'); } public set delete(value: string) { this._delete = value; } public resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. public get deleteInput() { return this._delete; } // update - computed: false, optional: true, required: false private _update?: string; public get update() { return this.getStringAttribute('update'); } public set update(value: string) { this._update = value; } public resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. public get updateInput() { return this._update; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html aws_fsx_lustre_file_system} */ export class FsxLustreFileSystem extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_fsx_lustre_file_system"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/fsx_lustre_file_system.html aws_fsx_lustre_file_system} 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 FsxLustreFileSystemConfig */ public constructor(scope: Construct, id: string, config: FsxLustreFileSystemConfig) { super(scope, id, { terraformResourceType: 'aws_fsx_lustre_file_system', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._autoImportPolicy = config.autoImportPolicy; this._automaticBackupRetentionDays = config.automaticBackupRetentionDays; this._backupId = config.backupId; this._copyTagsToBackups = config.copyTagsToBackups; this._dailyAutomaticBackupStartTime = config.dailyAutomaticBackupStartTime; this._dataCompressionType = config.dataCompressionType; this._deploymentType = config.deploymentType; this._driveCacheType = config.driveCacheType; this._exportPath = config.exportPath; this._importPath = config.importPath; this._importedFileChunkSize = config.importedFileChunkSize; this._kmsKeyId = config.kmsKeyId; this._perUnitStorageThroughput = config.perUnitStorageThroughput; this._securityGroupIds = config.securityGroupIds; this._storageCapacity = config.storageCapacity; this._storageType = config.storageType; this._subnetIds = config.subnetIds; this._tags = config.tags; this._tagsAll = config.tagsAll; this._weeklyMaintenanceStartTime = config.weeklyMaintenanceStartTime; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // auto_import_policy - computed: true, optional: true, required: false private _autoImportPolicy?: string; public get autoImportPolicy() { return this.getStringAttribute('auto_import_policy'); } public set autoImportPolicy(value: string) { this._autoImportPolicy = value; } public resetAutoImportPolicy() { this._autoImportPolicy = undefined; } // Temporarily expose input value. Use with caution. public get autoImportPolicyInput() { return this._autoImportPolicy; } // automatic_backup_retention_days - computed: true, optional: true, required: false private _automaticBackupRetentionDays?: number; public get automaticBackupRetentionDays() { return this.getNumberAttribute('automatic_backup_retention_days'); } public set automaticBackupRetentionDays(value: number) { this._automaticBackupRetentionDays = value; } public resetAutomaticBackupRetentionDays() { this._automaticBackupRetentionDays = undefined; } // Temporarily expose input value. Use with caution. public get automaticBackupRetentionDaysInput() { return this._automaticBackupRetentionDays; } // backup_id - computed: false, optional: true, required: false private _backupId?: string; public get backupId() { return this.getStringAttribute('backup_id'); } public set backupId(value: string) { this._backupId = value; } public resetBackupId() { this._backupId = undefined; } // Temporarily expose input value. Use with caution. public get backupIdInput() { return this._backupId; } // copy_tags_to_backups - computed: false, optional: true, required: false private _copyTagsToBackups?: boolean | cdktf.IResolvable; public get copyTagsToBackups() { return this.getBooleanAttribute('copy_tags_to_backups') as any; } public set copyTagsToBackups(value: boolean | cdktf.IResolvable) { this._copyTagsToBackups = value; } public resetCopyTagsToBackups() { this._copyTagsToBackups = undefined; } // Temporarily expose input value. Use with caution. public get copyTagsToBackupsInput() { return this._copyTagsToBackups; } // daily_automatic_backup_start_time - computed: true, optional: true, required: false private _dailyAutomaticBackupStartTime?: string; public get dailyAutomaticBackupStartTime() { return this.getStringAttribute('daily_automatic_backup_start_time'); } public set dailyAutomaticBackupStartTime(value: string) { this._dailyAutomaticBackupStartTime = value; } public resetDailyAutomaticBackupStartTime() { this._dailyAutomaticBackupStartTime = undefined; } // Temporarily expose input value. Use with caution. public get dailyAutomaticBackupStartTimeInput() { return this._dailyAutomaticBackupStartTime; } // data_compression_type - computed: false, optional: true, required: false private _dataCompressionType?: string; public get dataCompressionType() { return this.getStringAttribute('data_compression_type'); } public set dataCompressionType(value: string) { this._dataCompressionType = value; } public resetDataCompressionType() { this._dataCompressionType = undefined; } // Temporarily expose input value. Use with caution. public get dataCompressionTypeInput() { return this._dataCompressionType; } // deployment_type - computed: false, optional: true, required: false private _deploymentType?: string; public get deploymentType() { return this.getStringAttribute('deployment_type'); } public set deploymentType(value: string) { this._deploymentType = value; } public resetDeploymentType() { this._deploymentType = undefined; } // Temporarily expose input value. Use with caution. public get deploymentTypeInput() { return this._deploymentType; } // dns_name - computed: true, optional: false, required: false public get dnsName() { return this.getStringAttribute('dns_name'); } // drive_cache_type - computed: false, optional: true, required: false private _driveCacheType?: string; public get driveCacheType() { return this.getStringAttribute('drive_cache_type'); } public set driveCacheType(value: string) { this._driveCacheType = value; } public resetDriveCacheType() { this._driveCacheType = undefined; } // Temporarily expose input value. Use with caution. public get driveCacheTypeInput() { return this._driveCacheType; } // export_path - computed: true, optional: true, required: false private _exportPath?: string; public get exportPath() { return this.getStringAttribute('export_path'); } public set exportPath(value: string) { this._exportPath = value; } public resetExportPath() { this._exportPath = undefined; } // Temporarily expose input value. Use with caution. public get exportPathInput() { return this._exportPath; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // import_path - computed: false, optional: true, required: false private _importPath?: string; public get importPath() { return this.getStringAttribute('import_path'); } public set importPath(value: string) { this._importPath = value; } public resetImportPath() { this._importPath = undefined; } // Temporarily expose input value. Use with caution. public get importPathInput() { return this._importPath; } // imported_file_chunk_size - computed: true, optional: true, required: false private _importedFileChunkSize?: number; public get importedFileChunkSize() { return this.getNumberAttribute('imported_file_chunk_size'); } public set importedFileChunkSize(value: number) { this._importedFileChunkSize = value; } public resetImportedFileChunkSize() { this._importedFileChunkSize = undefined; } // Temporarily expose input value. Use with caution. public get importedFileChunkSizeInput() { return this._importedFileChunkSize; } // 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; } // mount_name - computed: true, optional: false, required: false public get mountName() { return this.getStringAttribute('mount_name'); } // network_interface_ids - computed: true, optional: false, required: false public get networkInterfaceIds() { return this.getListAttribute('network_interface_ids'); } // owner_id - computed: true, optional: false, required: false public get ownerId() { return this.getStringAttribute('owner_id'); } // per_unit_storage_throughput - computed: false, optional: true, required: false private _perUnitStorageThroughput?: number; public get perUnitStorageThroughput() { return this.getNumberAttribute('per_unit_storage_throughput'); } public set perUnitStorageThroughput(value: number) { this._perUnitStorageThroughput = value; } public resetPerUnitStorageThroughput() { this._perUnitStorageThroughput = undefined; } // Temporarily expose input value. Use with caution. public get perUnitStorageThroughputInput() { return this._perUnitStorageThroughput; } // security_group_ids - computed: false, optional: true, required: false private _securityGroupIds?: string[]; public get securityGroupIds() { return this.getListAttribute('security_group_ids'); } public set securityGroupIds(value: string[]) { this._securityGroupIds = value; } public resetSecurityGroupIds() { this._securityGroupIds = undefined; } // Temporarily expose input value. Use with caution. public get securityGroupIdsInput() { return this._securityGroupIds; } // storage_capacity - computed: false, optional: true, required: false private _storageCapacity?: number; public get storageCapacity() { return this.getNumberAttribute('storage_capacity'); } public set storageCapacity(value: number) { this._storageCapacity = value; } public resetStorageCapacity() { this._storageCapacity = undefined; } // Temporarily expose input value. Use with caution. public get storageCapacityInput() { return this._storageCapacity; } // storage_type - computed: false, optional: true, required: false private _storageType?: string; public get storageType() { return this.getStringAttribute('storage_type'); } public set storageType(value: string) { this._storageType = value; } public resetStorageType() { this._storageType = undefined; } // Temporarily expose input value. Use with caution. public get storageTypeInput() { return this._storageType; } // subnet_ids - computed: false, optional: false, required: true private _subnetIds?: string[]; public get subnetIds() { return this.getListAttribute('subnet_ids'); } public set subnetIds(value: string[]) { this._subnetIds = value; } // Temporarily expose input value. Use with caution. public get subnetIdsInput() { return this._subnetIds; } // 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; } // vpc_id - computed: true, optional: false, required: false public get vpcId() { return this.getStringAttribute('vpc_id'); } // weekly_maintenance_start_time - computed: true, optional: true, required: false private _weeklyMaintenanceStartTime?: string; public get weeklyMaintenanceStartTime() { return this.getStringAttribute('weekly_maintenance_start_time'); } public set weeklyMaintenanceStartTime(value: string) { this._weeklyMaintenanceStartTime = value; } public resetWeeklyMaintenanceStartTime() { this._weeklyMaintenanceStartTime = undefined; } // Temporarily expose input value. Use with caution. public get weeklyMaintenanceStartTimeInput() { return this._weeklyMaintenanceStartTime; } // timeouts - computed: false, optional: true, required: false private _timeouts = new FsxLustreFileSystemTimeoutsOutputReference(this as any, "timeouts", true); public get timeouts() { return this._timeouts; } public putTimeouts(value: FsxLustreFileSystemTimeouts) { this._timeouts.internalValue = value; } public resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { auto_import_policy: cdktf.stringToTerraform(this._autoImportPolicy), automatic_backup_retention_days: cdktf.numberToTerraform(this._automaticBackupRetentionDays), backup_id: cdktf.stringToTerraform(this._backupId), copy_tags_to_backups: cdktf.booleanToTerraform(this._copyTagsToBackups), daily_automatic_backup_start_time: cdktf.stringToTerraform(this._dailyAutomaticBackupStartTime), data_compression_type: cdktf.stringToTerraform(this._dataCompressionType), deployment_type: cdktf.stringToTerraform(this._deploymentType), drive_cache_type: cdktf.stringToTerraform(this._driveCacheType), export_path: cdktf.stringToTerraform(this._exportPath), import_path: cdktf.stringToTerraform(this._importPath), imported_file_chunk_size: cdktf.numberToTerraform(this._importedFileChunkSize), kms_key_id: cdktf.stringToTerraform(this._kmsKeyId), per_unit_storage_throughput: cdktf.numberToTerraform(this._perUnitStorageThroughput), security_group_ids: cdktf.listMapper(cdktf.stringToTerraform)(this._securityGroupIds), storage_capacity: cdktf.numberToTerraform(this._storageCapacity), storage_type: cdktf.stringToTerraform(this._storageType), subnet_ids: cdktf.listMapper(cdktf.stringToTerraform)(this._subnetIds), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), weekly_maintenance_start_time: cdktf.stringToTerraform(this._weeklyMaintenanceStartTime), timeouts: fsxLustreFileSystemTimeoutsToTerraform(this._timeouts.internalValue), }; } }