// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS DataSync */ export interface DatasyncLocationFsxWindowsFileSystemConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#domain DatasyncLocationFsxWindowsFileSystem#domain} */ readonly domain?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#fsx_filesystem_arn DatasyncLocationFsxWindowsFileSystem#fsx_filesystem_arn} */ readonly fsxFilesystemArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#password DatasyncLocationFsxWindowsFileSystem#password} */ readonly password: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#security_group_arns DatasyncLocationFsxWindowsFileSystem#security_group_arns} */ readonly securityGroupArns: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#subdirectory DatasyncLocationFsxWindowsFileSystem#subdirectory} */ readonly subdirectory?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#tags DatasyncLocationFsxWindowsFileSystem#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#tags_all DatasyncLocationFsxWindowsFileSystem#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html#user DatasyncLocationFsxWindowsFileSystem#user} */ readonly user: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html aws_datasync_location_fsx_windows_file_system} */ export class DatasyncLocationFsxWindowsFileSystem extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_datasync_location_fsx_windows_file_system"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/datasync_location_fsx_windows_file_system.html aws_datasync_location_fsx_windows_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 DatasyncLocationFsxWindowsFileSystemConfig */ public constructor(scope: Construct, id: string, config: DatasyncLocationFsxWindowsFileSystemConfig) { super(scope, id, { terraformResourceType: 'aws_datasync_location_fsx_windows_file_system', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._domain = config.domain; this._fsxFilesystemArn = config.fsxFilesystemArn; this._password = config.password; this._securityGroupArns = config.securityGroupArns; this._subdirectory = config.subdirectory; this._tags = config.tags; this._tagsAll = config.tagsAll; this._user = config.user; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // creation_time - computed: true, optional: false, required: false public get creationTime() { return this.getStringAttribute('creation_time'); } // domain - computed: false, optional: true, required: false private _domain?: string; public get domain() { return this.getStringAttribute('domain'); } public set domain(value: string) { this._domain = value; } public resetDomain() { this._domain = undefined; } // Temporarily expose input value. Use with caution. public get domainInput() { return this._domain; } // fsx_filesystem_arn - computed: false, optional: false, required: true private _fsxFilesystemArn?: string; public get fsxFilesystemArn() { return this.getStringAttribute('fsx_filesystem_arn'); } public set fsxFilesystemArn(value: string) { this._fsxFilesystemArn = value; } // Temporarily expose input value. Use with caution. public get fsxFilesystemArnInput() { return this._fsxFilesystemArn; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // password - computed: false, optional: false, required: true private _password?: string; public get password() { return this.getStringAttribute('password'); } public set password(value: string) { this._password = value; } // Temporarily expose input value. Use with caution. public get passwordInput() { return this._password; } // security_group_arns - computed: false, optional: false, required: true private _securityGroupArns?: string[]; public get securityGroupArns() { return this.getListAttribute('security_group_arns'); } public set securityGroupArns(value: string[]) { this._securityGroupArns = value; } // Temporarily expose input value. Use with caution. public get securityGroupArnsInput() { return this._securityGroupArns; } // subdirectory - computed: true, optional: true, required: false private _subdirectory?: string; public get subdirectory() { return this.getStringAttribute('subdirectory'); } public set subdirectory(value: string) { this._subdirectory = value; } public resetSubdirectory() { this._subdirectory = undefined; } // Temporarily expose input value. Use with caution. public get subdirectoryInput() { return this._subdirectory; } // 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; } // uri - computed: true, optional: false, required: false public get uri() { return this.getStringAttribute('uri'); } // user - computed: false, optional: false, required: true private _user?: string; public get user() { return this.getStringAttribute('user'); } public set user(value: string) { this._user = value; } // Temporarily expose input value. Use with caution. public get userInput() { return this._user; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { domain: cdktf.stringToTerraform(this._domain), fsx_filesystem_arn: cdktf.stringToTerraform(this._fsxFilesystemArn), password: cdktf.stringToTerraform(this._password), security_group_arns: cdktf.listMapper(cdktf.stringToTerraform)(this._securityGroupArns), subdirectory: cdktf.stringToTerraform(this._subdirectory), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), user: cdktf.stringToTerraform(this._user), }; } }