Snapshot Import Args
Imports a disk image from S3 as 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.SnapshotImport;
import com.pulumi.aws.ebs.SnapshotImportArgs;
import com.pulumi.aws.ebs.inputs.SnapshotImportDiskContainerArgs;
import com.pulumi.aws.ebs.inputs.SnapshotImportDiskContainerUserBucketArgs;
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 SnapshotImport("example", SnapshotImportArgs.builder()
.diskContainer(SnapshotImportDiskContainerArgs.builder()
.format("VHD")
.userBucket(SnapshotImportDiskContainerUserBucketArgs.builder()
.s3Bucket("disk-images")
.s3Key("source.vhd")
.build())
.build())
.roleName("disk-image-import")
.tags(Map.of("Name", "HelloWorld"))
.build());
}
}
Constructors
Properties
The client-specific data. Detailed below.
The description string for the import snapshot task.
Information about the disk container. Detailed below.
An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.
Indicates whether to permanently restore an archived snapshot.
The name of the storage tier. Valid values are archive
and standard
. Default value is standard
.
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.