-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_SendToQueue.go
96 lines (82 loc) · 2.65 KB
/
awsstepfunctionstasks_SendToQueue.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package awsstepfunctionstasks
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/awssqs"
"github.com/aws/aws-cdk-go/awscdk/awsstepfunctions"
"github.com/aws/aws-cdk-go/awscdk/awsstepfunctionstasks/internal"
)
// A StepFunctions Task to send messages to SQS queue.
//
// A Function can be used directly as a Resource, but this class mirrors
// integration with other AWS services via a specific class instance.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var duration duration
// var queue queue
// var taskInput taskInput
//
// sendToQueue := awscdk.Aws_stepfunctions_tasks.NewSendToQueue(queue, &sendToQueueProps{
// messageBody: taskInput,
//
// // the properties below are optional
// delay: duration,
// integrationPattern: awscdk.Aws_stepfunctions.serviceIntegrationPattern_FIRE_AND_FORGET,
// messageDeduplicationId: jsii.String("messageDeduplicationId"),
// messageGroupId: jsii.String("messageGroupId"),
// })
//
// Deprecated: Use `SqsSendMessage`.
type SendToQueue interface {
awsstepfunctions.IStepFunctionsTask
// Called when the task object is used in a workflow.
// Deprecated: Use `SqsSendMessage`.
Bind(_task awsstepfunctions.Task) *awsstepfunctions.StepFunctionsTaskConfig
}
// The jsii proxy struct for SendToQueue
type jsiiProxy_SendToQueue struct {
internal.Type__awsstepfunctionsIStepFunctionsTask
}
// Deprecated: Use `SqsSendMessage`.
func NewSendToQueue(queue awssqs.IQueue, props *SendToQueueProps) SendToQueue {
_init_.Initialize()
if err := validateNewSendToQueueParameters(queue, props); err != nil {
panic(err)
}
j := jsiiProxy_SendToQueue{}
_jsii_.Create(
"monocdk.aws_stepfunctions_tasks.SendToQueue",
[]interface{}{queue, props},
&j,
)
return &j
}
// Deprecated: Use `SqsSendMessage`.
func NewSendToQueue_Override(s SendToQueue, queue awssqs.IQueue, props *SendToQueueProps) {
_init_.Initialize()
_jsii_.Create(
"monocdk.aws_stepfunctions_tasks.SendToQueue",
[]interface{}{queue, props},
s,
)
}
func (s *jsiiProxy_SendToQueue) Bind(_task awsstepfunctions.Task) *awsstepfunctions.StepFunctionsTaskConfig {
if err := s.validateBindParameters(_task); err != nil {
panic(err)
}
var returns *awsstepfunctions.StepFunctionsTaskConfig
_jsii_.Invoke(
s,
"bind",
[]interface{}{_task},
&returns,
)
return returns
}