Class IAutoScalingGroup.Jsii$Proxy
- All Implemented Interfaces:
IResource,IResource.Jsii$Default,IAutoScalingGroup,IAutoScalingGroup.Jsii$Default,IGrantable,IGrantable.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IAutoScalingGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.autoscaling.IAutoScalingGroup
IAutoScalingGroup.Jsii$Default, IAutoScalingGroup.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.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.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.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LifecycleHookaddLifecycleHook(String id, BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.final voidaddUserData(String... commands) Add command to the startup script of fleet instances.final WarmPoolAdd a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.final WarmPooladdWarmPool(WarmPoolOptions options) Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final StringThe arn of the AutoScalingGroup.final StringThe name of the AutoScalingGroup.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final IPrincipalThe principal to grant permissions to.final software.constructs.NodegetNode()The tree node.final OperatingSystemTypeThe operating system family that the instances in this auto-scaling group belong to.final StackgetStack()The stack in which this resource is defined.Scale out or in to achieve a target CPU utilization.Scale out or in to achieve a target network ingress rate.final StepScalingPolicyscaleOnMetric(String id, BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.Scale out or in to achieve a target network egress rate.final ScheduledActionscaleOnSchedule(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 class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfaceIAutoScalingGroup.Jsii$Default- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.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 interfaceIAutoScalingGroup.Jsii$Default- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIAutoScalingGroup.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIAutoScalingGroup.Jsii$Default- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin interfaceIGrantable.Jsii$Default
-
getAutoScalingGroupArn
The arn of the AutoScalingGroup.- Specified by:
getAutoScalingGroupArnin interfaceIAutoScalingGroup- Specified by:
getAutoScalingGroupArnin interfaceIAutoScalingGroup.Jsii$Default
-
getAutoScalingGroupName
The name of the AutoScalingGroup.- Specified by:
getAutoScalingGroupNamein interfaceIAutoScalingGroup- Specified by:
getAutoScalingGroupNamein interfaceIAutoScalingGroup.Jsii$Default
-
getOsType
The operating system family that the instances in this auto-scaling group belong to.Is 'UNKNOWN' for imported ASGs.
- Specified by:
getOsTypein interfaceIAutoScalingGroup- Specified by:
getOsTypein interfaceIAutoScalingGroup.Jsii$Default
-
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 interfaceIAutoScalingGroup.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addLifecycleHook
@Stability(Stable) @NotNull public final 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- Specified by:
addLifecycleHookin interfaceIAutoScalingGroup.Jsii$Default- 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- Specified by:
addUserDatain interfaceIAutoScalingGroup.Jsii$Default- 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- Specified by:
addWarmPoolin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
options-
-
addWarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.- Specified by:
addWarmPoolin interfaceIAutoScalingGroup
-
scaleOnCpuUtilization
@Stability(Stable) @NotNull public final TargetTrackingScalingPolicy scaleOnCpuUtilization(@NotNull String id, @NotNull CpuUtilizationScalingProps props) Scale out or in to achieve a target CPU utilization.- Specified by:
scaleOnCpuUtilizationin interfaceIAutoScalingGroup- Specified by:
scaleOnCpuUtilizationin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnIncomingBytes
@Stability(Stable) @NotNull public final TargetTrackingScalingPolicy scaleOnIncomingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network ingress rate.- Specified by:
scaleOnIncomingBytesin interfaceIAutoScalingGroup- Specified by:
scaleOnIncomingBytesin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnMetric
@Stability(Stable) @NotNull public final StepScalingPolicy scaleOnMetric(@NotNull String id, @NotNull BasicStepScalingPolicyProps props) Scale out or in, in response to a metric.- Specified by:
scaleOnMetricin interfaceIAutoScalingGroup- Specified by:
scaleOnMetricin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnOutgoingBytes
@Stability(Stable) @NotNull public final TargetTrackingScalingPolicy scaleOnOutgoingBytes(@NotNull String id, @NotNull NetworkUtilizationScalingProps props) Scale out or in to achieve a target network egress rate.- Specified by:
scaleOnOutgoingBytesin interfaceIAutoScalingGroup- Specified by:
scaleOnOutgoingBytesin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleOnSchedule
@Stability(Stable) @NotNull public final ScheduledAction scaleOnSchedule(@NotNull String id, @NotNull BasicScheduledActionProps props) Scale out or in based on time.- Specified by:
scaleOnSchedulein interfaceIAutoScalingGroup- Specified by:
scaleOnSchedulein interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
scaleToTrackMetric
@Stability(Stable) @NotNull public final 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- Specified by:
scaleToTrackMetricin interfaceIAutoScalingGroup.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-