Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group with a launch configuration with
InstanceMonitoring
set to False
, you must first disable the
collection of group metrics. Otherwise, you will get an error. If you
have previously enabled the collection of group metrics, you can disable
it using DisableMetricsCollection.
The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note the following:
- If you specify a new value for
MinSize
without specifying a value forDesiredCapacity
, and the newMinSize
is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMinSize
. - If you specify a new value for
MaxSize
without specifying a value forDesiredCapacity
, and the newMaxSize
is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMaxSize
. - All other optional parameters are left unchanged if not specified.
See: AWS API Reference for UpdateAutoScalingGroup.
- updateAutoScalingGroup :: Text -> UpdateAutoScalingGroup
- data UpdateAutoScalingGroup
- uasgTerminationPolicies :: Lens' UpdateAutoScalingGroup [Text]
- uasgHealthCheckGracePeriod :: Lens' UpdateAutoScalingGroup (Maybe Int)
- uasgVPCZoneIdentifier :: Lens' UpdateAutoScalingGroup (Maybe Text)
- uasgDefaultCooldown :: Lens' UpdateAutoScalingGroup (Maybe Int)
- uasgMaxSize :: Lens' UpdateAutoScalingGroup (Maybe Int)
- uasgAvailabilityZones :: Lens' UpdateAutoScalingGroup (Maybe (NonEmpty Text))
- uasgDesiredCapacity :: Lens' UpdateAutoScalingGroup (Maybe Int)
- uasgMinSize :: Lens' UpdateAutoScalingGroup (Maybe Int)
- uasgLaunchConfigurationName :: Lens' UpdateAutoScalingGroup (Maybe Text)
- uasgHealthCheckType :: Lens' UpdateAutoScalingGroup (Maybe Text)
- uasgPlacementGroup :: Lens' UpdateAutoScalingGroup (Maybe Text)
- uasgAutoScalingGroupName :: Lens' UpdateAutoScalingGroup Text
- updateAutoScalingGroupResponse :: UpdateAutoScalingGroupResponse
- data UpdateAutoScalingGroupResponse
Creating a Request
Creates a value of UpdateAutoScalingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateAutoScalingGroup Source
See: updateAutoScalingGroup
smart constructor.
Request Lenses
uasgTerminationPolicies :: Lens' UpdateAutoScalingGroup [Text] Source
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.
For more information, see Choosing a Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.
uasgHealthCheckGracePeriod :: Lens' UpdateAutoScalingGroup (Maybe Int) Source
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an instance. The grace period begins when the instance passes the system status and instance status checks from Amazon EC2. For more information, see Health Checks in the Auto Scaling Developer Guide.
uasgVPCZoneIdentifier :: Lens' UpdateAutoScalingGroup (Maybe Text) Source
The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.
When you specify VPCZoneIdentifier
with AvailabilityZones
, ensure
that the subnets' Availability Zones match the values you specify for
AvailabilityZones
.
For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.
uasgDefaultCooldown :: Lens' UpdateAutoScalingGroup (Maybe Int) Source
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
uasgMaxSize :: Lens' UpdateAutoScalingGroup (Maybe Int) Source
The maximum size of the Auto Scaling group.
uasgAvailabilityZones :: Lens' UpdateAutoScalingGroup (Maybe (NonEmpty Text)) Source
One or more Availability Zones for the group.
uasgDesiredCapacity :: Lens' UpdateAutoScalingGroup (Maybe Int) Source
The number of EC2 instances that should be running in the Auto Scaling group. 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.
uasgMinSize :: Lens' UpdateAutoScalingGroup (Maybe Int) Source
The minimum size of the Auto Scaling group.
uasgLaunchConfigurationName :: Lens' UpdateAutoScalingGroup (Maybe Text) Source
The name of the launch configuration.
uasgHealthCheckType :: Lens' UpdateAutoScalingGroup (Maybe Text) Source
The type of health check for the instances in the Auto Scaling group.
The health check type can either be EC2
for Amazon EC2 or ELB
for
Elastic Load Balancing.
uasgPlacementGroup :: Lens' UpdateAutoScalingGroup (Maybe Text) Source
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
uasgAutoScalingGroupName :: Lens' UpdateAutoScalingGroup Text Source
The name of the Auto Scaling group.
Destructuring the Response
updateAutoScalingGroupResponse :: UpdateAutoScalingGroupResponse Source
Creates a value of UpdateAutoScalingGroupResponse
with the minimum fields required to make a request.
data UpdateAutoScalingGroupResponse Source
See: updateAutoScalingGroupResponse
smart constructor.