1. Packages
  2. AWS
  3. API Docs
  4. datasync
  5. LocationFsxLustre
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.datasync.LocationFsxLustre

Explore with Pulumi AI

Manages an AWS DataSync FSx Lustre Location.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.datasync.LocationFsxLustre("example", {
    fsxFilesystemArn: exampleAwsFsxLustreFileSystem.arn,
    securityGroupArns: [exampleAwsSecurityGroup.arn],
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.datasync.LocationFsxLustre("example",
    fsx_filesystem_arn=example_aws_fsx_lustre_file_system["arn"],
    security_group_arns=[example_aws_security_group["arn"]])
Copy
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.NewLocationFsxLustre(ctx, "example", &datasync.LocationFsxLustreArgs{
			FsxFilesystemArn: pulumi.Any(exampleAwsFsxLustreFileSystem.Arn),
			SecurityGroupArns: pulumi.StringArray{
				exampleAwsSecurityGroup.Arn,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.DataSync.LocationFsxLustre("example", new()
    {
        FsxFilesystemArn = exampleAwsFsxLustreFileSystem.Arn,
        SecurityGroupArns = new[]
        {
            exampleAwsSecurityGroup.Arn,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.LocationFsxLustre;
import com.pulumi.aws.datasync.LocationFsxLustreArgs;
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 LocationFsxLustre("example", LocationFsxLustreArgs.builder()
            .fsxFilesystemArn(exampleAwsFsxLustreFileSystem.arn())
            .securityGroupArns(exampleAwsSecurityGroup.arn())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:datasync:LocationFsxLustre
    properties:
      fsxFilesystemArn: ${exampleAwsFsxLustreFileSystem.arn}
      securityGroupArns:
        - ${exampleAwsSecurityGroup.arn}
Copy

Create LocationFsxLustre Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LocationFsxLustre(name: string, args: LocationFsxLustreArgs, opts?: CustomResourceOptions);
@overload
def LocationFsxLustre(resource_name: str,
                      args: LocationFsxLustreArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def LocationFsxLustre(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      fsx_filesystem_arn: Optional[str] = None,
                      security_group_arns: Optional[Sequence[str]] = None,
                      subdirectory: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
func NewLocationFsxLustre(ctx *Context, name string, args LocationFsxLustreArgs, opts ...ResourceOption) (*LocationFsxLustre, error)
public LocationFsxLustre(string name, LocationFsxLustreArgs args, CustomResourceOptions? opts = null)
public LocationFsxLustre(String name, LocationFsxLustreArgs args)
public LocationFsxLustre(String name, LocationFsxLustreArgs args, CustomResourceOptions options)
type: aws:datasync:LocationFsxLustre
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LocationFsxLustreArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LocationFsxLustreArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LocationFsxLustreArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LocationFsxLustreArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LocationFsxLustreArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var locationFsxLustreResource = new Aws.DataSync.LocationFsxLustre("locationFsxLustreResource", new()
{
    FsxFilesystemArn = "string",
    SecurityGroupArns = new[]
    {
        "string",
    },
    Subdirectory = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := datasync.NewLocationFsxLustre(ctx, "locationFsxLustreResource", &datasync.LocationFsxLustreArgs{
	FsxFilesystemArn: pulumi.String("string"),
	SecurityGroupArns: pulumi.StringArray{
		pulumi.String("string"),
	},
	Subdirectory: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var locationFsxLustreResource = new LocationFsxLustre("locationFsxLustreResource", LocationFsxLustreArgs.builder()
    .fsxFilesystemArn("string")
    .securityGroupArns("string")
    .subdirectory("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
location_fsx_lustre_resource = aws.datasync.LocationFsxLustre("locationFsxLustreResource",
    fsx_filesystem_arn="string",
    security_group_arns=["string"],
    subdirectory="string",
    tags={
        "string": "string",
    })
Copy
const locationFsxLustreResource = new aws.datasync.LocationFsxLustre("locationFsxLustreResource", {
    fsxFilesystemArn: "string",
    securityGroupArns: ["string"],
    subdirectory: "string",
    tags: {
        string: "string",
    },
});
Copy
type: aws:datasync:LocationFsxLustre
properties:
    fsxFilesystemArn: string
    securityGroupArns:
        - string
    subdirectory: string
    tags:
        string: string
Copy

LocationFsxLustre Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LocationFsxLustre resource accepts the following input properties:

FsxFilesystemArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
SecurityGroupArns
This property is required.
Changes to this property will trigger replacement.
List<string>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
Subdirectory Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
SecurityGroupArns
This property is required.
Changes to this property will trigger replacement.
[]string
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
Subdirectory Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns
This property is required.
Changes to this property will trigger replacement.
List<String>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns
This property is required.
Changes to this property will trigger replacement.
string[]
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
security_group_arns
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns
This property is required.
Changes to this property will trigger replacement.
List<String>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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 LocationFsxLustre resource produces the following output properties:

Arn string
Amazon Resource Name (ARN) of the DataSync Location.
CreationTime string
The time that the FSx for Lustre 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 Lustre location that was described.
Arn string
Amazon Resource Name (ARN) of the DataSync Location.
CreationTime string
The time that the FSx for Lustre 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 Lustre location that was described.
arn String
Amazon Resource Name (ARN) of the DataSync Location.
creationTime String
The time that the FSx for Lustre 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 Lustre location that was described.
arn string
Amazon Resource Name (ARN) of the DataSync Location.
creationTime string
The time that the FSx for Lustre 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 Lustre location that was described.
arn str
Amazon Resource Name (ARN) of the DataSync Location.
creation_time str
The time that the FSx for Lustre 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 Lustre location that was described.
arn String
Amazon Resource Name (ARN) of the DataSync Location.
creationTime String
The time that the FSx for Lustre 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 Lustre location that was described.

Look up Existing LocationFsxLustre Resource

Get an existing LocationFsxLustre 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?: LocationFsxLustreState, opts?: CustomResourceOptions): LocationFsxLustre
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        creation_time: Optional[str] = None,
        fsx_filesystem_arn: 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) -> LocationFsxLustre
func GetLocationFsxLustre(ctx *Context, name string, id IDInput, state *LocationFsxLustreState, opts ...ResourceOption) (*LocationFsxLustre, error)
public static LocationFsxLustre Get(string name, Input<string> id, LocationFsxLustreState? state, CustomResourceOptions? opts = null)
public static LocationFsxLustre get(String name, Output<String> id, LocationFsxLustreState state, CustomResourceOptions options)
resources:  _:    type: aws:datasync:LocationFsxLustre    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Lustre location was created.
FsxFilesystemArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
SecurityGroupArns Changes to this property will trigger replacement. List<string>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
Subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.
Arn string
Amazon Resource Name (ARN) of the DataSync Location.
CreationTime string
The time that the FSx for Lustre location was created.
FsxFilesystemArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
SecurityGroupArns Changes to this property will trigger replacement. []string
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
Subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.
arn String
Amazon Resource Name (ARN) of the DataSync Location.
creationTime String
The time that the FSx for Lustre location was created.
fsxFilesystemArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns Changes to this property will trigger replacement. List<String>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.
arn string
Amazon Resource Name (ARN) of the DataSync Location.
creationTime string
The time that the FSx for Lustre location was created.
fsxFilesystemArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns Changes to this property will trigger replacement. string[]
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.
arn str
Amazon Resource Name (ARN) of the DataSync Location.
creation_time str
The time that the FSx for Lustre location was created.
fsx_filesystem_arn Changes to this property will trigger replacement. str
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
security_group_arns Changes to this property will trigger replacement. Sequence[str]
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.
arn String
Amazon Resource Name (ARN) of the DataSync Location.
creationTime String
The time that the FSx for Lustre location was created.
fsxFilesystemArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) for the FSx for Lustre file system.
securityGroupArns Changes to this property will trigger replacement. List<String>
The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
subdirectory Changes to this property will trigger replacement. 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 Lustre location that was described.

Import

Using pulumi import, import aws_datasync_location_fsx_lustre_file_system using the DataSync-ARN#FSx-Lustre-ARN. For example:

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.