AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Namespace: Amazon.SimpleSystemsManagement
Assembly: AWSSDK.dll
Version: (assembly version)
public abstract CancelCommandResponse CancelCommand( String commandId, List<String> instanceIds )
The ID of the command you want to cancel.
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
Exception | Condition |
---|---|
DuplicateInstanceIdException | You cannot specify an instance ID in more than one association. |
InvalidCommandIdException | |
InvalidInstanceIdException | The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. Invalid states are: Shutting-down and Terminated. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5