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 |
Deregister a registered Amazon EC2 or on-premises instance. This action removes the instance from the stack and returns it to your control. This action cannot be used with instances that were created with AWS OpsWorks Stacks.
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 DeregisterInstance = DeregisterInstance' {
- instanceId :: Text
- newDeregisterInstance :: Text -> DeregisterInstance
- deregisterInstance_instanceId :: Lens' DeregisterInstance Text
- data DeregisterInstanceResponse = DeregisterInstanceResponse' {
- newDeregisterInstanceResponse :: DeregisterInstanceResponse
Creating a Request
data DeregisterInstance Source #
See: newDeregisterInstance
smart constructor.
DeregisterInstance' | |
|
Instances
newDeregisterInstance Source #
Create a value of DeregisterInstance
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:instanceId:DeregisterInstance'
, deregisterInstance_instanceId
- The instance ID.
Request Lenses
deregisterInstance_instanceId :: Lens' DeregisterInstance Text Source #
The instance ID.
Destructuring the Response
data DeregisterInstanceResponse Source #
See: newDeregisterInstanceResponse
smart constructor.
Instances
newDeregisterInstanceResponse :: DeregisterInstanceResponse Source #
Create a value of DeregisterInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.