Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Disassociates a node from an AWS OpsWorks CM server, and removes the node from the server's managed nodes. After a node is disassociated, the node key pair is no longer valid for accessing the configuration manager's API. For more information about how to associate a node, see AssociateNode
.
A node can can only be disassociated from a server that is in a HEALTHY
state. Otherwise, an InvalidStateException
is thrown. A ResourceNotFoundException
is thrown when the server does not exist. A ValidationException
is raised when parameters of the request are not valid.
- disassociateNode :: Text -> Text -> DisassociateNode
- data DisassociateNode
- dnEngineAttributes :: Lens' DisassociateNode [EngineAttribute]
- dnServerName :: Lens' DisassociateNode Text
- dnNodeName :: Lens' DisassociateNode Text
- disassociateNodeResponse :: Int -> DisassociateNodeResponse
- data DisassociateNodeResponse
- dnrsNodeAssociationStatusToken :: Lens' DisassociateNodeResponse (Maybe Text)
- dnrsResponseStatus :: Lens' DisassociateNodeResponse Int
Creating a Request
Creates a value of DisassociateNode
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dnEngineAttributes
- Engine attributes that are used for disassociating the node. No attributes are required for Puppet. Attributes required in a DisassociateNode request for Chef *CHEF_ORGANIZATION
: The Chef organization with which the node was associated. By default only one organization nameddefault
can exist.dnServerName
- The name of the server from which to disassociate the node.dnNodeName
- The name of the client node.
data DisassociateNode Source #
See: disassociateNode
smart constructor.
Request Lenses
dnEngineAttributes :: Lens' DisassociateNode [EngineAttribute] Source #
Engine attributes that are used for disassociating the node. No attributes are required for Puppet. Attributes required in a DisassociateNode request for Chef * CHEF_ORGANIZATION
: The Chef organization with which the node was associated. By default only one organization named default
can exist.
dnServerName :: Lens' DisassociateNode Text Source #
The name of the server from which to disassociate the node.
dnNodeName :: Lens' DisassociateNode Text Source #
The name of the client node.
Destructuring the Response
disassociateNodeResponse Source #
Creates a value of DisassociateNodeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dnrsNodeAssociationStatusToken
- Contains a token which can be passed to theDescribeNodeAssociationStatus
API call to get the status of the disassociation request.dnrsResponseStatus
- -- | The response status code.
data DisassociateNodeResponse Source #
See: disassociateNodeResponse
smart constructor.
Response Lenses
dnrsNodeAssociationStatusToken :: Lens' DisassociateNodeResponse (Maybe Text) Source #
Contains a token which can be passed to the DescribeNodeAssociationStatus
API call to get the status of the disassociation request.
dnrsResponseStatus :: Lens' DisassociateNodeResponse Int Source #
- - | The response status code.