Class CfnLifecycleHookPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::AutoScaling::LifecycleHook resource specifies lifecycle hooks for an Auto Scaling group.
These hooks let you create solutions that are aware of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances when the corresponding lifecycle event occurs. A lifecycle hook provides a specified amount of time (one hour by default) to wait for the action to complete before the instance transitions to the next state.
Use lifecycle hooks to prepare new instances for use or to delay them from being registered behind a load balancer before their configuration has been applied completely. You can also use lifecycle hooks to prepare running instances to be terminated by, for example, downloading logs or other data.
For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide .
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;
CfnLifecycleHookPropsMixin cfnLifecycleHookPropsMixin = CfnLifecycleHookPropsMixin.Builder.create(CfnLifecycleHookMixinProps.builder()
.autoScalingGroupName("autoScalingGroupName")
.defaultResult("defaultResult")
.heartbeatTimeout(123)
.lifecycleHookName("lifecycleHookName")
.lifecycleTransition("lifecycleTransition")
.notificationMetadata("notificationMetadata")
.notificationTargetArn("notificationTargetArn")
.roleArn("roleArn")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLifecycleHookPropsMixin.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::LifecycleHook.Create a mixin to apply properties toAWS::AutoScaling::LifecycleHook.protectedCfnLifecycleHookPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLifecycleHookPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnLifecycleHookMixinPropsgetProps()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
-
CfnLifecycleHookPropsMixin
protected CfnLifecycleHookPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLifecycleHookPropsMixin
protected CfnLifecycleHookPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLifecycleHookPropsMixin
@Stability(Stable) public CfnLifecycleHookPropsMixin(@NotNull CfnLifecycleHookMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AutoScaling::LifecycleHook.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnLifecycleHookPropsMixin
Create a mixin to apply properties toAWS::AutoScaling::LifecycleHook.- 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
-