amazonka-ec2-0.2.0: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RequestSpotInstances

Contents

Description

Creates a Spot Instance request. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current Spot Instance requests. For more information about Spot Instances, see Spot Instances in the Amazon ElasticCompute Cloud User Guide.

Users must be subscribed to the required product to run an instance with AWS Marketplace product codes.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-RequestSpotInstances.html

Synopsis

Request

Request constructor

Request lenses

rsiAvailabilityZoneGroup :: Lens' RequestSpotInstances (Maybe Text) Source

The user-specified name for a logical grouping of bids.

When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot Instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

Default: Instances are launched in any available Availability Zone.

rsiInstanceCount :: Lens' RequestSpotInstances (Maybe Int) Source

The maximum number of Spot Instances to launch.

Default: 1

rsiLaunchGroup :: Lens' RequestSpotInstances (Maybe Text) Source

The instance launch group. Launch groups are Spot Instances that launch together and terminate together.

Default: Instances are launched and terminated individually

rsiSpotPrice :: Lens' RequestSpotInstances Text Source

The maximum hourly price for any Spot Instance launched to fulfill the request.

rsiType :: Lens' RequestSpotInstances (Maybe SpotInstanceType) Source

The Spot Instance request type.

Default: 'one-time'

rsiValidFrom :: Lens' RequestSpotInstances (Maybe UTCTime) Source

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.

Default: The request is effective indefinitely.

rsiValidUntil :: Lens' RequestSpotInstances (Maybe UTCTime) Source

The 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.

Default: The request is effective indefinitely.

Response

Response constructor

Response lenses