SnapshotCopyArgs

data class SnapshotCopyArgs(val description: Output<String>? = null, val encrypted: Output<Boolean>? = null, val kmsKeyId: Output<String>? = null, val permanentRestore: Output<Boolean>? = null, val sourceRegion: Output<String>? = null, val sourceSnapshotId: Output<String>? = null, val storageTier: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val temporaryRestoreDays: Output<Int>? = null) : ConvertibleToJava<SnapshotCopyArgs>

Creates a Snapshot of a snapshot.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ebs.Volume;
import com.pulumi.aws.ebs.VolumeArgs;
import com.pulumi.aws.ebs.Snapshot;
import com.pulumi.aws.ebs.SnapshotArgs;
import com.pulumi.aws.ebs.SnapshotCopy;
import com.pulumi.aws.ebs.SnapshotCopyArgs;
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 Volume("example", VolumeArgs.builder()
.availabilityZone("us-west-2a")
.size(40)
.tags(Map.of("Name", "HelloWorld"))
.build());
var exampleSnapshot = new Snapshot("exampleSnapshot", SnapshotArgs.builder()
.volumeId(example.id())
.tags(Map.of("Name", "HelloWorld_snap"))
.build());
var exampleCopy = new SnapshotCopy("exampleCopy", SnapshotCopyArgs.builder()
.sourceSnapshotId(exampleSnapshot.id())
.sourceRegion("us-west-2")
.tags(Map.of("Name", "HelloWorld_copy_snap"))
.build());
}
}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, encrypted: Output<Boolean>? = null, kmsKeyId: Output<String>? = null, permanentRestore: Output<Boolean>? = null, sourceRegion: Output<String>? = null, sourceSnapshotId: Output<String>? = null, storageTier: Output<String>? = null, tags: Output<Map<String, String>>? = null, temporaryRestoreDays: Output<Int>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A description of what the snapshot is.

Link copied to clipboard
val encrypted: Output<Boolean>? = null

Whether the snapshot is encrypted.

Link copied to clipboard
val kmsKeyId: Output<String>? = null

The ARN for the KMS encryption key.

Link copied to clipboard
val permanentRestore: Output<Boolean>? = null

Indicates whether to permanently restore an archived snapshot.

Link copied to clipboard
val sourceRegion: Output<String>? = null

The region of the source snapshot.

Link copied to clipboard
val sourceSnapshotId: Output<String>? = null

The ARN for the snapshot to be copied.

Link copied to clipboard
val storageTier: Output<String>? = null

The name of the storage tier. Valid values are archive and standard. Default value is standard.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags for the snapshot.

Link copied to clipboard
val temporaryRestoreDays: Output<Int>? = null

Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.

Functions

Link copied to clipboard
open override fun toJava(): SnapshotCopyArgs