Package com.pulumi.aws.fsx
Class OpenZfsSnapshot
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.fsx.OpenZfsSnapshot
-
public class OpenZfsSnapshot extends com.pulumi.resources.CustomResourceManages an Amazon FSx for OpenZFS volume. See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information. ## Example Usage ### Root volume Example
### Child volume Examplepackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.fsx.OpenZfsFileSystem; import com.pulumi.aws.fsx.OpenZfsFileSystemArgs; import com.pulumi.aws.fsx.OpenZfsSnapshot; import com.pulumi.aws.fsx.OpenZfsSnapshotArgs; 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 exampleOpenZfsFileSystem = new OpenZfsFileSystem("exampleOpenZfsFileSystem", OpenZfsFileSystemArgs.builder() .storageCapacity(64) .subnetIds(exampleAwsSubnet.id()) .deploymentType("SINGLE_AZ_1") .throughputCapacity(64) .build()); var example = new OpenZfsSnapshot("example", OpenZfsSnapshotArgs.builder() .name("example") .volumeId(exampleOpenZfsFileSystem.rootVolumeId()) .build()); } }
## Import Using `pulumi import`, import FSx OpenZFS snapshot using the `id`. For example: ```sh $ pulumi import aws:fsx/openZfsSnapshot:OpenZfsSnapshot example fs-543ab12b1ca672f33 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.fsx.OpenZfsFileSystem; import com.pulumi.aws.fsx.OpenZfsFileSystemArgs; import com.pulumi.aws.fsx.OpenZfsVolume; import com.pulumi.aws.fsx.OpenZfsVolumeArgs; import com.pulumi.aws.fsx.OpenZfsSnapshot; import com.pulumi.aws.fsx.OpenZfsSnapshotArgs; 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 exampleOpenZfsFileSystem = new OpenZfsFileSystem("exampleOpenZfsFileSystem", OpenZfsFileSystemArgs.builder() .storageCapacity(64) .subnetIds(exampleAwsSubnet.id()) .deploymentType("SINGLE_AZ_1") .throughputCapacity(64) .build()); var exampleOpenZfsVolume = new OpenZfsVolume("exampleOpenZfsVolume", OpenZfsVolumeArgs.builder() .name("example") .parentVolumeId(exampleOpenZfsFileSystem.rootVolumeId()) .build()); var example = new OpenZfsSnapshot("example", OpenZfsSnapshotArgs.builder() .name("example") .volumeId(exampleOpenZfsVolume.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description OpenZfsSnapshot(java.lang.String name)OpenZfsSnapshot(java.lang.String name, OpenZfsSnapshotArgs args)OpenZfsSnapshot(java.lang.String name, OpenZfsSnapshotArgs 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()static OpenZfsSnapshotget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OpenZfsSnapshotState 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<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()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>volumeId()
-
-
-
Constructor Detail
-
OpenZfsSnapshot
public OpenZfsSnapshot(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
OpenZfsSnapshot
public OpenZfsSnapshot(java.lang.String name, OpenZfsSnapshotArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
OpenZfsSnapshot
public OpenZfsSnapshot(java.lang.String name, OpenZfsSnapshotArgs 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 snapshot.
-
creationTime
public com.pulumi.core.Output<java.lang.String> creationTime()
- Returns:
- Time that the snapshot was created.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus either _ or - or : or . for the name.
-
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.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
volumeId
public com.pulumi.core.Output<java.lang.String> volumeId()
- Returns:
- ID of the volume to snapshot. This can be the root volume or a child volume.
-
get
public static OpenZfsSnapshot get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable OpenZfsSnapshotState 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.
-
-