Parameters for the Amazon Request EC2 Spot Instances action.
availabilityZone
Availability zone in which to launch the requested EC2 instances.
Type: string
Required: No
cancelTimeInSeconds
Time (in seconds) after the request is made when it will be cancelled.
Type: integer
Required: No
Registered credentials to use with the action. One and only one credential must be specified.
Type: Array of string
Required: Yes
Elastic IP address to assign to the launched EC2 instance. If more than one EC2 instance is launched, only one will receive the elastic IP address.
Type: string
Required: No
iamInstanceProfile
IAM instance profile to assign to the launched EC2 instances.
Type: string
Required: No
imageDescriptionComparison
Comparison to use when identifying images by description. Required when imageIdentificationMethod is by-image-description.
Type: AmiImageDescriptionComparison object.
Required: Conditional
Image ID of the AMI image to use for the spot instance request. Required when imageIdentificationMethod is by-image-id.
Type: string
Required: Conditional
imageIdentificationMethod
Method of identifying the AMI image to use.
Type: string
Valid Values:
Required: Yes
imageNameComparison
Comparison to use when identifying images by name. Required when imageIdentificationMethod is by-image-name.
Type: AmiImageNameComparison object.
Required: Conditional
EC2 Instance type to use with the request.
Type: string
Required: Yes
Name of the key pair to assign to the EC2 instances.
Type: string
Required: No
maxInstanceCount
Maximum number of instances to request.
Type: integer
Required: Yes
maxSpotPriceUsd
Maximum spot price to use for the request.
Type: decimal
Required: Yes
Comparison to use when identifying images by the Name tag. Required when imageIdentificationMethod is by-image-name-tag.
Type: NameTagComparison object.
Required: Conditional
Region to use with the action. One and only one region must be specified.
Type: Array of string
Required: Yes
resourceTagComparison
Comparison to use when identifying images by resource tag. Required when imageIdentificationMethod is by-resource-tag.
Type: ResourceTagComparison object.
Required: Conditional
Security group to attach to the EC2 instances.
Type: string
Required: No
terminateTimeFrame
Time frame determining when the EC2 instances will be terminated. Required when terminateTimeInSeconds is set.
Type: string
Valid Values:
Required: Conditional
terminateTimeInSeconds
Time (in seconds) after which the EC2 instances will be terminated.
Type: integer
Required: No
User data which will be used by the EC2 instances.
Type: string
Required: No
Format of the text in the UserData field. Required when UserData is specified.
Type: string
Valid Values:
Required: Conditional
ID of the VPC subnet in which the EC2 instances should be launched.
Type: string
Required: No