amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpsWorks.RegisterInstance

Description

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

We do not recommend using this action to register instances. The complete registration operation includes two tasks: installing the AWS OpsWorks Stacks agent on the instance, and registering the instance with the stack. RegisterInstance handles only the second step. You should instead use the AWS CLI register command, which performs the entire registration operation. For more information, see Registering an Instance with an AWS OpsWorks Stacks 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

data RegisterInstance Source #

See: newRegisterInstance smart constructor.

Constructors

RegisterInstance' 

Fields

Instances

Instances details
ToJSON RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

ToHeaders RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

ToPath RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

ToQuery RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

AWSRequest RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type AWSResponse RegisterInstance #

Generic RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstance :: Type -> Type #

Read RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Show RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

NFData RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Methods

rnf :: RegisterInstance -> () #

Eq RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Hashable RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type AWSResponse RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type Rep RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type Rep RegisterInstance = D1 ('MetaData "RegisterInstance" "Amazonka.OpsWorks.RegisterInstance" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "RegisterInstance'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hostname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instanceIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceIdentity)) :*: S1 ('MetaSel ('Just "privateIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "publicIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rsaPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "rsaPublicKeyFingerprint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newRegisterInstance Source #

Create a value of RegisterInstance 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:

RegisterInstance, registerInstance_hostname - The instance's hostname.

$sel:instanceIdentity:RegisterInstance', registerInstance_instanceIdentity - An InstanceIdentity object that contains the instance's identity.

RegisterInstance, registerInstance_privateIp - The instance's private IP address.

RegisterInstance, registerInstance_publicIp - The instance's public IP address.

$sel:rsaPublicKey:RegisterInstance', registerInstance_rsaPublicKey - The instances public RSA key. This key is used to encrypt communication between the instance and the service.

$sel:rsaPublicKeyFingerprint:RegisterInstance', registerInstance_rsaPublicKeyFingerprint - The instances public RSA key fingerprint.

RegisterInstance, registerInstance_stackId - The ID of the stack that the instance is to be registered with.

Request Lenses

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

An InstanceIdentity object that contains the instance's identity.

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

The instance's private IP address.

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

The instance's public IP address.

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

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

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

The instances public RSA key fingerprint.

registerInstance_stackId :: Lens' RegisterInstance Text Source #

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

Destructuring the Response

data RegisterInstanceResponse Source #

Contains the response to a RegisterInstanceResult request.

See: newRegisterInstanceResponse smart constructor.

Constructors

RegisterInstanceResponse' 

Fields

Instances

Instances details
Generic RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstanceResponse :: Type -> Type #

Read RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Show RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

NFData RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Eq RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type Rep RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type Rep RegisterInstanceResponse = D1 ('MetaData "RegisterInstanceResponse" "Amazonka.OpsWorks.RegisterInstance" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "RegisterInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRegisterInstanceResponse Source #

Create a value of RegisterInstanceResponse 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:

RegisterInstanceResponse, registerInstanceResponse_instanceId - The registered instance's AWS OpsWorks Stacks ID.

$sel:httpStatus:RegisterInstanceResponse', registerInstanceResponse_httpStatus - The response's http status code.

Response Lenses

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

The registered instance's AWS OpsWorks Stacks ID.