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 |
Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.
For more information, see Deleting Instances.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Creating a Request
Creates a value of DeleteInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteInstance Source #
See: deleteInstance
smart constructor.
Request Lenses
diDeleteVolumes :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance's Amazon EBS volumes.
diDeleteElasticIP :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance Elastic IP address.
diInstanceId :: Lens' DeleteInstance Text Source #
The instance ID.
Destructuring the Response
deleteInstanceResponse :: DeleteInstanceResponse Source #
Creates a value of DeleteInstanceResponse
with the minimum fields required to make a request.
data DeleteInstanceResponse Source #
See: deleteInstanceResponse
smart constructor.