Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import aws from "../../aws.app.mjs";
import common from "../../common/common-eventbridge.mjs";
import { toSingleLineString } from "../../common/utils.mjs";

export default {
...common,
key: "aws-eventbridge-send-event",
name: "EventBridge - Send event to Event Bus",
description: toSingleLineString(`
Sends an event to an EventBridge event bus.
[See docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-eventbridge/classes/puteventscommand.html)
`),
version: "0.4.1",
name: "EventBridge - Send Event to Event Bus",
description: "Sends an event to an EventBridge event bus. [See documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eventbridge/command/PutEventsCommand/)",
version: "0.4.2",
type: "action",
props: {
aws: common.props.aws,
Expand All @@ -23,13 +19,19 @@ export default {
],
optional: false,
},
detailType: {
type: "string",
label: "Detail Type",
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.",
optional: true,
},
},
async run({ $ }) {
const params = {
Entries: [
{
Detail: JSON.stringify(this.eventData),
DetailType: Object.keys(this.eventData).join(" "),
DetailType: this.detailType || Object.keys(this.eventData).join(" "),
EventBusName: this.eventBusName,
Source: "pipedream",
},
Expand Down
4 changes: 2 additions & 2 deletions components/aws/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/aws",
"version": "0.7.8",
"version": "0.7.9",
"description": "Pipedream Aws Components",
"main": "aws.app.mjs",
"keywords": [
Expand Down Expand Up @@ -29,7 +29,7 @@
"@aws-sdk/s3-request-presigner": "^3.609.0",
"@aws-sdk/signature-v4-crt": "^3.731.0",
"@pipedream/helper_functions": "^0.3.6",
"@pipedream/platform": "^1.6.3",
"@pipedream/platform": "^3.0.3",
"adm-zip": "^0.5.10",
"dedent": "^1.5.1",
"mailparser": "^3.6.6",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading