Class SqsSendMessage
(experimental) Use an Amazon SQS Queue as a target for AWS EventBridge Scheduler.
Implements
Namespace: Amazon.CDK.AWS.Scheduler.Targets.Alpha
Assembly: Amazon.CDK.AWS.Scheduler.Targets.Alpha.dll
Syntax (csharp)
public class SqsSendMessage : ScheduleTargetBase, IScheduleTarget
Syntax (vb)
Public Class SqsSendMessage
Inherits ScheduleTargetBase
Implements IScheduleTarget
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var payload = "test";
var messageGroupId = "id";
var queue = new Queue(this, "MyQueue", new QueueProps {
Fifo = true,
ContentBasedDeduplication = true
});
var target = new SqsSendMessage(queue, new SqsSendMessageProps {
Input = ScheduleTargetInput.FromText(payload),
MessageGroupId = messageGroupId
});
new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Minutes(1)),
Target = target
});
Synopsis
Constructors
Sqs |
|
Sqs |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Sqs |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Add |
|
Bind |
Constructors
SqsSendMessage(IQueue, ISqsSendMessageProps)
public SqsSendMessage(IQueue queue, ISqsSendMessageProps props = null)
Parameters
- queue IQueue
- props ISqs
Send Message Props
Remarks
Stability: Experimental
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. By Ref Value 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. Deputy Base. Deputy Props The deputy props
Methods
AddTargetActionToRole(IRole)
protected override void AddTargetActionToRole(IRole role)
Parameters
- role IRole
Overrides
Remarks
Stability: Experimental
BindBaseTargetConfig(ISchedule)
protected override IScheduleTargetConfig BindBaseTargetConfig(ISchedule schedule)
Parameters
- schedule ISchedule
Returns
Overrides
Remarks
Stability: Experimental