Builder
Properties
The name of the Auto Scaling group.
The instance capacity distribution across Availability Zones.
The policy for Availability Zone impairment.
One or more Availability Zones for the group.
Enables or disables Capacity Rebalancing. If Capacity Rebalancing is disabled, proactive replacement of at-risk Spot Instances does not occur. For more information, see Capacity Rebalancing in Auto Scaling to replace at-risk Spot Instances in the Amazon EC2 Auto Scaling User Guide.
The capacity reservation specification for the Auto Scaling group.
Only needed if you use simple scaling policies.
The amount of time, in seconds, until a new instance is considered to have finished initializing and resource consumption to become stable after it enters the InService
state.
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group.
The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType
for attribute-based instance type selection only. For more information, see Create a mixed instances group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. This is useful if your instances do not immediately pass their health checks after they enter the InService
state. For more information, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
A comma-separated value string of one or more health check types.
An instance maintenance policy. For more information, see Set instance maintenance policy in the Amazon EC2 Auto Scaling User Guide.
The name of the launch configuration. If you specify LaunchConfigurationName
in your update request, you can't specify LaunchTemplate
or MixedInstancesPolicy
.
The launch template and version to use to specify the updates. If you specify LaunchTemplate
in your update request, you can't specify LaunchConfigurationName
or MixedInstancesPolicy
.
The maximum amount of time, in seconds, that an instance can be in service. The default is null. If specified, the value must be either 0 or a number equal to or greater than 86,400 seconds (1 day). To clear a previously set value, specify a new value of 0. For more information, see Replacing Auto Scaling instances based on maximum instance lifetime in the Amazon EC2 Auto Scaling User Guide.
The mixed instances policy. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Use instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.
The name of an existing placement group into which to launch your instances. To remove the placement group setting, pass an empty string for placement-group
. For more information about placement groups, see Placement groups in the Amazon EC2 User Guide.
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf. For more information, see Service-linked roles in the Amazon EC2 Auto Scaling User Guide.
If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true
. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.
A policy or a list of policies that are used to select the instances to terminate. The policies are executed in the order that you list them. For more information, see Configure termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
A comma-separated list of subnet IDs for a virtual private cloud (VPC). If you specify VPCZoneIdentifier
with AvailabilityZones
, the subnets that you specify must reside in those Availability Zones.
Functions
construct an aws.sdk.kotlin.services.autoscaling.model.AvailabilityZoneDistribution inside the given block
construct an aws.sdk.kotlin.services.autoscaling.model.AvailabilityZoneImpairmentPolicy inside the given block
construct an aws.sdk.kotlin.services.autoscaling.model.CapacityReservationSpecification inside the given block
construct an aws.sdk.kotlin.services.autoscaling.model.InstanceMaintenancePolicy inside the given block
construct an aws.sdk.kotlin.services.autoscaling.model.LaunchTemplateSpecification inside the given block
construct an aws.sdk.kotlin.services.autoscaling.model.MixedInstancesPolicy inside the given block