Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data AssignInstance = AssignInstance' {
- instanceId :: Text
- layerIds :: [Text]
- newAssignInstance :: Text -> AssignInstance
- assignInstance_instanceId :: Lens' AssignInstance Text
- assignInstance_layerIds :: Lens' AssignInstance [Text]
- data AssignInstanceResponse = AssignInstanceResponse' {
- newAssignInstanceResponse :: AssignInstanceResponse
Creating a Request
data AssignInstance Source #
See: newAssignInstance
smart constructor.
AssignInstance' | |
|
Instances
Create a value of AssignInstance
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:
AssignInstance
, assignInstance_instanceId
- The instance ID.
AssignInstance
, assignInstance_layerIds
- The layer ID, which must correspond to a custom layer. You cannot assign
a registered instance to a built-in layer.
Request Lenses
assignInstance_instanceId :: Lens' AssignInstance Text Source #
The instance ID.
assignInstance_layerIds :: 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
data AssignInstanceResponse Source #
See: newAssignInstanceResponse
smart constructor.
Instances
Generic AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance type Rep AssignInstanceResponse :: Type -> Type # | |
Read AssignInstanceResponse Source # | |
Show AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance showsPrec :: Int -> AssignInstanceResponse -> ShowS # show :: AssignInstanceResponse -> String # showList :: [AssignInstanceResponse] -> ShowS # | |
NFData AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance rnf :: AssignInstanceResponse -> () # | |
Eq AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance | |
type Rep AssignInstanceResponse Source # | |
newAssignInstanceResponse :: AssignInstanceResponse Source #
Create a value of AssignInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.