SnapshotImport

class SnapshotImport : KotlinCustomResource

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());
}
}

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the EBS Snapshot.

Link copied to clipboard

The client-specific data. Detailed below.

Link copied to clipboard

The data encryption key identifier for the snapshot.

Link copied to clipboard
val description: Output<String>

The description string for the import snapshot task.

Link copied to clipboard

Information about the disk container. Detailed below.

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

Specifies whether the destination snapshot of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using KmsKeyId.

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

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.

Link copied to clipboard
val outpostArn: Output<String>
Link copied to clipboard
val ownerAlias: Output<String>

Value from an Amazon-maintained list (amazon, aws-marketplace, microsoft) of snapshot owners.

Link copied to clipboard
val ownerId: Output<String>

The AWS account ID of the EBS snapshot owner.

Link copied to clipboard

Indicates whether to permanently restore an archived snapshot.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleName: Output<String>?

The name of the IAM Role the VM Import/Export service will assume. This role needs certain permissions. See https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role. Default: vmimport

Link copied to clipboard
val storageTier: Output<String>

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>>?

A map of tags to assign to the snapshot.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

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.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val volumeId: Output<String>
Link copied to clipboard
val volumeSize: Output<Int>

The size of the drive in GiBs.