------------------------------------------------------------
-- CancelSpotInstanceRequests
------------------------------------------------------------
cancelSpotInstanceRequests
    :: (MonadResource m, MonadBaseControl IO m)
    => [Text] -- ^ InstanceIds
    -> EC2 m (ResumableSource m CancelSpotInstanceRequestsResponse)
cancelSpotInstanceRequests requestIds =
    ec2QuerySource "CancelSpotInstanceRequests" params path $
        itemConduit cancelSpotInstanceResponseConv
  where
    path = itemsPath "spotInstanceRequestSet"
    params = ["SpotInstanceRequestId" |.#= requestIds]
cancelSpotInstanceRequests
    :: (MonadResource m, MonadBaseControl IO m)
    => [Text] -- ^ InstanceIds
    -> EC2 m (ResumableSource m CancelSpotInstanceRequestsResponse)
cancelSpotInstanceRequests requestIds =
    ec2QuerySource "CancelSpotInstanceRequests" params path $
        itemConduit cancelSpotInstanceResponseConv
  where
    path = itemsPath "spotInstanceRequestSet"
    params = ["SpotInstanceRequestId" |.#= requestIds]
cancelSpotInstanceRequests requestIds =
    ec2QuerySource "CancelSpotInstanceRequests" params path $
        itemConduit cancelSpotInstanceResponseConv
  where
    path = itemsPath "spotInstanceRequestSet"
    params = ["SpotInstanceRequestId" |.#= requestIds]