-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EventBridgePutEventsEntry.go
64 lines (61 loc) · 2.21 KB
/
awsstepfunctionstasks_EventBridgePutEventsEntry.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
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/awsevents"
"github.com/aws/aws-cdk-go/awscdk/awsstepfunctions"
)
// An entry to be sent to EventBridge.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var eventBus eventBus
// var taskInput taskInput
//
// eventBridgePutEventsEntry := &eventBridgePutEventsEntry{
// detail: taskInput,
// detailType: jsii.String("detailType"),
// source: jsii.String("source"),
//
// // the properties below are optional
// eventBus: eventBus,
// }
//
// See: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html
//
// Experimental.
type EventBridgePutEventsEntry struct {
// The event body.
//
// Can either be provided as an object or as a JSON-serialized string.
//
// Example:
// sfn.taskInput.fromText(jsii.String("{\"instance-id\": \"i-1234567890abcdef0\", \"state\": \"terminated\"}"))
// sfn.taskInput.fromObject(map[string]interface{}{
// "Message": jsii.String("Hello from Step Functions"),
// })
// sfn.taskInput.fromJsonPathAt(jsii.String("$.EventDetail"))
//
// Experimental.
Detail awsstepfunctions.TaskInput `field:"required" json:"detail" yaml:"detail"`
// Used along with the source field to help identify the fields and values expected in the detail field.
//
// For example, events by CloudTrail have detail type "AWS API Call via CloudTrail".
// See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html
//
// Experimental.
DetailType *string `field:"required" json:"detailType" yaml:"detailType"`
// The service or application that caused this event to be generated.
//
// Example value: `com.example.service`
// See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html
//
// Experimental.
Source *string `field:"required" json:"source" yaml:"source"`
// The event bus the entry will be sent to.
// Experimental.
EventBus awsevents.IEventBus `field:"optional" json:"eventBus" yaml:"eventBus"`
}