C# Class Amazon.EC2.Model.TerminateInstancesRequest

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.

If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

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

By default, Amazon EC2 deletes all 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, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true 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.

Inheritance: AmazonEC2Request
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
TerminateInstancesRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

TerminateInstancesRequest ( List instanceIds ) : System

Instantiates TerminateInstancesRequest with the parameterized properties

Private Methods

Method Description
IsSetInstanceIds ( ) : bool

Method Details

TerminateInstancesRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public TerminateInstancesRequest ( ) : System
return System

TerminateInstancesRequest() public method

Instantiates TerminateInstancesRequest with the parameterized properties
public TerminateInstancesRequest ( List instanceIds ) : System
instanceIds List One or more instance IDs. Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
return System