amazonka-opsworks-1.3.0: Amazon OpsWorks SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




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.

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.

See: AWS API Reference for AssignInstance.


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:

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.