-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_StartExecution.go
89 lines (75 loc) · 2.54 KB
/
awsstepfunctionstasks_StartExecution.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
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/awsstepfunctions"
"github.com/aws/aws-cdk-go/awscdk/awsstepfunctionstasks/internal"
)
// A Step Functions Task to call StartExecution on another state machine.
//
// It supports three service integration patterns: FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var input interface{}
// var stateMachine stateMachine
//
// startExecution := awscdk.Aws_stepfunctions_tasks.NewStartExecution(stateMachine, &startExecutionProps{
// input: map[string]interface{}{
// "inputKey": input,
// },
// integrationPattern: awscdk.Aws_stepfunctions.serviceIntegrationPattern_FIRE_AND_FORGET,
// name: jsii.String("name"),
// })
//
// Deprecated: - use 'StepFunctionsStartExecution'.
type StartExecution interface {
awsstepfunctions.IStepFunctionsTask
// Called when the task object is used in a workflow.
// Deprecated: - use 'StepFunctionsStartExecution'.
Bind(task awsstepfunctions.Task) *awsstepfunctions.StepFunctionsTaskConfig
}
// The jsii proxy struct for StartExecution
type jsiiProxy_StartExecution struct {
internal.Type__awsstepfunctionsIStepFunctionsTask
}
// Deprecated: - use 'StepFunctionsStartExecution'.
func NewStartExecution(stateMachine awsstepfunctions.IStateMachine, props *StartExecutionProps) StartExecution {
_init_.Initialize()
if err := validateNewStartExecutionParameters(stateMachine, props); err != nil {
panic(err)
}
j := jsiiProxy_StartExecution{}
_jsii_.Create(
"monocdk.aws_stepfunctions_tasks.StartExecution",
[]interface{}{stateMachine, props},
&j,
)
return &j
}
// Deprecated: - use 'StepFunctionsStartExecution'.
func NewStartExecution_Override(s StartExecution, stateMachine awsstepfunctions.IStateMachine, props *StartExecutionProps) {
_init_.Initialize()
_jsii_.Create(
"monocdk.aws_stepfunctions_tasks.StartExecution",
[]interface{}{stateMachine, props},
s,
)
}
func (s *jsiiProxy_StartExecution) 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
}