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.

DiskImageDescription

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

type DiskImageDescription struct { Checksum *string `locationName:"checksum" type:"string"` Format *string `locationName:"format" type:"string" enum:"DiskImageFormat"` ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"` Size *int64 `locationName:"size" type:"long"` }

Describes a disk image.

Checksum

Type: *string

The checksum computed for the disk image.

Format

Type: *string

The disk image format.

ImportManifestUrl

Type: *string

A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html) topic in the Amazon Simple Storage Service Developer Guide.

For information about the import manifest referenced by this API action, see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).

Size

Type: *int64

The size of the disk image, in GiB.

Method

GoString

func (s DiskImageDescription) GoString() string

GoString returns the string representation

SetChecksum

func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription

SetChecksum sets the Checksum field's value.

SetFormat

func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription

SetFormat sets the Format field's value.

SetImportManifestUrl

func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription

SetImportManifestUrl sets the ImportManifestUrl field's value.

SetSize

func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription

SetSize sets the Size field's value.

String

func (s DiskImageDescription) String() string

String returns the string representation

On this page: