AWS SDK Version 2 for .NET
API Reference

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.

.NET Framework 3.5
 
Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

Namespace: Amazon.SimpleSystemsManagement
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual CancelCommandResponse CancelCommand(
         String commandId,
         List<String> instanceIds
)

Parameters

commandId
Type: System.String

The ID of the command you want to cancel.

instanceIds
Type: List<System.String>

(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.

Return Value
Type: Amazon.SimpleSystemsManagement.Model.CancelCommandResponse
The response from the CancelCommand service method, as returned by SimpleSystemsManagement.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5