@backstage/plugin-events-backend-module-aws-sqs 0.4.23-next.0 → 0.4.24-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/config.schema.json +217 -0
- package/package.json +8 -8
- package/config.d.ts +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-events-backend-module-aws-sqs
|
|
2
2
|
|
|
3
|
+
## 0.4.24-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
9
|
+
- @backstage/plugin-events-node@0.4.24-next.0
|
|
10
|
+
|
|
11
|
+
## 0.4.23
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/backend-plugin-api@1.9.2
|
|
17
|
+
- @backstage/plugin-events-node@0.4.23
|
|
18
|
+
|
|
3
19
|
## 0.4.23-next.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"events": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"modules": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"awsSqs": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"awsSqsConsumingEventPublisher": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"topics": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"queue": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"region": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "(Required) The region of the AWS SQS queue."
|
|
28
|
+
},
|
|
29
|
+
"url": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "(Required) The absolute URL for the AWS SQS queue to be used."
|
|
32
|
+
},
|
|
33
|
+
"visibilityTimeout": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"years": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"months": {
|
|
42
|
+
"type": "number"
|
|
43
|
+
},
|
|
44
|
+
"weeks": {
|
|
45
|
+
"type": "number"
|
|
46
|
+
},
|
|
47
|
+
"days": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
"hours": {
|
|
51
|
+
"type": "number"
|
|
52
|
+
},
|
|
53
|
+
"minutes": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"seconds": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"milliseconds": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"description": "Human friendly durations object."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"description": "(Optional) Visibility timeout for messages in flight."
|
|
70
|
+
},
|
|
71
|
+
"waitTime": {
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"years": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
},
|
|
79
|
+
"months": {
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
"weeks": {
|
|
83
|
+
"type": "number"
|
|
84
|
+
},
|
|
85
|
+
"days": {
|
|
86
|
+
"type": "number"
|
|
87
|
+
},
|
|
88
|
+
"hours": {
|
|
89
|
+
"type": "number"
|
|
90
|
+
},
|
|
91
|
+
"minutes": {
|
|
92
|
+
"type": "number"
|
|
93
|
+
},
|
|
94
|
+
"seconds": {
|
|
95
|
+
"type": "number"
|
|
96
|
+
},
|
|
97
|
+
"milliseconds": {
|
|
98
|
+
"type": "number"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"description": "Human friendly durations object."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"description": "(Optional) Wait time when polling for available messages. Default: 20 seconds."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"region",
|
|
112
|
+
"url",
|
|
113
|
+
"visibilityTimeout",
|
|
114
|
+
"waitTime"
|
|
115
|
+
],
|
|
116
|
+
"description": "(Required) Queue-related configuration."
|
|
117
|
+
},
|
|
118
|
+
"timeout": {
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"years": {
|
|
124
|
+
"type": "number"
|
|
125
|
+
},
|
|
126
|
+
"months": {
|
|
127
|
+
"type": "number"
|
|
128
|
+
},
|
|
129
|
+
"weeks": {
|
|
130
|
+
"type": "number"
|
|
131
|
+
},
|
|
132
|
+
"days": {
|
|
133
|
+
"type": "number"
|
|
134
|
+
},
|
|
135
|
+
"hours": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"minutes": {
|
|
139
|
+
"type": "number"
|
|
140
|
+
},
|
|
141
|
+
"seconds": {
|
|
142
|
+
"type": "number"
|
|
143
|
+
},
|
|
144
|
+
"milliseconds": {
|
|
145
|
+
"type": "number"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"description": "Human friendly durations object."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "string"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"description": "(Optional) Timeout for the task execution which includes polling for messages and publishing the events to the event broker and the wait time after empty receives.\n\nMust be greater than `queue.waitTime` + `waitTimeAfterEmptyReceive`."
|
|
155
|
+
},
|
|
156
|
+
"waitTimeAfterEmptyReceive": {
|
|
157
|
+
"anyOf": [
|
|
158
|
+
{
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"years": {
|
|
162
|
+
"type": "number"
|
|
163
|
+
},
|
|
164
|
+
"months": {
|
|
165
|
+
"type": "number"
|
|
166
|
+
},
|
|
167
|
+
"weeks": {
|
|
168
|
+
"type": "number"
|
|
169
|
+
},
|
|
170
|
+
"days": {
|
|
171
|
+
"type": "number"
|
|
172
|
+
},
|
|
173
|
+
"hours": {
|
|
174
|
+
"type": "number"
|
|
175
|
+
},
|
|
176
|
+
"minutes": {
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"seconds": {
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
"milliseconds": {
|
|
183
|
+
"type": "number"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"description": "Human friendly durations object."
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"description": "(Optional) Wait time before polling again if no message was received. Default: 1 minute."
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": [
|
|
196
|
+
"queue",
|
|
197
|
+
"timeout",
|
|
198
|
+
"waitTimeAfterEmptyReceive"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"description": "Contains a record per topic for which an AWS SQS queue should be used as source of events."
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"required": [
|
|
205
|
+
"topics"
|
|
206
|
+
],
|
|
207
|
+
"description": "Configuration for AwsSqsConsumingEventPublisher."
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"description": "events-backend-module-aws-sqs plugin configuration."
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-events-backend-module-aws-sqs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.24-next.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin-module",
|
|
6
6
|
"pluginId": "events",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
|
-
"config.
|
|
51
|
+
"config.schema.json",
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"scripts": {
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@aws-sdk/client-sqs": "^3.350.0",
|
|
65
|
-
"@backstage/backend-plugin-api": "1.9.
|
|
65
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
66
66
|
"@backstage/config": "1.3.8",
|
|
67
|
-
"@backstage/plugin-events-node": "0.4.
|
|
67
|
+
"@backstage/plugin-events-node": "0.4.24-next.0",
|
|
68
68
|
"@backstage/types": "1.2.2",
|
|
69
69
|
"luxon": "^3.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@aws-sdk/types": "^3.347.0",
|
|
73
|
-
"@backstage/backend-test-utils": "1.11.
|
|
74
|
-
"@backstage/cli": "0.36.
|
|
75
|
-
"@backstage/plugin-events-backend-test-utils": "0.1.
|
|
73
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
74
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
75
|
+
"@backstage/plugin-events-backend-test-utils": "0.1.57-next.0",
|
|
76
76
|
"aws-sdk-client-mock": "^4.0.0"
|
|
77
77
|
},
|
|
78
|
-
"configSchema": "config.
|
|
78
|
+
"configSchema": "config.schema.json"
|
|
79
79
|
}
|
package/config.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2022 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { HumanDuration } from '@backstage/types';
|
|
18
|
-
|
|
19
|
-
export interface Config {
|
|
20
|
-
events?: {
|
|
21
|
-
modules?: {
|
|
22
|
-
/**
|
|
23
|
-
* events-backend-module-aws-sqs plugin configuration.
|
|
24
|
-
*/
|
|
25
|
-
awsSqs?: {
|
|
26
|
-
/**
|
|
27
|
-
* Configuration for AwsSqsConsumingEventPublisher.
|
|
28
|
-
*/
|
|
29
|
-
awsSqsConsumingEventPublisher?: {
|
|
30
|
-
/**
|
|
31
|
-
* Contains a record per topic for which an AWS SQS queue
|
|
32
|
-
* should be used as source of events.
|
|
33
|
-
*/
|
|
34
|
-
topics: {
|
|
35
|
-
[name: string]: {
|
|
36
|
-
/**
|
|
37
|
-
* (Required) Queue-related configuration.
|
|
38
|
-
*/
|
|
39
|
-
queue: {
|
|
40
|
-
/**
|
|
41
|
-
* (Required) The region of the AWS SQS queue.
|
|
42
|
-
*/
|
|
43
|
-
region: string;
|
|
44
|
-
/**
|
|
45
|
-
* (Required) The absolute URL for the AWS SQS queue to be used.
|
|
46
|
-
*/
|
|
47
|
-
url: string;
|
|
48
|
-
/**
|
|
49
|
-
* (Optional) Visibility timeout for messages in flight.
|
|
50
|
-
*/
|
|
51
|
-
visibilityTimeout: HumanDuration | string;
|
|
52
|
-
/**
|
|
53
|
-
* (Optional) Wait time when polling for available messages.
|
|
54
|
-
* Default: 20 seconds.
|
|
55
|
-
*/
|
|
56
|
-
waitTime: HumanDuration | string;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* (Optional) Timeout for the task execution which includes polling for messages
|
|
60
|
-
* and publishing the events to the event broker
|
|
61
|
-
* and the wait time after empty receives.
|
|
62
|
-
*
|
|
63
|
-
* Must be greater than `queue.waitTime` + `waitTimeAfterEmptyReceive`.
|
|
64
|
-
*/
|
|
65
|
-
timeout: HumanDuration | string;
|
|
66
|
-
/**
|
|
67
|
-
* (Optional) Wait time before polling again if no message was received.
|
|
68
|
-
* Default: 1 minute.
|
|
69
|
-
*/
|
|
70
|
-
waitTimeAfterEmptyReceive: HumanDuration | string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
}
|