| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorks.DeleteInstance
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.
Synopsis
- data DeleteInstance = DeleteInstance' {}
- newDeleteInstance :: Text -> DeleteInstance
- deleteInstance_deleteElasticIp :: Lens' DeleteInstance (Maybe Bool)
- deleteInstance_deleteVolumes :: Lens' DeleteInstance (Maybe Bool)
- deleteInstance_instanceId :: Lens' DeleteInstance Text
- data DeleteInstanceResponse = DeleteInstanceResponse' {
- newDeleteInstanceResponse :: DeleteInstanceResponse
Creating a Request
data DeleteInstance Source #
See: newDeleteInstance smart constructor.
Constructors
| DeleteInstance' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteInstance |
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:deleteElasticIp:DeleteInstance', deleteInstance_deleteElasticIp - Whether to delete the instance Elastic IP address.
$sel:deleteVolumes:DeleteInstance', deleteInstance_deleteVolumes - Whether to delete the instance's Amazon EBS volumes.
DeleteInstance, deleteInstance_instanceId - The instance ID.
Request Lenses
deleteInstance_deleteElasticIp :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance Elastic IP address.
deleteInstance_deleteVolumes :: Lens' DeleteInstance (Maybe Bool) Source #
Whether to delete the instance's Amazon EBS volumes.
deleteInstance_instanceId :: Lens' DeleteInstance Text Source #
The instance ID.
Destructuring the Response
data DeleteInstanceResponse Source #
See: newDeleteInstanceResponse smart constructor.
Constructors
| DeleteInstanceResponse' | |
Instances
| Generic DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance Associated Types type Rep DeleteInstanceResponse :: Type -> Type # Methods from :: DeleteInstanceResponse -> Rep DeleteInstanceResponse x # to :: Rep DeleteInstanceResponse x -> DeleteInstanceResponse # | |
| Read DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance | |
| Show DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance Methods showsPrec :: Int -> DeleteInstanceResponse -> ShowS # show :: DeleteInstanceResponse -> String # showList :: [DeleteInstanceResponse] -> ShowS # | |
| NFData DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance Methods rnf :: DeleteInstanceResponse -> () # | |
| Eq DeleteInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.DeleteInstance Methods (==) :: DeleteInstanceResponse -> DeleteInstanceResponse -> Bool # (/=) :: DeleteInstanceResponse -> DeleteInstanceResponse -> Bool # | |
| 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.