* fix(autoscaling): round-trip InstanceMaintenancePolicy, AvailabilityZoneDistribution, CapacityReservationSpecification, ServiceLinkedRoleARN, WeightedCapacity and EnabledMetrics
DescribeAutoScalingGroups dropped several members of the AutoScalingGroup shape
that CreateAutoScalingGroup and UpdateAutoScalingGroup accept, so a client that
set them read them back as absent and saw a permanent diff.
- AsgOptionalFields gains ServiceLinkedRoleARN, InstanceMaintenancePolicy,
AvailabilityZoneDistribution and CapacityReservationSpecification with its
CapacityReservationTarget. The four-argument constructor stays, so existing
call sites are unchanged.
- MixedInstancesPolicy launch template overrides carry WeightedCapacity.
- EnableMetricsCollection and DisableMetricsCollection are implemented, and
DescribeAutoScalingGroups reports EnabledMetrics.
- Validation follows the botocore model. MinHealthyPercentage 0 to 100 and
MaxHealthyPercentage 100 to 200, both required, at most 100 apart, and -1
on both clears the policy. CapacityDistributionStrategy and
CapacityReservationPreference enums. No target with preference none.
CapacityReservationIds 1 to 255 characters matching [A-Za-z0-9-_/] and
resource group ARNs 1 to 1600. ServiceLinkedRoleARN 1 to 1600 characters.
WeightedCapacity 1 to 999 in at most 32 characters, set on every override
or none. Granularity required and 1Minute. Known metric names only.
- The AWS::AutoScaling::AutoScalingGroup provisioner passes the new properties
and MetricsCollection through, and its update rollback snapshot restores
them. It requires CapacityReservationPreference and each entry's
Granularity as the resource schema does, and rejects an unknown metric
before creating the group.
- The Java SDK compatibility suite gains a round-trip case that sets every
new member, reads it back through DescribeAutoScalingGroups, then clears
the maintenance policy and the enabled metrics.
* fix(autoscaling): route the metrics collection actions and close the review gaps
EnableMetricsCollection and DisableMetricsCollection now route to Auto
Scaling when a request carries no credential scope. Both hold the group
lock, so concurrent calls keep each other's changes and a call racing a
delete cannot write the group back.
A failed stack update now clears the service-linked role, AZ
distribution and capacity reservation when the group had none before.
A blank ServiceLinkedRoleARN or WeightedCapacity in a template reaches
the service's validation instead of reading as unset. The provisioner
reuses the service's granularity rule and message.