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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.autoscaling.IAutoScalingGroup
IAutoScalingGroup.Jsii$Default, IAutoScalingGroup.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal LifecycleHook
addLifecycleHook
(String id, BasicLifecycleHookProps props) Send a message to either an SQS queue or SNS topic when instances launch or terminate.final void
addUserData
(@NotNull String... commands) Add command to the startup script of fleet instances.final WarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.final WarmPool
addWarmPool
(WarmPoolOptions options) Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final String
The arn of the AutoScalingGroup.final String
The name of the AutoScalingGroup.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final IPrincipal
The principal to grant permissions to.final software.constructs.Node
getNode()
The tree node.final OperatingSystemType
The operating system family that the instances in this auto-scaling group belong to.final Stack
getStack()
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 StepScalingPolicy
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.final ScheduledAction
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 class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getNode
in interfaceIAutoScalingGroup.Jsii$Default
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in 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:
getEnv
in interfaceIAutoScalingGroup.Jsii$Default
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIAutoScalingGroup.Jsii$Default
- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipal
in interfaceIAutoScalingGroup.Jsii$Default
- Specified by:
getGrantPrincipal
in interfaceIGrantable
- Specified by:
getGrantPrincipal
in interfaceIGrantable.Jsii$Default
-
getAutoScalingGroupArn
The arn of the AutoScalingGroup.- Specified by:
getAutoScalingGroupArn
in interfaceIAutoScalingGroup
- Specified by:
getAutoScalingGroupArn
in interfaceIAutoScalingGroup.Jsii$Default
-
getAutoScalingGroupName
The name of the AutoScalingGroup.- Specified by:
getAutoScalingGroupName
in interfaceIAutoScalingGroup
- Specified by:
getAutoScalingGroupName
in 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:
getOsType
in interfaceIAutoScalingGroup
- Specified by:
getOsType
in 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:
applyRemovalPolicy
in interfaceIAutoScalingGroup.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in 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:
addLifecycleHook
in interfaceIAutoScalingGroup
- Specified by:
addLifecycleHook
in 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:
addUserData
in interfaceIAutoScalingGroup
- Specified by:
addUserData
in 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:
addWarmPool
in interfaceIAutoScalingGroup
- Specified by:
addWarmPool
in interfaceIAutoScalingGroup.Jsii$Default
- Parameters:
options
-
-
addWarmPool
Add a pool of pre-initialized EC2 instances that sits alongside an Auto Scaling group.- Specified by:
addWarmPool
in 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:
scaleOnCpuUtilization
in interfaceIAutoScalingGroup
- Specified by:
scaleOnCpuUtilization
in 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:
scaleOnIncomingBytes
in interfaceIAutoScalingGroup
- Specified by:
scaleOnIncomingBytes
in 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:
scaleOnMetric
in interfaceIAutoScalingGroup
- Specified by:
scaleOnMetric
in 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:
scaleOnOutgoingBytes
in interfaceIAutoScalingGroup
- Specified by:
scaleOnOutgoingBytes
in 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:
scaleOnSchedule
in interfaceIAutoScalingGroup
- Specified by:
scaleOnSchedule
in 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:
scaleToTrackMetric
in interfaceIAutoScalingGroup
- Specified by:
scaleToTrackMetric
in interfaceIAutoScalingGroup.Jsii$Default
- Parameters:
id
- This parameter is required.props
- This parameter is required.
-