# NOT RUN {
# This example increases the target capacity of the specified Spot fleet
# request.
# }
# NOT RUN {
svc$modify_spot_fleet_request(
SpotFleetRequestId = "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE",
TargetCapacity = 20L
)
# }
# NOT RUN {
# This example decreases the target capacity of the specified Spot fleet
# request without terminating any Spot Instances as a result.
# }
# NOT RUN {
svc$modify_spot_fleet_request(
ExcessCapacityTerminationPolicy = "NoTermination ",
SpotFleetRequestId = "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE",
TargetCapacity = 10L
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab