Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 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.
- terminateInstances :: TerminateInstances
- data TerminateInstances
- tiDryRun :: Lens' TerminateInstances (Maybe Bool)
- tiInstanceIds :: Lens' TerminateInstances [Text]
- terminateInstancesResponse :: Int -> TerminateInstancesResponse
- data TerminateInstancesResponse
- tirsTerminatingInstances :: Lens' TerminateInstancesResponse [InstanceStateChange]
- tirsResponseStatus :: Lens' TerminateInstancesResponse Int
Creating a Request
terminateInstances :: TerminateInstances Source #
Creates a value of TerminateInstances
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TerminateInstances Source #
Contains the parameters for TerminateInstances.
See: terminateInstances
smart constructor.
Request Lenses
tiDryRun :: Lens' TerminateInstances (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
tiInstanceIds :: Lens' TerminateInstances [Text] Source #
One or more instance IDs.
Destructuring the Response
terminateInstancesResponse Source #
Creates a value of TerminateInstancesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TerminateInstancesResponse Source #
Contains the output of TerminateInstances.
See: terminateInstancesResponse
smart constructor.
Response Lenses
tirsTerminatingInstances :: Lens' TerminateInstancesResponse [InstanceStateChange] Source #
Information about one or more terminated instances.
tirsResponseStatus :: Lens' TerminateInstancesResponse Int Source #
The response status code.