LocationFsxWindowsArgs

data class LocationFsxWindowsArgs(val domain: Output<String>? = null, val fsxFilesystemArn: Output<String>? = null, val password: Output<String>? = null, val securityGroupArns: Output<List<String>>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val user: Output<String>? = null) : ConvertibleToJava<LocationFsxWindowsArgs>

Manages an AWS DataSync FSx Windows Location.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datasync.LocationFsxWindows("example", {
fsxFilesystemArn: exampleAwsFsxWindowsFileSystem.arn,
user: "SomeUser",
password: "SuperSecretPassw0rd",
securityGroupArns: [exampleAwsSecurityGroup&#46;arn],
});
import pulumi
import pulumi_aws as aws
example = aws.datasync.LocationFsxWindows("example",
fsx_filesystem_arn=example_aws_fsx_windows_file_system["arn"],
user="SomeUser",
password="SuperSecretPassw0rd",
security_group_arns=[example_aws_security_group["arn"]])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataSync.LocationFsxWindows("example", new()
{
FsxFilesystemArn = exampleAwsFsxWindowsFileSystem.Arn,
User = "SomeUser",
Password = "SuperSecretPassw0rd",
SecurityGroupArns = new[]
{
exampleAwsSecurityGroup.Arn,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewLocationFsxWindows(ctx, "example", &datasync.LocationFsxWindowsArgs{
FsxFilesystemArn: pulumi.Any(exampleAwsFsxWindowsFileSystem.Arn),
User: pulumi.String("SomeUser"),
Password: pulumi.String("SuperSecretPassw0rd"),
SecurityGroupArns: pulumi.StringArray{
exampleAwsSecurityGroup.Arn,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.LocationFsxWindows;
import com.pulumi.aws.datasync.LocationFsxWindowsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LocationFsxWindows("example", LocationFsxWindowsArgs.builder()
.fsxFilesystemArn(exampleAwsFsxWindowsFileSystem.arn())
.user("SomeUser")
.password("SuperSecretPassw0rd")
.securityGroupArns(exampleAwsSecurityGroup.arn())
.build());
}
}
resources:
example:
type: aws:datasync:LocationFsxWindows
properties:
fsxFilesystemArn: ${exampleAwsFsxWindowsFileSystem.arn}
user: SomeUser
password: SuperSecretPassw0rd
securityGroupArns:
- ${exampleAwsSecurityGroup.arn}

Import

Using pulumi import, import aws_datasync_location_fsx_windows_file_system using the DataSync-ARN#FSx-Windows-ARN. For example:

$ pulumi import aws:datasync/locationFsxWindows:LocationFsxWindows example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:476956259333:file-system/fs-08e04cd442c1bb94a

Constructors

Link copied to clipboard
constructor(domain: Output<String>? = null, fsxFilesystemArn: Output<String>? = null, password: Output<String>? = null, securityGroupArns: Output<List<String>>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null, user: Output<String>? = null)

Properties

Link copied to clipboard
val domain: Output<String>? = null

The name of the Windows domain that the FSx for Windows server belongs to.

Link copied to clipboard
val fsxFilesystemArn: Output<String>? = null

The Amazon Resource Name (ARN) for the FSx for Windows file system.

Link copied to clipboard
val password: Output<String>? = null

The password of the user who has the permissions to access files and folders in the FSx for Windows file system.

Link copied to clipboard
val securityGroupArns: Output<List<String>>? = null

The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Windows file system.

Link copied to clipboard
val subdirectory: Output<String>? = null

Subdirectory to perform actions as source or destination.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val user: Output<String>? = null

The user who has the permissions to access files and folders in the FSx for Windows file system.

Functions

Link copied to clipboard
open override fun toJava(): LocationFsxWindowsArgs