amazonka-opsworks-cm-1.6.1: Amazon OpsWorks for Chef Automate SDK.

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

Network.AWS.OpsWorksCM.DisassociateNode

Contents

Description

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.

Synopsis

Creating a Request

disassociateNode Source #

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 named default 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.

Instances
Eq DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Data DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DisassociateNode -> c DisassociateNode #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DisassociateNode #

toConstr :: DisassociateNode -> Constr #

dataTypeOf :: DisassociateNode -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DisassociateNode) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DisassociateNode) #

gmapT :: (forall b. Data b => b -> b) -> DisassociateNode -> DisassociateNode #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DisassociateNode -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DisassociateNode -> r #

gmapQ :: (forall d. Data d => d -> u) -> DisassociateNode -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DisassociateNode -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DisassociateNode -> m DisassociateNode #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DisassociateNode -> m DisassociateNode #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DisassociateNode -> m DisassociateNode #

Show DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Generic DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Associated Types

type Rep DisassociateNode :: Type -> Type #

Hashable DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

ToJSON DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

AWSRequest DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Associated Types

type Rs DisassociateNode :: Type #

ToHeaders DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

ToPath DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

ToQuery DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

NFData DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Methods

rnf :: DisassociateNode -> () #

type Rep DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

type Rep DisassociateNode = D1 (MetaData "DisassociateNode" "Network.AWS.OpsWorksCM.DisassociateNode" "amazonka-opsworks-cm-1.6.1-DBtTlJOATBfGleOMllIGPs" False) (C1 (MetaCons "DisassociateNode'" PrefixI True) (S1 (MetaSel (Just "_dnEngineAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EngineAttribute])) :*: (S1 (MetaSel (Just "_dnServerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dnNodeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DisassociateNode Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

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:

data DisassociateNodeResponse Source #

See: disassociateNodeResponse smart constructor.

Instances
Eq DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Data DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DisassociateNodeResponse -> c DisassociateNodeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DisassociateNodeResponse #

toConstr :: DisassociateNodeResponse -> Constr #

dataTypeOf :: DisassociateNodeResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DisassociateNodeResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DisassociateNodeResponse) #

gmapT :: (forall b. Data b => b -> b) -> DisassociateNodeResponse -> DisassociateNodeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DisassociateNodeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DisassociateNodeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DisassociateNodeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DisassociateNodeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DisassociateNodeResponse -> m DisassociateNodeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DisassociateNodeResponse -> m DisassociateNodeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DisassociateNodeResponse -> m DisassociateNodeResponse #

Read DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Show DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Generic DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

Associated Types

type Rep DisassociateNodeResponse :: Type -> Type #

NFData DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

type Rep DisassociateNodeResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.DisassociateNode

type Rep DisassociateNodeResponse = D1 (MetaData "DisassociateNodeResponse" "Network.AWS.OpsWorksCM.DisassociateNode" "amazonka-opsworks-cm-1.6.1-DBtTlJOATBfGleOMllIGPs" False) (C1 (MetaCons "DisassociateNodeResponse'" PrefixI True) (S1 (MetaSel (Just "_dnrsNodeAssociationStatusToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dnrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

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.