Update Scaling Plan
autoscalingplans_update_scaling_plan | R Documentation |
Updates the specified scaling plan¶
Description¶
Updates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
Usage¶
autoscalingplans_update_scaling_plan(ScalingPlanName,
ScalingPlanVersion, ApplicationSource, ScalingInstructions)
Arguments¶
ScalingPlanName
[required] The name of the scaling plan.
ScalingPlanVersion
[required] The version number of the scaling plan. The only valid value is
1
. Currently, you cannot have multiple scaling plan versions.ApplicationSource
A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
ScalingInstructions
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
Value¶
An empty list.
Request syntax¶
svc$update_scaling_plan(
ScalingPlanName = "string",
ScalingPlanVersion = 123,
ApplicationSource = list(
CloudFormationStackARN = "string",
TagFilters = list(
list(
Key = "string",
Values = list(
"string"
)
)
)
),
ScalingInstructions = list(
list(
ServiceNamespace = "autoscaling"|"ecs"|"ec2"|"rds"|"dynamodb",
ResourceId = "string",
ScalableDimension = "autoscaling:autoScalingGroup:DesiredCapacity"|"ecs:service:DesiredCount"|"ec2:spot-fleet-request:TargetCapacity"|"rds:cluster:ReadReplicaCount"|"dynamodb:table:ReadCapacityUnits"|"dynamodb:table:WriteCapacityUnits"|"dynamodb:index:ReadCapacityUnits"|"dynamodb:index:WriteCapacityUnits",
MinCapacity = 123,
MaxCapacity = 123,
TargetTrackingConfigurations = list(
list(
PredefinedScalingMetricSpecification = list(
PredefinedScalingMetricType = "ASGAverageCPUUtilization"|"ASGAverageNetworkIn"|"ASGAverageNetworkOut"|"DynamoDBReadCapacityUtilization"|"DynamoDBWriteCapacityUtilization"|"ECSServiceAverageCPUUtilization"|"ECSServiceAverageMemoryUtilization"|"ALBRequestCountPerTarget"|"RDSReaderAverageCPUUtilization"|"RDSReaderAverageDatabaseConnections"|"EC2SpotFleetRequestAverageCPUUtilization"|"EC2SpotFleetRequestAverageNetworkIn"|"EC2SpotFleetRequestAverageNetworkOut",
ResourceLabel = "string"
),
CustomizedScalingMetricSpecification = list(
MetricName = "string",
Namespace = "string",
Dimensions = list(
list(
Name = "string",
Value = "string"
)
),
Statistic = "Average"|"Minimum"|"Maximum"|"SampleCount"|"Sum",
Unit = "string"
),
TargetValue = 123.0,
DisableScaleIn = TRUE|FALSE,
ScaleOutCooldown = 123,
ScaleInCooldown = 123,
EstimatedInstanceWarmup = 123
)
),
PredefinedLoadMetricSpecification = list(
PredefinedLoadMetricType = "ASGTotalCPUUtilization"|"ASGTotalNetworkIn"|"ASGTotalNetworkOut"|"ALBTargetGroupRequestCount",
ResourceLabel = "string"
),
CustomizedLoadMetricSpecification = list(
MetricName = "string",
Namespace = "string",
Dimensions = list(
list(
Name = "string",
Value = "string"
)
),
Statistic = "Average"|"Minimum"|"Maximum"|"SampleCount"|"Sum",
Unit = "string"
),
ScheduledActionBufferTime = 123,
PredictiveScalingMaxCapacityBehavior = "SetForecastCapacityToMaxCapacity"|"SetMaxCapacityToForecastCapacity"|"SetMaxCapacityAboveForecastCapacity",
PredictiveScalingMaxCapacityBuffer = 123,
PredictiveScalingMode = "ForecastAndScale"|"ForecastOnly",
ScalingPolicyUpdateBehavior = "KeepExternalPolicies"|"ReplaceExternalPolicies",
DisableDynamicScaling = TRUE|FALSE
)
)
)