Class SqsQueue
Use an SQS Queue as a target for Amazon EventBridge rules.
Inheritance
System.Object
SqsQueue
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SqsQueue : DeputyBase, IRuleTarget
Syntax (vb)
Public Class SqsQueue
Inherits DeputyBase
Implements IRuleTarget
Examples
// publish to an SQS queue every time code is committed
// to a CodeCommit repository
repository.OnCommit("onCommit", new OnCommitOptions { Target = new SqsQueue(queue) });
Synopsis
Constructors
SqsQueue(IQueue, ISqsQueueProps) | |
SqsQueue(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SqsQueue(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Queue |
Methods
Bind(IRule, String) | Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event. |
Constructors
SqsQueue(IQueue, ISqsQueueProps)
public SqsQueue(IQueue queue, ISqsQueueProps props = null)
Parameters
- queue IQueue
- props ISqsQueueProps
SqsQueue(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SqsQueue(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SqsQueue(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SqsQueue(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Queue
Methods
Bind(IRule, String)
Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.
public virtual IRuleTargetConfig Bind(IRule rule, string id = null)
Parameters
- rule IRule
- id System.String
Returns