
com.pulumi.aws.fsx.Backup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.fsx;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.fsx.BackupArgs;
import com.pulumi.aws.fsx.inputs.BackupState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides a FSx Backup resource.
*
* ## Lustre Example
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.fsx.LustreFileSystem;
* import com.pulumi.aws.fsx.LustreFileSystemArgs;
* import com.pulumi.aws.fsx.Backup;
* import com.pulumi.aws.fsx.BackupArgs;
* 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 exampleLustreFileSystem = new LustreFileSystem("exampleLustreFileSystem", LustreFileSystemArgs.builder()
* .storageCapacity(1200)
* .subnetIds(exampleAwsSubnet.id())
* .deploymentType("PERSISTENT_1")
* .perUnitStorageThroughput(50)
* .build());
*
* var example = new Backup("example", BackupArgs.builder()
* .fileSystemId(exampleLustreFileSystem.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Windows Example
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.fsx.WindowsFileSystem;
* import com.pulumi.aws.fsx.WindowsFileSystemArgs;
* import com.pulumi.aws.fsx.Backup;
* import com.pulumi.aws.fsx.BackupArgs;
* 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 exampleWindowsFileSystem = new WindowsFileSystem("exampleWindowsFileSystem", WindowsFileSystemArgs.builder()
* .activeDirectoryId(eample.id())
* .skipFinalBackup(true)
* .storageCapacity(32)
* .subnetIds(example1.id())
* .throughputCapacity(8)
* .build());
*
* var example = new Backup("example", BackupArgs.builder()
* .fileSystemId(exampleWindowsFileSystem.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## ONTAP Example
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.fsx.OntapVolume;
* import com.pulumi.aws.fsx.OntapVolumeArgs;
* import com.pulumi.aws.fsx.Backup;
* import com.pulumi.aws.fsx.BackupArgs;
* 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 exampleOntapVolume = new OntapVolume("exampleOntapVolume", OntapVolumeArgs.builder()
* .name("example")
* .junctionPath("/example")
* .sizeInMegabytes(1024)
* .storageEfficiencyEnabled(true)
* .storageVirtualMachineId(test.id())
* .build());
*
* var example = new Backup("example", BackupArgs.builder()
* .volumeId(exampleOntapVolume.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## OpenZFS Example
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.Backup;
* import com.pulumi.aws.fsx.BackupArgs;
* 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 exampleOpenZfsFileSystem = new OpenZfsFileSystem("exampleOpenZfsFileSystem", OpenZfsFileSystemArgs.builder()
* .storageCapacity(64)
* .subnetIds(exampleAwsSubnet.id())
* .deploymentType("SINGLE_AZ_1")
* .throughputCapacity(64)
* .build());
*
* var example = new Backup("example", BackupArgs.builder()
* .fileSystemId(exampleOpenZfsFileSystem.id())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import FSx Backups using the `id`. For example:
*
* ```sh
* $ pulumi import aws:fsx/backup:Backup example fs-543ab12b1ca672f33
* ```
*
*/
@ResourceType(type="aws:fsx/backup:Backup")
public class Backup extends com.pulumi.resources.CustomResource {
/**
* Amazon Resource Name of the backup.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return Amazon Resource Name of the backup.
*
*/
public Output arn() {
return this.arn;
}
/**
* The ID of the file system to back up. Required if backing up Lustre or Windows file systems.
*
*/
@Export(name="fileSystemId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> fileSystemId;
/**
* @return The ID of the file system to back up. Required if backing up Lustre or Windows file systems.
*
*/
public Output> fileSystemId() {
return Codegen.optional(this.fileSystemId);
}
/**
* The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest.
*
*/
@Export(name="kmsKeyId", refs={String.class}, tree="[0]")
private Output kmsKeyId;
/**
* @return The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest.
*
*/
public Output kmsKeyId() {
return this.kmsKeyId;
}
/**
* AWS account identifier that created the file system.
*
*/
@Export(name="ownerId", refs={String.class}, tree="[0]")
private Output ownerId;
/**
* @return AWS account identifier that created the file system.
*
*/
public Output ownerId() {
return this.ownerId;
}
/**
* A map of tags to assign to the file system. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copy_tags_to_backups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A map of tags to assign to the file system. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copy_tags_to_backups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy