Bases: BaseTargetTrackingProps
Options for enabling Lambda utilization tracking.
disable_scale_in (Optional
[bool
]) â Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy wonât remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Default: false
policy_name (Optional
[str
]) â A name for the scaling policy. Default: - Automatically generated name.
scale_in_cooldown (Optional
[Duration
]) â Period after a scale in activity completes before another scale in activity can start. Default: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
scale_out_cooldown (Optional
[Duration
]) â Period after a scale out activity completes before another scale out activity can start. Default: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
utilization_target (Union
[int
, float
]) â Utilization target for the attribute. For example, .5 indicates that 50 percent of allocated provisioned concurrency is in use.
infused
Example:
import aws_cdk.aws_autoscaling as autoscaling # fn: lambda.Function alias = fn.add_alias("prod") # Create AutoScaling target as = alias.add_auto_scaling(max_capacity=50) # Configure Target Tracking as.scale_on_utilization( utilization_target=0.5 ) # Configure Scheduled Scaling as.scale_on_schedule("ScaleUpInTheMorning", schedule=autoscaling.Schedule.cron(hour="8", minute="0"), min_capacity=20 )
Attributes
Indicates whether scale in by the target tracking policy is disabled.
If the value is true, scale in is disabled and the target tracking policy wonât remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.
false
A name for the scaling policy.
Automatically generated name.
Period after a scale in activity completes before another scale in activity can start.
Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
Period after a scale out activity completes before another scale out activity can start.
Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
Utilization target for the attribute.
For example, .5 indicates that 50 percent of allocated provisioned concurrency is in use.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4