# NOT RUN {
# This example cancels the specified Spot fleet request and terminates its
# associated Spot Instances.
# }
# NOT RUN {
svc$cancel_spot_fleet_requests(
  SpotFleetRequestIds = list(
    "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"
  ),
  TerminateInstances = TRUE
)
# }
# NOT RUN {
# This example cancels the specified Spot fleet request without
# terminating its associated Spot Instances.
# }
# NOT RUN {
svc$cancel_spot_fleet_requests(
  SpotFleetRequestIds = list(
    "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"
  ),
  TerminateInstances = FALSE
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab