Try AWS Native preview for resources not in the classic version.
aws.datasync.LocationFsxLustre
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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],
});
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"]])
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
})
}
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,
},
});
});
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());
}
}
resources:
example:
type: aws:datasync:LocationFsxLustre
properties:
fsxFilesystemArn: ${exampleAwsFsxLustreFileSystem.arn}
securityGroupArns:
- ${exampleAwsSecurityGroup.arn}
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 string
- The unique name of the resource.
- args LocationFsxLustreArgs
- 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 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 string
- The unique name of the resource.
- args LocationFsxLustreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocationFsxLustreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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" },
},
});
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"),
},
})
var locationFsxLustreResource = new LocationFsxLustre("locationFsxLustreResource", LocationFsxLustreArgs.builder()
.fsxFilesystemArn("string")
.securityGroupArns("string")
.subdirectory("string")
.tags(Map.of("string", "string"))
.build());
location_fsx_lustre_resource = aws.datasync.LocationFsxLustre("locationFsxLustreResource",
fsx_filesystem_arn="string",
security_group_arns=["string"],
subdirectory="string",
tags={
"string": "string",
})
const locationFsxLustreResource = new aws.datasync.LocationFsxLustre("locationFsxLustreResource", {
fsxFilesystemArn: "string",
securityGroupArns: ["string"],
subdirectory: "string",
tags: {
string: "string",
},
});
type: aws:datasync:LocationFsxLustre
properties:
fsxFilesystemArn: string
securityGroupArns:
- string
subdirectory: string
tags:
string: string
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
The LocationFsxLustre resource accepts the following input properties:
- Fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- Security
Group List<string>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- Subdirectory string
- Subdirectory to perform actions as source or destination.
- 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.
- Fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- Security
Group []stringArns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- Subdirectory string
- Subdirectory to perform actions as source or destination.
- 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.
- fsx
Filesystem StringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group List<String>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory String
- Subdirectory to perform actions as source or destination.
- 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.
- fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group string[]Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory string
- Subdirectory to perform actions as source or destination.
- {[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_ strarn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security_
group_ Sequence[str]arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory str
- Subdirectory to perform actions as source or destination.
- 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.
- fsx
Filesystem StringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group List<String>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory String
- Subdirectory to perform actions as source or destination.
- 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.
- Creation
Time string - The time that the FSx for Lustre location was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Uri string
- The URL of the FSx for Lustre location that was described.
- Arn string
- Amazon Resource Name (ARN) of the DataSync Location.
- Creation
Time string - The time that the FSx for Lustre location was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Uri string
- The URL of the FSx for Lustre location that was described.
- arn String
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time String - The time that the FSx for Lustre location was created.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - uri String
- The URL of the FSx for Lustre location that was described.
- arn string
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time string - The time that the FSx for Lustre location was created.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - uri str
- The URL of the FSx for Lustre location that was described.
- arn String
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time String - The time that the FSx for Lustre location was created.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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)
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.
- Arn string
- Amazon Resource Name (ARN) of the DataSync Location.
- Creation
Time string - The time that the FSx for Lustre location was created.
- Fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- Security
Group List<string>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- Subdirectory string
- Subdirectory to perform actions as source or destination.
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Uri string
- The URL of the FSx for Lustre location that was described.
- Arn string
- Amazon Resource Name (ARN) of the DataSync Location.
- Creation
Time string - The time that the FSx for Lustre location was created.
- Fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- Security
Group []stringArns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- Subdirectory string
- Subdirectory to perform actions as source or destination.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Uri string
- The URL of the FSx for Lustre location that was described.
- arn String
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time String - The time that the FSx for Lustre location was created.
- fsx
Filesystem StringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group List<String>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory String
- Subdirectory to perform actions as source or destination.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - uri String
- The URL of the FSx for Lustre location that was described.
- arn string
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time string - The time that the FSx for Lustre location was created.
- fsx
Filesystem stringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group string[]Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory string
- Subdirectory to perform actions as source or destination.
- {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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_ strarn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security_
group_ Sequence[str]arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory str
- Subdirectory to perform actions as source or destination.
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - uri str
- The URL of the FSx for Lustre location that was described.
- arn String
- Amazon Resource Name (ARN) of the DataSync Location.
- creation
Time String - The time that the FSx for Lustre location was created.
- fsx
Filesystem StringArn - The Amazon Resource Name (ARN) for the FSx for Lustre file system.
- security
Group List<String>Arns - The Amazon Resource Names (ARNs) of the security groups that are to use to configure the FSx for Lustre file system.
- subdirectory String
- Subdirectory to perform actions as source or destination.
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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
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.
Try AWS Native preview for resources not in the classic version.