1. Packages
  2. AWS Classic
  3. API Docs
  4. datasync
  5. LocationFsxWindows

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.13.1 published on Tuesday, Dec 5, 2023 by Pulumi

aws.datasync.LocationFsxWindows

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.13.1 published on Tuesday, Dec 5, 2023 by Pulumi

    Manages an AWS DataSync FSx Windows Location.

    Example Usage

    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 = aws_fsx_windows_file_system.Example.Arn,
            User = "SomeUser",
            Password = "SuperSecretPassw0rd",
            SecurityGroupArns = new[]
            {
                aws_security_group.Example.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(aws_fsx_windows_file_system.Example.Arn),
    			User:             pulumi.String("SomeUser"),
    			Password:         pulumi.String("SuperSecretPassw0rd"),
    			SecurityGroupArns: pulumi.StringArray{
    				aws_security_group.Example.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(aws_fsx_windows_file_system.example().arn())
                .user("SomeUser")
                .password("SuperSecretPassw0rd")
                .securityGroupArns(aws_security_group.example().arn())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.datasync.LocationFsxWindows("example",
        fsx_filesystem_arn=aws_fsx_windows_file_system["example"]["arn"],
        user="SomeUser",
        password="SuperSecretPassw0rd",
        security_group_arns=[aws_security_group["example"]["arn"]])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.datasync.LocationFsxWindows("example", {
        fsxFilesystemArn: aws_fsx_windows_file_system.example.arn,
        user: "SomeUser",
        password: "SuperSecretPassw0rd",
        securityGroupArns: [aws_security_group.example.arn],
    });
    
    resources:
      example:
        type: aws:datasync:LocationFsxWindows
        properties:
          fsxFilesystemArn: ${aws_fsx_windows_file_system.example.arn}
          user: SomeUser
          password: SuperSecretPassw0rd
          securityGroupArns:
            - ${aws_security_group.example.arn}
    

    Create LocationFsxWindows Resource

    new LocationFsxWindows(name: string, args: LocationFsxWindowsArgs, opts?: CustomResourceOptions);
    @overload
    def LocationFsxWindows(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           domain: Optional[str] = None,
                           fsx_filesystem_arn: Optional[str] = None,
                           password: Optional[str] = None,
                           security_group_arns: Optional[Sequence[str]] = None,
                           subdirectory: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           user: Optional[str] = None)
    @overload
    def LocationFsxWindows(resource_name: str,
                           args: LocationFsxWindowsArgs,
                           opts: Optional[ResourceOptions] = None)
    func NewLocationFsxWindows(ctx *Context, name string, args LocationFsxWindowsArgs, opts ...ResourceOption) (*LocationFsxWindows, error)
    public LocationFsxWindows(string name, LocationFsxWindowsArgs args, CustomResourceOptions? opts = null)
    public LocationFsxWindows(String name, LocationFsxWindowsArgs args)
    public LocationFsxWindows(String name, LocationFsxWindowsArgs args, CustomResourceOptions options)
    
    type: aws:datasync:LocationFsxWindows
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args LocationFsxWindowsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LocationFsxWindowsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LocationFsxWindowsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocationFsxWindowsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocationFsxWindowsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    LocationFsxWindows Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LocationFsxWindows resource accepts the following input properties:

    FsxFilesystemArn string

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

    Password string

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

    SecurityGroupArns List<string>

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

    User string

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

    Domain string

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

    Subdirectory string

    Subdirectory to perform actions as source or destination.

    Tags Dictionary<string, string>

    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.

    FsxFilesystemArn string

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

    Password string

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

    SecurityGroupArns []string

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

    User string

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

    Domain string

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

    Subdirectory string

    Subdirectory to perform actions as source or destination.

    Tags map[string]string

    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.

    fsxFilesystemArn String

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

    password String

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

    securityGroupArns List<String>

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

    user String

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

    domain String

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

    subdirectory String

    Subdirectory to perform actions as source or destination.

    tags Map<String,String>

    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.

    fsxFilesystemArn string

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

    password string

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

    securityGroupArns string[]

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

    user string

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

    domain string

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

    subdirectory string

    Subdirectory to perform actions as source or destination.

    tags {[key: string]: string}

    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.

    fsx_filesystem_arn str

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

    password str

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

    security_group_arns Sequence[str]

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

    user str

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

    domain str

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

    subdirectory str

    Subdirectory to perform actions as source or destination.

    tags Mapping[str, str]

    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.

    fsxFilesystemArn String

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

    password String

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

    securityGroupArns List<String>

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

    user String

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

    domain String

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

    subdirectory String

    Subdirectory to perform actions as source or destination.

    tags Map<String>

    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LocationFsxWindows resource produces the following output properties:

    Arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    CreationTime string

    The time that the FSx for Windows location was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    Uri string

    The URL of the FSx for Windows location that was described.

    Arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    CreationTime string

    The time that the FSx for Windows location was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    Uri string

    The URL of the FSx for Windows location that was described.

    arn String

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime String

    The time that the FSx for Windows location was created.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri String

    The URL of the FSx for Windows location that was described.

    arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime string

    The time that the FSx for Windows location was created.

    id string

    The provider-assigned unique ID for this managed resource.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri string

    The URL of the FSx for Windows location that was described.

    arn str

    Amazon Resource Name (ARN) of the DataSync Location.

    creation_time str

    The time that the FSx for Windows location was created.

    id str

    The provider-assigned unique ID for this managed resource.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri str

    The URL of the FSx for Windows location that was described.

    arn String

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime String

    The time that the FSx for Windows location was created.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri String

    The URL of the FSx for Windows location that was described.

    Look up Existing LocationFsxWindows Resource

    Get an existing LocationFsxWindows resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LocationFsxWindowsState, opts?: CustomResourceOptions): LocationFsxWindows
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            creation_time: Optional[str] = None,
            domain: Optional[str] = None,
            fsx_filesystem_arn: Optional[str] = None,
            password: Optional[str] = None,
            security_group_arns: Optional[Sequence[str]] = None,
            subdirectory: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            uri: Optional[str] = None,
            user: Optional[str] = None) -> LocationFsxWindows
    func GetLocationFsxWindows(ctx *Context, name string, id IDInput, state *LocationFsxWindowsState, opts ...ResourceOption) (*LocationFsxWindows, error)
    public static LocationFsxWindows Get(string name, Input<string> id, LocationFsxWindowsState? state, CustomResourceOptions? opts = null)
    public static LocationFsxWindows get(String name, Output<String> id, LocationFsxWindowsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    CreationTime string

    The time that the FSx for Windows location was created.

    Domain string

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

    FsxFilesystemArn string

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

    Password string

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

    SecurityGroupArns List<string>

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

    Subdirectory string

    Subdirectory to perform actions as source or destination.

    Tags Dictionary<string, string>

    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.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    Uri string

    The URL of the FSx for Windows location that was described.

    User string

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

    Arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    CreationTime string

    The time that the FSx for Windows location was created.

    Domain string

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

    FsxFilesystemArn string

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

    Password string

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

    SecurityGroupArns []string

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

    Subdirectory string

    Subdirectory to perform actions as source or destination.

    Tags map[string]string

    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.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    Uri string

    The URL of the FSx for Windows location that was described.

    User string

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

    arn String

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime String

    The time that the FSx for Windows location was created.

    domain String

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

    fsxFilesystemArn String

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

    password String

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

    securityGroupArns List<String>

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

    subdirectory String

    Subdirectory to perform actions as source or destination.

    tags Map<String,String>

    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.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri String

    The URL of the FSx for Windows location that was described.

    user String

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

    arn string

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime string

    The time that the FSx for Windows location was created.

    domain string

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

    fsxFilesystemArn string

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

    password string

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

    securityGroupArns string[]

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

    subdirectory string

    Subdirectory to perform actions as source or destination.

    tags {[key: string]: string}

    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.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri string

    The URL of the FSx for Windows location that was described.

    user string

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

    arn str

    Amazon Resource Name (ARN) of the DataSync Location.

    creation_time str

    The time that the FSx for Windows location was created.

    domain str

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

    fsx_filesystem_arn str

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

    password str

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

    security_group_arns Sequence[str]

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

    subdirectory str

    Subdirectory to perform actions as source or destination.

    tags Mapping[str, str]

    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.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri str

    The URL of the FSx for Windows location that was described.

    user str

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

    arn String

    Amazon Resource Name (ARN) of the DataSync Location.

    creationTime String

    The time that the FSx for Windows location was created.

    domain String

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

    fsxFilesystemArn String

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

    password String

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

    securityGroupArns List<String>

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

    subdirectory String

    Subdirectory to perform actions as source or destination.

    tags Map<String>

    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.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    uri String

    The URL of the FSx for Windows location that was described.

    user String

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

    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
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.13.1 published on Tuesday, Dec 5, 2023 by Pulumi