File tree Expand file tree Collapse file tree 3 files changed +71
-1
lines changed
packages/destination-actions/src/destinations/aws-kinesis Expand file tree Collapse file tree 3 files changed +71
-1
lines changed Original file line number Diff line number Diff line change 11import type { DestinationDefinition } from '@segment/actions-core'
22import type { Settings } from './generated-types'
33
4+ import send from './send'
5+
46const destination : DestinationDefinition < Settings > = {
57 name : 'Aws Kinesis' ,
68 slug : 'actions-aws-kinesis' ,
@@ -22,7 +24,9 @@ const destination: DestinationDefinition<Settings> = {
2224 // implement this function and should remove it completely.
2325 } ,
2426
25- actions : { }
27+ actions : {
28+ send
29+ }
2630}
2731
2832export default destination
Original file line number Diff line number Diff line change 1+ import type { ActionDefinition } from '@segment/actions-core'
2+ import type { Settings } from '../generated-types'
3+ import type { Payload } from './generated-types'
4+
5+ const action : ActionDefinition < Settings , Payload > = {
6+ title : 'Send' ,
7+ description : 'Send event to AWS Kinesis' ,
8+ defaultSubscription : 'type = "track" or type = "identify" or type = "page" or type = "screen" or type = "group"' ,
9+ fields : {
10+ payload : {
11+ label : 'Payload' ,
12+ description : 'The data to send to AWS Kinesis' ,
13+ type : 'object' ,
14+ required : true ,
15+ default : { '@path' : '$.' }
16+ } ,
17+ partitionKey : {
18+ label : 'Partition Key' ,
19+ description : 'The partition key to use for the record' ,
20+ type : 'string' ,
21+ required : true ,
22+ default : { '@path' : '$.messageId' }
23+ } ,
24+ streamName : {
25+ label : 'Stream Name' ,
26+ description : 'The name of the Kinesis stream to send records to' ,
27+ type : 'string' ,
28+ required : true ,
29+ default : { '@path' : '$.properties.streamName' }
30+ } ,
31+ awsRegion : {
32+ label : 'AWS Region' ,
33+ description : 'The AWS region where the Kinesis stream is located' ,
34+ type : 'string' ,
35+ required : true ,
36+ default : { '@path' : '$.properties.awsRegion' }
37+ }
38+ } ,
39+ perform : async ( _request , _data ) => {
40+ // Todo implement functionality
41+ }
42+ }
43+
44+ export default action
You can’t perform that action at this time.
0 commit comments