Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Attaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.
For more information, see Attach EC2 instances to your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
Synopsis
- data AttachInstances = AttachInstances' {
- instanceIds :: Maybe [Text]
- autoScalingGroupName :: Text
- newAttachInstances :: Text -> AttachInstances
- attachInstances_instanceIds :: Lens' AttachInstances (Maybe [Text])
- attachInstances_autoScalingGroupName :: Lens' AttachInstances Text
- data AttachInstancesResponse = AttachInstancesResponse' {
- newAttachInstancesResponse :: AttachInstancesResponse
Creating a Request
data AttachInstances Source #
See: newAttachInstances
smart constructor.
AttachInstances' | |
|
Instances
Create a value of AttachInstances
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:instanceIds:AttachInstances'
, attachInstances_instanceIds
- The IDs of the instances. You can specify up to 20 instances.
$sel:autoScalingGroupName:AttachInstances'
, attachInstances_autoScalingGroupName
- The name of the Auto Scaling group.
Request Lenses
attachInstances_instanceIds :: Lens' AttachInstances (Maybe [Text]) Source #
The IDs of the instances. You can specify up to 20 instances.
attachInstances_autoScalingGroupName :: Lens' AttachInstances Text Source #
The name of the Auto Scaling group.
Destructuring the Response
data AttachInstancesResponse Source #
See: newAttachInstancesResponse
smart constructor.
Instances
Eq AttachInstancesResponse Source # | |
Defined in Amazonka.AutoScaling.AttachInstances | |
Read AttachInstancesResponse Source # | |
Show AttachInstancesResponse Source # | |
Defined in Amazonka.AutoScaling.AttachInstances showsPrec :: Int -> AttachInstancesResponse -> ShowS # show :: AttachInstancesResponse -> String # showList :: [AttachInstancesResponse] -> ShowS # | |
Generic AttachInstancesResponse Source # | |
Defined in Amazonka.AutoScaling.AttachInstances type Rep AttachInstancesResponse :: Type -> Type # | |
NFData AttachInstancesResponse Source # | |
Defined in Amazonka.AutoScaling.AttachInstances rnf :: AttachInstancesResponse -> () # | |
type Rep AttachInstancesResponse Source # | |
Defined in Amazonka.AutoScaling.AttachInstances |
newAttachInstancesResponse :: AttachInstancesResponse Source #
Create a value of AttachInstancesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.