@Internal public static interface IAutoScalingGroup.Jsii$Default extends IAutoScalingGroup, IResource.Jsii$Default, IGrantable.Jsii$Default
IAutoScalingGroup.IAutoScalingGroup.Jsii$Default, IAutoScalingGroup.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default LifecycleHook |
addLifecycleHook(String id,
BasicLifecycleHookProps props)
Send a message to either an SQS queue or SNS topic when instances launch or terminate.
|
default void |
addUserData(String... commands)
Add command to the startup script of fleet instances.
|
default WarmPool |
addWarmPool(WarmPoolOptions options)
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default String |
getAutoScalingGroupArn()
The arn of the AutoScalingGroup.
|
default String |
getAutoScalingGroupName()
The name of the AutoScalingGroup.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
default software.constructs.Node |
getNode()
The tree node.
|
default OperatingSystemType |
getOsType()
The operating system family that the instances in this auto-scaling group belong to.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default TargetTrackingScalingPolicy |
scaleOnCpuUtilization(String id,
CpuUtilizationScalingProps props)
Scale out or in to achieve a target CPU utilization.
|
default TargetTrackingScalingPolicy |
scaleOnIncomingBytes(String id,
NetworkUtilizationScalingProps props)
Scale out or in to achieve a target network ingress rate.
|
default StepScalingPolicy |
scaleOnMetric(String id,
BasicStepScalingPolicyProps props)
Scale out or in, in response to a metric.
|
default TargetTrackingScalingPolicy |
scaleOnOutgoingBytes(String id,
NetworkUtilizationScalingProps props)
Scale out or in to achieve a target network egress rate.
|
default ScheduledAction |
scaleOnSchedule(String id,
BasicScheduledActionProps props)
Scale out or in based on time.
|
default TargetTrackingScalingPolicy |
scaleToTrackMetric(String id,
MetricTargetTrackingProps props)
Scale out or in in order to keep a metric around a target value.
|
addWarmPool@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantablegetGrantPrincipal in interface IGrantable.Jsii$Default@Stability(value=Stable) @NotNull default String getAutoScalingGroupArn()
getAutoScalingGroupArn in interface IAutoScalingGroup@Stability(value=Stable) @NotNull default String getAutoScalingGroupName()
getAutoScalingGroupName in interface IAutoScalingGroup@Stability(value=Stable) @NotNull default OperatingSystemType getOsType()
Is 'UNKNOWN' for imported ASGs.
getOsType in interface IAutoScalingGroup@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull default LifecycleHook addLifecycleHook(@NotNull String id, @NotNull BasicLifecycleHookProps props)
addLifecycleHook in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable)
default void addUserData(@NotNull
String... commands)
The command must be in the scripting language supported by the fleet's OS (i.e. Linux/Windows). Does nothing for imported ASGs.
addUserData in interface IAutoScalingGroupcommands - This parameter is required.@Stability(value=Stable) @NotNull default WarmPool addWarmPool(@Nullable WarmPoolOptions options)
addWarmPool in interface IAutoScalingGroupoptions - @Stability(value=Stable) @NotNull default TargetTrackingScalingPolicy scaleOnCpuUtilization(@NotNull String id, @NotNull CpuUtilizationScalingProps props)
scaleOnCpuUtilization in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default TargetTrackingScalingPolicy scaleOnIncomingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props)
scaleOnIncomingBytes in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default StepScalingPolicy scaleOnMetric(@NotNull String id, @NotNull BasicStepScalingPolicyProps props)
scaleOnMetric in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default TargetTrackingScalingPolicy scaleOnOutgoingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props)
scaleOnOutgoingBytes in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default ScheduledAction scaleOnSchedule(@NotNull String id, @NotNull BasicScheduledActionProps props)
scaleOnSchedule in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull default TargetTrackingScalingPolicy scaleToTrackMetric(@NotNull String id, @NotNull MetricTargetTrackingProps props)
scaleToTrackMetric in interface IAutoScalingGroupid - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.