AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ImportImageTask

import "github.com/aws/aws-sdk-go/service/ec2"

type ImportImageTask struct { Architecture *string `locationName:"architecture" type:"string"` Description *string `locationName:"description" type:"string"` Encrypted *bool `locationName:"encrypted" type:"boolean"` Hypervisor *string `locationName:"hypervisor" type:"string"` ImageId *string `locationName:"imageId" type:"string"` ImportTaskId *string `locationName:"importTaskId" type:"string"` KmsKeyId *string `locationName:"kmsKeyId" type:"string"` LicenseType *string `locationName:"licenseType" type:"string"` Platform *string `locationName:"platform" type:"string"` Progress *string `locationName:"progress" type:"string"` SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"` Status *string `locationName:"status" type:"string"` StatusMessage *string `locationName:"statusMessage" type:"string"` }

Describes an import image task.

Architecture

Type: *string

The architecture of the virtual machine.

Valid values: i386 | x86_64

Description

Type: *string

A description of the import task.

Encrypted

Type: *bool

Indicates whether the image is encrypted.

Hypervisor

Type: *string

The target hypervisor for the import task.

Valid values: xen

ImageId

Type: *string

The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

ImportTaskId

Type: *string

The ID of the import image task.

KmsKeyId

Type: *string

The identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to create the encrypted image.

LicenseType

Type: *string

The license type of the virtual machine.

Platform

Type: *string

The description string for the import image task.

Progress

Type: *string

The percentage of progress of the import image task.

SnapshotDetails

Describes the snapshot created from the imported disk.

Status

Type: *string

A brief status for the import image task.

StatusMessage

Type: *string

A descriptive status message for the import image task.

Method

GoString

func (s ImportImageTask) GoString() string

GoString returns the string representation

SetArchitecture

func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask

SetArchitecture sets the Architecture field's value.

SetDescription

func (s *ImportImageTask) SetDescription(v string) *ImportImageTask

SetDescription sets the Description field's value.

SetEncrypted

func (s *ImportImageTask) SetEncrypted(v bool) *ImportImageTask

SetEncrypted sets the Encrypted field's value.

SetHypervisor

func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask

SetHypervisor sets the Hypervisor field's value.

SetImageId

func (s *ImportImageTask) SetImageId(v string) *ImportImageTask

SetImageId sets the ImageId field's value.

SetImportTaskId

func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask

SetImportTaskId sets the ImportTaskId field's value.

SetKmsKeyId

func (s *ImportImageTask) SetKmsKeyId(v string) *ImportImageTask

SetKmsKeyId sets the KmsKeyId field's value.

SetLicenseType

func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask

SetLicenseType sets the LicenseType field's value.

SetPlatform

func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask

SetPlatform sets the Platform field's value.

SetProgress

func (s *ImportImageTask) SetProgress(v string) *ImportImageTask

SetProgress sets the Progress field's value.

SetSnapshotDetails

func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask

SetSnapshotDetails sets the SnapshotDetails field's value.

SetStatus

func (s *ImportImageTask) SetStatus(v string) *ImportImageTask

SetStatus sets the Status field's value.

SetStatusMessage

func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask

SetStatusMessage sets the StatusMessage field's value.

String

func (s ImportImageTask) String() string

String returns the string representation

On this page: