@aligent/aws-wrappers 0.5.9 → 0.5.10
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/README.md +43 -2
- package/cjs/index.cjs +148 -8
- package/cjs/package.json +2 -1
- package/cjs/src/eventbridge/eventbridge.d.ts.map +1 -1
- package/cjs/src/index.d.ts +1 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/ses/ses.d.ts +64 -0
- package/cjs/src/ses/ses.d.ts.map +1 -0
- package/cjs/src/util/chunk.d.ts +8 -0
- package/cjs/src/util/chunk.d.ts.map +1 -1
- package/docs/index/classes/APIGatewayService.md +6 -6
- package/docs/index/classes/APIGatewayV2Service.md +5 -5
- package/docs/index/classes/BatchOperationError.md +5 -5
- package/docs/index/classes/DynamoDBService.md +12 -12
- package/docs/index/classes/EventBridgeService.md +3 -3
- package/docs/index/classes/LambdaFunctionError.md +7 -7
- package/docs/index/classes/LambdaService.md +3 -3
- package/docs/index/classes/S3Service.md +15 -15
- package/docs/index/classes/SESService.md +123 -0
- package/docs/index/classes/SNSService.md +4 -4
- package/docs/index/classes/SQSService.md +7 -7
- package/docs/index/classes/SSMService.md +7 -7
- package/docs/index/classes/SchedulerService.md +11 -11
- package/docs/index/classes/SecretsManagerService.md +8 -8
- package/docs/index/classes/StepFunctionsService.md +6 -6
- package/docs/index/interfaces/BatchFailedEntry.md +4 -4
- package/docs/index/interfaces/EmptyBucketPageResult.md +2 -2
- package/docs/index/modules.md +1 -0
- package/docs/testing/testing/functions/createMockService.md +1 -1
- package/esm/index.mjs +148 -9
- package/esm/package.json +2 -1
- package/esm/src/eventbridge/eventbridge.d.ts.map +1 -1
- package/esm/src/index.d.ts +1 -0
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/ses/ses.d.ts +64 -0
- package/esm/src/ses/ses.d.ts.map +1 -0
- package/esm/src/util/chunk.d.ts +8 -0
- package/esm/src/util/chunk.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SSMService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:72](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:72](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L72)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS SSM Parameter Store client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default. All read operations enable
|
|
@@ -31,7 +31,7 @@ mutate within the application.
|
|
|
31
31
|
|
|
32
32
|
> **new SSMService**(`opts?`): `SSMService`
|
|
33
33
|
|
|
34
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:82](https://github.com/aligent/microservice-development-utilities/blob/
|
|
34
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:82](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L82)
|
|
35
35
|
|
|
36
36
|
#### Parameters
|
|
37
37
|
|
|
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
63
63
|
|
|
64
64
|
> **deleteParameter**(`name`): `Promise`\<`void`\>
|
|
65
65
|
|
|
66
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:194](https://github.com/aligent/microservice-development-utilities/blob/
|
|
66
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:194](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L194)
|
|
67
67
|
|
|
68
68
|
Delete an SSM parameter by name.
|
|
69
69
|
|
|
@@ -88,7 +88,7 @@ runtime cleanup only.
|
|
|
88
88
|
|
|
89
89
|
> **getParameter**(`name`): `Promise`\<`string` \| `undefined`\>
|
|
90
90
|
|
|
91
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:96](https://github.com/aligent/microservice-development-utilities/blob/
|
|
91
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:96](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L96)
|
|
92
92
|
|
|
93
93
|
Fetch a single SSM parameter's value.
|
|
94
94
|
|
|
@@ -121,7 +121,7 @@ When the parameter does not exist (the SDK's
|
|
|
121
121
|
|
|
122
122
|
> **getParameters**\<`K`\>(`aliases`, `opts?`): `Promise`\<`Record`\<`K`, `string` \| `undefined`\>\>
|
|
123
123
|
|
|
124
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:138](https://github.com/aligent/microservice-development-utilities/blob/
|
|
124
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:138](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L138)
|
|
125
125
|
|
|
126
126
|
Fetch multiple SSM parameters in a single request. Callers supply an
|
|
127
127
|
alias-to-path record, and the returned record is keyed by the same
|
|
@@ -190,7 +190,7 @@ parameter's value, or `undefined` when the parameter is missing (unless
|
|
|
190
190
|
|
|
191
191
|
> **getParametersByPath**(`path`, `opts?`): `Promise`\<`Parameter`[]\>
|
|
192
192
|
|
|
193
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:210](https://github.com/aligent/microservice-development-utilities/blob/
|
|
193
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:210](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L210)
|
|
194
194
|
|
|
195
195
|
Fetch all parameters under an SSM hierarchy path, auto-paginating across
|
|
196
196
|
all pages. `Recursive` defaults to `true` (overriding the AWS SDK
|
|
@@ -229,7 +229,7 @@ The full `Parameter` objects (including `Version`,
|
|
|
229
229
|
|
|
230
230
|
> **putParameter**(`input`): `Promise`\<`PutParameterCommandOutput`\>
|
|
231
231
|
|
|
232
|
-
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:181](https://github.com/aligent/microservice-development-utilities/blob/
|
|
232
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:181](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ssm/ssm.ts#L181)
|
|
233
233
|
|
|
234
234
|
Create or update an SSM parameter. The log line omits `Value` to avoid
|
|
235
235
|
leaking secret material.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SchedulerService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:74](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:74](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L74)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS EventBridge Scheduler client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -32,7 +32,7 @@ intent (`{ Mode: 'OFF' }` for a fixed-time schedule).
|
|
|
32
32
|
|
|
33
33
|
> **new SchedulerService**(`opts?`): `SchedulerService`
|
|
34
34
|
|
|
35
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:84](https://github.com/aligent/microservice-development-utilities/blob/
|
|
35
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:84](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L84)
|
|
36
36
|
|
|
37
37
|
#### Parameters
|
|
38
38
|
|
|
@@ -64,7 +64,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
64
64
|
|
|
65
65
|
> **createSchedule**(`input`): `Promise`\<`CreateScheduleCommandOutput`\>
|
|
66
66
|
|
|
67
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:93](https://github.com/aligent/microservice-development-utilities/blob/
|
|
67
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:93](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L93)
|
|
68
68
|
|
|
69
69
|
Create a new schedule. At INFO the log line omits `Target.Input` (the
|
|
70
70
|
target payload, a PII carrier).
|
|
@@ -87,7 +87,7 @@ target payload, a PII carrier).
|
|
|
87
87
|
|
|
88
88
|
> **createScheduleGroup**(`input`): `Promise`\<`CreateScheduleGroupCommandOutput`\>
|
|
89
89
|
|
|
90
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:151](https://github.com/aligent/microservice-development-utilities/blob/
|
|
90
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:151](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L151)
|
|
91
91
|
|
|
92
92
|
Create a new schedule group. Groups are containers for schedules and are
|
|
93
93
|
typically IaC-managed; use this for dynamically-provisioned groups only.
|
|
@@ -110,7 +110,7 @@ typically IaC-managed; use this for dynamically-provisioned groups only.
|
|
|
110
110
|
|
|
111
111
|
> **deleteSchedule**(`input`): `Promise`\<`DeleteScheduleCommandOutput`\>
|
|
112
112
|
|
|
113
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:131](https://github.com/aligent/microservice-development-utilities/blob/
|
|
113
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:131](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L131)
|
|
114
114
|
|
|
115
115
|
Delete a schedule.
|
|
116
116
|
|
|
@@ -132,7 +132,7 @@ Delete a schedule.
|
|
|
132
132
|
|
|
133
133
|
> **deleteScheduleGroup**(`input`): `Promise`\<`DeleteScheduleGroupCommandOutput`\>
|
|
134
134
|
|
|
135
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:173](https://github.com/aligent/microservice-development-utilities/blob/
|
|
135
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:173](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L173)
|
|
136
136
|
|
|
137
137
|
Delete a schedule group. Deleting a group also deletes every schedule it
|
|
138
138
|
contains, asynchronously — the API has no `UpdateScheduleGroup`, so this
|
|
@@ -156,7 +156,7 @@ is the only mutating group operation besides create.
|
|
|
156
156
|
|
|
157
157
|
> **getSchedule**(`input`): `Promise`\<`GetScheduleCommandOutput`\>
|
|
158
158
|
|
|
159
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:103](https://github.com/aligent/microservice-development-utilities/blob/
|
|
159
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:103](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L103)
|
|
160
160
|
|
|
161
161
|
Fetch a schedule's full configuration.
|
|
162
162
|
|
|
@@ -178,7 +178,7 @@ Fetch a schedule's full configuration.
|
|
|
178
178
|
|
|
179
179
|
> **getScheduleGroup**(`input`): `Promise`\<`GetScheduleGroupCommandOutput`\>
|
|
180
180
|
|
|
181
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:161](https://github.com/aligent/microservice-development-utilities/blob/
|
|
181
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:161](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L161)
|
|
182
182
|
|
|
183
183
|
Fetch a schedule group's configuration.
|
|
184
184
|
|
|
@@ -200,7 +200,7 @@ Fetch a schedule group's configuration.
|
|
|
200
200
|
|
|
201
201
|
> **listScheduleGroups**(`input?`): `Promise`\<`ScheduleGroupSummary`[]\>
|
|
202
202
|
|
|
203
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:184](https://github.com/aligent/microservice-development-utilities/blob/
|
|
203
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:184](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L184)
|
|
204
204
|
|
|
205
205
|
List schedule groups, auto-paginating across all pages. Bounded in
|
|
206
206
|
practice by the account's group count and the `NamePrefix` filter.
|
|
@@ -223,7 +223,7 @@ practice by the account's group count and the `NamePrefix` filter.
|
|
|
223
223
|
|
|
224
224
|
> **listSchedules**(`input?`): `Promise`\<`ScheduleSummary`[]\>
|
|
225
225
|
|
|
226
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:141](https://github.com/aligent/microservice-development-utilities/blob/
|
|
226
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:141](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L141)
|
|
227
227
|
|
|
228
228
|
List schedules, auto-paginating across all pages. Bounded in practice by
|
|
229
229
|
the account's schedule count and the `GroupName` / `NamePrefix` / `State`
|
|
@@ -247,7 +247,7 @@ filters, so the flat-array shape is safe.
|
|
|
247
247
|
|
|
248
248
|
> **updateSchedule**(`input`): `Promise`\<`UpdateScheduleCommandOutput`\>
|
|
249
249
|
|
|
250
|
-
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:121](https://github.com/aligent/microservice-development-utilities/blob/
|
|
250
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:121](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/scheduler/scheduler.ts#L121)
|
|
251
251
|
|
|
252
252
|
Update an existing schedule.
|
|
253
253
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SecretsManagerService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L75)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Secrets Manager client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -30,7 +30,7 @@ mutable values.
|
|
|
30
30
|
|
|
31
31
|
> **new SecretsManagerService**(`opts?`): `SecretsManagerService`
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/
|
|
33
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L86)
|
|
34
34
|
|
|
35
35
|
#### Parameters
|
|
36
36
|
|
|
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
63
63
|
|
|
64
64
|
> **createSecret**(`input`): `Promise`\<`CreateSecretCommandOutput`\>
|
|
65
65
|
|
|
66
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/
|
|
66
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L123)
|
|
67
67
|
|
|
68
68
|
Create a new secret. At INFO level the log line includes only identity
|
|
69
69
|
and non-secret metadata.
|
|
@@ -89,7 +89,7 @@ dynamically-issued credentials only.
|
|
|
89
89
|
|
|
90
90
|
> **deleteSecret**(`input`): `Promise`\<`DeleteSecretCommandOutput`\>
|
|
91
91
|
|
|
92
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/
|
|
92
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L163)
|
|
93
93
|
|
|
94
94
|
Delete a secret. Pass `ForceDeleteWithoutRecovery: true` to bypass the
|
|
95
95
|
default 7-30 day recovery window (irreversible).
|
|
@@ -114,7 +114,7 @@ Prefer IaC (CDK / Terraform) for secret lifecycle.
|
|
|
114
114
|
|
|
115
115
|
> **getJsonSecret**\<`T`\>(`secretId`): `Promise`\<`T`\>
|
|
116
116
|
|
|
117
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/
|
|
117
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L110)
|
|
118
118
|
|
|
119
119
|
Fetch a secret and parse it as JSON.
|
|
120
120
|
|
|
@@ -154,7 +154,7 @@ If the secret has no `SecretString` or the value is not valid JSON.
|
|
|
154
154
|
|
|
155
155
|
> **getSecret**(`secretId`): `Promise`\<`string`\>
|
|
156
156
|
|
|
157
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/
|
|
157
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L98)
|
|
158
158
|
|
|
159
159
|
Fetch a secret's string value from Secrets Manager.
|
|
160
160
|
|
|
@@ -185,7 +185,7 @@ stores binary data).
|
|
|
185
185
|
|
|
186
186
|
> **putSecretValue**(`input`): `Promise`\<`PutSecretValueCommandOutput`\>
|
|
187
187
|
|
|
188
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/
|
|
188
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L150)
|
|
189
189
|
|
|
190
190
|
Store a new version of a secret's value. At INFO level the log line
|
|
191
191
|
omits `SecretString` / `SecretBinary`.
|
|
@@ -210,7 +210,7 @@ Typically used by rotation flows.
|
|
|
210
210
|
|
|
211
211
|
> **updateSecret**(`input`): `Promise`\<`UpdateSecretCommandOutput`\>
|
|
212
212
|
|
|
213
|
-
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/
|
|
213
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L137)
|
|
214
214
|
|
|
215
215
|
Update an existing secret's metadata or value. At INFO level the log
|
|
216
216
|
line omits `SecretString` / `SecretBinary`.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: StepFunctionsService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:41](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:41](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L41)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Step Functions client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -23,7 +23,7 @@ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
|
|
|
23
23
|
|
|
24
24
|
> **new StepFunctionsService**(`opts?`): `StepFunctionsService`
|
|
25
25
|
|
|
26
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:51](https://github.com/aligent/microservice-development-utilities/blob/
|
|
26
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:51](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L51)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -55,7 +55,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
55
55
|
|
|
56
56
|
> **describeExecution**(`input`): `Promise`\<`DescribeExecutionCommandOutput`\>
|
|
57
57
|
|
|
58
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:80](https://github.com/aligent/microservice-development-utilities/blob/
|
|
58
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:80](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L80)
|
|
59
59
|
|
|
60
60
|
Describe an existing Step Functions execution.
|
|
61
61
|
|
|
@@ -77,7 +77,7 @@ Describe an existing Step Functions execution.
|
|
|
77
77
|
|
|
78
78
|
> **listExecutions**(`input`): `Promise`\<`ExecutionListItem`[]\>
|
|
79
79
|
|
|
80
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:61](https://github.com/aligent/microservice-development-utilities/blob/
|
|
80
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:61](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L61)
|
|
81
81
|
|
|
82
82
|
List all executions for a state machine, auto-paginating across all
|
|
83
83
|
pages. Typically bounded by `statusFilter` and state-machine retention,
|
|
@@ -101,7 +101,7 @@ so the flat-array shape is safe in practice.
|
|
|
101
101
|
|
|
102
102
|
> **startExecution**(`input`): `Promise`\<`StartExecutionCommandOutput`\>
|
|
103
103
|
|
|
104
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:70](https://github.com/aligent/microservice-development-utilities/blob/
|
|
104
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:70](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L70)
|
|
105
105
|
|
|
106
106
|
Start a new Step Functions execution.
|
|
107
107
|
|
|
@@ -123,7 +123,7 @@ Start a new Step Functions execution.
|
|
|
123
123
|
|
|
124
124
|
> **stopExecution**(`input`): `Promise`\<`StopExecutionCommandOutput`\>
|
|
125
125
|
|
|
126
|
-
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:90](https://github.com/aligent/microservice-development-utilities/blob/
|
|
126
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:90](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L90)
|
|
127
127
|
|
|
128
128
|
Stop an in-progress Step Functions execution.
|
|
129
129
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: BatchFailedEntry
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:9](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:9](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L9)
|
|
10
10
|
|
|
11
11
|
One entry a batch operation rejected. Deliberately limited to identifier,
|
|
12
12
|
code and message so the error never carries message bodies, attributes or
|
|
@@ -21,7 +21,7 @@ for SSM it is the parameter path.
|
|
|
21
21
|
|
|
22
22
|
> **code**: `string` \| `undefined`
|
|
23
23
|
|
|
24
|
-
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https://github.com/aligent/microservice-development-utilities/blob/
|
|
24
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L11)
|
|
25
25
|
|
|
26
26
|
***
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https:/
|
|
|
31
31
|
|
|
32
32
|
> **id**: `string` \| `undefined`
|
|
33
33
|
|
|
34
|
-
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https://github.com/aligent/microservice-development-utilities/blob/
|
|
34
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L10)
|
|
35
35
|
|
|
36
36
|
***
|
|
37
37
|
|
|
@@ -41,4 +41,4 @@ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https:/
|
|
|
41
41
|
|
|
42
42
|
> **message**: `string` \| `undefined`
|
|
43
43
|
|
|
44
|
-
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:12](https://github.com/aligent/microservice-development-utilities/blob/
|
|
44
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:12](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L12)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: EmptyBucketPageResult
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:43](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:43](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L43)
|
|
10
10
|
|
|
11
11
|
One page of an `emptyBucket` run, as carried in `BatchOperationError.results`.
|
|
12
12
|
|
|
@@ -18,6 +18,6 @@ One page of an `emptyBucket` run, as carried in `BatchOperationError.results`.
|
|
|
18
18
|
|
|
19
19
|
> **deletedKeys**: `string`[]
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:45](https://github.com/aligent/microservice-development-utilities/blob/
|
|
21
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:45](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L45)
|
|
22
22
|
|
|
23
23
|
The keys of this page that S3 deleted.
|
package/docs/index/modules.md
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
- [S3Service](classes/S3Service.md)
|
|
19
19
|
- [SchedulerService](classes/SchedulerService.md)
|
|
20
20
|
- [SecretsManagerService](classes/SecretsManagerService.md)
|
|
21
|
+
- [SESService](classes/SESService.md)
|
|
21
22
|
- [SNSService](classes/SNSService.md)
|
|
22
23
|
- [SQSService](classes/SQSService.md)
|
|
23
24
|
- [SSMService](classes/SSMService.md)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **createMockService**\<`T`, `O`\>(`service`, `overrides`): `T` & `O`
|
|
10
10
|
|
|
11
|
-
Defined in: [packages/aws-wrappers/src/testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/
|
|
11
|
+
Defined in: [packages/aws-wrappers/src/testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/testing/testing.ts#L66)
|
|
12
12
|
|
|
13
13
|
Build a stand-in for a service class from an object of method overrides, for
|
|
14
14
|
use in unit tests of code that depends on the service.
|
package/esm/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { S3Client, PutObjectCommand, GetObjectCommand, HeadObjectCommand, CopyOb
|
|
|
10
10
|
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
|
11
11
|
import { SchedulerClient, CreateScheduleCommand, GetScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand, paginateListSchedules, CreateScheduleGroupCommand, GetScheduleGroupCommand, DeleteScheduleGroupCommand, paginateListScheduleGroups } from '@aws-sdk/client-scheduler';
|
|
12
12
|
import { SecretsManagerClient, CreateSecretCommand, UpdateSecretCommand, PutSecretValueCommand, DeleteSecretCommand, GetSecretValueCommand } from '@aws-sdk/client-secrets-manager';
|
|
13
|
+
import { SESv2Client, SendEmailCommand, SendBulkEmailCommand } from '@aws-sdk/client-sesv2';
|
|
13
14
|
import { SFNClient, paginateListExecutions, StartExecutionCommand, DescribeExecutionCommand, StopExecutionCommand } from '@aws-sdk/client-sfn';
|
|
14
15
|
import { SNSClient, PublishCommand, PublishBatchCommand } from '@aws-sdk/client-sns';
|
|
15
16
|
import { SQSClient, SendMessageCommand, ReceiveMessageCommand, DeleteMessageCommand, SendMessageBatchCommand, DeleteMessageBatchCommand } from '@aws-sdk/client-sqs';
|
|
@@ -604,6 +605,16 @@ function chunk(items, size) {
|
|
|
604
605
|
}
|
|
605
606
|
return chunks;
|
|
606
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* The index, as a string, that an entry had in the list `chunk` split, given
|
|
610
|
+
* its chunk number and its position within that chunk. Batch operations whose
|
|
611
|
+
* entries carry no identifier of their own report failures by this index.
|
|
612
|
+
* `chunk` fills every chunk but the last, so the chunk's offset is the chunk
|
|
613
|
+
* number times the chunk size.
|
|
614
|
+
*/
|
|
615
|
+
function originalIndex(chunkIndex, chunkSize, position) {
|
|
616
|
+
return String(chunkIndex * chunkSize + position);
|
|
617
|
+
}
|
|
607
618
|
|
|
608
619
|
const PUT_EVENTS_LIMIT = 10;
|
|
609
620
|
/**
|
|
@@ -613,13 +624,8 @@ const PUT_EVENTS_LIMIT = 10;
|
|
|
613
624
|
function summariseEntries$1({ EndpointId, Entries }) {
|
|
614
625
|
return { EndpointId, entryCount: Entries?.length ?? 0 };
|
|
615
626
|
}
|
|
616
|
-
/**
|
|
617
|
-
* Chunks are full except the last, so the caller's original index of a
|
|
618
|
-
* rejected entry is the chunk's offset (chunk number times the chunk size)
|
|
619
|
-
* plus its position within the chunk.
|
|
620
|
-
*/
|
|
621
627
|
function extractPutEventsFailures(results) {
|
|
622
|
-
return results.flatMap(
|
|
628
|
+
return results.flatMap(extractChunkFailures);
|
|
623
629
|
}
|
|
624
630
|
/**
|
|
625
631
|
* `PutEvents` reports a rejected entry by an error code on the result entry at
|
|
@@ -628,10 +634,10 @@ function extractPutEventsFailures(results) {
|
|
|
628
634
|
* Copies only code and message out, never the request entry, so neither the
|
|
629
635
|
* error nor the warning can carry event detail.
|
|
630
636
|
*/
|
|
631
|
-
function extractChunkFailures(result,
|
|
637
|
+
function extractChunkFailures(result, chunkIndex) {
|
|
632
638
|
return (result.Entries ?? [])
|
|
633
639
|
.map(({ ErrorCode, ErrorMessage }, position) => ({
|
|
634
|
-
id:
|
|
640
|
+
id: originalIndex(chunkIndex, PUT_EVENTS_LIMIT, position),
|
|
635
641
|
code: ErrorCode,
|
|
636
642
|
message: ErrorMessage,
|
|
637
643
|
}))
|
|
@@ -1389,6 +1395,139 @@ class SecretsManagerService {
|
|
|
1389
1395
|
}
|
|
1390
1396
|
}
|
|
1391
1397
|
|
|
1398
|
+
const SEND_BULK_EMAIL_LIMIT = 50;
|
|
1399
|
+
/**
|
|
1400
|
+
* Sent entries whose result isn't `SUCCESS`, identified by their original
|
|
1401
|
+
* index in the caller's `BulkEmailEntries`. Walks the entries that were sent
|
|
1402
|
+
* rather than the results that came back, so an entry SES returned no result
|
|
1403
|
+
* for counts as failed instead of passing unnoticed. Only status and error are
|
|
1404
|
+
* copied out, never the entry, so no destination can leak.
|
|
1405
|
+
*/
|
|
1406
|
+
function extractBulkEmailFailures(sentChunks, results) {
|
|
1407
|
+
return sentChunks.flatMap((sent, chunkIndex) => sent.flatMap((_, entryIndex) => {
|
|
1408
|
+
const result = results[chunkIndex]?.BulkEmailEntryResults?.[entryIndex];
|
|
1409
|
+
if (result?.Status === 'SUCCESS')
|
|
1410
|
+
return [];
|
|
1411
|
+
return [
|
|
1412
|
+
{
|
|
1413
|
+
id: originalIndex(chunkIndex, SEND_BULK_EMAIL_LIMIT, entryIndex),
|
|
1414
|
+
code: result?.Status,
|
|
1415
|
+
message: result?.Error ?? result?.Status ?? 'No status returned for entry',
|
|
1416
|
+
},
|
|
1417
|
+
];
|
|
1418
|
+
}));
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Safe log shape for `sendEmail`. Keeps routing metadata and reduces the
|
|
1422
|
+
* recipients to a count; the sender and reply-to addresses, the subject, the
|
|
1423
|
+
* body and any template data are omitted as PII or payload. The template name
|
|
1424
|
+
* is operational metadata, not PII, so it is kept.
|
|
1425
|
+
*/
|
|
1426
|
+
function summariseSendEmail(input) {
|
|
1427
|
+
const { ToAddresses, CcAddresses, BccAddresses } = input.Destination ?? {};
|
|
1428
|
+
return {
|
|
1429
|
+
FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
|
|
1430
|
+
ConfigurationSetName: input.ConfigurationSetName,
|
|
1431
|
+
EmailTags: input.EmailTags,
|
|
1432
|
+
EndpointId: input.EndpointId,
|
|
1433
|
+
TenantName: input.TenantName,
|
|
1434
|
+
templateName: input.Content?.Template?.TemplateName,
|
|
1435
|
+
recipientCount: (ToAddresses?.length ?? 0) + (CcAddresses?.length ?? 0) + (BccAddresses?.length ?? 0),
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Safe log shape for `sendBulkEmail`. The entries carry destinations and
|
|
1440
|
+
* replacement data, and the default template data may carry PII, so they are
|
|
1441
|
+
* reduced to a count and the template name.
|
|
1442
|
+
*/
|
|
1443
|
+
function summariseSendBulkEmail(input) {
|
|
1444
|
+
return {
|
|
1445
|
+
FromEmailAddressIdentityArn: input.FromEmailAddressIdentityArn,
|
|
1446
|
+
ConfigurationSetName: input.ConfigurationSetName,
|
|
1447
|
+
DefaultEmailTags: input.DefaultEmailTags,
|
|
1448
|
+
EndpointId: input.EndpointId,
|
|
1449
|
+
TenantName: input.TenantName,
|
|
1450
|
+
templateName: input.DefaultContent?.Template?.TemplateName,
|
|
1451
|
+
entryCount: input.BulkEmailEntries?.length ?? 0,
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Wrapper around the AWS SES v2 client providing structured Powertools logging
|
|
1456
|
+
* and X-Ray tracing by default.
|
|
1457
|
+
*
|
|
1458
|
+
* Wraps SES v2 (`@aws-sdk/client-sesv2`), not the legacy v1 API. No defaults
|
|
1459
|
+
* are baked in: every send option, including `FromEmailAddress` and
|
|
1460
|
+
* `ConfigurationSetName`, comes from the caller.
|
|
1461
|
+
*
|
|
1462
|
+
* Where a method's input carries payloads or PII, the INFO log line omits
|
|
1463
|
+
* them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or `TRACE`) log full
|
|
1464
|
+
* SDK inputs.
|
|
1465
|
+
*/
|
|
1466
|
+
class SESService {
|
|
1467
|
+
client;
|
|
1468
|
+
logger;
|
|
1469
|
+
/**
|
|
1470
|
+
* @param opts.logger - Optional Powertools logger. Defaults to `new Logger()`,
|
|
1471
|
+
* which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
1472
|
+
* @param opts.client - Optional pre-configured `SESv2Client`. When supplied,
|
|
1473
|
+
* the wrapper does not apply X-Ray instrumentation.
|
|
1474
|
+
*/
|
|
1475
|
+
constructor(opts) {
|
|
1476
|
+
this.client = opts?.client ?? xray.captureAWSv3Client(new SESv2Client());
|
|
1477
|
+
this.logger = opts?.logger ?? new Logger();
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Send a single email (Simple, Raw or Template content).
|
|
1481
|
+
*
|
|
1482
|
+
* At INFO level the log line includes only routing metadata and a
|
|
1483
|
+
* recipient count; see `summariseSendEmail`.
|
|
1484
|
+
*
|
|
1485
|
+
* Pass-through: SDK exceptions (`MessageRejected`, `SendingPausedException`,
|
|
1486
|
+
* …) propagate unwrapped.
|
|
1487
|
+
*
|
|
1488
|
+
* @returns The SDK output, including `MessageId`.
|
|
1489
|
+
*/
|
|
1490
|
+
async sendEmail(input) {
|
|
1491
|
+
this.logger.info('Sending SES email', {
|
|
1492
|
+
input: redactInput(this.logger, input, summariseSendEmail),
|
|
1493
|
+
});
|
|
1494
|
+
return this.client.send(new SendEmailCommand(input));
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Send a templated email to many destinations. SES caps `SendBulkEmail`
|
|
1498
|
+
* at 50 entries per request, so this method auto-chunks `BulkEmailEntries`
|
|
1499
|
+
* and sends one request per chunk, in order. Every chunk shares the other
|
|
1500
|
+
* input fields.
|
|
1501
|
+
*
|
|
1502
|
+
* At INFO level the log line includes only routing metadata, the template
|
|
1503
|
+
* name and an entry count; see `summariseSendBulkEmail`.
|
|
1504
|
+
*
|
|
1505
|
+
* SES answers HTTP 200 even when entries fail, so every chunk is sent
|
|
1506
|
+
* before the outcome is judged. If any entry's `Status` isn't `SUCCESS`
|
|
1507
|
+
* (or SES returned no result for it), a {@link BatchOperationError} is thrown whose
|
|
1508
|
+
* `failed[].id` is the entry's original index in `BulkEmailEntries` as a
|
|
1509
|
+
* string, and whose `results` are the per-chunk outputs — so a caller can
|
|
1510
|
+
* retry only the failed indexes. Request-level SDK exceptions are not
|
|
1511
|
+
* wrapped.
|
|
1512
|
+
*
|
|
1513
|
+
* Sending is not idempotent: retrying the whole batch after a throw
|
|
1514
|
+
* re-sends the entries that succeeded.
|
|
1515
|
+
*
|
|
1516
|
+
* @returns One SDK output per request sent.
|
|
1517
|
+
*/
|
|
1518
|
+
async sendBulkEmail(input) {
|
|
1519
|
+
this.logger.info('Sending SES bulk email', {
|
|
1520
|
+
input: redactInput(this.logger, input, summariseSendBulkEmail),
|
|
1521
|
+
});
|
|
1522
|
+
const results = [];
|
|
1523
|
+
const sentChunks = chunk(input.BulkEmailEntries ?? [], SEND_BULK_EMAIL_LIMIT);
|
|
1524
|
+
for (const entries of sentChunks) {
|
|
1525
|
+
results.push(await this.client.send(new SendBulkEmailCommand({ ...input, BulkEmailEntries: entries })));
|
|
1526
|
+
}
|
|
1527
|
+
return throwIfAny(this.logger, 'SES sendBulkEmail', results, extractBulkEmailFailures(sentChunks, results));
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1392
1531
|
/**
|
|
1393
1532
|
* Fields safe to log at INFO for `startExecution`. Omits `input` — the SFN
|
|
1394
1533
|
* execution payload, which routinely carries PII (customer IDs, addresses,
|
|
@@ -1935,4 +2074,4 @@ class SSMService {
|
|
|
1935
2074
|
}
|
|
1936
2075
|
}
|
|
1937
2076
|
|
|
1938
|
-
export { APIGatewayService, APIGatewayV2Service, BatchOperationError, DynamoDBService, EventBridgeService, LambdaFunctionError, LambdaService, S3Service, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
|
2077
|
+
export { APIGatewayService, APIGatewayV2Service, BatchOperationError, DynamoDBService, EventBridgeService, LambdaFunctionError, LambdaService, S3Service, SESService, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aligent/aws-wrappers",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "Opinionated AWS SDK wrappers with Powertools logging and X-Ray tracing",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@aws-sdk/client-s3": "^3.1160.0",
|
|
53
53
|
"@aws-sdk/client-scheduler": "^3.1160.0",
|
|
54
54
|
"@aws-sdk/client-secrets-manager": "^3.1160.0",
|
|
55
|
+
"@aws-sdk/client-sesv2": "^3.1160.0",
|
|
55
56
|
"@aws-sdk/client-sfn": "^3.1160.0",
|
|
56
57
|
"@aws-sdk/client-sns": "^3.1160.0",
|
|
57
58
|
"@aws-sdk/client-sqs": "^3.1160.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventbridge.d.ts","sourceRoot":"","sources":["../../../../src/eventbridge/eventbridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACH,iBAAiB,EAEjB,qBAAqB,EACrB,sBAAsB,EAEzB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"eventbridge.d.ts","sourceRoot":"","sources":["../../../../src/eventbridge/eventbridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACH,iBAAiB,EAEjB,qBAAqB,EACrB,sBAAsB,EAEzB,MAAM,6BAA6B,CAAC;AAwCrC;;;;;;;;;;GAUG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;OAKG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,iBAAiB,CAAA;KAAE;IAK3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,SAAS,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;CAkBnF"}
|
package/esm/src/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { S3Service } from './s3/s3.js';
|
|
|
7
7
|
export type { EmptyBucketPageResult } from './s3/s3.js';
|
|
8
8
|
export { SchedulerService } from './scheduler/scheduler.js';
|
|
9
9
|
export { SecretsManagerService } from './secrets-manager/secrets-manager.js';
|
|
10
|
+
export { SESService } from './ses/ses.js';
|
|
10
11
|
export { StepFunctionsService } from './sfn/sfn.js';
|
|
11
12
|
export { SNSService } from './sns/sns.js';
|
|
12
13
|
export { SQSService } from './sqs/sqs.js';
|
package/esm/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC"}
|