Skip to content

Commit 2b89a15

Browse files
committed
Create Set-AASScalingPolicy.xml
1 parent e318c49 commit 2b89a15

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--Examples for the AWS PowerShell CmdLets-->
3+
<examples>
4+
<example>
5+
<code>@
6+
PS C:\> $stepadjustment = New-Object Amazon.ApplicationAutoScaling.Model.StepAdjustment
7+
PS C:\> $stepadjustment
8+
9+
MetricIntervalLowerBound MetricIntervalUpperBound ScalingAdjustment
10+
------------------------ ------------------------ -----------------
11+
0 0 0
12+
13+
PS C:\> $stepadjustment.ScalingAdjustment = -1
14+
PS C:\> $stepadjustment.MetricIntervalUpperBound = 0
15+
PS C:\> $stepadjustment
16+
17+
MetricIntervalLowerBound MetricIntervalUpperBound ScalingAdjustment
18+
------------------------ ------------------------ -----------------
19+
0 0 -1
20+
21+
PS C:\> Set-AASScalingPolicy -ServiceNamespace AppStream -PolicyName ASFleetScaleInPolicy -PolicyType StepScaling -ResourceId fleet/MyFleet -ScalableDimension appstream:fleet:DesiredCapacity -StepScalingPolicyConfiguration_AdjustmentType ChangeInCapacity -StepScalingPolicyConfiguration_Cooldown 360 -StepScalingPolicyConfiguration_MetricAggregationType Average -StepScalingPolicyConfiguration_StepAdjustments $stepadjustment
22+
23+
Alarms PolicyARN
24+
------ ---------
25+
{} arn:aws:autoscaling:us-west-2:012345678912:scalingPolicy:4897ca24-3caa-4bf1-8484-851a089b243c:resource/appstream/fleet/MyFleet:policyName/ASFleetScaleInPolicy @</code>
26+
<description>This cmdlet creates or updates a policy for an Application Auto Scaling scalable target. Each scalable target is identified by a service namespace, resource ID, and scalable dimension.</description>
27+
</example>
28+
</examples>

0 commit comments

Comments
 (0)