@aligent/aws-wrappers 0.5.5 → 0.5.7
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 +32 -2
- package/cjs/index.cjs +171 -139
- package/cjs/package.json +1 -1
- package/cjs/src/dynamodb/dynamodb.d.ts.map +1 -1
- package/cjs/src/index.d.ts +2 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/s3/s3.d.ts.map +1 -1
- package/cjs/src/scheduler/scheduler.d.ts.map +1 -1
- package/cjs/src/sfn/sfn.d.ts.map +1 -1
- package/cjs/src/sns/sns.d.ts +7 -0
- package/cjs/src/sns/sns.d.ts.map +1 -1
- package/cjs/src/sqs/sqs.d.ts +13 -0
- package/cjs/src/sqs/sqs.d.ts.map +1 -1
- package/cjs/src/ssm/ssm.d.ts.map +1 -1
- package/cjs/src/util/batch-operation-error.d.ts +50 -0
- package/cjs/src/util/batch-operation-error.d.ts.map +1 -0
- package/cjs/src/util/chunk.d.ts +6 -0
- package/cjs/src/util/chunk.d.ts.map +1 -0
- package/cjs/src/util/redact.d.ts +17 -18
- package/cjs/src/util/redact.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 +261 -0
- package/docs/index/classes/DynamoDBService.md +12 -12
- package/docs/index/classes/S3Service.md +15 -15
- package/docs/index/classes/SNSService.md +10 -4
- package/docs/index/classes/SQSService.md +20 -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 +43 -0
- package/docs/index/modules.md +5 -0
- package/docs/testing/testing/functions/createMockService.md +1 -1
- package/esm/index.mjs +171 -140
- package/esm/package.json +1 -1
- package/esm/src/dynamodb/dynamodb.d.ts.map +1 -1
- package/esm/src/index.d.ts +2 -0
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/s3/s3.d.ts.map +1 -1
- package/esm/src/scheduler/scheduler.d.ts.map +1 -1
- package/esm/src/sfn/sfn.d.ts.map +1 -1
- package/esm/src/sns/sns.d.ts +7 -0
- package/esm/src/sns/sns.d.ts.map +1 -1
- package/esm/src/sqs/sqs.d.ts +13 -0
- package/esm/src/sqs/sqs.d.ts.map +1 -1
- package/esm/src/ssm/ssm.d.ts.map +1 -1
- package/esm/src/util/batch-operation-error.d.ts +50 -0
- package/esm/src/util/batch-operation-error.d.ts.map +1 -0
- package/esm/src/util/chunk.d.ts +6 -0
- package/esm/src/util/chunk.d.ts.map +1 -0
- package/esm/src/util/redact.d.ts +17 -18
- package/esm/src/util/redact.d.ts.map +1 -1
- package/package.json +1 -1
package/esm/index.mjs
CHANGED
|
@@ -142,38 +142,22 @@ class APIGatewayService {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Whether the logger is verbose enough that full SDK inputs
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* **This is the only place in the package that reads the log level.** Never
|
|
149
|
-
* compare `logger.getLevelName()` yourself: Powertools orders `TRACE` as *more*
|
|
150
|
-
* verbose than `DEBUG` (thresholds 6 and 8), so the obvious
|
|
151
|
-
* `getLevelName() === 'DEBUG'` check silently redacts at the most verbose level
|
|
152
|
-
* available. Route every disclosure decision through this predicate instead.
|
|
145
|
+
* Whether the logger is verbose enough that full SDK inputs may be written to
|
|
146
|
+
* the log. The unlock rule is documented on {@link redactInput}.
|
|
153
147
|
*/
|
|
154
148
|
function shouldLogFullInput(logger) {
|
|
155
149
|
return LogLevelThreshold[logger.getLevelName()] <= LogLevelThreshold.DEBUG;
|
|
156
150
|
}
|
|
157
|
-
|
|
158
|
-
* Return a log-safe projection of `input` based on the logger's configured level.
|
|
159
|
-
*
|
|
160
|
-
* At the verbose levels — see {@link shouldLogFullInput} — the full input is
|
|
161
|
-
* returned unchanged: operators who asked for that verbosity have explicitly
|
|
162
|
-
* opted into seeing everything, including payloads, secret material and PII.
|
|
163
|
-
*
|
|
164
|
-
* At any other level, only the fields listed in `safeFields` are included.
|
|
165
|
-
* Missing fields are silently skipped — the result type narrows to
|
|
166
|
-
* `Pick<T, K>` accordingly.
|
|
167
|
-
*
|
|
168
|
-
* Used across the package so that the "what's safe to log at INFO" decision
|
|
169
|
-
* lives in one place. See `packages/aws-wrappers/CLAUDE.md` ("Logging") for
|
|
170
|
-
* the design rationale and conventions on building the safe-field lists.
|
|
171
|
-
*/
|
|
172
|
-
function filterFieldsForLogLevel(logger, input, safeFields) {
|
|
151
|
+
function redactInput(logger, input, project) {
|
|
173
152
|
if (shouldLogFullInput(logger))
|
|
174
153
|
return input;
|
|
154
|
+
if (typeof project === 'function')
|
|
155
|
+
return project(input);
|
|
156
|
+
return pickKeys(input, project);
|
|
157
|
+
}
|
|
158
|
+
function pickKeys(input, keys) {
|
|
175
159
|
const out = {};
|
|
176
|
-
for (const key of
|
|
160
|
+
for (const key of keys) {
|
|
177
161
|
if (key in input)
|
|
178
162
|
out[key] = input[key];
|
|
179
163
|
}
|
|
@@ -184,6 +168,14 @@ const BATCH_WRITE_MAX_ATTEMPTS = 5;
|
|
|
184
168
|
const BATCH_WRITE_BASE_DELAY_MS = 200;
|
|
185
169
|
const BATCH_GET_MAX_ATTEMPTS = 5;
|
|
186
170
|
const BATCH_GET_BASE_DELAY_MS = 200;
|
|
171
|
+
/**
|
|
172
|
+
* Safe log shape for the batch methods. `RequestItems` is keyed by table name
|
|
173
|
+
* with the payload (`Keys`, `Item`) nested inside each value, so it can't be
|
|
174
|
+
* an allowlisted field and is reduced to the table names instead.
|
|
175
|
+
*/
|
|
176
|
+
function summariseTables(input) {
|
|
177
|
+
return { tables: Object.keys(input.RequestItems ?? {}) };
|
|
178
|
+
}
|
|
187
179
|
/**
|
|
188
180
|
* Fields safe to log at INFO. Omits `Key` (may carry customer IDs / tenant IDs).
|
|
189
181
|
*/
|
|
@@ -312,7 +304,7 @@ class DynamoDBService {
|
|
|
312
304
|
*/
|
|
313
305
|
async getItem(input) {
|
|
314
306
|
this.logger.info('Getting DynamoDB item', {
|
|
315
|
-
input:
|
|
307
|
+
input: redactInput(this.logger, input, GET_ITEM_SAFE_FIELDS),
|
|
316
308
|
});
|
|
317
309
|
const response = await this.client.send(new GetCommand(input));
|
|
318
310
|
return response.Item;
|
|
@@ -324,7 +316,7 @@ class DynamoDBService {
|
|
|
324
316
|
*/
|
|
325
317
|
async putItem(input) {
|
|
326
318
|
this.logger.info('Putting DynamoDB item', {
|
|
327
|
-
input:
|
|
319
|
+
input: redactInput(this.logger, input, PUT_ITEM_SAFE_FIELDS),
|
|
328
320
|
});
|
|
329
321
|
return this.client.send(new PutCommand(input));
|
|
330
322
|
}
|
|
@@ -340,7 +332,7 @@ class DynamoDBService {
|
|
|
340
332
|
*/
|
|
341
333
|
async updateItem(input) {
|
|
342
334
|
this.logger.info('Updating DynamoDB item', {
|
|
343
|
-
input:
|
|
335
|
+
input: redactInput(this.logger, input, UPDATE_ITEM_SAFE_FIELDS),
|
|
344
336
|
});
|
|
345
337
|
const response = await this.client.send(new UpdateCommand(input));
|
|
346
338
|
return response;
|
|
@@ -353,7 +345,7 @@ class DynamoDBService {
|
|
|
353
345
|
*/
|
|
354
346
|
async deleteItem(input) {
|
|
355
347
|
this.logger.info('Deleting DynamoDB item', {
|
|
356
|
-
input:
|
|
348
|
+
input: redactInput(this.logger, input, DELETE_ITEM_SAFE_FIELDS),
|
|
357
349
|
});
|
|
358
350
|
const response = await this.client.send(new DeleteCommand(input));
|
|
359
351
|
return response;
|
|
@@ -366,7 +358,7 @@ class DynamoDBService {
|
|
|
366
358
|
*/
|
|
367
359
|
async query(input) {
|
|
368
360
|
this.logger.info('Querying DynamoDB', {
|
|
369
|
-
input:
|
|
361
|
+
input: redactInput(this.logger, input, QUERY_SAFE_FIELDS),
|
|
370
362
|
});
|
|
371
363
|
const response = await this.client.send(new QueryCommand(input));
|
|
372
364
|
return response;
|
|
@@ -392,7 +384,7 @@ class DynamoDBService {
|
|
|
392
384
|
*/
|
|
393
385
|
async scan(input) {
|
|
394
386
|
this.logger.info('Scanning DynamoDB', {
|
|
395
|
-
input:
|
|
387
|
+
input: redactInput(this.logger, input, SCAN_SAFE_FIELDS),
|
|
396
388
|
});
|
|
397
389
|
const response = await this.client.send(new ScanCommand(input));
|
|
398
390
|
return response;
|
|
@@ -409,13 +401,8 @@ class DynamoDBService {
|
|
|
409
401
|
* Callers should narrow the result type at the call site.
|
|
410
402
|
*/
|
|
411
403
|
async batchGet(input) {
|
|
412
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because
|
|
413
|
-
// `RequestItems` is a `Record<tableName, KeysAndAttributes>` — the
|
|
414
|
-
// payload (`Keys[]`) lives inside the value, not as a top-level key
|
|
415
|
-
// the helper could pick or drop.
|
|
416
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
417
404
|
this.logger.info('Batch getting DynamoDB items', {
|
|
418
|
-
input:
|
|
405
|
+
input: redactInput(this.logger, input, summariseTables),
|
|
419
406
|
});
|
|
420
407
|
let current = input;
|
|
421
408
|
const mergedResponses = {};
|
|
@@ -444,13 +431,8 @@ class DynamoDBService {
|
|
|
444
431
|
* items remain unprocessed after the final attempt.
|
|
445
432
|
*/
|
|
446
433
|
async batchWrite(input) {
|
|
447
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because
|
|
448
|
-
// `RequestItems` is a `Record<tableName, WriteRequest[]>` — the
|
|
449
|
-
// payload (`PutRequest.Item` / `DeleteRequest.Key`) lives inside the
|
|
450
|
-
// value, not as a top-level key the helper could pick or drop.
|
|
451
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
452
434
|
this.logger.info('Batch writing DynamoDB items', {
|
|
453
|
-
input:
|
|
435
|
+
input: redactInput(this.logger, input, summariseTables),
|
|
454
436
|
});
|
|
455
437
|
let current = input;
|
|
456
438
|
for (let attempt = 0; attempt < BATCH_WRITE_MAX_ATTEMPTS; attempt++) {
|
|
@@ -496,7 +478,7 @@ class DynamoDBService {
|
|
|
496
478
|
*/
|
|
497
479
|
async *paginateItems(input) {
|
|
498
480
|
this.logger.info('Paginating DynamoDB query', {
|
|
499
|
-
input:
|
|
481
|
+
input: redactInput(this.logger, input, QUERY_SAFE_FIELDS),
|
|
500
482
|
});
|
|
501
483
|
const paginator = paginateQuery({ client: this.client }, input);
|
|
502
484
|
for await (const page of paginator) {
|
|
@@ -517,7 +499,7 @@ class DynamoDBService {
|
|
|
517
499
|
*/
|
|
518
500
|
async *paginateScan(input) {
|
|
519
501
|
this.logger.info('Paginating DynamoDB scan', {
|
|
520
|
-
input:
|
|
502
|
+
input: redactInput(this.logger, input, SCAN_SAFE_FIELDS),
|
|
521
503
|
});
|
|
522
504
|
const paginator = paginateScan({ client: this.client }, input);
|
|
523
505
|
for await (const page of paginator) {
|
|
@@ -529,6 +511,18 @@ class DynamoDBService {
|
|
|
529
511
|
}
|
|
530
512
|
}
|
|
531
513
|
|
|
514
|
+
/**
|
|
515
|
+
* Split a list into consecutive chunks of at most `size` items, mirroring the
|
|
516
|
+
* per-request caps the AWS APIs enforce on batch operations.
|
|
517
|
+
*/
|
|
518
|
+
function chunk(items, size) {
|
|
519
|
+
const chunks = [];
|
|
520
|
+
for (let i = 0; i < items.length; i += size) {
|
|
521
|
+
chunks.push(items.slice(i, i + size));
|
|
522
|
+
}
|
|
523
|
+
return chunks;
|
|
524
|
+
}
|
|
525
|
+
|
|
532
526
|
const DEFAULT_PRESIGNED_URL_EXPIRES_IN_SECONDS = 3600;
|
|
533
527
|
const DELETE_OBJECTS_BATCH_LIMIT = 1000;
|
|
534
528
|
/**
|
|
@@ -580,7 +574,7 @@ class S3Service {
|
|
|
580
574
|
*/
|
|
581
575
|
async putObject(input) {
|
|
582
576
|
this.logger.info('Putting S3 object', {
|
|
583
|
-
input:
|
|
577
|
+
input: redactInput(this.logger, input, PUT_OBJECT_SAFE_FIELDS),
|
|
584
578
|
});
|
|
585
579
|
return this.client.send(new PutObjectCommand(input));
|
|
586
580
|
}
|
|
@@ -595,7 +589,7 @@ class S3Service {
|
|
|
595
589
|
*/
|
|
596
590
|
async putJsonObject(input) {
|
|
597
591
|
this.logger.info('Putting S3 JSON object', {
|
|
598
|
-
input:
|
|
592
|
+
input: redactInput(this.logger, input, PUT_JSON_OBJECT_SAFE_FIELDS),
|
|
599
593
|
});
|
|
600
594
|
return this.client.send(new PutObjectCommand({
|
|
601
595
|
Bucket: input.Bucket,
|
|
@@ -654,14 +648,8 @@ class S3Service {
|
|
|
654
648
|
async listObjects(bucket, prefix) {
|
|
655
649
|
this.logger.info('Listing S3 objects', { input: { bucket, prefix } });
|
|
656
650
|
const paginator = paginateListObjectsV2({ client: this.client }, { Bucket: bucket, Prefix: prefix });
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
for (const object of page.Contents ?? []) {
|
|
660
|
-
if (object.Key)
|
|
661
|
-
keys.push(object.Key);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
return keys;
|
|
651
|
+
const objects = await collectItems(paginator, page => page.Contents);
|
|
652
|
+
return objects.flatMap(object => (object.Key ? [object.Key] : []));
|
|
665
653
|
}
|
|
666
654
|
/**
|
|
667
655
|
* List and JSON-parse every object under a bucket and optional prefix.
|
|
@@ -729,16 +717,14 @@ class S3Service {
|
|
|
729
717
|
* per chunk.
|
|
730
718
|
*/
|
|
731
719
|
async deleteObjects(bucket, keys) {
|
|
732
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because the
|
|
733
|
-
// safe log shape includes the computed `keyCount`, which isn't a key
|
|
734
|
-
// on any SDK input type.
|
|
735
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
736
720
|
this.logger.info('Deleting S3 objects', {
|
|
737
|
-
input:
|
|
721
|
+
input: redactInput(this.logger, { bucket, keys }, input => ({
|
|
722
|
+
bucket: input.bucket,
|
|
723
|
+
keyCount: input.keys.length,
|
|
724
|
+
})),
|
|
738
725
|
});
|
|
739
726
|
const results = [];
|
|
740
|
-
for (
|
|
741
|
-
const batch = keys.slice(i, i + DELETE_OBJECTS_BATCH_LIMIT);
|
|
727
|
+
for (const batch of chunk(keys, DELETE_OBJECTS_BATCH_LIMIT)) {
|
|
742
728
|
results.push(await this.client.send(new DeleteObjectsCommand({
|
|
743
729
|
Bucket: bucket,
|
|
744
730
|
Delete: { Objects: batch.map(Key => ({ Key })) },
|
|
@@ -784,21 +770,14 @@ class S3Service {
|
|
|
784
770
|
* PII (customer IDs, order contents, etc.), the same risk profile as SFN's
|
|
785
771
|
* execution `input`.
|
|
786
772
|
*
|
|
787
|
-
* This can't
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
* `
|
|
792
|
-
*
|
|
793
|
-
* `Target.Input`.
|
|
794
|
-
*
|
|
795
|
-
* At the verbose levels — see {@link shouldLogFullInput} — the input is
|
|
796
|
-
* returned unchanged: operators who asked for that verbosity have opted into
|
|
797
|
-
* seeing payloads and PII.
|
|
773
|
+
* This can't be a key allowlist for {@link redactInput}: an allowlist picks
|
|
774
|
+
* **top-level** keys only, and the sensitive field is nested one level down
|
|
775
|
+
* inside `Target`. Allowlisting `Target` would leak `Input`; omitting `Target`
|
|
776
|
+
* would lose operationally-useful fields (`Arn`, `RoleArn`, `RetryPolicy`,
|
|
777
|
+
* `DeadLetterConfig`, the target-type params). So this is a projection
|
|
778
|
+
* function: keep every top-level field and shallow-strip only `Target.Input`.
|
|
798
779
|
*/
|
|
799
|
-
function
|
|
800
|
-
if (shouldLogFullInput(logger))
|
|
801
|
-
return input;
|
|
780
|
+
function stripTargetInput(input) {
|
|
802
781
|
if (input.Target?.Input === undefined)
|
|
803
782
|
return input;
|
|
804
783
|
const { Input: _input, ...safeTarget } = input.Target;
|
|
@@ -838,7 +817,9 @@ class SchedulerService {
|
|
|
838
817
|
* target payload, a PII carrier).
|
|
839
818
|
*/
|
|
840
819
|
async createSchedule(input) {
|
|
841
|
-
this.logger.info('Creating schedule', {
|
|
820
|
+
this.logger.info('Creating schedule', {
|
|
821
|
+
input: redactInput(this.logger, input, stripTargetInput),
|
|
822
|
+
});
|
|
842
823
|
return this.client.send(new CreateScheduleCommand(input));
|
|
843
824
|
}
|
|
844
825
|
/**
|
|
@@ -862,7 +843,9 @@ class SchedulerService {
|
|
|
862
843
|
* At INFO the log line omits `Target.Input`.
|
|
863
844
|
*/
|
|
864
845
|
async updateSchedule(input) {
|
|
865
|
-
this.logger.info('Updating schedule', {
|
|
846
|
+
this.logger.info('Updating schedule', {
|
|
847
|
+
input: redactInput(this.logger, input, stripTargetInput),
|
|
848
|
+
});
|
|
866
849
|
return this.client.send(new UpdateScheduleCommand(input));
|
|
867
850
|
}
|
|
868
851
|
/**
|
|
@@ -880,12 +863,7 @@ class SchedulerService {
|
|
|
880
863
|
async listSchedules(input) {
|
|
881
864
|
this.logger.info('Listing schedules', { input });
|
|
882
865
|
const paginator = paginateListSchedules({ client: this.client }, input ?? {});
|
|
883
|
-
|
|
884
|
-
for await (const page of paginator) {
|
|
885
|
-
if (page.Schedules)
|
|
886
|
-
schedules.push(...page.Schedules);
|
|
887
|
-
}
|
|
888
|
-
return schedules;
|
|
866
|
+
return collectItems(paginator, page => page.Schedules);
|
|
889
867
|
}
|
|
890
868
|
/**
|
|
891
869
|
* Create a new schedule group. Groups are containers for schedules and are
|
|
@@ -918,12 +896,7 @@ class SchedulerService {
|
|
|
918
896
|
async listScheduleGroups(input) {
|
|
919
897
|
this.logger.info('Listing schedule groups', { input });
|
|
920
898
|
const paginator = paginateListScheduleGroups({ client: this.client }, input ?? {});
|
|
921
|
-
|
|
922
|
-
for await (const page of paginator) {
|
|
923
|
-
if (page.ScheduleGroups)
|
|
924
|
-
groups.push(...page.ScheduleGroups);
|
|
925
|
-
}
|
|
926
|
-
return groups;
|
|
899
|
+
return collectItems(paginator, page => page.ScheduleGroups);
|
|
927
900
|
}
|
|
928
901
|
}
|
|
929
902
|
|
|
@@ -1022,7 +995,7 @@ class SecretsManagerService {
|
|
|
1022
995
|
*/
|
|
1023
996
|
async createSecret(input) {
|
|
1024
997
|
this.logger.info('Creating secret', {
|
|
1025
|
-
input:
|
|
998
|
+
input: redactInput(this.logger, input, CREATE_SECRET_SAFE_FIELDS),
|
|
1026
999
|
});
|
|
1027
1000
|
return this.client.send(new CreateSecretCommand(input));
|
|
1028
1001
|
}
|
|
@@ -1035,7 +1008,7 @@ class SecretsManagerService {
|
|
|
1035
1008
|
*/
|
|
1036
1009
|
async updateSecret(input) {
|
|
1037
1010
|
this.logger.info('Updating secret', {
|
|
1038
|
-
input:
|
|
1011
|
+
input: redactInput(this.logger, input, UPDATE_SECRET_SAFE_FIELDS),
|
|
1039
1012
|
});
|
|
1040
1013
|
return this.client.send(new UpdateSecretCommand(input));
|
|
1041
1014
|
}
|
|
@@ -1047,7 +1020,7 @@ class SecretsManagerService {
|
|
|
1047
1020
|
*/
|
|
1048
1021
|
async putSecretValue(input) {
|
|
1049
1022
|
this.logger.info('Putting secret value', {
|
|
1050
|
-
input:
|
|
1023
|
+
input: redactInput(this.logger, input, PUT_SECRET_VALUE_SAFE_FIELDS),
|
|
1051
1024
|
});
|
|
1052
1025
|
return this.client.send(new PutSecretValueCommand(input));
|
|
1053
1026
|
}
|
|
@@ -1059,7 +1032,7 @@ class SecretsManagerService {
|
|
|
1059
1032
|
*/
|
|
1060
1033
|
async deleteSecret(input) {
|
|
1061
1034
|
this.logger.info('Deleting secret', {
|
|
1062
|
-
input:
|
|
1035
|
+
input: redactInput(this.logger, input, DELETE_SECRET_SAFE_FIELDS),
|
|
1063
1036
|
});
|
|
1064
1037
|
return this.client.send(new DeleteSecretCommand(input));
|
|
1065
1038
|
}
|
|
@@ -1111,19 +1084,14 @@ class StepFunctionsService {
|
|
|
1111
1084
|
async listExecutions(input) {
|
|
1112
1085
|
this.logger.info('Listing Step Functions executions', { input });
|
|
1113
1086
|
const paginator = paginateListExecutions({ client: this.client }, input);
|
|
1114
|
-
|
|
1115
|
-
for await (const page of paginator) {
|
|
1116
|
-
if (page.executions)
|
|
1117
|
-
executions.push(...page.executions);
|
|
1118
|
-
}
|
|
1119
|
-
return executions;
|
|
1087
|
+
return collectItems(paginator, page => page.executions);
|
|
1120
1088
|
}
|
|
1121
1089
|
/**
|
|
1122
1090
|
* Start a new Step Functions execution.
|
|
1123
1091
|
*/
|
|
1124
1092
|
async startExecution(input) {
|
|
1125
1093
|
this.logger.info('Starting Step Functions execution', {
|
|
1126
|
-
input:
|
|
1094
|
+
input: redactInput(this.logger, input, START_EXECUTION_SAFE_FIELDS),
|
|
1127
1095
|
});
|
|
1128
1096
|
return this.client.send(new StartExecutionCommand(input));
|
|
1129
1097
|
}
|
|
@@ -1143,6 +1111,59 @@ class StepFunctionsService {
|
|
|
1143
1111
|
}
|
|
1144
1112
|
}
|
|
1145
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* Thrown by the batch methods once every chunk has been sent and at least one
|
|
1116
|
+
* entry was rejected.
|
|
1117
|
+
*
|
|
1118
|
+
* `results` holds the raw SDK output of every chunk, so the outputs of the
|
|
1119
|
+
* entries that succeeded (message ids, sequence numbers) stay readable.
|
|
1120
|
+
* `failed` is the normalised list of rejected entries across all chunks.
|
|
1121
|
+
*
|
|
1122
|
+
* Match on `name` rather than `instanceof` if both the CJS and ESM builds of
|
|
1123
|
+
* this package may be loaded in one process.
|
|
1124
|
+
*/
|
|
1125
|
+
class BatchOperationError extends Error {
|
|
1126
|
+
results;
|
|
1127
|
+
failed;
|
|
1128
|
+
name = 'BatchOperationError';
|
|
1129
|
+
constructor(results, failed) {
|
|
1130
|
+
super(`Batch operation failed for ${failed.length} entries (${distinctCodes(failed).join(', ')})`);
|
|
1131
|
+
this.results = results;
|
|
1132
|
+
this.failed = failed;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* SQS and SNS report rejected entries under `Failed` on an otherwise
|
|
1137
|
+
* successful response, so a resolved chunk does not mean every entry was
|
|
1138
|
+
* accepted. Returns `results` untouched when nothing failed; otherwise warns
|
|
1139
|
+
* and throws a {@link BatchOperationError}.
|
|
1140
|
+
*
|
|
1141
|
+
* Only id, code and message are copied out — never the entry itself — so
|
|
1142
|
+
* neither the error nor the warning can leak a payload.
|
|
1143
|
+
*/
|
|
1144
|
+
function throwIfAnyFailed(logger, operation, results) {
|
|
1145
|
+
const failed = results.flatMap(result => (result.Failed ?? []).map(({ Id, Code, Message }) => ({
|
|
1146
|
+
id: Id,
|
|
1147
|
+
code: Code,
|
|
1148
|
+
message: Message,
|
|
1149
|
+
})));
|
|
1150
|
+
if (failed.length === 0)
|
|
1151
|
+
return results;
|
|
1152
|
+
logger.warn(`${operation} had rejected entries`, {
|
|
1153
|
+
failedCount: failed.length,
|
|
1154
|
+
codes: distinctCodes(failed),
|
|
1155
|
+
});
|
|
1156
|
+
throw new BatchOperationError(results, failed);
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Distinct error codes in first-seen order, for the error message and the
|
|
1160
|
+
* warning log line.
|
|
1161
|
+
*/
|
|
1162
|
+
function distinctCodes(failed) {
|
|
1163
|
+
const codes = failed.flatMap(entry => (entry.code === undefined ? [] : [entry.code]));
|
|
1164
|
+
return [...new Set(codes)];
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1146
1167
|
/**
|
|
1147
1168
|
* Truncate a UTF-8 string to fit within `maxBytes` when encoded as UTF-8.
|
|
1148
1169
|
*
|
|
@@ -1232,7 +1253,7 @@ class SNSService {
|
|
|
1232
1253
|
const shouldTruncate = opts?.truncate ?? this.truncate;
|
|
1233
1254
|
const effective = shouldTruncate ? this.applyTruncation(input) : input;
|
|
1234
1255
|
this.logger.info('Publishing SNS message', {
|
|
1235
|
-
input:
|
|
1256
|
+
input: redactInput(this.logger, effective, PUBLISH_SAFE_FIELDS),
|
|
1236
1257
|
});
|
|
1237
1258
|
return this.client.send(new PublishCommand(effective));
|
|
1238
1259
|
}
|
|
@@ -1270,26 +1291,31 @@ class SNSService {
|
|
|
1270
1291
|
* PublishBatch at 10 entries per request, so this method auto-chunks
|
|
1271
1292
|
* the caller's `PublishBatchRequestEntries` and sends one request per
|
|
1272
1293
|
* chunk, returning the array of outputs.
|
|
1294
|
+
*
|
|
1295
|
+
* Every chunk is sent before the outcome is judged. If SNS rejected any
|
|
1296
|
+
* entry, a {@link BatchOperationError} is then thrown carrying the
|
|
1297
|
+
* per-chunk results and the failed entries. Request-level SDK exceptions
|
|
1298
|
+
* (throttling, access denied) propagate unchanged and immediately, so
|
|
1299
|
+
* earlier chunks may already have been published.
|
|
1300
|
+
*
|
|
1273
1301
|
* @param input - PublishBatchCommandInput including TopicArn and entries.
|
|
1274
1302
|
*/
|
|
1275
1303
|
async publishBatch(input) {
|
|
1276
1304
|
const entries = input.PublishBatchRequestEntries ?? [];
|
|
1277
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because the
|
|
1278
|
-
// safe log shape includes the computed `entryCount`, which isn't a key
|
|
1279
|
-
// on `PublishBatchCommandInput`.
|
|
1280
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
1281
1305
|
this.logger.info('Publishing SNS message batch', {
|
|
1282
|
-
input:
|
|
1306
|
+
input: redactInput(this.logger, input, ({ TopicArn }) => ({
|
|
1307
|
+
TopicArn,
|
|
1308
|
+
entryCount: entries.length,
|
|
1309
|
+
})),
|
|
1283
1310
|
});
|
|
1284
1311
|
const results = [];
|
|
1285
|
-
for (
|
|
1286
|
-
const chunk = entries.slice(i, i + PUBLISH_BATCH_LIMIT);
|
|
1312
|
+
for (const batch of chunk(entries, PUBLISH_BATCH_LIMIT)) {
|
|
1287
1313
|
results.push(await this.client.send(new PublishBatchCommand({
|
|
1288
1314
|
...input,
|
|
1289
|
-
PublishBatchRequestEntries:
|
|
1315
|
+
PublishBatchRequestEntries: batch,
|
|
1290
1316
|
})));
|
|
1291
1317
|
}
|
|
1292
|
-
return results;
|
|
1318
|
+
return throwIfAnyFailed(this.logger, 'SNS publishBatch', results);
|
|
1293
1319
|
}
|
|
1294
1320
|
}
|
|
1295
1321
|
|
|
@@ -1305,6 +1331,13 @@ const SEND_MESSAGE_SAFE_FIELDS = [
|
|
|
1305
1331
|
'MessageGroupId',
|
|
1306
1332
|
'MessageDeduplicationId',
|
|
1307
1333
|
];
|
|
1334
|
+
/**
|
|
1335
|
+
* Safe log shape for the batch methods. The entries carry message bodies and
|
|
1336
|
+
* receipt handles, so they are reduced to a count.
|
|
1337
|
+
*/
|
|
1338
|
+
function summariseEntries(input) {
|
|
1339
|
+
return { QueueUrl: input.QueueUrl, entryCount: input.Entries?.length ?? 0 };
|
|
1340
|
+
}
|
|
1308
1341
|
/**
|
|
1309
1342
|
* Wrapper around the AWS SQS client providing structured Powertools logging
|
|
1310
1343
|
* and X-Ray tracing by default.
|
|
@@ -1342,7 +1375,7 @@ class SQSService {
|
|
|
1342
1375
|
const shouldTruncate = opts?.truncate ?? this.truncate;
|
|
1343
1376
|
const effective = shouldTruncate ? this.applyTruncation(input) : input;
|
|
1344
1377
|
this.logger.info('Sending SQS message', {
|
|
1345
|
-
input:
|
|
1378
|
+
input: redactInput(this.logger, effective, SEND_MESSAGE_SAFE_FIELDS),
|
|
1346
1379
|
});
|
|
1347
1380
|
return this.client.send(new SendMessageCommand(effective));
|
|
1348
1381
|
}
|
|
@@ -1390,43 +1423,46 @@ class SQSService {
|
|
|
1390
1423
|
* Send a batch of messages to an SQS queue. The SQS API caps
|
|
1391
1424
|
* SendMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1392
1425
|
* the caller's entries and sends one request per chunk.
|
|
1426
|
+
*
|
|
1427
|
+
* Every chunk is sent before the outcome is judged. If SQS rejected any
|
|
1428
|
+
* entry, a {@link BatchOperationError} is then thrown carrying the
|
|
1429
|
+
* per-chunk results and the failed entries. Request-level SDK exceptions
|
|
1430
|
+
* (throttling, access denied) propagate unchanged and immediately, so
|
|
1431
|
+
* earlier chunks may already have been sent.
|
|
1393
1432
|
*/
|
|
1394
1433
|
async sendMessageBatch(input) {
|
|
1395
1434
|
const entries = input.Entries ?? [];
|
|
1396
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because the
|
|
1397
|
-
// safe log shape includes the computed `entryCount`, which isn't a key
|
|
1398
|
-
// on `SendMessageBatchCommandInput`.
|
|
1399
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
1400
1435
|
this.logger.info('Sending SQS message batch', {
|
|
1401
|
-
input:
|
|
1436
|
+
input: redactInput(this.logger, input, summariseEntries),
|
|
1402
1437
|
});
|
|
1403
1438
|
const results = [];
|
|
1404
|
-
for (
|
|
1405
|
-
|
|
1406
|
-
results.push(await this.client.send(new SendMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1439
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1440
|
+
results.push(await this.client.send(new SendMessageBatchCommand({ ...input, Entries: batch })));
|
|
1407
1441
|
}
|
|
1408
|
-
return results;
|
|
1442
|
+
return throwIfAnyFailed(this.logger, 'SQS sendMessageBatch', results);
|
|
1409
1443
|
}
|
|
1410
1444
|
/**
|
|
1411
1445
|
* Delete a batch of messages from an SQS queue. The SQS API caps
|
|
1412
1446
|
* DeleteMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1413
1447
|
* the caller's entries and sends one request per chunk.
|
|
1448
|
+
*
|
|
1449
|
+
* Every chunk is sent before the outcome is judged. If SQS failed to
|
|
1450
|
+
* delete any message, a {@link BatchOperationError} is then thrown carrying
|
|
1451
|
+
* the per-chunk results and the failed entries; those messages will be
|
|
1452
|
+
* redelivered. Request-level SDK exceptions (throttling, access denied)
|
|
1453
|
+
* propagate unchanged and immediately, so earlier chunks may already have
|
|
1454
|
+
* been deleted.
|
|
1414
1455
|
*/
|
|
1415
1456
|
async deleteMessageBatch(input) {
|
|
1416
1457
|
const entries = input.Entries ?? [];
|
|
1417
|
-
// Inline verbosity check rather than `filterFieldsForLogLevel` because the
|
|
1418
|
-
// safe log shape includes the computed `entryCount`, which isn't a key
|
|
1419
|
-
// on `DeleteMessageBatchCommandInput`.
|
|
1420
|
-
const logFullInput = shouldLogFullInput(this.logger);
|
|
1421
1458
|
this.logger.info('Deleting SQS message batch', {
|
|
1422
|
-
input:
|
|
1459
|
+
input: redactInput(this.logger, input, summariseEntries),
|
|
1423
1460
|
});
|
|
1424
1461
|
const results = [];
|
|
1425
|
-
for (
|
|
1426
|
-
|
|
1427
|
-
results.push(await this.client.send(new DeleteMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1462
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1463
|
+
results.push(await this.client.send(new DeleteMessageBatchCommand({ ...input, Entries: batch })));
|
|
1428
1464
|
}
|
|
1429
|
-
return results;
|
|
1465
|
+
return throwIfAnyFailed(this.logger, 'SQS deleteMessageBatch', results);
|
|
1430
1466
|
}
|
|
1431
1467
|
}
|
|
1432
1468
|
|
|
@@ -1515,10 +1551,9 @@ class SSMService {
|
|
|
1515
1551
|
this.logger.info('Fetching SSM parameters', { input: { aliases } });
|
|
1516
1552
|
const names = Object.values(aliases);
|
|
1517
1553
|
const byPath = new Map();
|
|
1518
|
-
for (
|
|
1519
|
-
const chunk = names.slice(i, i + GET_PARAMETERS_LIMIT);
|
|
1554
|
+
for (const batch of chunk(names, GET_PARAMETERS_LIMIT)) {
|
|
1520
1555
|
const response = await this.client.send(new GetParametersCommand({
|
|
1521
|
-
Names:
|
|
1556
|
+
Names: batch,
|
|
1522
1557
|
WithDecryption: true,
|
|
1523
1558
|
}));
|
|
1524
1559
|
for (const parameter of response.Parameters ?? []) {
|
|
@@ -1541,7 +1576,7 @@ class SSMService {
|
|
|
1541
1576
|
*/
|
|
1542
1577
|
async putParameter(input) {
|
|
1543
1578
|
this.logger.info('Putting SSM parameter', {
|
|
1544
|
-
input:
|
|
1579
|
+
input: redactInput(this.logger, input, PUT_PARAMETER_SAFE_FIELDS),
|
|
1545
1580
|
});
|
|
1546
1581
|
return this.client.send(new PutParameterCommand(input));
|
|
1547
1582
|
}
|
|
@@ -1572,12 +1607,8 @@ class SSMService {
|
|
|
1572
1607
|
input: { path, recursive },
|
|
1573
1608
|
});
|
|
1574
1609
|
const paginator = paginateGetParametersByPath({ client: this.client }, { Path: path, Recursive: recursive, WithDecryption: true });
|
|
1575
|
-
|
|
1576
|
-
for await (const page of paginator) {
|
|
1577
|
-
parameters.push(...(page.Parameters ?? []));
|
|
1578
|
-
}
|
|
1579
|
-
return parameters;
|
|
1610
|
+
return collectItems(paginator, page => page.Parameters);
|
|
1580
1611
|
}
|
|
1581
1612
|
}
|
|
1582
1613
|
|
|
1583
|
-
export { APIGatewayService, APIGatewayV2Service, DynamoDBService, S3Service, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
|
1614
|
+
export { APIGatewayService, APIGatewayV2Service, BatchOperationError, DynamoDBService, S3Service, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
package/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamodb.d.ts","sourceRoot":"","sources":["../../../../src/dynamodb/dynamodb.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAEH,oBAAoB,EACpB,qBAAqB,EAErB,sBAAsB,EACtB,uBAAuB,EAEvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EAEtB,eAAe,EAIf,eAAe,EACf,gBAAgB,EAEhB,iBAAiB,EACjB,kBAAkB,EAElB,gBAAgB,EAChB,iBAAiB,EAEjB,kBAAkB,EAClB,mBAAmB,EACtB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"dynamodb.d.ts","sourceRoot":"","sources":["../../../../src/dynamodb/dynamodb.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E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OAAO,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;KAAE,CAAC;IAQ9D;;;;;;;;;;OAUG;IACG,QAAQ,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA2B3E;;;;OAIG;IACG,UAAU,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAoBjF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5E,KAAK,EAAE,iBAAiB,GACzB,cAAc,CAAC,CAAC,CAAC;IAWpB;;;;;;;;OAQG;IACI,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3E,KAAK,EAAE,gBAAgB,GACxB,cAAc,CAAC,CAAC,CAAC;CAUvB"}
|
package/esm/src/index.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ export { StepFunctionsService } from './sfn/sfn.js';
|
|
|
8
8
|
export { SNSService } from './sns/sns.js';
|
|
9
9
|
export { SQSService } from './sqs/sqs.js';
|
|
10
10
|
export { SSMService } from './ssm/ssm.js';
|
|
11
|
+
export { BatchOperationError } from './util/batch-operation-error.js';
|
|
12
|
+
export type { BatchFailedEntry } from './util/batch-operation-error.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
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,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,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"}
|
|
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,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,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"}
|
package/esm/src/s3/s3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3.d.ts","sourceRoot":"","sources":["../../../../src/s3/s3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,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