Class IotEventsPutMessageAction
(experimental) The action to put the message from an MQTT message to the IoT Events input.
Inheritance
System.Object
IotEventsPutMessageAction
Implements
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public class IotEventsPutMessageAction : DeputyBase, IAction
Syntax (vb)
Public Class IotEventsPutMessageAction
Inherits DeputyBase
Implements IAction
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IoTEvents.Alpha;
using Amazon.CDK.AWS.IAM;
IRole role;
var input = new Input(this, "MyInput", new InputProps {
AttributeJsonPaths = new [] { "payload.temperature", "payload.transactionId" }
});
var topicRule = new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
Actions = new [] {
new IotEventsPutMessageAction(input, new IotEventsPutMessageActionProps {
BatchMode = true, // optional property, default is 'false'
MessageId = "${payload.transactionId}", // optional property, default is a new UUID
Role = role
}) }
});
Synopsis
Constructors
IotEventsPutMessageAction(IInput, IIotEventsPutMessageActionProps) | |
IotEventsPutMessageAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IotEventsPutMessageAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Constructors
IotEventsPutMessageAction(IInput, IIotEventsPutMessageActionProps)
public IotEventsPutMessageAction(IInput input, IIotEventsPutMessageActionProps props = null)
Parameters
- input IInput
The IoT Events input to put messages.
- props IIotEventsPutMessageActionProps
Optional properties to not use default.
Remarks
Stability: Experimental
IotEventsPutMessageAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IotEventsPutMessageAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IotEventsPutMessageAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IotEventsPutMessageAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props