github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/fsx/windowsFileSystem.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package fsx 5 6 import ( 7 "context" 8 "reflect" 9 10 "errors" 11 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 12 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 13 ) 14 15 // Manages a FSx Windows File System. See the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) for more information. 16 // 17 // > **NOTE:** Either the `activeDirectoryId` argument or `selfManagedActiveDirectory` configuration block must be specified. 18 // 19 // ## Example Usage 20 // 21 // ### Using AWS Directory Service 22 // 23 // Additional information for using AWS Directory Service with Windows File Systems can be found in the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/fsx-aws-managed-ad.html). 24 // 25 // <!--Start PulumiCodeChooser --> 26 // ```go 27 // package main 28 // 29 // import ( 30 // 31 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/fsx" 32 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 33 // 34 // ) 35 // 36 // func main() { 37 // pulumi.Run(func(ctx *pulumi.Context) error { 38 // _, err := fsx.NewWindowsFileSystem(ctx, "example", &fsx.WindowsFileSystemArgs{ 39 // ActiveDirectoryId: pulumi.Any(exampleAwsDirectoryServiceDirectory.Id), 40 // KmsKeyId: pulumi.Any(exampleAwsKmsKey.Arn), 41 // StorageCapacity: pulumi.Int(300), 42 // SubnetIds: pulumi.StringArray{ 43 // exampleAwsSubnet.Id, 44 // }, 45 // ThroughputCapacity: pulumi.Int(1024), 46 // }) 47 // if err != nil { 48 // return err 49 // } 50 // return nil 51 // }) 52 // } 53 // 54 // ``` 55 // <!--End PulumiCodeChooser --> 56 // 57 // ### Using a Self-Managed Microsoft Active Directory 58 // 59 // Additional information for using AWS Directory Service with Windows File Systems can be found in the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/self-managed-AD.html). 60 // 61 // <!--Start PulumiCodeChooser --> 62 // ```go 63 // package main 64 // 65 // import ( 66 // 67 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/fsx" 68 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 69 // 70 // ) 71 // 72 // func main() { 73 // pulumi.Run(func(ctx *pulumi.Context) error { 74 // _, err := fsx.NewWindowsFileSystem(ctx, "example", &fsx.WindowsFileSystemArgs{ 75 // KmsKeyId: pulumi.Any(exampleAwsKmsKey.Arn), 76 // StorageCapacity: pulumi.Int(300), 77 // SubnetIds: pulumi.StringArray{ 78 // exampleAwsSubnet.Id, 79 // }, 80 // ThroughputCapacity: pulumi.Int(1024), 81 // SelfManagedActiveDirectory: &fsx.WindowsFileSystemSelfManagedActiveDirectoryArgs{ 82 // DnsIps: pulumi.StringArray{ 83 // pulumi.String("10.0.0.111"), 84 // pulumi.String("10.0.0.222"), 85 // }, 86 // DomainName: pulumi.String("corp.example.com"), 87 // Password: pulumi.String("avoid-plaintext-passwords"), 88 // Username: pulumi.String("Admin"), 89 // }, 90 // }) 91 // if err != nil { 92 // return err 93 // } 94 // return nil 95 // }) 96 // } 97 // 98 // ``` 99 // <!--End PulumiCodeChooser --> 100 // 101 // ## Import 102 // 103 // Using `pulumi import`, import FSx File Systems using the `id`. For example: 104 // 105 // ```sh 106 // $ pulumi import aws:fsx/windowsFileSystem:WindowsFileSystem example fs-543ab12b1ca672f33 107 // ``` 108 // Certain resource arguments, like `security_group_ids` and the `self_managed_active_directory` configuation block `password`, do not have a FSx API method for reading the information after creation. If these arguments are set in the Pulumi program on an imported resource, Pulumi will always show a difference. To workaround this behavior, either omit the argument from the Pulumi program or use `ignore_changes` to hide the difference. For example: 109 type WindowsFileSystem struct { 110 pulumi.CustomResourceState 111 112 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 113 ActiveDirectoryId pulumi.StringPtrOutput `pulumi:"activeDirectoryId"` 114 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 115 Aliases pulumi.StringArrayOutput `pulumi:"aliases"` 116 // Amazon Resource Name of the file system. 117 Arn pulumi.StringOutput `pulumi:"arn"` 118 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 119 AuditLogConfiguration WindowsFileSystemAuditLogConfigurationOutput `pulumi:"auditLogConfiguration"` 120 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 121 AutomaticBackupRetentionDays pulumi.IntPtrOutput `pulumi:"automaticBackupRetentionDays"` 122 // The ID of the source backup to create the filesystem from. 123 BackupId pulumi.StringPtrOutput `pulumi:"backupId"` 124 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 125 CopyTagsToBackups pulumi.BoolPtrOutput `pulumi:"copyTagsToBackups"` 126 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 127 DailyAutomaticBackupStartTime pulumi.StringOutput `pulumi:"dailyAutomaticBackupStartTime"` 128 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 129 DeploymentType pulumi.StringPtrOutput `pulumi:"deploymentType"` 130 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 131 DiskIopsConfiguration WindowsFileSystemDiskIopsConfigurationOutput `pulumi:"diskIopsConfiguration"` 132 // DNS name for the file system, e.g., `fs-12345678.corp.example.com` (domain name matching the Active Directory domain name) 133 DnsName pulumi.StringOutput `pulumi:"dnsName"` 134 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 135 KmsKeyId pulumi.StringOutput `pulumi:"kmsKeyId"` 136 // Set of Elastic Network Interface identifiers from which the file system is accessible. 137 NetworkInterfaceIds pulumi.StringArrayOutput `pulumi:"networkInterfaceIds"` 138 // AWS account identifier that created the file system. 139 OwnerId pulumi.StringOutput `pulumi:"ownerId"` 140 // The IP address of the primary, or preferred, file server. 141 PreferredFileServerIp pulumi.StringOutput `pulumi:"preferredFileServerIp"` 142 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 143 PreferredSubnetId pulumi.StringOutput `pulumi:"preferredSubnetId"` 144 // For `MULTI_AZ_1` deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For `SINGLE_AZ_1` deployment types, this is the DNS name of the file system. 145 RemoteAdministrationEndpoint pulumi.StringOutput `pulumi:"remoteAdministrationEndpoint"` 146 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 147 SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"` 148 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 149 SelfManagedActiveDirectory WindowsFileSystemSelfManagedActiveDirectoryPtrOutput `pulumi:"selfManagedActiveDirectory"` 150 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 151 SkipFinalBackup pulumi.BoolPtrOutput `pulumi:"skipFinalBackup"` 152 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 153 StorageCapacity pulumi.IntOutput `pulumi:"storageCapacity"` 154 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 155 StorageType pulumi.StringPtrOutput `pulumi:"storageType"` 156 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 157 SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"` 158 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 159 Tags pulumi.StringMapOutput `pulumi:"tags"` 160 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 161 // 162 // Deprecated: Please use `tags` instead. 163 TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` 164 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 165 // 166 // The following arguments are optional: 167 ThroughputCapacity pulumi.IntOutput `pulumi:"throughputCapacity"` 168 // Identifier of the Virtual Private Cloud for the file system. 169 VpcId pulumi.StringOutput `pulumi:"vpcId"` 170 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 171 WeeklyMaintenanceStartTime pulumi.StringOutput `pulumi:"weeklyMaintenanceStartTime"` 172 } 173 174 // NewWindowsFileSystem registers a new resource with the given unique name, arguments, and options. 175 func NewWindowsFileSystem(ctx *pulumi.Context, 176 name string, args *WindowsFileSystemArgs, opts ...pulumi.ResourceOption) (*WindowsFileSystem, error) { 177 if args == nil { 178 return nil, errors.New("missing one or more required arguments") 179 } 180 181 if args.SubnetIds == nil { 182 return nil, errors.New("invalid value for required argument 'SubnetIds'") 183 } 184 if args.ThroughputCapacity == nil { 185 return nil, errors.New("invalid value for required argument 'ThroughputCapacity'") 186 } 187 opts = internal.PkgResourceDefaultOpts(opts) 188 var resource WindowsFileSystem 189 err := ctx.RegisterResource("aws:fsx/windowsFileSystem:WindowsFileSystem", name, args, &resource, opts...) 190 if err != nil { 191 return nil, err 192 } 193 return &resource, nil 194 } 195 196 // GetWindowsFileSystem gets an existing WindowsFileSystem resource's state with the given name, ID, and optional 197 // state properties that are used to uniquely qualify the lookup (nil if not required). 198 func GetWindowsFileSystem(ctx *pulumi.Context, 199 name string, id pulumi.IDInput, state *WindowsFileSystemState, opts ...pulumi.ResourceOption) (*WindowsFileSystem, error) { 200 var resource WindowsFileSystem 201 err := ctx.ReadResource("aws:fsx/windowsFileSystem:WindowsFileSystem", name, id, state, &resource, opts...) 202 if err != nil { 203 return nil, err 204 } 205 return &resource, nil 206 } 207 208 // Input properties used for looking up and filtering WindowsFileSystem resources. 209 type windowsFileSystemState struct { 210 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 211 ActiveDirectoryId *string `pulumi:"activeDirectoryId"` 212 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 213 Aliases []string `pulumi:"aliases"` 214 // Amazon Resource Name of the file system. 215 Arn *string `pulumi:"arn"` 216 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 217 AuditLogConfiguration *WindowsFileSystemAuditLogConfiguration `pulumi:"auditLogConfiguration"` 218 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 219 AutomaticBackupRetentionDays *int `pulumi:"automaticBackupRetentionDays"` 220 // The ID of the source backup to create the filesystem from. 221 BackupId *string `pulumi:"backupId"` 222 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 223 CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"` 224 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 225 DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"` 226 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 227 DeploymentType *string `pulumi:"deploymentType"` 228 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 229 DiskIopsConfiguration *WindowsFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"` 230 // DNS name for the file system, e.g., `fs-12345678.corp.example.com` (domain name matching the Active Directory domain name) 231 DnsName *string `pulumi:"dnsName"` 232 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 233 KmsKeyId *string `pulumi:"kmsKeyId"` 234 // Set of Elastic Network Interface identifiers from which the file system is accessible. 235 NetworkInterfaceIds []string `pulumi:"networkInterfaceIds"` 236 // AWS account identifier that created the file system. 237 OwnerId *string `pulumi:"ownerId"` 238 // The IP address of the primary, or preferred, file server. 239 PreferredFileServerIp *string `pulumi:"preferredFileServerIp"` 240 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 241 PreferredSubnetId *string `pulumi:"preferredSubnetId"` 242 // For `MULTI_AZ_1` deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For `SINGLE_AZ_1` deployment types, this is the DNS name of the file system. 243 RemoteAdministrationEndpoint *string `pulumi:"remoteAdministrationEndpoint"` 244 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 245 SecurityGroupIds []string `pulumi:"securityGroupIds"` 246 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 247 SelfManagedActiveDirectory *WindowsFileSystemSelfManagedActiveDirectory `pulumi:"selfManagedActiveDirectory"` 248 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 249 SkipFinalBackup *bool `pulumi:"skipFinalBackup"` 250 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 251 StorageCapacity *int `pulumi:"storageCapacity"` 252 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 253 StorageType *string `pulumi:"storageType"` 254 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 255 SubnetIds []string `pulumi:"subnetIds"` 256 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 257 Tags map[string]string `pulumi:"tags"` 258 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 259 // 260 // Deprecated: Please use `tags` instead. 261 TagsAll map[string]string `pulumi:"tagsAll"` 262 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 263 // 264 // The following arguments are optional: 265 ThroughputCapacity *int `pulumi:"throughputCapacity"` 266 // Identifier of the Virtual Private Cloud for the file system. 267 VpcId *string `pulumi:"vpcId"` 268 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 269 WeeklyMaintenanceStartTime *string `pulumi:"weeklyMaintenanceStartTime"` 270 } 271 272 type WindowsFileSystemState struct { 273 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 274 ActiveDirectoryId pulumi.StringPtrInput 275 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 276 Aliases pulumi.StringArrayInput 277 // Amazon Resource Name of the file system. 278 Arn pulumi.StringPtrInput 279 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 280 AuditLogConfiguration WindowsFileSystemAuditLogConfigurationPtrInput 281 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 282 AutomaticBackupRetentionDays pulumi.IntPtrInput 283 // The ID of the source backup to create the filesystem from. 284 BackupId pulumi.StringPtrInput 285 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 286 CopyTagsToBackups pulumi.BoolPtrInput 287 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 288 DailyAutomaticBackupStartTime pulumi.StringPtrInput 289 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 290 DeploymentType pulumi.StringPtrInput 291 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 292 DiskIopsConfiguration WindowsFileSystemDiskIopsConfigurationPtrInput 293 // DNS name for the file system, e.g., `fs-12345678.corp.example.com` (domain name matching the Active Directory domain name) 294 DnsName pulumi.StringPtrInput 295 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 296 KmsKeyId pulumi.StringPtrInput 297 // Set of Elastic Network Interface identifiers from which the file system is accessible. 298 NetworkInterfaceIds pulumi.StringArrayInput 299 // AWS account identifier that created the file system. 300 OwnerId pulumi.StringPtrInput 301 // The IP address of the primary, or preferred, file server. 302 PreferredFileServerIp pulumi.StringPtrInput 303 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 304 PreferredSubnetId pulumi.StringPtrInput 305 // For `MULTI_AZ_1` deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For `SINGLE_AZ_1` deployment types, this is the DNS name of the file system. 306 RemoteAdministrationEndpoint pulumi.StringPtrInput 307 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 308 SecurityGroupIds pulumi.StringArrayInput 309 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 310 SelfManagedActiveDirectory WindowsFileSystemSelfManagedActiveDirectoryPtrInput 311 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 312 SkipFinalBackup pulumi.BoolPtrInput 313 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 314 StorageCapacity pulumi.IntPtrInput 315 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 316 StorageType pulumi.StringPtrInput 317 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 318 SubnetIds pulumi.StringArrayInput 319 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 320 Tags pulumi.StringMapInput 321 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 322 // 323 // Deprecated: Please use `tags` instead. 324 TagsAll pulumi.StringMapInput 325 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 326 // 327 // The following arguments are optional: 328 ThroughputCapacity pulumi.IntPtrInput 329 // Identifier of the Virtual Private Cloud for the file system. 330 VpcId pulumi.StringPtrInput 331 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 332 WeeklyMaintenanceStartTime pulumi.StringPtrInput 333 } 334 335 func (WindowsFileSystemState) ElementType() reflect.Type { 336 return reflect.TypeOf((*windowsFileSystemState)(nil)).Elem() 337 } 338 339 type windowsFileSystemArgs struct { 340 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 341 ActiveDirectoryId *string `pulumi:"activeDirectoryId"` 342 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 343 Aliases []string `pulumi:"aliases"` 344 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 345 AuditLogConfiguration *WindowsFileSystemAuditLogConfiguration `pulumi:"auditLogConfiguration"` 346 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 347 AutomaticBackupRetentionDays *int `pulumi:"automaticBackupRetentionDays"` 348 // The ID of the source backup to create the filesystem from. 349 BackupId *string `pulumi:"backupId"` 350 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 351 CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"` 352 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 353 DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"` 354 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 355 DeploymentType *string `pulumi:"deploymentType"` 356 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 357 DiskIopsConfiguration *WindowsFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"` 358 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 359 KmsKeyId *string `pulumi:"kmsKeyId"` 360 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 361 PreferredSubnetId *string `pulumi:"preferredSubnetId"` 362 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 363 SecurityGroupIds []string `pulumi:"securityGroupIds"` 364 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 365 SelfManagedActiveDirectory *WindowsFileSystemSelfManagedActiveDirectory `pulumi:"selfManagedActiveDirectory"` 366 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 367 SkipFinalBackup *bool `pulumi:"skipFinalBackup"` 368 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 369 StorageCapacity *int `pulumi:"storageCapacity"` 370 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 371 StorageType *string `pulumi:"storageType"` 372 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 373 SubnetIds []string `pulumi:"subnetIds"` 374 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 375 Tags map[string]string `pulumi:"tags"` 376 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 377 // 378 // The following arguments are optional: 379 ThroughputCapacity int `pulumi:"throughputCapacity"` 380 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 381 WeeklyMaintenanceStartTime *string `pulumi:"weeklyMaintenanceStartTime"` 382 } 383 384 // The set of arguments for constructing a WindowsFileSystem resource. 385 type WindowsFileSystemArgs struct { 386 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 387 ActiveDirectoryId pulumi.StringPtrInput 388 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 389 Aliases pulumi.StringArrayInput 390 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 391 AuditLogConfiguration WindowsFileSystemAuditLogConfigurationPtrInput 392 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 393 AutomaticBackupRetentionDays pulumi.IntPtrInput 394 // The ID of the source backup to create the filesystem from. 395 BackupId pulumi.StringPtrInput 396 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 397 CopyTagsToBackups pulumi.BoolPtrInput 398 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 399 DailyAutomaticBackupStartTime pulumi.StringPtrInput 400 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 401 DeploymentType pulumi.StringPtrInput 402 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 403 DiskIopsConfiguration WindowsFileSystemDiskIopsConfigurationPtrInput 404 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 405 KmsKeyId pulumi.StringPtrInput 406 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 407 PreferredSubnetId pulumi.StringPtrInput 408 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 409 SecurityGroupIds pulumi.StringArrayInput 410 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 411 SelfManagedActiveDirectory WindowsFileSystemSelfManagedActiveDirectoryPtrInput 412 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 413 SkipFinalBackup pulumi.BoolPtrInput 414 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 415 StorageCapacity pulumi.IntPtrInput 416 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 417 StorageType pulumi.StringPtrInput 418 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 419 SubnetIds pulumi.StringArrayInput 420 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 421 Tags pulumi.StringMapInput 422 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 423 // 424 // The following arguments are optional: 425 ThroughputCapacity pulumi.IntInput 426 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 427 WeeklyMaintenanceStartTime pulumi.StringPtrInput 428 } 429 430 func (WindowsFileSystemArgs) ElementType() reflect.Type { 431 return reflect.TypeOf((*windowsFileSystemArgs)(nil)).Elem() 432 } 433 434 type WindowsFileSystemInput interface { 435 pulumi.Input 436 437 ToWindowsFileSystemOutput() WindowsFileSystemOutput 438 ToWindowsFileSystemOutputWithContext(ctx context.Context) WindowsFileSystemOutput 439 } 440 441 func (*WindowsFileSystem) ElementType() reflect.Type { 442 return reflect.TypeOf((**WindowsFileSystem)(nil)).Elem() 443 } 444 445 func (i *WindowsFileSystem) ToWindowsFileSystemOutput() WindowsFileSystemOutput { 446 return i.ToWindowsFileSystemOutputWithContext(context.Background()) 447 } 448 449 func (i *WindowsFileSystem) ToWindowsFileSystemOutputWithContext(ctx context.Context) WindowsFileSystemOutput { 450 return pulumi.ToOutputWithContext(ctx, i).(WindowsFileSystemOutput) 451 } 452 453 // WindowsFileSystemArrayInput is an input type that accepts WindowsFileSystemArray and WindowsFileSystemArrayOutput values. 454 // You can construct a concrete instance of `WindowsFileSystemArrayInput` via: 455 // 456 // WindowsFileSystemArray{ WindowsFileSystemArgs{...} } 457 type WindowsFileSystemArrayInput interface { 458 pulumi.Input 459 460 ToWindowsFileSystemArrayOutput() WindowsFileSystemArrayOutput 461 ToWindowsFileSystemArrayOutputWithContext(context.Context) WindowsFileSystemArrayOutput 462 } 463 464 type WindowsFileSystemArray []WindowsFileSystemInput 465 466 func (WindowsFileSystemArray) ElementType() reflect.Type { 467 return reflect.TypeOf((*[]*WindowsFileSystem)(nil)).Elem() 468 } 469 470 func (i WindowsFileSystemArray) ToWindowsFileSystemArrayOutput() WindowsFileSystemArrayOutput { 471 return i.ToWindowsFileSystemArrayOutputWithContext(context.Background()) 472 } 473 474 func (i WindowsFileSystemArray) ToWindowsFileSystemArrayOutputWithContext(ctx context.Context) WindowsFileSystemArrayOutput { 475 return pulumi.ToOutputWithContext(ctx, i).(WindowsFileSystemArrayOutput) 476 } 477 478 // WindowsFileSystemMapInput is an input type that accepts WindowsFileSystemMap and WindowsFileSystemMapOutput values. 479 // You can construct a concrete instance of `WindowsFileSystemMapInput` via: 480 // 481 // WindowsFileSystemMap{ "key": WindowsFileSystemArgs{...} } 482 type WindowsFileSystemMapInput interface { 483 pulumi.Input 484 485 ToWindowsFileSystemMapOutput() WindowsFileSystemMapOutput 486 ToWindowsFileSystemMapOutputWithContext(context.Context) WindowsFileSystemMapOutput 487 } 488 489 type WindowsFileSystemMap map[string]WindowsFileSystemInput 490 491 func (WindowsFileSystemMap) ElementType() reflect.Type { 492 return reflect.TypeOf((*map[string]*WindowsFileSystem)(nil)).Elem() 493 } 494 495 func (i WindowsFileSystemMap) ToWindowsFileSystemMapOutput() WindowsFileSystemMapOutput { 496 return i.ToWindowsFileSystemMapOutputWithContext(context.Background()) 497 } 498 499 func (i WindowsFileSystemMap) ToWindowsFileSystemMapOutputWithContext(ctx context.Context) WindowsFileSystemMapOutput { 500 return pulumi.ToOutputWithContext(ctx, i).(WindowsFileSystemMapOutput) 501 } 502 503 type WindowsFileSystemOutput struct{ *pulumi.OutputState } 504 505 func (WindowsFileSystemOutput) ElementType() reflect.Type { 506 return reflect.TypeOf((**WindowsFileSystem)(nil)).Elem() 507 } 508 509 func (o WindowsFileSystemOutput) ToWindowsFileSystemOutput() WindowsFileSystemOutput { 510 return o 511 } 512 513 func (o WindowsFileSystemOutput) ToWindowsFileSystemOutputWithContext(ctx context.Context) WindowsFileSystemOutput { 514 return o 515 } 516 517 // The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `selfManagedActiveDirectory`. 518 func (o WindowsFileSystemOutput) ActiveDirectoryId() pulumi.StringPtrOutput { 519 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringPtrOutput { return v.ActiveDirectoryId }).(pulumi.StringPtrOutput) 520 } 521 522 // An array DNS alias names that you want to associate with the Amazon FSx file system. For more information, see [Working with DNS Aliases](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-dns-aliases.html) 523 func (o WindowsFileSystemOutput) Aliases() pulumi.StringArrayOutput { 524 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringArrayOutput { return v.Aliases }).(pulumi.StringArrayOutput) 525 } 526 527 // Amazon Resource Name of the file system. 528 func (o WindowsFileSystemOutput) Arn() pulumi.StringOutput { 529 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) 530 } 531 532 // The configuration that Amazon FSx for Windows File Server uses to audit and log user accesses of files, folders, and file shares on the Amazon FSx for Windows File Server file system. See Audit Log Configuration below. 533 func (o WindowsFileSystemOutput) AuditLogConfiguration() WindowsFileSystemAuditLogConfigurationOutput { 534 return o.ApplyT(func(v *WindowsFileSystem) WindowsFileSystemAuditLogConfigurationOutput { 535 return v.AuditLogConfiguration 536 }).(WindowsFileSystemAuditLogConfigurationOutput) 537 } 538 539 // The number of days to retain automatic backups. Minimum of `0` and maximum of `90`. Defaults to `7`. Set to `0` to disable. 540 func (o WindowsFileSystemOutput) AutomaticBackupRetentionDays() pulumi.IntPtrOutput { 541 return o.ApplyT(func(v *WindowsFileSystem) pulumi.IntPtrOutput { return v.AutomaticBackupRetentionDays }).(pulumi.IntPtrOutput) 542 } 543 544 // The ID of the source backup to create the filesystem from. 545 func (o WindowsFileSystemOutput) BackupId() pulumi.StringPtrOutput { 546 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringPtrOutput { return v.BackupId }).(pulumi.StringPtrOutput) 547 } 548 549 // A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. 550 func (o WindowsFileSystemOutput) CopyTagsToBackups() pulumi.BoolPtrOutput { 551 return o.ApplyT(func(v *WindowsFileSystem) pulumi.BoolPtrOutput { return v.CopyTagsToBackups }).(pulumi.BoolPtrOutput) 552 } 553 554 // The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. 555 func (o WindowsFileSystemOutput) DailyAutomaticBackupStartTime() pulumi.StringOutput { 556 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.DailyAutomaticBackupStartTime }).(pulumi.StringOutput) 557 } 558 559 // Specifies the file system deployment type, valid values are `MULTI_AZ_1`, `SINGLE_AZ_1` and `SINGLE_AZ_2`. Default value is `SINGLE_AZ_1`. 560 func (o WindowsFileSystemOutput) DeploymentType() pulumi.StringPtrOutput { 561 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringPtrOutput { return v.DeploymentType }).(pulumi.StringPtrOutput) 562 } 563 564 // The SSD IOPS configuration for the Amazon FSx for Windows File Server file system. See Disk Iops Configuration below. 565 func (o WindowsFileSystemOutput) DiskIopsConfiguration() WindowsFileSystemDiskIopsConfigurationOutput { 566 return o.ApplyT(func(v *WindowsFileSystem) WindowsFileSystemDiskIopsConfigurationOutput { 567 return v.DiskIopsConfiguration 568 }).(WindowsFileSystemDiskIopsConfigurationOutput) 569 } 570 571 // DNS name for the file system, e.g., `fs-12345678.corp.example.com` (domain name matching the Active Directory domain name) 572 func (o WindowsFileSystemOutput) DnsName() pulumi.StringOutput { 573 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.DnsName }).(pulumi.StringOutput) 574 } 575 576 // ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. 577 func (o WindowsFileSystemOutput) KmsKeyId() pulumi.StringOutput { 578 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.KmsKeyId }).(pulumi.StringOutput) 579 } 580 581 // Set of Elastic Network Interface identifiers from which the file system is accessible. 582 func (o WindowsFileSystemOutput) NetworkInterfaceIds() pulumi.StringArrayOutput { 583 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringArrayOutput { return v.NetworkInterfaceIds }).(pulumi.StringArrayOutput) 584 } 585 586 // AWS account identifier that created the file system. 587 func (o WindowsFileSystemOutput) OwnerId() pulumi.StringOutput { 588 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.OwnerId }).(pulumi.StringOutput) 589 } 590 591 // The IP address of the primary, or preferred, file server. 592 func (o WindowsFileSystemOutput) PreferredFileServerIp() pulumi.StringOutput { 593 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.PreferredFileServerIp }).(pulumi.StringOutput) 594 } 595 596 // Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. 597 func (o WindowsFileSystemOutput) PreferredSubnetId() pulumi.StringOutput { 598 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.PreferredSubnetId }).(pulumi.StringOutput) 599 } 600 601 // For `MULTI_AZ_1` deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For `SINGLE_AZ_1` deployment types, this is the DNS name of the file system. 602 func (o WindowsFileSystemOutput) RemoteAdministrationEndpoint() pulumi.StringOutput { 603 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.RemoteAdministrationEndpoint }).(pulumi.StringOutput) 604 } 605 606 // A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. 607 func (o WindowsFileSystemOutput) SecurityGroupIds() pulumi.StringArrayOutput { 608 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringArrayOutput { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) 609 } 610 611 // Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `activeDirectoryId`. See Self-Managed Active Directory below. 612 func (o WindowsFileSystemOutput) SelfManagedActiveDirectory() WindowsFileSystemSelfManagedActiveDirectoryPtrOutput { 613 return o.ApplyT(func(v *WindowsFileSystem) WindowsFileSystemSelfManagedActiveDirectoryPtrOutput { 614 return v.SelfManagedActiveDirectory 615 }).(WindowsFileSystemSelfManagedActiveDirectoryPtrOutput) 616 } 617 618 // When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. 619 func (o WindowsFileSystemOutput) SkipFinalBackup() pulumi.BoolPtrOutput { 620 return o.ApplyT(func(v *WindowsFileSystem) pulumi.BoolPtrOutput { return v.SkipFinalBackup }).(pulumi.BoolPtrOutput) 621 } 622 623 // Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. Required when not creating filesystem for a backup. 624 func (o WindowsFileSystemOutput) StorageCapacity() pulumi.IntOutput { 625 return o.ApplyT(func(v *WindowsFileSystem) pulumi.IntOutput { return v.StorageCapacity }).(pulumi.IntOutput) 626 } 627 628 // Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_2` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. 629 func (o WindowsFileSystemOutput) StorageType() pulumi.StringPtrOutput { 630 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringPtrOutput { return v.StorageType }).(pulumi.StringPtrOutput) 631 } 632 633 // A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deploymentType` to `MULTI_AZ_1`. 634 func (o WindowsFileSystemOutput) SubnetIds() pulumi.StringArrayOutput { 635 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringArrayOutput { return v.SubnetIds }).(pulumi.StringArrayOutput) 636 } 637 638 // A map of tags to assign to the file system. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 639 func (o WindowsFileSystemOutput) Tags() pulumi.StringMapOutput { 640 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) 641 } 642 643 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 644 // 645 // Deprecated: Please use `tags` instead. 646 func (o WindowsFileSystemOutput) TagsAll() pulumi.StringMapOutput { 647 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) 648 } 649 650 // Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. 651 // 652 // The following arguments are optional: 653 func (o WindowsFileSystemOutput) ThroughputCapacity() pulumi.IntOutput { 654 return o.ApplyT(func(v *WindowsFileSystem) pulumi.IntOutput { return v.ThroughputCapacity }).(pulumi.IntOutput) 655 } 656 657 // Identifier of the Virtual Private Cloud for the file system. 658 func (o WindowsFileSystemOutput) VpcId() pulumi.StringOutput { 659 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.VpcId }).(pulumi.StringOutput) 660 } 661 662 // The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. 663 func (o WindowsFileSystemOutput) WeeklyMaintenanceStartTime() pulumi.StringOutput { 664 return o.ApplyT(func(v *WindowsFileSystem) pulumi.StringOutput { return v.WeeklyMaintenanceStartTime }).(pulumi.StringOutput) 665 } 666 667 type WindowsFileSystemArrayOutput struct{ *pulumi.OutputState } 668 669 func (WindowsFileSystemArrayOutput) ElementType() reflect.Type { 670 return reflect.TypeOf((*[]*WindowsFileSystem)(nil)).Elem() 671 } 672 673 func (o WindowsFileSystemArrayOutput) ToWindowsFileSystemArrayOutput() WindowsFileSystemArrayOutput { 674 return o 675 } 676 677 func (o WindowsFileSystemArrayOutput) ToWindowsFileSystemArrayOutputWithContext(ctx context.Context) WindowsFileSystemArrayOutput { 678 return o 679 } 680 681 func (o WindowsFileSystemArrayOutput) Index(i pulumi.IntInput) WindowsFileSystemOutput { 682 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *WindowsFileSystem { 683 return vs[0].([]*WindowsFileSystem)[vs[1].(int)] 684 }).(WindowsFileSystemOutput) 685 } 686 687 type WindowsFileSystemMapOutput struct{ *pulumi.OutputState } 688 689 func (WindowsFileSystemMapOutput) ElementType() reflect.Type { 690 return reflect.TypeOf((*map[string]*WindowsFileSystem)(nil)).Elem() 691 } 692 693 func (o WindowsFileSystemMapOutput) ToWindowsFileSystemMapOutput() WindowsFileSystemMapOutput { 694 return o 695 } 696 697 func (o WindowsFileSystemMapOutput) ToWindowsFileSystemMapOutputWithContext(ctx context.Context) WindowsFileSystemMapOutput { 698 return o 699 } 700 701 func (o WindowsFileSystemMapOutput) MapIndex(k pulumi.StringInput) WindowsFileSystemOutput { 702 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *WindowsFileSystem { 703 return vs[0].(map[string]*WindowsFileSystem)[vs[1].(string)] 704 }).(WindowsFileSystemOutput) 705 } 706 707 func init() { 708 pulumi.RegisterInputType(reflect.TypeOf((*WindowsFileSystemInput)(nil)).Elem(), &WindowsFileSystem{}) 709 pulumi.RegisterInputType(reflect.TypeOf((*WindowsFileSystemArrayInput)(nil)).Elem(), WindowsFileSystemArray{}) 710 pulumi.RegisterInputType(reflect.TypeOf((*WindowsFileSystemMapInput)(nil)).Elem(), WindowsFileSystemMap{}) 711 pulumi.RegisterOutputType(WindowsFileSystemOutput{}) 712 pulumi.RegisterOutputType(WindowsFileSystemArrayOutput{}) 713 pulumi.RegisterOutputType(WindowsFileSystemMapOutput{}) 714 }