NAME
Paws::AutoScaling::UpdateAutoScalingGroup - Arguments for method UpdateAutoScalingGroup on Paws::AutoScaling
DESCRIPTION
This class represents the parameters used for calling the method UpdateAutoScalingGroup on the Auto Scaling service. Use the attributes of this class as arguments to method UpdateAutoScalingGroup.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAutoScalingGroup.
SYNOPSIS
my $autoscaling = Paws->service('AutoScaling');
# To update the launch configuration
# This example updates the launch configuration of the specified Auto Scaling
# group.
$autoscaling->UpdateAutoScalingGroup(
'AutoScalingGroupName' => 'my-auto-scaling-group',
'LaunchConfigurationName' => 'new-launch-config'
);
# To update the minimum and maximum size
# This example updates the minimum size and maximum size of the specified
# Auto Scaling group.
$autoscaling->UpdateAutoScalingGroup(
'AutoScalingGroupName' => 'my-auto-scaling-group',
'MaxSize' => 3,
'MinSize' => 1
);
# To enable instance protection
# This example enables instance protection for the specified Auto Scaling
# group.
$autoscaling->UpdateAutoScalingGroup(
'AutoScalingGroupName' => 'my-auto-scaling-group',
'NewInstancesProtectedFromScaleIn' => 1
);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/autoscaling/UpdateAutoScalingGroup
ATTRIBUTES
REQUIRED AutoScalingGroupName => Str
The name of the Auto Scaling group.
AvailabilityZones => ArrayRef[Str|Undef]
One or more Availability Zones for the group.
DefaultCooldown => Int
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default value is 300. This cooldown period is not used when a scaling-specific cooldown is specified.
Cooldown periods are not supported for target tracking scaling policies, step scaling policies, or scheduled scaling. For more information, see Scaling Cooldowns (https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html) in the Amazon EC2 Auto Scaling User Guide.
DesiredCapacity => Int
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.
HealthCheckGracePeriod => Int
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. The default value is 0.
For more information, see Health Check Grace Period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) in the Amazon EC2 Auto Scaling User Guide.
Conditional: This parameter is required if you are adding an ELB health check.
HealthCheckType => Str
The service to use for the health checks. The valid values are EC2 and ELB. If you configure an Auto Scaling group to use ELB health checks, it considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.
LaunchConfigurationName => Str
The name of the launch configuration. If you specify LaunchConfigurationName in your update request, you can't specify LaunchTemplate or MixedInstancesPolicy.
LaunchTemplate => Paws::AutoScaling::LaunchTemplateSpecification
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.
For more information, see LaunchTemplateSpecification (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html) in the Amazon EC2 Auto Scaling API Reference.
MaxInstanceLifetime => Int
The maximum amount of time, in seconds, that an instance can be in service.
For more information, see Replacing Auto Scaling Instances Based on Maximum Instance Lifetime (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html) in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 604800.
MaxSize => Int
The maximum size of the Auto Scaling group.
MinSize => Int
The minimum size of the Auto Scaling group.
MixedInstancesPolicy => Paws::AutoScaling::MixedInstancesPolicy
An embedded object that specifies a mixed instances policy.
In your call to UpdateAutoScalingGroup, you can make changes to the policy that is specified. All optional parameters are left unchanged if not specified.
For more information, see MixedInstancesPolicy (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html) in the Amazon EC2 Auto Scaling API Reference and Auto Scaling Groups with Multiple Instance Types and Purchase Options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) in the Amazon EC2 Auto Scaling User Guide.
NewInstancesProtectedFromScaleIn => Bool
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 Instance Protection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) in the Amazon EC2 Auto Scaling User Guide.
PlacementGroup => Str
The name of the placement group into which to launch your instances, if any. A placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a placement group. For more information, see Placement Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon EC2 User Guide for Linux Instances.
ServiceLinkedRoleARN => Str
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf. For more information, see Service-Linked Roles (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html) in the Amazon EC2 Auto Scaling User Guide.
TerminationPolicies => ArrayRef[Str|Undef]
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 Controlling Which Instances Auto Scaling Terminates During Scale In (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) in the Amazon EC2 Auto Scaling User Guide.
VPCZoneIdentifier => Str
A comma-separated list of subnet IDs for virtual private cloud (VPC).
If you specify VPCZoneIdentifier with AvailabilityZones, the subnets that you specify for this parameter must reside in those Availability Zones.
SEE ALSO
This class forms part of Paws, documenting arguments for method UpdateAutoScalingGroup in Paws::AutoScaling
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues