Smaws_Client_AutoScaling.CreateAutoScalingGroupWe strongly recommend using a launch template when calling this operation to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Creates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Quotas for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
If you're new to Amazon EC2 Auto Scaling, see the introductory tutorials in Get started with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Every Auto Scaling group has three size properties (DesiredCapacity, MaxSize, and MinSize). Usually, you set these sizes based on a specific number of instances. However, if you configure a mixed instances policy that defines weights for the instance types, you must specify these sizes with the same units that you use for weighting instances.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `AlreadyExistsFault of Types.already_exists_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `ResourceContentionFault of Types.resource_contention_fault
| `ServiceLinkedRoleFailure of Types.service_linked_role_failure ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_auto_scaling_group_type ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AlreadyExistsFault of Types.already_exists_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `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.create_auto_scaling_group_type ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AlreadyExistsFault of Types.already_exists_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `ResourceContentionFault of Types.resource_contention_fault
| `ServiceLinkedRoleFailure of Types.service_linked_role_failure ]
* Smaws_Lib.Response.metadata)
Stdlib.result