Interface ILifecycleHook

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ILifecycleHook.Jsii$Default
All Known Implementing Classes:
ILifecycleHook.Jsii$Proxy, LifecycleHook

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:29.333Z") @Stability(Stable) public interface ILifecycleHook extends software.amazon.jsii.JsiiSerializable, IResource
A basic lifecycle hook object.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for ILifecycleHook.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    The role for the lifecycle hook to execute.

    Methods inherited from interface software.constructs.IConstruct

    getNode

    Methods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware

    getEnv

    Methods inherited from interface software.amazon.awscdk.IResource

    applyRemovalPolicy, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getRole

      @Stability(Stable) @NotNull IRole getRole()
      The role for the lifecycle hook to execute.

      Default: - A default role is created if 'notificationTarget' is specified. Otherwise, no role is created.