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.

Image

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

type Image struct { Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"` BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` CreationDate *string `locationName:"creationDate" type:"string"` Description *string `locationName:"description" type:"string"` EnaSupport *bool `locationName:"enaSupport" type:"boolean"` Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"` ImageId *string `locationName:"imageId" type:"string"` ImageLocation *string `locationName:"imageLocation" type:"string"` ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"` ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"` KernelId *string `locationName:"kernelId" type:"string"` Name *string `locationName:"name" type:"string"` OwnerId *string `locationName:"imageOwnerId" type:"string"` Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"` ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"` Public *bool `locationName:"isPublic" type:"boolean"` RamdiskId *string `locationName:"ramdiskId" type:"string"` RootDeviceName *string `locationName:"rootDeviceName" type:"string"` RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"` SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"` State *string `locationName:"imageState" type:"string" enum:"ImageState"` StateReason *StateReason `locationName:"stateReason" type:"structure"` Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"` }

Describes an image.

Architecture

Type: *string

The architecture of the image.

BlockDeviceMappings

Describes a block device mapping.

CreationDate

Type: *string

The date and time the image was created.

Description

Type: *string

The description of the AMI that was provided during image creation.

EnaSupport

Type: *bool

Specifies whether enhanced networking with ENA is enabled.

Hypervisor

Type: *string

The hypervisor type of the image.

ImageId

Type: *string

The ID of the AMI.

ImageLocation

Type: *string

The location of the AMI.

ImageOwnerAlias

Type: *string

The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.

ImageType

Type: *string

The type of image.

KernelId

Type: *string

The kernel associated with the image, if any. Only applicable for machine images.

Name

Type: *string

The name of the AMI that was provided during image creation.

OwnerId

Type: *string

The AWS account ID of the image owner.

Platform

Type: *string

The value is Windows for Windows AMIs; otherwise blank.

ProductCodes

Describes a product code.

Public

Type: *bool

Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

RamdiskId

Type: *string

The RAM disk associated with the image, if any. Only applicable for machine images.

RootDeviceName

Type: *string

The device name of the root device volume (for example, /dev/sda1).

RootDeviceType

Type: *string

The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.

SriovNetSupport

Type: *string

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

State

Type: *string

The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

StateReason

Describes a state change.

Tags

Describes a tag.

VirtualizationType

Type: *string

The type of virtualization of the AMI.

Method

GoString

func (s Image) GoString() string

GoString returns the string representation

SetArchitecture

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

SetArchitecture sets the Architecture field's value.

SetBlockDeviceMappings

func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image

SetBlockDeviceMappings sets the BlockDeviceMappings field's value.

SetCreationDate

func (s *Image) SetCreationDate(v string) *Image

SetCreationDate sets the CreationDate field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetEnaSupport

func (s *Image) SetEnaSupport(v bool) *Image

SetEnaSupport sets the EnaSupport field's value.

SetHypervisor

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

SetHypervisor sets the Hypervisor field's value.

SetImageId

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

SetImageId sets the ImageId field's value.

SetImageLocation

func (s *Image) SetImageLocation(v string) *Image

SetImageLocation sets the ImageLocation field's value.

SetImageOwnerAlias

func (s *Image) SetImageOwnerAlias(v string) *Image

SetImageOwnerAlias sets the ImageOwnerAlias field's value.

SetImageType

func (s *Image) SetImageType(v string) *Image

SetImageType sets the ImageType field's value.

SetKernelId

func (s *Image) SetKernelId(v string) *Image

SetKernelId sets the KernelId field's value.

SetName

func (s *Image) SetName(v string) *Image

SetName sets the Name field's value.

SetOwnerId

func (s *Image) SetOwnerId(v string) *Image

SetOwnerId sets the OwnerId field's value.

SetPlatform

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

SetPlatform sets the Platform field's value.

SetProductCodes

func (s *Image) SetProductCodes(v []*ProductCode) *Image

SetProductCodes sets the ProductCodes field's value.

SetPublic

func (s *Image) SetPublic(v bool) *Image

SetPublic sets the Public field's value.

SetRamdiskId

func (s *Image) SetRamdiskId(v string) *Image

SetRamdiskId sets the RamdiskId field's value.

SetRootDeviceName

func (s *Image) SetRootDeviceName(v string) *Image

SetRootDeviceName sets the RootDeviceName field's value.

SetRootDeviceType

func (s *Image) SetRootDeviceType(v string) *Image

SetRootDeviceType sets the RootDeviceType field's value.

SetSriovNetSupport

func (s *Image) SetSriovNetSupport(v string) *Image

SetSriovNetSupport sets the SriovNetSupport field's value.

SetState

func (s *Image) SetState(v string) *Image

SetState sets the State field's value.

SetStateReason

func (s *Image) SetStateReason(v *StateReason) *Image

SetStateReason sets the StateReason field's value.

SetTags

func (s *Image) SetTags(v []*Tag) *Image

SetTags sets the Tags field's value.

SetVirtualizationType

func (s *Image) SetVirtualizationType(v string) *Image

SetVirtualizationType sets the VirtualizationType field's value.

String

func (s Image) String() string

String returns the string representation

On this page: