Package com.pulumi.aws.datasync
Class FsxOpenZfsFileSystem
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.datasync.FsxOpenZfsFileSystem
-
public class FsxOpenZfsFileSystem extends com.pulumi.resources.CustomResourceManages an AWS DataSync FSx OpenZfs Location. ## Example Usage
## Import Using `pulumi import`, import `aws.datasync.FsxOpenZfsFileSystem` using the `DataSync-ARN#FSx-openzfs-ARN`. For example: ```sh $ pulumi import aws:datasync/fsxOpenZfsFileSystem:FsxOpenZfsFileSystem example arn:aws:datasync:us-west-2:123456789012:location/loc-12345678901234567#arn:aws:fsx:us-west-2:123456789012:file-system/fs-08e04cd442c1bb94a ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.datasync.FsxOpenZfsFileSystem; import com.pulumi.aws.datasync.FsxOpenZfsFileSystemArgs; import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolArgs; import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolNfsArgs; import com.pulumi.aws.datasync.inputs.FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs; import java.util.ArrayList; import java.util.Arrays; 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 FsxOpenZfsFileSystem("example", FsxOpenZfsFileSystemArgs.builder() .protocol(FsxOpenZfsFileSystemProtocolArgs.builder() .nfs(FsxOpenZfsFileSystemProtocolNfsArgs.builder() .mountOptions(FsxOpenZfsFileSystemProtocolNfsMountOptionsArgs.builder() .version("AUTOMATIC") .build()) .build()) .build()) .fsxFilesystemArn(exampleAwsFsxOpenzfsFileSystem.arn()) .securityGroupArns(exampleAwsSecurityGroup.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description FsxOpenZfsFileSystem(java.lang.String name)FsxOpenZfsFileSystem(java.lang.String name, FsxOpenZfsFileSystemArgs args)FsxOpenZfsFileSystem(java.lang.String name, FsxOpenZfsFileSystemArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>creationTime()com.pulumi.core.Output<java.lang.String>fsxFilesystemArn()static FsxOpenZfsFileSystemget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, FsxOpenZfsFileSystemState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<FsxOpenZfsFileSystemProtocol>protocol()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.List<java.lang.String>>securityGroupArns()com.pulumi.core.Output<java.lang.String>subdirectory()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.lang.String>uri()
-
-
-
Constructor Detail
-
FsxOpenZfsFileSystem
public FsxOpenZfsFileSystem(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
FsxOpenZfsFileSystem
public FsxOpenZfsFileSystem(java.lang.String name, FsxOpenZfsFileSystemArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
FsxOpenZfsFileSystem
public FsxOpenZfsFileSystem(java.lang.String name, FsxOpenZfsFileSystemArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the DataSync Location.
-
creationTime
public com.pulumi.core.Output<java.lang.String> creationTime()
- Returns:
- The time that the FSx for openzfs location was created.
-
fsxFilesystemArn
public com.pulumi.core.Output<java.lang.String> fsxFilesystemArn()
- Returns:
- ARN for the FSx for OpenZfs file system.
-
protocol
public com.pulumi.core.Output<FsxOpenZfsFileSystemProtocol> protocol()
- Returns:
- The type of protocol that DataSync uses to access your file system. See below.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
securityGroupArns
public com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupArns()
- Returns:
- ARNs of the security groups that are to use to configure the FSx for openzfs file system.
-
subdirectory
public com.pulumi.core.Output<java.lang.String> subdirectory()
- Returns:
- Subdirectory to perform actions as source or destination. Must start with `/fsx`.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
uri
public com.pulumi.core.Output<java.lang.String> uri()
- Returns:
- The URL of the FSx for openzfs location that was described.
-
get
public static FsxOpenZfsFileSystem get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable FsxOpenZfsFileSystemState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-