Description Usage Arguments Value Request syntax
View source: R/autoscalingplans_operations.R
Creates a scaling plan.
1 2 | autoscalingplans_create_scaling_plan(ScalingPlanName, ApplicationSource,
ScalingInstructions)
|
ScalingPlanName |
[required] The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes. |
ApplicationSource |
[required] A CloudFormation stack or set of tags. You can create one scaling plan per application source. For more information, see ApplicationSource in the AWS Auto Scaling API Reference. |
ScalingInstructions |
[required] The scaling instructions. For more information, see ScalingInstruction in the AWS Auto Scaling API Reference. |
A list with the following syntax:
1 2 3 | list(
ScalingPlanVersion = 123
)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | svc$create_scaling_plan(
ScalingPlanName = "string",
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
)
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.