View source: R/ec2_operations.R
ec2_request_spot_instances | R Documentation |
Creates a Spot Instance request.
See https://www.paws-r-sdk.com/docs/ec2_request_spot_instances/ for full documentation.
ec2_request_spot_instances(
AvailabilityZoneGroup = NULL,
BlockDurationMinutes = NULL,
ClientToken = NULL,
DryRun = NULL,
InstanceCount = NULL,
LaunchGroup = NULL,
LaunchSpecification = NULL,
SpotPrice = NULL,
Type = NULL,
ValidFrom = NULL,
ValidUntil = NULL,
TagSpecifications = NULL,
InstanceInterruptionBehavior = NULL
)
AvailabilityZoneGroup |
The user-specified name for a logical grouping of requests. 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 requests 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 request is expired, or the maximum price you specified falls below current Spot price), 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. |
BlockDurationMinutes |
Deprecated. |
ClientToken |
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency in Amazon EC2 API requests in the Amazon EC2 User Guide. |
DryRun |
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is |
InstanceCount |
The maximum number of Spot Instances to launch. Default: 1 |
LaunchGroup |
The instance launch group. Launch groups are Spot Instances that launch together and terminate together. Default: Instances are launched and terminated individually |
LaunchSpecification |
The launch specification. |
SpotPrice |
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter. |
Type |
The Spot Instance request type. Default: |
ValidFrom |
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. The specified start date and time cannot be equal to the current date and time. You must specify a start date and time that occurs after the current date and time. |
ValidUntil |
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
TagSpecifications |
The key-value pair for tagging the Spot Instance request on creation.
The value for |
InstanceInterruptionBehavior |
The behavior when a Spot Instance is interrupted. The default is
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.