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.

RequestSpotLaunchSpecification

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

type RequestSpotLaunchSpecification struct { AddressingType *string `locationName:"addressingType" type:"string"` BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"` IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` ImageId *string `locationName:"imageId" type:"string"` InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` KernelId *string `locationName:"kernelId" type:"string"` KeyName *string `locationName:"keyName" type:"string"` Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"` NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"` Placement *SpotPlacement `locationName:"placement" type:"structure"` RamdiskId *string `locationName:"ramdiskId" type:"string"` SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"` SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"` SubnetId *string `locationName:"subnetId" type:"string"` UserData *string `locationName:"userData" type:"string"` }

Describes the launch specification for an instance.

AddressingType

Type: *string

Deprecated.

BlockDeviceMappings

Describes a block device mapping.

EbsOptimized

Type: *bool

Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

IamInstanceProfile

Describes an IAM instance profile.

ImageId

Type: *string

The ID of the AMI.

InstanceType

Type: *string

The instance type.

KernelId

Type: *string

The ID of the kernel.

KeyName

Type: *string

The name of the key pair.

Monitoring

Describes the monitoring of an instance.

NetworkInterfaces

Describes a network interface.

Placement

Describes Spot Instance placement.

RamdiskId

Type: *string

The ID of the RAM disk.

SecurityGroupIds

Type: []*string

One or more security group IDs.

SecurityGroups

Type: []*string

One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

SubnetId

Type: *string

The ID of the subnet in which to launch the instance.

UserData

Type: *string

The Base64-encoded user data for the instance.

Method

GoString

func (s RequestSpotLaunchSpecification) GoString() string

GoString returns the string representation

SetAddressingType

func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification

SetAddressingType sets the AddressingType field's value.

SetBlockDeviceMappings

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

SetBlockDeviceMappings sets the BlockDeviceMappings field's value.

SetEbsOptimized

func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification

SetEbsOptimized sets the EbsOptimized field's value.

SetIamInstanceProfile

func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification

SetIamInstanceProfile sets the IamInstanceProfile field's value.

SetImageId

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

SetImageId sets the ImageId field's value.

SetInstanceType

func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification

SetInstanceType sets the InstanceType field's value.

SetKernelId

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

SetKernelId sets the KernelId field's value.

SetKeyName

func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification

SetKeyName sets the KeyName field's value.

SetMonitoring

func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification

SetMonitoring sets the Monitoring field's value.

SetNetworkInterfaces

func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification

SetNetworkInterfaces sets the NetworkInterfaces field's value.

SetPlacement

func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification

SetPlacement sets the Placement field's value.

SetRamdiskId

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

SetRamdiskId sets the RamdiskId field's value.

SetSecurityGroupIds

func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification

SetSecurityGroupIds sets the SecurityGroupIds field's value.

SetSecurityGroups

func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification

SetSecurityGroups sets the SecurityGroups field's value.

SetSubnetId

func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification

SetSubnetId sets the SubnetId field's value.

SetUserData

func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification

SetUserData sets the UserData field's value.

String

func (s RequestSpotLaunchSpecification) String() string

String returns the string representation

Validate

func (s *RequestSpotLaunchSpecification) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: