@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.828Z") @Stability(value=Stable) public class TopicHook extends software.amazon.jsii.JsiiObject implements ILifecycleHookTarget
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.sns.*; Topic topic; TopicHook topicHook = new TopicHook(topic);
software.amazon.jsii.JsiiObject.InitializationModeILifecycleHookTarget.Jsii$Default, ILifecycleHookTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
TopicHook(ITopic topic) |
protected |
TopicHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TopicHook(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
LifecycleHookTargetConfig |
bind(software.constructs.Construct _scope,
BindHookTargetOptions options)
If an `IRole` is found in `options`, grant it topic publishing permissions.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected TopicHook(software.amazon.jsii.JsiiObjectRef objRef)
protected TopicHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public TopicHook(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Stable) @NotNull public LifecycleHookTargetConfig bind(@NotNull software.constructs.Construct _scope, @NotNull BindHookTargetOptions options)
Otherwise, create a new IRole and grant it topic publishing permissions.
bind in interface ILifecycleHookTarget_scope - This parameter is required.options - This parameter is required.Copyright © 2022. All rights reserved.