Location Fsx Lustre Args
data class LocationFsxLustreArgs(val fsxFilesystemArn: Output<String>? = null, val securityGroupArns: Output<List<String>>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LocationFsxLustreArgs>
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],
});Content copied to clipboard
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"]])Content copied to clipboard
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,
},
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
resources:
example:
type: aws:datasync:LocationFsxLustre
properties:
fsxFilesystemArn: ${exampleAwsFsxLustreFileSystem.arn}
securityGroupArns:
- ${exampleAwsSecurityGroup.arn}Content copied to clipboard
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-08e04cd442c1bb94aContent copied to clipboard