@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.189Z") @Stability(value=Experimental) 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,
ILifecycleHook lifecycleHook)
(experimental) Called when this object is used as the target of a 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=Experimental)
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=Experimental)
public FunctionHook(@NotNull
IFunction fn)
fn - Function to invoke in response to a lifecycle event. This parameter is required.@Stability(value=Experimental) @NotNull public LifecycleHookTargetConfig bind(@NotNull software.constructs.Construct scope, @NotNull ILifecycleHook lifecycleHook)
bind in interface ILifecycleHookTargetscope - This parameter is required.lifecycleHook - This parameter is required.Copyright © 2021. All rights reserved.