Class QueueHook
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.hooktargets.QueueHook
- All Implemented Interfaces:
ILifecycleHookTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.210Z")
@Stability(Stable)
public class QueueHook
extends software.amazon.jsii.JsiiObject
implements ILifecycleHookTarget
Use an SQS queue as a hook target.
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.sqs.*; Queue queue; QueueHook queueHook = new QueueHook(queue);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.autoscaling.ILifecycleHookTarget
ILifecycleHookTarget.Jsii$Default, ILifecycleHookTarget.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(software.constructs.Construct _scope, BindHookTargetOptions options) If anIRoleis found inoptions, grant it access to send messages.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
QueueHook
protected QueueHook(software.amazon.jsii.JsiiObjectRef objRef) -
QueueHook
protected QueueHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
QueueHook
- Parameters:
queue- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public LifecycleHookTargetConfig bind(@NotNull software.constructs.Construct _scope, @NotNull BindHookTargetOptions options) If anIRoleis found inoptions, grant it access to send messages.Otherwise, create a new
IRoleand grant it access to send messages.- Specified by:
bindin interfaceILifecycleHookTarget- Parameters:
_scope- This parameter is required.options- This parameter is required.- Returns:
- the
IRolewith access to send messages and the ARN of the queue it has access to send messages to.
-