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

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
Eq RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Read RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Show RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Generic RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstance :: Type -> Type #

NFData RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Methods

rnf :: RegisterInstance -> () #

Hashable RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

ToJSON RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

AWSRequest RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type AWSResponse 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

type Rep RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

type Rep RegisterInstance = D1 ('MetaData "RegisterInstance" "Amazonka.OpsWorks.RegisterInstance" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "RegisterInstance'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "privateIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hostname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "instanceIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceIdentity)))) :*: ((S1 ('MetaSel ('Just "publicIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rsaPublicKeyFingerprint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "rsaPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse RegisterInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

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:

$sel:privateIp:RegisterInstance', registerInstance_privateIp - The instance's private IP address.

$sel:hostname:RegisterInstance', registerInstance_hostname - The instance's hostname.

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

$sel:publicIp:RegisterInstance', registerInstance_publicIp - The instance's public IP address.

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

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

$sel:stackId:RegisterInstance', registerInstance_stackId - The ID of the stack that the instance is to be registered with.

Request Lenses

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

The instance's private IP address.

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

An InstanceIdentity object that contains the instance's identity.

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

The instance's public IP address.

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

The instances public RSA key fingerprint.

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_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
Eq RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Read RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Show RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Generic RegisterInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.RegisterInstance

Associated Types

type Rep RegisterInstanceResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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:

$sel:instanceId: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.