Class CfnWarmPoolPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::AutoScaling::WarmPool resource creates a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group.
Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity.
When you create a warm pool, you can define a minimum size. When your Auto Scaling group scales out and the size of the warm pool shrinks, Amazon EC2 Auto Scaling launches new instances into the warm pool to maintain its minimum size.
For more information, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .
CloudFormation supports the
UpdatePolicyattribute for Auto Scaling groups. During an update, ifUpdatePolicyis set toAutoScalingRollingUpdate, CloudFormation replacesInServiceinstances only. Instances in the warm pool are not replaced. The difference in which instances are replaced can potentially result in different instance configurations after the stack update completes. IfUpdatePolicyis set toAutoScalingReplacingUpdate, you do not encounter this issue because CloudFormation replaces both the Auto Scaling group and the warm pool.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.autoscaling.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnWarmPoolPropsMixin cfnWarmPoolPropsMixin = CfnWarmPoolPropsMixin.Builder.create(CfnWarmPoolMixinProps.builder()
.autoScalingGroupName("autoScalingGroupName")
.instanceReusePolicy(InstanceReusePolicyProperty.builder()
.reuseOnScaleIn(false)
.build())
.maxGroupPreparedCapacity(123)
.minSize(123)
.poolState("poolState")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWarmPoolPropsMixin.static interfaceA structure that specifies an instance reuse policy for theInstanceReusePolicyproperty of the AWS::AutoScaling::WarmPool resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::AutoScaling::WarmPool.CfnWarmPoolPropsMixin(CfnWarmPoolMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AutoScaling::WarmPool.protectedCfnWarmPoolPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWarmPoolPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnWarmPoolMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.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
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnWarmPoolPropsMixin
protected CfnWarmPoolPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWarmPoolPropsMixin
protected CfnWarmPoolPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWarmPoolPropsMixin
@Stability(Stable) public CfnWarmPoolPropsMixin(@NotNull CfnWarmPoolMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AutoScaling::WarmPool.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnWarmPoolPropsMixin
Create a mixin to apply properties toAWS::AutoScaling::WarmPool.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-