AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Write-ASScalingPolicy-AutoScalingGroupName <String>-PolicyName <String>-AdjustmentType <String>-Cooldown <Int32>-CustomizedMetricSpecification_Dimension <MetricDimension[]>-TargetTrackingConfiguration_DisableScaleIn <Boolean>-Enabled <Boolean>-EstimatedInstanceWarmup <Int32>-PredictiveScalingConfiguration_MaxCapacityBreachBehavior <PredictiveScalingMaxCapacityBreachBehavior>-PredictiveScalingConfiguration_MaxCapacityBuffer <Int32>-MetricAggregationType <String>-CustomizedMetricSpecification_MetricName <String>-CustomizedMetricSpecification_Metric <TargetTrackingMetricDataQuery[]>-PredictiveScalingConfiguration_MetricSpecification <PredictiveScalingMetricSpecification[]>-MinAdjustmentMagnitude <Int32>-MinAdjustmentStep <Int32>-PredictiveScalingConfiguration_Mode <PredictiveScalingMode>-CustomizedMetricSpecification_Namespace <String>-CustomizedMetricSpecification_Period <Int32>-PolicyType <String>-PredefinedMetricSpecification_PredefinedMetricType <MetricType>-PredefinedMetricSpecification_ResourceLabel <String>-ScalingAdjustment <Int32>-PredictiveScalingConfiguration_SchedulingBufferTime <Int32>-CustomizedMetricSpecification_Statistic <MetricStatistic>-StepAdjustment <StepAdjustment[]>-TargetTrackingConfiguration_TargetValue <Double>-CustomizedMetricSpecification_Unit <String>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonAutoScalingConfig>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Dimensions |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Metrics |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_MetricName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Namespace |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Period |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Statistic |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_CustomizedMetricSpecification_Unit |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 2 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_PredefinedMetricSpecification_PredefinedMetricType |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TargetTrackingConfiguration_PredefinedMetricSpecification_ResourceLabel |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | PredictiveScalingConfiguration_MetricSpecifications |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StepAdjustments |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Write-ASScalingPolicy -AutoScalingGroupName my-asg -AdjustmentType "ChangeInCapacity" -PolicyName "myScaleInPolicy" -ScalingAdjustment -1
arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:aa3836ab-5462-42c7-adab-e1d769fc24ef:autoScalingGroupName/my-asg
:policyName/myScaleInPolicyThis example adds the specified policy to the specified Auto Scaling group. The specified adjustment type determines how to interpret the ScalingAdjustment parameter. With 'ChangeInCapacity', a positive value increases the capacity by the specified number of instances and a negative value decreases the capacity by the specified number of instances.
AWS Tools for PowerShell: 2.x.y.z