@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.827Z") @Stability(value=Stable) public class FunctionHook extends software.amazon.jsii.JsiiObject implements ILifecycleHookTarget
Internally creates a Topic to make the connection.
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.hooktargets.*; import software.amazon.awscdk.services.kms.*; import software.amazon.awscdk.services.lambda.*; Function function_; Key key; FunctionHook functionHook = new FunctionHook(function_, key);
software.amazon.jsii.JsiiObject.InitializationModeILifecycleHookTarget.Jsii$Default, ILifecycleHookTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
FunctionHook(IFunction fn) |
|
FunctionHook(IFunction fn,
IKey encryptionKey) |
protected |
FunctionHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FunctionHook(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
LifecycleHookTargetConfig |
bind(software.constructs.Construct _scope,
BindHookTargetOptions options)
If the `IRole` does not exist in `options`, will create an `IRole` and an SNS Topic and attach both to the lifecycle hook.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected FunctionHook(software.amazon.jsii.JsiiObjectRef objRef)
protected FunctionHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public FunctionHook(@NotNull
IFunction fn,
@Nullable
IKey encryptionKey)
fn - Function to invoke in response to a lifecycle event. This parameter is required.encryptionKey - If provided, this key is used to encrypt the contents of the SNS topic.@Stability(value=Stable)
public FunctionHook(@NotNull
IFunction fn)
fn - Function to invoke in response to a lifecycle event. This parameter is required.@Stability(value=Stable) @NotNull public LifecycleHookTargetConfig bind(@NotNull software.constructs.Construct _scope, @NotNull BindHookTargetOptions options)
If the IRole does exist in options, will only create an SNS Topic and attach it to the lifecycle hook.
bind in interface ILifecycleHookTarget_scope - This parameter is required.options - This parameter is required.Copyright © 2022. All rights reserved.