Interface IAutoScalingGroup.Jsii$Default
- All Superinterfaces:
IAutoScalingGroup,IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IGrantable,IGrantable.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IAutoScalingGroup.Jsii$Proxy
- Enclosing interface:
- IAutoScalingGroup
IAutoScalingGroup.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.autoscaling.IAutoScalingGroup
IAutoScalingGroup.Jsii$Default, IAutoScalingGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault LifecycleHookaddLifecycleHook(String id, BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.default voidaddUserData(@NotNull String... commands) Add command to the startup script of fleet instances.default WarmPooladdWarmPool(WarmPoolOptions options) Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default StringThe arn of the AutoScalingGroup.default StringThe name of the AutoScalingGroup.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default IPrincipalThe principal to grant permissions to.default ConstructNodegetNode()The construct tree node for this construct.default OperatingSystemTypeThe operating system family that the instances in this auto-scaling group belong to.default StackgetStack()The stack in which this resource is defined.default TargetTrackingScalingPolicyScale out or in to achieve a target CPU utilization.default TargetTrackingScalingPolicyScale out or in to achieve a target network ingress rate.default StepScalingPolicyscaleOnMetric(String id, BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.default TargetTrackingScalingPolicyScale out or in to achieve a target network egress rate.default ScheduledActionscaleOnSchedule(String id, BasicScheduledActionProps props) Scale out or in based on time.default TargetTrackingScalingPolicyscaleToTrackMetric(String id, MetricTargetTrackingProps props) Scale out or in in order to keep a metric around a target value.Methods inherited from interface software.amazon.awscdk.services.autoscaling.IAutoScalingGroup
addWarmPoolMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin interfaceIGrantable.Jsii$Default
-
getAutoScalingGroupArn
The arn of the AutoScalingGroup.- Specified by:
getAutoScalingGroupArnin interfaceIAutoScalingGroup
-
getAutoScalingGroupName
The name of the AutoScalingGroup.- Specified by:
getAutoScalingGroupNamein interfaceIAutoScalingGroup
-
getOsType
The operating system family that the instances in this auto-scaling group belong to.Is 'UNKNOWN' for imported ASGs.
- Specified by:
getOsTypein interfaceIAutoScalingGroup
-
applyRemovalPolicy
Apply the given removal policy to this resource.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).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addLifecycleHook
@Stability(Stable) @NotNull default LifecycleHook addLifecycleHook(@NotNull String id, @NotNull BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.- Specified by:
addLifecycleHookin interfaceIAutoScalingGroup- 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.
- Specified by:
addUserDatain interfaceIAutoScalingGroup- Parameters:
commands- This parameter is required.
-
addWarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.- Specified by:
addWarmPoolin interfaceIAutoScalingGroup- Parameters:
options-
-
scaleOnCpuUtilization
@Stability(Stable) @NotNull default TargetTrackingScalingPolicy scaleOnCpuUtilization(@NotNull String id, @NotNull CpuUtilizationScalingProps props) Scale out or in to achieve a target CPU utilization.- Specified by:
scaleOnCpuUtilizationin interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnIncomingBytes
@Stability(Stable) @NotNull default TargetTrackingScalingPolicy scaleOnIncomingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network ingress rate.- Specified by:
scaleOnIncomingBytesin interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnMetric
@Stability(Stable) @NotNull default StepScalingPolicy scaleOnMetric(@NotNull String id, @NotNull BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.- Specified by:
scaleOnMetricin interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnOutgoingBytes
@Stability(Stable) @NotNull default TargetTrackingScalingPolicy scaleOnOutgoingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network egress rate.- Specified by:
scaleOnOutgoingBytesin interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnSchedule
@Stability(Stable) @NotNull default ScheduledAction scaleOnSchedule(@NotNull String id, @NotNull BasicScheduledActionProps props) Scale out or in based on time.- Specified by:
scaleOnSchedulein interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleToTrackMetric
@Stability(Stable) @NotNull default TargetTrackingScalingPolicy scaleToTrackMetric(@NotNull String id, @NotNull MetricTargetTrackingProps props) Scale out or in in order to keep a metric around a target value.- Specified by:
scaleToTrackMetricin interfaceIAutoScalingGroup- Parameters:
id- This parameter is required.props- This parameter is required.
-