Smaws_Client_AutoScaling.AttachInstancesAttaches 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 Detach or attach instances in the Amazon EC2 Auto Scaling User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ServiceLinkedRoleFailure of Types.service_linked_role_failure ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.attach_instances_query ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ServiceLinkedRoleFailure of Types.service_linked_role_failure ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.attach_instances_query ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ServiceLinkedRoleFailure of Types.service_linked_role_failure ]
* Smaws_Lib.Response.metadata)
Stdlib.result