Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data DeleteInstance = DeleteInstance' {}
- newDeleteInstance :: Text -> DeleteInstance
- deleteInstance_deleteVolumes :: Lens' DeleteInstance (Maybe Bool)
- deleteInstance_deleteElasticIp :: Lens' DeleteInstance (Maybe Bool)
- deleteInstance_instanceId :: Lens' DeleteInstance Text
- data DeleteInstanceResponse = DeleteInstanceResponse' {
- newDeleteInstanceResponse :: DeleteInstanceResponse
Creating a Request
data DeleteInstance Source #
See: newDeleteInstance
smart constructor.
DeleteInstance' | |
|
Instances
Create a value of DeleteInstance
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deleteVolumes:DeleteInstance'
, deleteInstance_deleteVolumes
- Whether to delete the instance's Amazon EBS volumes.
$sel:deleteElasticIp:DeleteInstance'
, deleteInstance_deleteElasticIp
- Whether to delete the instance Elastic IP address.
$sel:instanceId:DeleteInstance'
, deleteInstance_instanceId
- The instance ID.
Request Lenses
deleteInstance_deleteVolumes :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance's Amazon EBS volumes.
deleteInstance_deleteElasticIp :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance Elastic IP address.
deleteInstance_instanceId :: Lens' DeleteInstance Text Source #
The instance ID.
Destructuring the Response
data DeleteInstanceResponse Source #
See: newDeleteInstanceResponse
smart constructor.
Instances
Eq DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance | |
Read DeleteInstanceResponse Source # | |
Show DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance showsPrec :: Int -> DeleteInstanceResponse -> ShowS # show :: DeleteInstanceResponse -> String # showList :: [DeleteInstanceResponse] -> ShowS # | |
Generic DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance type Rep DeleteInstanceResponse :: Type -> Type # | |
NFData DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance rnf :: DeleteInstanceResponse -> () # | |
type Rep DeleteInstanceResponse Source # | |
newDeleteInstanceResponse :: DeleteInstanceResponse Source #
Create a value of DeleteInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.