AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.ebs.SnapshotImport
Explore with Pulumi AI
Imports a disk image from S3 as a Snapshot.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ebs.SnapshotImport("example", {
diskContainer: {
format: "VHD",
userBucket: {
s3Bucket: "disk-images",
s3Key: "source.vhd",
},
},
roleName: "disk-image-import",
tags: {
Name: "HelloWorld",
},
});
import pulumi
import pulumi_aws as aws
example = aws.ebs.SnapshotImport("example",
disk_container={
"format": "VHD",
"user_bucket": {
"s3_bucket": "disk-images",
"s3_key": "source.vhd",
},
},
role_name="disk-image-import",
tags={
"Name": "HelloWorld",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ebs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ebs.NewSnapshotImport(ctx, "example", &ebs.SnapshotImportArgs{
DiskContainer: &ebs.SnapshotImportDiskContainerArgs{
Format: pulumi.String("VHD"),
UserBucket: &ebs.SnapshotImportDiskContainerUserBucketArgs{
S3Bucket: pulumi.String("disk-images"),
S3Key: pulumi.String("source.vhd"),
},
},
RoleName: pulumi.String("disk-image-import"),
Tags: pulumi.StringMap{
"Name": pulumi.String("HelloWorld"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ebs.SnapshotImport("example", new()
{
DiskContainer = new Aws.Ebs.Inputs.SnapshotImportDiskContainerArgs
{
Format = "VHD",
UserBucket = new Aws.Ebs.Inputs.SnapshotImportDiskContainerUserBucketArgs
{
S3Bucket = "disk-images",
S3Key = "source.vhd",
},
},
RoleName = "disk-image-import",
Tags =
{
{ "Name", "HelloWorld" },
},
});
});
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());
}
}
resources:
example:
type: aws:ebs:SnapshotImport
properties:
diskContainer:
format: VHD
userBucket:
s3Bucket: disk-images
s3Key: source.vhd
roleName: disk-image-import
tags:
Name: HelloWorld
Create SnapshotImport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SnapshotImport(name: string, args: SnapshotImportArgs, opts?: CustomResourceOptions);
@overload
def SnapshotImport(resource_name: str,
args: SnapshotImportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SnapshotImport(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_container: Optional[SnapshotImportDiskContainerArgs] = None,
client_data: Optional[SnapshotImportClientDataArgs] = None,
description: Optional[str] = None,
encrypted: Optional[bool] = None,
kms_key_id: Optional[str] = None,
permanent_restore: Optional[bool] = None,
role_name: Optional[str] = None,
storage_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
temporary_restore_days: Optional[int] = None)
func NewSnapshotImport(ctx *Context, name string, args SnapshotImportArgs, opts ...ResourceOption) (*SnapshotImport, error)
public SnapshotImport(string name, SnapshotImportArgs args, CustomResourceOptions? opts = null)
public SnapshotImport(String name, SnapshotImportArgs args)
public SnapshotImport(String name, SnapshotImportArgs args, CustomResourceOptions options)
type: aws:ebs:SnapshotImport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SnapshotImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SnapshotImportArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SnapshotImportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotImportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var snapshotImportResource = new Aws.Ebs.SnapshotImport("snapshotImportResource", new()
{
DiskContainer = new Aws.Ebs.Inputs.SnapshotImportDiskContainerArgs
{
Format = "string",
Description = "string",
Url = "string",
UserBucket = new Aws.Ebs.Inputs.SnapshotImportDiskContainerUserBucketArgs
{
S3Bucket = "string",
S3Key = "string",
},
},
ClientData = new Aws.Ebs.Inputs.SnapshotImportClientDataArgs
{
Comment = "string",
UploadEnd = "string",
UploadSize = 0,
UploadStart = "string",
},
Description = "string",
Encrypted = false,
KmsKeyId = "string",
PermanentRestore = false,
RoleName = "string",
StorageTier = "string",
Tags =
{
{ "string", "string" },
},
TemporaryRestoreDays = 0,
});
example, err := ebs.NewSnapshotImport(ctx, "snapshotImportResource", &ebs.SnapshotImportArgs{
DiskContainer: &ebs.SnapshotImportDiskContainerArgs{
Format: pulumi.String("string"),
Description: pulumi.String("string"),
Url: pulumi.String("string"),
UserBucket: &ebs.SnapshotImportDiskContainerUserBucketArgs{
S3Bucket: pulumi.String("string"),
S3Key: pulumi.String("string"),
},
},
ClientData: &ebs.SnapshotImportClientDataArgs{
Comment: pulumi.String("string"),
UploadEnd: pulumi.String("string"),
UploadSize: pulumi.Float64(0),
UploadStart: pulumi.String("string"),
},
Description: pulumi.String("string"),
Encrypted: pulumi.Bool(false),
KmsKeyId: pulumi.String("string"),
PermanentRestore: pulumi.Bool(false),
RoleName: pulumi.String("string"),
StorageTier: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemporaryRestoreDays: pulumi.Int(0),
})
var snapshotImportResource = new SnapshotImport("snapshotImportResource", SnapshotImportArgs.builder()
.diskContainer(SnapshotImportDiskContainerArgs.builder()
.format("string")
.description("string")
.url("string")
.userBucket(SnapshotImportDiskContainerUserBucketArgs.builder()
.s3Bucket("string")
.s3Key("string")
.build())
.build())
.clientData(SnapshotImportClientDataArgs.builder()
.comment("string")
.uploadEnd("string")
.uploadSize(0)
.uploadStart("string")
.build())
.description("string")
.encrypted(false)
.kmsKeyId("string")
.permanentRestore(false)
.roleName("string")
.storageTier("string")
.tags(Map.of("string", "string"))
.temporaryRestoreDays(0)
.build());
snapshot_import_resource = aws.ebs.SnapshotImport("snapshotImportResource",
disk_container={
"format": "string",
"description": "string",
"url": "string",
"userBucket": {
"s3Bucket": "string",
"s3Key": "string",
},
},
client_data={
"comment": "string",
"uploadEnd": "string",
"uploadSize": 0,
"uploadStart": "string",
},
description="string",
encrypted=False,
kms_key_id="string",
permanent_restore=False,
role_name="string",
storage_tier="string",
tags={
"string": "string",
},
temporary_restore_days=0)
const snapshotImportResource = new aws.ebs.SnapshotImport("snapshotImportResource", {
diskContainer: {
format: "string",
description: "string",
url: "string",
userBucket: {
s3Bucket: "string",
s3Key: "string",
},
},
clientData: {
comment: "string",
uploadEnd: "string",
uploadSize: 0,
uploadStart: "string",
},
description: "string",
encrypted: false,
kmsKeyId: "string",
permanentRestore: false,
roleName: "string",
storageTier: "string",
tags: {
string: "string",
},
temporaryRestoreDays: 0,
});
type: aws:ebs:SnapshotImport
properties:
clientData:
comment: string
uploadEnd: string
uploadSize: 0
uploadStart: string
description: string
diskContainer:
description: string
format: string
url: string
userBucket:
s3Bucket: string
s3Key: string
encrypted: false
kmsKeyId: string
permanentRestore: false
roleName: string
storageTier: string
tags:
string: string
temporaryRestoreDays: 0
SnapshotImport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SnapshotImport resource accepts the following input properties:
- Disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- Client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- Description string
- The description string for the import snapshot task.
- Encrypted bool
- 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.
- Kms
Key stringId - 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.
- Permanent
Restore bool - Indicates whether to permanently restore an archived snapshot.
- Role
Name 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
- Storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Dictionary<string, string>
- A map of tags to assign to the snapshot.
- Temporary
Restore intDays - 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.
- Disk
Container SnapshotImport Disk Container Args - Information about the disk container. Detailed below.
- Client
Data SnapshotImport Client Data Args - The client-specific data. Detailed below.
- Description string
- The description string for the import snapshot task.
- Encrypted bool
- 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.
- Kms
Key stringId - 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.
- Permanent
Restore bool - Indicates whether to permanently restore an archived snapshot.
- Role
Name 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
- Storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - map[string]string
- A map of tags to assign to the snapshot.
- Temporary
Restore intDays - 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.
- disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- description String
- The description string for the import snapshot task.
- encrypted 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.
- kms
Key StringId - 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.
- permanent
Restore Boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier String - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Map<String,String>
- A map of tags to assign to the snapshot.
- temporary
Restore IntegerDays - 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.
- disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- description string
- The description string for the import snapshot task.
- encrypted 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.
- kms
Key stringId - 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.
- permanent
Restore boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - {[key: string]: string}
- A map of tags to assign to the snapshot.
- temporary
Restore numberDays - 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.
- disk_
container SnapshotImport Disk Container Args - Information about the disk container. Detailed below.
- client_
data SnapshotImport Client Data Args - The client-specific data. Detailed below.
- description str
- The description string for the import snapshot task.
- encrypted bool
- 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.
- kms_
key_ strid - 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.
- permanent_
restore bool - Indicates whether to permanently restore an archived snapshot.
- role_
name str - 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
- storage_
tier str - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Mapping[str, str]
- A map of tags to assign to the snapshot.
- temporary_
restore_ intdays - 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.
- disk
Container Property Map - Information about the disk container. Detailed below.
- client
Data Property Map - The client-specific data. Detailed below.
- description String
- The description string for the import snapshot task.
- encrypted 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.
- kms
Key StringId - 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.
- permanent
Restore Boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier String - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Map<String>
- A map of tags to assign to the snapshot.
- temporary
Restore NumberDays - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the SnapshotImport resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- Data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Outpost
Arn string - Owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - Owner
Id string - The AWS account ID of the EBS snapshot owner.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Volume
Id string - Volume
Size int - The size of the drive in GiBs.
- Arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- Data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Outpost
Arn string - Owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - Owner
Id string - The AWS account ID of the EBS snapshot owner.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Volume
Id string - Volume
Size int - The size of the drive in GiBs.
- arn String
- Amazon Resource Name (ARN) of the EBS Snapshot.
- data
Encryption StringKey Id - The data encryption key identifier for the snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- outpost
Arn String - owner
Alias String - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id String - The AWS account ID of the EBS snapshot owner.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - volume
Id String - volume
Size Integer - The size of the drive in GiBs.
- arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- outpost
Arn string - owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id string - The AWS account ID of the EBS snapshot owner.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - volume
Id string - volume
Size number - The size of the drive in GiBs.
- arn str
- Amazon Resource Name (ARN) of the EBS Snapshot.
- data_
encryption_ strkey_ id - The data encryption key identifier for the snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- outpost_
arn str - owner_
alias str - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner_
id str - The AWS account ID of the EBS snapshot owner.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - volume_
id str - volume_
size int - The size of the drive in GiBs.
- arn String
- Amazon Resource Name (ARN) of the EBS Snapshot.
- data
Encryption StringKey Id - The data encryption key identifier for the snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- outpost
Arn String - owner
Alias String - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id String - The AWS account ID of the EBS snapshot owner.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - volume
Id String - volume
Size Number - The size of the drive in GiBs.
Look up Existing SnapshotImport Resource
Get an existing SnapshotImport resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SnapshotImportState, opts?: CustomResourceOptions): SnapshotImport
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
client_data: Optional[SnapshotImportClientDataArgs] = None,
data_encryption_key_id: Optional[str] = None,
description: Optional[str] = None,
disk_container: Optional[SnapshotImportDiskContainerArgs] = None,
encrypted: Optional[bool] = None,
kms_key_id: Optional[str] = None,
outpost_arn: Optional[str] = None,
owner_alias: Optional[str] = None,
owner_id: Optional[str] = None,
permanent_restore: Optional[bool] = None,
role_name: Optional[str] = None,
storage_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
temporary_restore_days: Optional[int] = None,
volume_id: Optional[str] = None,
volume_size: Optional[int] = None) -> SnapshotImport
func GetSnapshotImport(ctx *Context, name string, id IDInput, state *SnapshotImportState, opts ...ResourceOption) (*SnapshotImport, error)
public static SnapshotImport Get(string name, Input<string> id, SnapshotImportState? state, CustomResourceOptions? opts = null)
public static SnapshotImport get(String name, Output<String> id, SnapshotImportState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- Client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- Data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- Description string
- The description string for the import snapshot task.
- Disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- Encrypted bool
- 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.
- Kms
Key stringId - 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.
- Outpost
Arn string - Owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - Owner
Id string - The AWS account ID of the EBS snapshot owner.
- Permanent
Restore bool - Indicates whether to permanently restore an archived snapshot.
- Role
Name 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
- Storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Dictionary<string, string>
- A map of tags to assign to the snapshot.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Temporary
Restore intDays - 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.
- Volume
Id string - Volume
Size int - The size of the drive in GiBs.
- Arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- Client
Data SnapshotImport Client Data Args - The client-specific data. Detailed below.
- Data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- Description string
- The description string for the import snapshot task.
- Disk
Container SnapshotImport Disk Container Args - Information about the disk container. Detailed below.
- Encrypted bool
- 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.
- Kms
Key stringId - 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.
- Outpost
Arn string - Owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - Owner
Id string - The AWS account ID of the EBS snapshot owner.
- Permanent
Restore bool - Indicates whether to permanently restore an archived snapshot.
- Role
Name 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
- Storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - map[string]string
- A map of tags to assign to the snapshot.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Temporary
Restore intDays - 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.
- Volume
Id string - Volume
Size int - The size of the drive in GiBs.
- arn String
- Amazon Resource Name (ARN) of the EBS Snapshot.
- client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- data
Encryption StringKey Id - The data encryption key identifier for the snapshot.
- description String
- The description string for the import snapshot task.
- disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- encrypted 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.
- kms
Key StringId - 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.
- outpost
Arn String - owner
Alias String - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id String - The AWS account ID of the EBS snapshot owner.
- permanent
Restore Boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier String - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Map<String,String>
- A map of tags to assign to the snapshot.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - temporary
Restore IntegerDays - 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.
- volume
Id String - volume
Size Integer - The size of the drive in GiBs.
- arn string
- Amazon Resource Name (ARN) of the EBS Snapshot.
- client
Data SnapshotImport Client Data - The client-specific data. Detailed below.
- data
Encryption stringKey Id - The data encryption key identifier for the snapshot.
- description string
- The description string for the import snapshot task.
- disk
Container SnapshotImport Disk Container - Information about the disk container. Detailed below.
- encrypted 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.
- kms
Key stringId - 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.
- outpost
Arn string - owner
Alias string - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id string - The AWS account ID of the EBS snapshot owner.
- permanent
Restore boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier string - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - {[key: string]: string}
- A map of tags to assign to the snapshot.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - temporary
Restore numberDays - 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.
- volume
Id string - volume
Size number - The size of the drive in GiBs.
- arn str
- Amazon Resource Name (ARN) of the EBS Snapshot.
- client_
data SnapshotImport Client Data Args - The client-specific data. Detailed below.
- data_
encryption_ strkey_ id - The data encryption key identifier for the snapshot.
- description str
- The description string for the import snapshot task.
- disk_
container SnapshotImport Disk Container Args - Information about the disk container. Detailed below.
- encrypted bool
- 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.
- kms_
key_ strid - 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.
- outpost_
arn str - owner_
alias str - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner_
id str - The AWS account ID of the EBS snapshot owner.
- permanent_
restore bool - Indicates whether to permanently restore an archived snapshot.
- role_
name str - 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
- storage_
tier str - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Mapping[str, str]
- A map of tags to assign to the snapshot.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - temporary_
restore_ intdays - 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.
- volume_
id str - volume_
size int - The size of the drive in GiBs.
- arn String
- Amazon Resource Name (ARN) of the EBS Snapshot.
- client
Data Property Map - The client-specific data. Detailed below.
- data
Encryption StringKey Id - The data encryption key identifier for the snapshot.
- description String
- The description string for the import snapshot task.
- disk
Container Property Map - Information about the disk container. Detailed below.
- encrypted 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.
- kms
Key StringId - 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.
- outpost
Arn String - owner
Alias String - Value from an Amazon-maintained list (
amazon
,aws-marketplace
,microsoft
) of snapshot owners. - owner
Id String - The AWS account ID of the EBS snapshot owner.
- permanent
Restore Boolean - Indicates whether to permanently restore an archived snapshot.
- role
Name 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
- storage
Tier String - The name of the storage tier. Valid values are
archive
andstandard
. Default value isstandard
. - Map<String>
- A map of tags to assign to the snapshot.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - temporary
Restore NumberDays - 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.
- volume
Id String - volume
Size Number - The size of the drive in GiBs.
Supporting Types
SnapshotImportClientData, SnapshotImportClientDataArgs
- Comment string
- A user-defined comment about the disk upload.
- Upload
End string - The time that the disk upload ends.
- Upload
Size double - The size of the uploaded disk image, in GiB.
- Upload
Start string - The time that the disk upload starts.
- Comment string
- A user-defined comment about the disk upload.
- Upload
End string - The time that the disk upload ends.
- Upload
Size float64 - The size of the uploaded disk image, in GiB.
- Upload
Start string - The time that the disk upload starts.
- comment String
- A user-defined comment about the disk upload.
- upload
End String - The time that the disk upload ends.
- upload
Size Double - The size of the uploaded disk image, in GiB.
- upload
Start String - The time that the disk upload starts.
- comment string
- A user-defined comment about the disk upload.
- upload
End string - The time that the disk upload ends.
- upload
Size number - The size of the uploaded disk image, in GiB.
- upload
Start string - The time that the disk upload starts.
- comment str
- A user-defined comment about the disk upload.
- upload_
end str - The time that the disk upload ends.
- upload_
size float - The size of the uploaded disk image, in GiB.
- upload_
start str - The time that the disk upload starts.
- comment String
- A user-defined comment about the disk upload.
- upload
End String - The time that the disk upload ends.
- upload
Size Number - The size of the uploaded disk image, in GiB.
- upload
Start String - The time that the disk upload starts.
SnapshotImportDiskContainer, SnapshotImportDiskContainerArgs
- Format string
- The format of the disk image being imported. One of
VHD
orVMDK
. - Description string
- The description of the disk image being imported.
- Url string
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - User
Bucket SnapshotImport Disk Container User Bucket - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
- Format string
- The format of the disk image being imported. One of
VHD
orVMDK
. - Description string
- The description of the disk image being imported.
- Url string
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - User
Bucket SnapshotImport Disk Container User Bucket - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
- format String
- The format of the disk image being imported. One of
VHD
orVMDK
. - description String
- The description of the disk image being imported.
- url String
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - user
Bucket SnapshotImport Disk Container User Bucket - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
- format string
- The format of the disk image being imported. One of
VHD
orVMDK
. - description string
- The description of the disk image being imported.
- url string
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - user
Bucket SnapshotImport Disk Container User Bucket - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
- format str
- The format of the disk image being imported. One of
VHD
orVMDK
. - description str
- The description of the disk image being imported.
- url str
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - user_
bucket SnapshotImport Disk Container User Bucket - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
- format String
- The format of the disk image being imported. One of
VHD
orVMDK
. - description String
- The description of the disk image being imported.
- url String
- The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of
url
oruser_bucket
must be set. - user
Bucket Property Map - The Amazon S3 bucket for the disk image. One of
url
oruser_bucket
must be set. Detailed below.
SnapshotImportDiskContainerUserBucket, SnapshotImportDiskContainerUserBucketArgs
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.