AWS SDK for .NET Documentation
TerminateInstancesRequest Class
AmazonAmazon.EC2.ModelTerminateInstancesRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the TerminateInstances operation.

Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

Terminated instances remain visible after termination (for approximately one hour).

By default, Amazon EC2 deletes all Amazon EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide .

For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide .

Declaration Syntax
C#
public class TerminateInstancesRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
TerminateInstancesRequest()()()()
Initializes a new instance of the TerminateInstancesRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
Instance IDs to terminate.

IsSetInstanceId()()()()
Checks if InstanceId property is set

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithInstanceId(array<String>[]()[][]) Obsolete.
Sets instance IDs to terminate.

Inheritance Hierarchy
Object
EC2Request
 TerminateInstancesRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)