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.RegisterInstance

Contents

Description

Registers instances that were created outside of AWS OpsWorks Stacks with a specified stack.

Registered instances have the same requirements as instances that are created by using the CreateInstance API. For example, registered instances must be running a supported Linux-based operating system, and they must have a supported instance type. For more information about requirements for instances that you want to register, see Preparing the Instance .

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

Creating a Request

registerInstance Source #

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

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

  • riPrivateIP - The instance's private IP address.
  • riHostname - The instance's hostname.
  • riInstanceIdentity - An InstanceIdentity object that contains the instance's identity.
  • riPublicIP - The instance's public IP address.
  • riRsaPublicKeyFingerprint - The instances public RSA key fingerprint.
  • riRsaPublicKey - The instances public RSA key. This key is used to encrypt communication between the instance and the service.
  • riStackId - The ID of the stack that the instance is to be registered with.

data RegisterInstance Source #

See: registerInstance smart constructor.

Instances
Eq RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Data RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Methods

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

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

toConstr :: RegisterInstance -> Constr #

dataTypeOf :: RegisterInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Show RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Generic RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstance :: Type -> Type #

Hashable RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

ToJSON RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

AWSRequest RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Associated Types

type Rs RegisterInstance :: Type #

ToHeaders RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

ToPath RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

ToQuery RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

NFData RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Methods

rnf :: RegisterInstance -> () #

type Rep RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

type Rep RegisterInstance = D1 (MetaData "RegisterInstance" "Network.AWS.OpsWorks.RegisterInstance" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "RegisterInstance'" PrefixI True) ((S1 (MetaSel (Just "_riPrivateIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_riHostname") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_riInstanceIdentity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceIdentity)))) :*: ((S1 (MetaSel (Just "_riPublicIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_riRsaPublicKeyFingerprint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_riRsaPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_riStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs RegisterInstance Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Request Lenses

riPrivateIP :: Lens' RegisterInstance (Maybe Text) Source #

The instance's private IP address.

riHostname :: Lens' RegisterInstance (Maybe Text) Source #

The instance's hostname.

riInstanceIdentity :: Lens' RegisterInstance (Maybe InstanceIdentity) Source #

An InstanceIdentity object that contains the instance's identity.

riPublicIP :: Lens' RegisterInstance (Maybe Text) Source #

The instance's public IP address.

riRsaPublicKeyFingerprint :: Lens' RegisterInstance (Maybe Text) Source #

The instances public RSA key fingerprint.

riRsaPublicKey :: Lens' RegisterInstance (Maybe Text) Source #

The instances public RSA key. This key is used to encrypt communication between the instance and the service.

riStackId :: Lens' RegisterInstance Text Source #

The ID of the stack that the instance is to be registered with.

Destructuring the Response

registerInstanceResponse Source #

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

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

data RegisterInstanceResponse Source #

Contains the response to a RegisterInstanceResult request.

See: registerInstanceResponse smart constructor.

Instances
Eq RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Data RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Methods

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

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

toConstr :: RegisterInstanceResponse -> Constr #

dataTypeOf :: RegisterInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Show RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Generic RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstanceResponse :: Type -> Type #

NFData RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

type Rep RegisterInstanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.RegisterInstance

type Rep RegisterInstanceResponse = D1 (MetaData "RegisterInstanceResponse" "Network.AWS.OpsWorks.RegisterInstance" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "RegisterInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_rirsInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

rirsInstanceId :: Lens' RegisterInstanceResponse (Maybe Text) Source #

The registered instance's AWS OpsWorks Stacks ID.