$opt
|
array
|
Optional
|
An associative array of parameters that can have the following keys:
InstanceCount - integer - Optional - Specifies the maximum number of Spot Instances to launch.Type - string - Optional - Specifies the Spot Instance type. [Allowed values: one-time , persistent ]ValidFrom - string - Optional - Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. May be passed as a number of seconds since UNIX Epoch, or any string compatible with strtotime() .ValidUntil - string - Optional - End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached. May be passed as a number of seconds since UNIX Epoch, or any string compatible with strtotime() .LaunchGroup - string - Optional - Specifies the instance launch group. Launch groups are Spot Instances that launch and terminate together.AvailabilityZoneGroup - string - Optional - Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.LaunchSpecification - array - Optional - Specifies additional launch instance information. x - array - Optional - This represents a simple array index. ImageId - string - Optional - The AMI ID.KeyName - string - Optional - The name of the key pair.GroupSet - array - Optional - x - array - Optional - This represents a simple array index. GroupName - string - Optional - GroupId - string - Optional -
SecurityGroup - string|array - Optional - Pass a string for a single value, or an indexed array for multiple values.UserData - string - Optional - Optional data, specific to a user’s application, to provide in the launch request. All instances that collectively comprise the launch request have access to this data. User data is never returned through API responses.AddressingType - string - Optional - Deprecated.InstanceType - string - Optional - Specifies the instance type. [Allowed values: t1.micro , m1.small , m1.medium , m1.large , m1.xlarge , m2.xlarge , m2.2xlarge , m2.4xlarge , m3.xlarge , m3.2xlarge , c1.medium , c1.xlarge , hi1.4xlarge , hs1.8xlarge , cc1.4xlarge , cc2.8xlarge , cg1.4xlarge ]Placement - array - Optional - Defines a placement item. x - array - Optional - This represents a simple array index. AvailabilityZone - string - Optional - The availability zone in which an Amazon EC2 instance runs.GroupName - string - Optional - The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.
KernelId - string - Optional - Specifies the ID of the kernel to select.RamdiskId - string - Optional - Specifies the ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether or not you need to specify a RAM disk and search for the kernel ID.BlockDeviceMapping - array - Optional - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName. x - array - Optional - This represents a simple array index. VirtualName - string - Optional - Specifies the virtual device name.DeviceName - string - Optional - Specifies the device name (e.g., /dev/sdh ).Ebs - array - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. x - array - Optional - This represents a simple array index. SnapshotId - string - Optional - The ID of the snapshot from which the volume will be created.VolumeSize - integer - Optional - The size of the volume, in gigabytes.DeleteOnTermination - boolean - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination.VolumeType - string - Optional - [Allowed values: standard , io1 ]Iops - integer - Optional -
NoDevice - string - Optional - Specifies the device name to suppress during instance launch.
Monitoring.Enabled - boolean - Optional - Enables monitoring for the instance.SubnetId - string - Optional - Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.NetworkInterfaceSet - array - Optional - x - array - Optional - This represents a simple array index. NetworkInterfaceId - string - Optional - DeviceIndex - integer - Optional - SubnetId - string - Optional - Description - string - Optional - PrivateIpAddress - string - Optional - SecurityGroupId - string|array - Optional - Pass a string for a single value, or an indexed array for multiple values.DeleteOnTermination - boolean - Optional - PrivateIpAddresses - array - Optional - x - array - Optional - This represents a simple array index. PrivateIpAddress - string - Required - Primary - boolean - Optional -
SecondaryPrivateIpAddressCount - integer - Optional -
IamInstanceProfile - array - Optional - x - array - Optional - This represents a simple array index. Arn - string - Optional - Name - string - Optional -
EbsOptimized - boolean - Optional -
curlopts - array - Optional - A set of values to pass directly into curl_setopt() , where the key is a pre-defined CURLOPT_* constant.returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests. |