Class SqsQueueAction
(experimental) The action to write the data from an MQTT message to an Amazon SQS queue.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoT.Actions
Assembly: Amazon.CDK.AWS.IoT.Actions.dll
Syntax (csharp)
public class SqsQueueAction : DeputyBase, IAction
Syntax (vb)
Public Class SqsQueueAction
Inherits DeputyBase
Implements IAction
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.SQS;
var queue = new Queue(this, "MyQueue");
var topicRule = new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"),
Actions = new [] {
new SqsQueueAction(queue, new SqsQueueActionProps {
UseBase64 = true
}) }
});
Synopsis
Constructors
SqsQueueAction(IQueue, ISqsQueueActionProps) | |
SqsQueueAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SqsQueueAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(ITopicRule) | (experimental) Returns the topic rule action specification. |
Constructors
SqsQueueAction(IQueue, ISqsQueueActionProps)
public SqsQueueAction(IQueue queue, ISqsQueueActionProps props = null)
Parameters
- queue IQueue
The Amazon SQS queue to which to write data.
- props ISqsQueueActionProps
Optional properties to not use default.
Remarks
Stability: Experimental
SqsQueueAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SqsQueueAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SqsQueueAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SqsQueueAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(ITopicRule)
(experimental) Returns the topic rule action specification.
public virtual IActionConfig Bind(ITopicRule rule)
Parameters
- rule ITopicRule
Returns
Remarks
Stability: Experimental