| 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 |
Amazonka.OpsWorks.AssignInstance
Description
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.
Constructors
| AssignInstance' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> AssignInstance |
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.
Constructors
| AssignInstanceResponse' | |
Instances
| Generic AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance Associated Types type Rep AssignInstanceResponse :: Type -> Type # Methods from :: AssignInstanceResponse -> Rep AssignInstanceResponse x # to :: Rep AssignInstanceResponse x -> AssignInstanceResponse # | |
| Read AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance | |
| Show AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance Methods showsPrec :: Int -> AssignInstanceResponse -> ShowS # show :: AssignInstanceResponse -> String # showList :: [AssignInstanceResponse] -> ShowS # | |
| NFData AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance Methods rnf :: AssignInstanceResponse -> () # | |
| Eq AssignInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.AssignInstance Methods (==) :: AssignInstanceResponse -> AssignInstanceResponse -> Bool # (/=) :: AssignInstanceResponse -> AssignInstanceResponse -> Bool # | |
| 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.