Skip to content

Commit 6350bae

Browse files
committed
add detailType prop
1 parent 521c513 commit 6350bae

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import aws from "../../aws.app.mjs";
22
import common from "../../common/common-eventbridge.mjs";
3-
import { toSingleLineString } from "../../common/utils.mjs";
43

54
export default {
65
...common,
76
key: "aws-eventbridge-send-event",
8-
name: "EventBridge - Send event to Event Bus",
9-
description: toSingleLineString(`
10-
Sends an event to an EventBridge event bus.
11-
[See docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-eventbridge/classes/puteventscommand.html)
12-
`),
13-
version: "0.4.1",
7+
name: "EventBridge - Send Event to Event Bus",
8+
description: "Sends an event to an EventBridge event bus. [See documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eventbridge/command/PutEventsCommand/)",
9+
version: "0.4.2",
1410
type: "action",
1511
props: {
1612
aws: common.props.aws,
@@ -23,13 +19,19 @@ export default {
2319
],
2420
optional: false,
2521
},
22+
detailType: {
23+
type: "string",
24+
label: "Detail Type",
25+
description: "Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail. Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that does not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.",
26+
optional: true,
27+
},
2628
},
2729
async run({ $ }) {
2830
const params = {
2931
Entries: [
3032
{
3133
Detail: JSON.stringify(this.eventData),
32-
DetailType: Object.keys(this.eventData).join(" "),
34+
DetailType: this.detailType || Object.keys(this.eventData).join(" "),
3335
EventBusName: this.eventBusName,
3436
Source: "pipedream",
3537
},

components/aws/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/aws",
3-
"version": "0.7.8",
3+
"version": "0.7.9",
44
"description": "Pipedream Aws Components",
55
"main": "aws.app.mjs",
66
"keywords": [
@@ -29,7 +29,7 @@
2929
"@aws-sdk/s3-request-presigner": "^3.609.0",
3030
"@aws-sdk/signature-v4-crt": "^3.731.0",
3131
"@pipedream/helper_functions": "^0.3.6",
32-
"@pipedream/platform": "^1.6.3",
32+
"@pipedream/platform": "^3.0.3",
3333
"adm-zip": "^0.5.10",
3434
"dedent": "^1.5.1",
3535
"mailparser": "^3.6.6",

0 commit comments

Comments
 (0)