Interface IAutoScalingGroup
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IGrantable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAutoScalingGroup.Jsii$Default
- All Known Implementing Classes:
AutoScalingGroup
,IAutoScalingGroup.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.421Z")
@Stability(Stable)
public interface IAutoScalingGroup
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable
An AutoScalingGroup.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIAutoScalingGroup
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddLifecycleHook
(String id, BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.void
addUserData
(@NotNull String... commands) Add command to the startup script of fleet instances.Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.addWarmPool
(WarmPoolOptions options) Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.The arn of the AutoScalingGroup.The name of the AutoScalingGroup.The operating system family that the instances in this auto-scaling group belong to.Scale out or in to achieve a target CPU utilization.Scale out or in to achieve a target network ingress rate.scaleOnMetric
(String id, BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.Scale out or in to achieve a target network egress rate.scaleOnSchedule
(String id, BasicScheduledActionProps props) Scale out or in based on time.scaleToTrackMetric
(String id, MetricTargetTrackingProps props) Scale out or in in order to keep a metric around a target value.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipal
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingGroupArn
The arn of the AutoScalingGroup. -
getAutoScalingGroupName
The name of the AutoScalingGroup. -
getOsType
The operating system family that the instances in this auto-scaling group belong to.Is 'UNKNOWN' for imported ASGs.
-
addLifecycleHook
@Stability(Stable) @NotNull LifecycleHook addLifecycleHook(@NotNull String id, @NotNull BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
addUserData
Add command to the startup script of fleet instances.The command must be in the scripting language supported by the fleet's OS (i.e. Linux/Windows). Does nothing for imported ASGs.
- Parameters:
commands
- This parameter is required.
-
addWarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.- Parameters:
options
-
-
addWarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group. -
scaleOnCpuUtilization
@Stability(Stable) @NotNull TargetTrackingScalingPolicy scaleOnCpuUtilization(@NotNull String id, @NotNull CpuUtilizationScalingProps props) Scale out or in to achieve a target CPU utilization.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
scaleOnIncomingBytes
@Stability(Stable) @NotNull TargetTrackingScalingPolicy scaleOnIncomingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network ingress rate.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
scaleOnMetric
@Stability(Stable) @NotNull StepScalingPolicy scaleOnMetric(@NotNull String id, @NotNull BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
scaleOnOutgoingBytes
@Stability(Stable) @NotNull TargetTrackingScalingPolicy scaleOnOutgoingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network egress rate.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
scaleOnSchedule
@Stability(Stable) @NotNull ScheduledAction scaleOnSchedule(@NotNull String id, @NotNull BasicScheduledActionProps props) Scale out or in based on time.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
scaleToTrackMetric
@Stability(Stable) @NotNull TargetTrackingScalingPolicy scaleToTrackMetric(@NotNull String id, @NotNull MetricTargetTrackingProps props) Scale out or in in order to keep a metric around a target value.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-