Class SqsSendMessage
A StepFunctions Task to send messages to SQS queue.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SqsSendMessage : TaskStateBase, IChainable, INextable
Syntax (vb)
Public Class SqsSendMessage
Inherits TaskStateBase
Implements IChainable, INextable
Remarks
ExampleMetadata: infused
Examples
var queue = new Queue(this, "Queue");
// Use a field from the execution data as message.
var task1 = new SqsSendMessage(this, "Send1", new SqsSendMessageProps {
Queue = queue,
MessageBody = TaskInput.FromJsonPathAt("$.message")
});
// Combine a field from the execution data with
// a literal object.
var task2 = new SqsSendMessage(this, "Send2", new SqsSendMessageProps {
Queue = queue,
MessageBody = TaskInput.FromObject(new Dictionary<string, object> {
{ "field1", "somedata" },
{ "field2", JsonPath.StringAt("$.field2") }
})
});
Synopsis
Constructors
SqsSendMessage(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SqsSendMessage(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
SqsSendMessage(Construct, String, ISqsSendMessageProps) |
Properties
TaskMetrics | |
TaskPolicies |
Constructors
SqsSendMessage(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SqsSendMessage(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SqsSendMessage(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SqsSendMessage(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
SqsSendMessage(Construct, String, ISqsSendMessageProps)
public SqsSendMessage(Construct scope, string id, ISqsSendMessageProps props)
Parameters
- scope Constructs.Construct
- id System.String
Descriptive identifier for this chainable.
- props ISqsSendMessageProps
Properties
TaskMetrics
protected override ITaskMetricsConfig TaskMetrics { get; }
Property Value
Overrides
TaskPolicies
protected override PolicyStatement[] TaskPolicies { get; }
Property Value