amazonka-opsworks-1.1.0: Amazon OpsWorks SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.DeleteInstance

Contents

Description

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.

See: AWS API Reference for DeleteInstance.

Synopsis

Creating a Request

deleteInstance Source

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:

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.

Destructuring the Response

deleteInstanceResponse :: DeleteInstanceResponse Source

Creates a value of DeleteInstanceResponse with the minimum fields required to make a request.