aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html"> Spot Instances in the
Amazon Elastic Compute Cloud User Guide .
You can use DescribeSpotInstanceRequests
to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled
, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot
.
@param describeSpotInstanceRequestsRequest Container for the necessaryparameters to execute the DescribeSpotInstanceRequests service method on AmazonEC2.
@return The response from the DescribeSpotInstanceRequests servicemethod, as returned by AmazonEC2.
@throws AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
@throws AmazonServiceException If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.