Interface BindHookTargetOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
BindHookTargetOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.195Z") @Stability(Stable) public interface BindHookTargetOptions extends software.amazon.jsii.JsiiSerializable
Options needed to bind a target to a lifecycle hook.

[disable-awslint:ref-via-interface] The lifecycle hook to attach to and an IRole to use

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.autoscaling.*;
 import software.amazon.awscdk.services.iam.*;
 LifecycleHook lifecycleHook;
 Role role;
 BindHookTargetOptions bindHookTargetOptions = BindHookTargetOptions.builder()
         .lifecycleHook(lifecycleHook)
         // the properties below are optional
         .role(role)
         .build();
 
  • Method Details

    • getLifecycleHook

      @Stability(Stable) @NotNull LifecycleHook getLifecycleHook()
      The lifecycle hook to attach to.

      [disable-awslint:ref-via-interface]

    • getRole

      @Stability(Stable) @Nullable default IRole getRole()
      The role to use when attaching to the lifecycle hook.

      [disable-awslint:ref-via-interface]

      Default: : a role is not created unless the target arn is specified

    • builder

      @Stability(Stable) static BindHookTargetOptions.Builder builder()
      Returns:
      a BindHookTargetOptions.Builder of BindHookTargetOptions