// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Storage Gateway */ export interface StoragegatewayNfsFileShareConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#audit_destination_arn StoragegatewayNfsFileShare#audit_destination_arn} */ readonly auditDestinationArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#client_list StoragegatewayNfsFileShare#client_list} */ readonly clientList: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#default_storage_class StoragegatewayNfsFileShare#default_storage_class} */ readonly defaultStorageClass?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#file_share_name StoragegatewayNfsFileShare#file_share_name} */ readonly fileShareName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#gateway_arn StoragegatewayNfsFileShare#gateway_arn} */ readonly gatewayArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#guess_mime_type_enabled StoragegatewayNfsFileShare#guess_mime_type_enabled} */ readonly guessMimeTypeEnabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#kms_encrypted StoragegatewayNfsFileShare#kms_encrypted} */ readonly kmsEncrypted?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#kms_key_arn StoragegatewayNfsFileShare#kms_key_arn} */ readonly kmsKeyArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#location_arn StoragegatewayNfsFileShare#location_arn} */ readonly locationArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#notification_policy StoragegatewayNfsFileShare#notification_policy} */ readonly notificationPolicy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#object_acl StoragegatewayNfsFileShare#object_acl} */ readonly objectAcl?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#read_only StoragegatewayNfsFileShare#read_only} */ readonly readOnly?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#requester_pays StoragegatewayNfsFileShare#requester_pays} */ readonly requesterPays?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#role_arn StoragegatewayNfsFileShare#role_arn} */ readonly roleArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#squash StoragegatewayNfsFileShare#squash} */ readonly squash?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#tags StoragegatewayNfsFileShare#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#tags_all StoragegatewayNfsFileShare#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * cache_attributes block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#cache_attributes StoragegatewayNfsFileShare#cache_attributes} */ readonly cacheAttributes?: StoragegatewayNfsFileShareCacheAttributes; /** * nfs_file_share_defaults block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#nfs_file_share_defaults StoragegatewayNfsFileShare#nfs_file_share_defaults} */ readonly nfsFileShareDefaults?: StoragegatewayNfsFileShareNfsFileShareDefaults; /** * timeouts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#timeouts StoragegatewayNfsFileShare#timeouts} */ readonly timeouts?: StoragegatewayNfsFileShareTimeouts; } export interface StoragegatewayNfsFileShareCacheAttributes { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#cache_stale_timeout_in_seconds StoragegatewayNfsFileShare#cache_stale_timeout_in_seconds} */ readonly cacheStaleTimeoutInSeconds?: number; } export function storagegatewayNfsFileShareCacheAttributesToTerraform(struct?: StoragegatewayNfsFileShareCacheAttributesOutputReference | StoragegatewayNfsFileShareCacheAttributes): 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 { cache_stale_timeout_in_seconds: cdktf.numberToTerraform(struct!.cacheStaleTimeoutInSeconds), } } export class StoragegatewayNfsFileShareCacheAttributesOutputReference 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(): StoragegatewayNfsFileShareCacheAttributes | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._cacheStaleTimeoutInSeconds !== undefined) { hasAnyValues = true; internalValueResult.cacheStaleTimeoutInSeconds = this._cacheStaleTimeoutInSeconds; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: StoragegatewayNfsFileShareCacheAttributes | undefined) { if (value === undefined) { this.isEmptyObject = false; this._cacheStaleTimeoutInSeconds = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cacheStaleTimeoutInSeconds = value.cacheStaleTimeoutInSeconds; } } // cache_stale_timeout_in_seconds - computed: false, optional: true, required: false private _cacheStaleTimeoutInSeconds?: number; public get cacheStaleTimeoutInSeconds() { return this.getNumberAttribute('cache_stale_timeout_in_seconds'); } public set cacheStaleTimeoutInSeconds(value: number) { this._cacheStaleTimeoutInSeconds = value; } public resetCacheStaleTimeoutInSeconds() { this._cacheStaleTimeoutInSeconds = undefined; } // Temporarily expose input value. Use with caution. public get cacheStaleTimeoutInSecondsInput() { return this._cacheStaleTimeoutInSeconds; } } export interface StoragegatewayNfsFileShareNfsFileShareDefaults { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#directory_mode StoragegatewayNfsFileShare#directory_mode} */ readonly directoryMode?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#file_mode StoragegatewayNfsFileShare#file_mode} */ readonly fileMode?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#group_id StoragegatewayNfsFileShare#group_id} */ readonly groupId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#owner_id StoragegatewayNfsFileShare#owner_id} */ readonly ownerId?: string; } export function storagegatewayNfsFileShareNfsFileShareDefaultsToTerraform(struct?: StoragegatewayNfsFileShareNfsFileShareDefaultsOutputReference | StoragegatewayNfsFileShareNfsFileShareDefaults): 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 { directory_mode: cdktf.stringToTerraform(struct!.directoryMode), file_mode: cdktf.stringToTerraform(struct!.fileMode), group_id: cdktf.stringToTerraform(struct!.groupId), owner_id: cdktf.stringToTerraform(struct!.ownerId), } } export class StoragegatewayNfsFileShareNfsFileShareDefaultsOutputReference 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(): StoragegatewayNfsFileShareNfsFileShareDefaults | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._directoryMode !== undefined) { hasAnyValues = true; internalValueResult.directoryMode = this._directoryMode; } if (this._fileMode !== undefined) { hasAnyValues = true; internalValueResult.fileMode = this._fileMode; } if (this._groupId !== undefined) { hasAnyValues = true; internalValueResult.groupId = this._groupId; } if (this._ownerId !== undefined) { hasAnyValues = true; internalValueResult.ownerId = this._ownerId; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: StoragegatewayNfsFileShareNfsFileShareDefaults | undefined) { if (value === undefined) { this.isEmptyObject = false; this._directoryMode = undefined; this._fileMode = undefined; this._groupId = undefined; this._ownerId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._directoryMode = value.directoryMode; this._fileMode = value.fileMode; this._groupId = value.groupId; this._ownerId = value.ownerId; } } // directory_mode - computed: false, optional: true, required: false private _directoryMode?: string; public get directoryMode() { return this.getStringAttribute('directory_mode'); } public set directoryMode(value: string) { this._directoryMode = value; } public resetDirectoryMode() { this._directoryMode = undefined; } // Temporarily expose input value. Use with caution. public get directoryModeInput() { return this._directoryMode; } // file_mode - computed: false, optional: true, required: false private _fileMode?: string; public get fileMode() { return this.getStringAttribute('file_mode'); } public set fileMode(value: string) { this._fileMode = value; } public resetFileMode() { this._fileMode = undefined; } // Temporarily expose input value. Use with caution. public get fileModeInput() { return this._fileMode; } // group_id - computed: false, optional: true, required: false private _groupId?: string; public get groupId() { return this.getStringAttribute('group_id'); } public set groupId(value: string) { this._groupId = value; } public resetGroupId() { this._groupId = undefined; } // Temporarily expose input value. Use with caution. public get groupIdInput() { return this._groupId; } // owner_id - computed: false, optional: true, required: false private _ownerId?: string; public get ownerId() { return this.getStringAttribute('owner_id'); } public set ownerId(value: string) { this._ownerId = value; } public resetOwnerId() { this._ownerId = undefined; } // Temporarily expose input value. Use with caution. public get ownerIdInput() { return this._ownerId; } } export interface StoragegatewayNfsFileShareTimeouts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#create StoragegatewayNfsFileShare#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#delete StoragegatewayNfsFileShare#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html#update StoragegatewayNfsFileShare#update} */ readonly update?: string; } export function storagegatewayNfsFileShareTimeoutsToTerraform(struct?: StoragegatewayNfsFileShareTimeoutsOutputReference | StoragegatewayNfsFileShareTimeouts): 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 StoragegatewayNfsFileShareTimeoutsOutputReference 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(): StoragegatewayNfsFileShareTimeouts | 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: StoragegatewayNfsFileShareTimeouts | 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/storagegateway_nfs_file_share.html aws_storagegateway_nfs_file_share} */ export class StoragegatewayNfsFileShare extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_storagegateway_nfs_file_share"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/storagegateway_nfs_file_share.html aws_storagegateway_nfs_file_share} 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 StoragegatewayNfsFileShareConfig */ public constructor(scope: Construct, id: string, config: StoragegatewayNfsFileShareConfig) { super(scope, id, { terraformResourceType: 'aws_storagegateway_nfs_file_share', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._auditDestinationArn = config.auditDestinationArn; this._clientList = config.clientList; this._defaultStorageClass = config.defaultStorageClass; this._fileShareName = config.fileShareName; this._gatewayArn = config.gatewayArn; this._guessMimeTypeEnabled = config.guessMimeTypeEnabled; this._kmsEncrypted = config.kmsEncrypted; this._kmsKeyArn = config.kmsKeyArn; this._locationArn = config.locationArn; this._notificationPolicy = config.notificationPolicy; this._objectAcl = config.objectAcl; this._readOnly = config.readOnly; this._requesterPays = config.requesterPays; this._roleArn = config.roleArn; this._squash = config.squash; this._tags = config.tags; this._tagsAll = config.tagsAll; this._cacheAttributes.internalValue = config.cacheAttributes; this._nfsFileShareDefaults.internalValue = config.nfsFileShareDefaults; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // audit_destination_arn - computed: false, optional: true, required: false private _auditDestinationArn?: string; public get auditDestinationArn() { return this.getStringAttribute('audit_destination_arn'); } public set auditDestinationArn(value: string) { this._auditDestinationArn = value; } public resetAuditDestinationArn() { this._auditDestinationArn = undefined; } // Temporarily expose input value. Use with caution. public get auditDestinationArnInput() { return this._auditDestinationArn; } // client_list - computed: false, optional: false, required: true private _clientList?: string[]; public get clientList() { return this.getListAttribute('client_list'); } public set clientList(value: string[]) { this._clientList = value; } // Temporarily expose input value. Use with caution. public get clientListInput() { return this._clientList; } // default_storage_class - computed: false, optional: true, required: false private _defaultStorageClass?: string; public get defaultStorageClass() { return this.getStringAttribute('default_storage_class'); } public set defaultStorageClass(value: string) { this._defaultStorageClass = value; } public resetDefaultStorageClass() { this._defaultStorageClass = undefined; } // Temporarily expose input value. Use with caution. public get defaultStorageClassInput() { return this._defaultStorageClass; } // file_share_name - computed: true, optional: true, required: false private _fileShareName?: string; public get fileShareName() { return this.getStringAttribute('file_share_name'); } public set fileShareName(value: string) { this._fileShareName = value; } public resetFileShareName() { this._fileShareName = undefined; } // Temporarily expose input value. Use with caution. public get fileShareNameInput() { return this._fileShareName; } // fileshare_id - computed: true, optional: false, required: false public get fileshareId() { return this.getStringAttribute('fileshare_id'); } // gateway_arn - computed: false, optional: false, required: true private _gatewayArn?: string; public get gatewayArn() { return this.getStringAttribute('gateway_arn'); } public set gatewayArn(value: string) { this._gatewayArn = value; } // Temporarily expose input value. Use with caution. public get gatewayArnInput() { return this._gatewayArn; } // guess_mime_type_enabled - computed: false, optional: true, required: false private _guessMimeTypeEnabled?: boolean | cdktf.IResolvable; public get guessMimeTypeEnabled() { return this.getBooleanAttribute('guess_mime_type_enabled') as any; } public set guessMimeTypeEnabled(value: boolean | cdktf.IResolvable) { this._guessMimeTypeEnabled = value; } public resetGuessMimeTypeEnabled() { this._guessMimeTypeEnabled = undefined; } // Temporarily expose input value. Use with caution. public get guessMimeTypeEnabledInput() { return this._guessMimeTypeEnabled; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // kms_encrypted - computed: false, optional: true, required: false private _kmsEncrypted?: boolean | cdktf.IResolvable; public get kmsEncrypted() { return this.getBooleanAttribute('kms_encrypted') as any; } public set kmsEncrypted(value: boolean | cdktf.IResolvable) { this._kmsEncrypted = value; } public resetKmsEncrypted() { this._kmsEncrypted = undefined; } // Temporarily expose input value. Use with caution. public get kmsEncryptedInput() { return this._kmsEncrypted; } // kms_key_arn - computed: false, optional: true, required: false private _kmsKeyArn?: string; public get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } public set kmsKeyArn(value: string) { this._kmsKeyArn = value; } public resetKmsKeyArn() { this._kmsKeyArn = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyArnInput() { return this._kmsKeyArn; } // location_arn - computed: false, optional: false, required: true private _locationArn?: string; public get locationArn() { return this.getStringAttribute('location_arn'); } public set locationArn(value: string) { this._locationArn = value; } // Temporarily expose input value. Use with caution. public get locationArnInput() { return this._locationArn; } // notification_policy - computed: false, optional: true, required: false private _notificationPolicy?: string; public get notificationPolicy() { return this.getStringAttribute('notification_policy'); } public set notificationPolicy(value: string) { this._notificationPolicy = value; } public resetNotificationPolicy() { this._notificationPolicy = undefined; } // Temporarily expose input value. Use with caution. public get notificationPolicyInput() { return this._notificationPolicy; } // object_acl - computed: false, optional: true, required: false private _objectAcl?: string; public get objectAcl() { return this.getStringAttribute('object_acl'); } public set objectAcl(value: string) { this._objectAcl = value; } public resetObjectAcl() { this._objectAcl = undefined; } // Temporarily expose input value. Use with caution. public get objectAclInput() { return this._objectAcl; } // path - computed: true, optional: false, required: false public get path() { return this.getStringAttribute('path'); } // read_only - computed: false, optional: true, required: false private _readOnly?: boolean | cdktf.IResolvable; public get readOnly() { return this.getBooleanAttribute('read_only') as any; } public set readOnly(value: boolean | cdktf.IResolvable) { this._readOnly = value; } public resetReadOnly() { this._readOnly = undefined; } // Temporarily expose input value. Use with caution. public get readOnlyInput() { return this._readOnly; } // requester_pays - computed: false, optional: true, required: false private _requesterPays?: boolean | cdktf.IResolvable; public get requesterPays() { return this.getBooleanAttribute('requester_pays') as any; } public set requesterPays(value: boolean | cdktf.IResolvable) { this._requesterPays = value; } public resetRequesterPays() { this._requesterPays = undefined; } // Temporarily expose input value. Use with caution. public get requesterPaysInput() { return this._requesterPays; } // role_arn - computed: false, optional: false, required: true private _roleArn?: string; public get roleArn() { return this.getStringAttribute('role_arn'); } public set roleArn(value: string) { this._roleArn = value; } // Temporarily expose input value. Use with caution. public get roleArnInput() { return this._roleArn; } // squash - computed: false, optional: true, required: false private _squash?: string; public get squash() { return this.getStringAttribute('squash'); } public set squash(value: string) { this._squash = value; } public resetSquash() { this._squash = undefined; } // Temporarily expose input value. Use with caution. public get squashInput() { return this._squash; } // 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; } // cache_attributes - computed: false, optional: true, required: false private _cacheAttributes = new StoragegatewayNfsFileShareCacheAttributesOutputReference(this as any, "cache_attributes", true); public get cacheAttributes() { return this._cacheAttributes; } public putCacheAttributes(value: StoragegatewayNfsFileShareCacheAttributes) { this._cacheAttributes.internalValue = value; } public resetCacheAttributes() { this._cacheAttributes.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get cacheAttributesInput() { return this._cacheAttributes.internalValue; } // nfs_file_share_defaults - computed: false, optional: true, required: false private _nfsFileShareDefaults = new StoragegatewayNfsFileShareNfsFileShareDefaultsOutputReference(this as any, "nfs_file_share_defaults", true); public get nfsFileShareDefaults() { return this._nfsFileShareDefaults; } public putNfsFileShareDefaults(value: StoragegatewayNfsFileShareNfsFileShareDefaults) { this._nfsFileShareDefaults.internalValue = value; } public resetNfsFileShareDefaults() { this._nfsFileShareDefaults.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get nfsFileShareDefaultsInput() { return this._nfsFileShareDefaults.internalValue; } // timeouts - computed: false, optional: true, required: false private _timeouts = new StoragegatewayNfsFileShareTimeoutsOutputReference(this as any, "timeouts", true); public get timeouts() { return this._timeouts; } public putTimeouts(value: StoragegatewayNfsFileShareTimeouts) { 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 { audit_destination_arn: cdktf.stringToTerraform(this._auditDestinationArn), client_list: cdktf.listMapper(cdktf.stringToTerraform)(this._clientList), default_storage_class: cdktf.stringToTerraform(this._defaultStorageClass), file_share_name: cdktf.stringToTerraform(this._fileShareName), gateway_arn: cdktf.stringToTerraform(this._gatewayArn), guess_mime_type_enabled: cdktf.booleanToTerraform(this._guessMimeTypeEnabled), kms_encrypted: cdktf.booleanToTerraform(this._kmsEncrypted), kms_key_arn: cdktf.stringToTerraform(this._kmsKeyArn), location_arn: cdktf.stringToTerraform(this._locationArn), notification_policy: cdktf.stringToTerraform(this._notificationPolicy), object_acl: cdktf.stringToTerraform(this._objectAcl), read_only: cdktf.booleanToTerraform(this._readOnly), requester_pays: cdktf.booleanToTerraform(this._requesterPays), role_arn: cdktf.stringToTerraform(this._roleArn), squash: cdktf.stringToTerraform(this._squash), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), cache_attributes: storagegatewayNfsFileShareCacheAttributesToTerraform(this._cacheAttributes.internalValue), nfs_file_share_defaults: storagegatewayNfsFileShareNfsFileShareDefaultsToTerraform(this._nfsFileShareDefaults.internalValue), timeouts: storagegatewayNfsFileShareTimeoutsToTerraform(this._timeouts.internalValue), }; } }