amazonka-opsworks-1.6.1: Amazon OpsWorks 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.OpsWorks.AssignInstance

Contents

Description

Assign a registered instance to a layer.

  • You can assign registered on-premises instances to any layer type.
  • You can assign registered Amazon EC2 instances only to custom layers.
  • You cannot use this action with instances that were created with AWS OpsWorks Stacks.

Required Permissions : To use this action, an AWS Identity and Access Management (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

Creating a Request

assignInstance Source #

Creates a value of AssignInstance with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • aiInstanceId - The instance ID.
  • aiLayerIds - The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.

data AssignInstance Source #

See: assignInstance smart constructor.

Instances
Eq AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Data AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Methods

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

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

toConstr :: AssignInstance -> Constr #

dataTypeOf :: AssignInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Show AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Generic AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Associated Types

type Rep AssignInstance :: Type -> Type #

Hashable AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

ToJSON AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

AWSRequest AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Associated Types

type Rs AssignInstance :: Type #

ToHeaders AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

ToPath AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

ToQuery AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

NFData AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Methods

rnf :: AssignInstance -> () #

type Rep AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

type Rep AssignInstance = D1 (MetaData "AssignInstance" "Network.AWS.OpsWorks.AssignInstance" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "AssignInstance'" PrefixI True) (S1 (MetaSel (Just "_aiInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aiLayerIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs AssignInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Request Lenses

aiLayerIds :: Lens' AssignInstance [Text] Source #

The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.

Destructuring the Response

assignInstanceResponse :: AssignInstanceResponse Source #

Creates a value of AssignInstanceResponse with the minimum fields required to make a request.

data AssignInstanceResponse Source #

See: assignInstanceResponse smart constructor.

Instances
Eq AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Data AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Methods

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

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

toConstr :: AssignInstanceResponse -> Constr #

dataTypeOf :: AssignInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Show AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Generic AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Associated Types

type Rep AssignInstanceResponse :: Type -> Type #

NFData AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

Methods

rnf :: AssignInstanceResponse -> () #

type Rep AssignInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.AssignInstance

type Rep AssignInstanceResponse = D1 (MetaData "AssignInstanceResponse" "Network.AWS.OpsWorks.AssignInstance" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "AssignInstanceResponse'" PrefixI False) (U1 :: Type -> Type))