@aligent/aws-wrappers 0.5.0 → 0.5.2

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.
Files changed (63) hide show
  1. package/README.md +6 -5
  2. package/cjs/index.cjs +46 -12
  3. package/cjs/package.json +1 -1
  4. package/cjs/src/dynamodb/dynamodb.d.ts +5 -1
  5. package/cjs/src/dynamodb/dynamodb.d.ts.map +1 -0
  6. package/cjs/src/index.d.ts +1 -0
  7. package/cjs/src/index.d.ts.map +1 -0
  8. package/cjs/src/s3/s3.d.ts +1 -0
  9. package/cjs/src/s3/s3.d.ts.map +1 -0
  10. package/cjs/src/scheduler/scheduler.d.ts +1 -0
  11. package/cjs/src/scheduler/scheduler.d.ts.map +1 -0
  12. package/cjs/src/secrets-manager/secrets-manager.d.ts +1 -0
  13. package/cjs/src/secrets-manager/secrets-manager.d.ts.map +1 -0
  14. package/cjs/src/sfn/sfn.d.ts +1 -0
  15. package/cjs/src/sfn/sfn.d.ts.map +1 -0
  16. package/cjs/src/sns/sns.d.ts +1 -0
  17. package/cjs/src/sns/sns.d.ts.map +1 -0
  18. package/cjs/src/sqs/sqs.d.ts +1 -0
  19. package/cjs/src/sqs/sqs.d.ts.map +1 -0
  20. package/cjs/src/ssm/ssm.d.ts +6 -0
  21. package/cjs/src/ssm/ssm.d.ts.map +1 -0
  22. package/cjs/src/testing/testing.d.ts +1 -0
  23. package/cjs/src/testing/testing.d.ts.map +1 -0
  24. package/cjs/src/util/redact.d.ts +1 -0
  25. package/cjs/src/util/redact.d.ts.map +1 -0
  26. package/cjs/src/util/truncate.d.ts +1 -0
  27. package/cjs/src/util/truncate.d.ts.map +1 -0
  28. package/docs/index/classes/DynamoDBService.md +16 -13
  29. package/docs/index/classes/S3Service.md +15 -15
  30. package/docs/index/classes/SNSService.md +4 -4
  31. package/docs/index/classes/SQSService.md +7 -7
  32. package/docs/index/classes/SSMService.md +12 -7
  33. package/docs/index/classes/SchedulerService.md +11 -11
  34. package/docs/index/classes/SecretsManagerService.md +8 -8
  35. package/docs/index/classes/StepFunctionsService.md +6 -6
  36. package/docs/testing/testing/functions/createMockService.md +1 -1
  37. package/esm/index.mjs +46 -12
  38. package/esm/package.json +1 -1
  39. package/esm/src/dynamodb/dynamodb.d.ts +5 -1
  40. package/esm/src/dynamodb/dynamodb.d.ts.map +1 -0
  41. package/esm/src/index.d.ts +1 -0
  42. package/esm/src/index.d.ts.map +1 -0
  43. package/esm/src/s3/s3.d.ts +1 -0
  44. package/esm/src/s3/s3.d.ts.map +1 -0
  45. package/esm/src/scheduler/scheduler.d.ts +1 -0
  46. package/esm/src/scheduler/scheduler.d.ts.map +1 -0
  47. package/esm/src/secrets-manager/secrets-manager.d.ts +1 -0
  48. package/esm/src/secrets-manager/secrets-manager.d.ts.map +1 -0
  49. package/esm/src/sfn/sfn.d.ts +1 -0
  50. package/esm/src/sfn/sfn.d.ts.map +1 -0
  51. package/esm/src/sns/sns.d.ts +1 -0
  52. package/esm/src/sns/sns.d.ts.map +1 -0
  53. package/esm/src/sqs/sqs.d.ts +1 -0
  54. package/esm/src/sqs/sqs.d.ts.map +1 -0
  55. package/esm/src/ssm/ssm.d.ts +6 -0
  56. package/esm/src/ssm/ssm.d.ts.map +1 -0
  57. package/esm/src/testing/testing.d.ts +1 -0
  58. package/esm/src/testing/testing.d.ts.map +1 -0
  59. package/esm/src/util/redact.d.ts +1 -0
  60. package/esm/src/util/redact.d.ts.map +1 -0
  61. package/esm/src/util/truncate.d.ts +1 -0
  62. package/esm/src/util/truncate.d.ts.map +1 -0
  63. package/package.json +1 -1
package/README.md CHANGED
@@ -159,7 +159,7 @@ for await (const item of ddb.paginateItems<{ pk: string }>({
159
159
 
160
160
  `Limit` on `paginateItems` / `paginateScan` is applied by DynamoDB per request, and both methods walk every page until `LastEvaluatedKey` is exhausted. Passing `Limit: 10` therefore yields *every* matching item in pages of 10, not the first 10. Because both return an `AsyncGenerator`, `break` calls its `return()`, which unwinds the pagination and issues no further requests — that is how you bound the number of items. `Limit` is still the right knob for tuning per-request consumed capacity and page memory; it just doesn't stop the walk.
161
161
 
162
- `batchGet` is **not** generic — its `Responses` field is a multi-table record whose item shapes can differ per table, so no single generic can soundly describe it. Callers should narrow the result type at the call site.
162
+ `batchGet` is **not** generic — its `Responses` field is a multi-table record whose item shapes can differ per table, so no single generic can soundly describe it. Callers should narrow the result type at the call site. Like `batchWrite`, it retries non-empty `UnprocessedKeys` with jittered exponential backoff (5 attempts, 200ms base), merging `Responses` across attempts and throwing if keys remain unprocessed after the final attempt.
163
163
 
164
164
  ## Secrets Manager
165
165
 
@@ -272,7 +272,8 @@ const ssm = new SSMService();
272
272
  const apiKey = await ssm.getParameter('/myapp/api-key');
273
273
 
274
274
  // Supply an alias-to-path map — the result is keyed by the aliases so the
275
- // SSM path is only mentioned at the call site.
275
+ // SSM path is only mentioned at the call site. Auto-chunks past 10 aliases
276
+ // (the SDK's per-request cap on GetParameters).
276
277
  const { host, port } = await ssm.getParameters({
277
278
  host: '/myapp/host',
278
279
  port: '/myapp/port',
@@ -417,7 +418,7 @@ The helper is generic over any class, so it works for all eight wrappers and for
417
418
  ## Build / test
418
419
 
419
420
  ```sh
420
- npm run build # affected only
421
- npm run test
422
- npm run lint
421
+ yarn build # affected only
422
+ yarn test
423
+ yarn lint
423
424
  ```
package/cjs/index.cjs CHANGED
@@ -54,6 +54,8 @@ function filterFieldsForLogLevel(logger, input, safeFields) {
54
54
 
55
55
  const BATCH_WRITE_MAX_ATTEMPTS = 5;
56
56
  const BATCH_WRITE_BASE_DELAY_MS = 200;
57
+ const BATCH_GET_MAX_ATTEMPTS = 5;
58
+ const BATCH_GET_BASE_DELAY_MS = 200;
57
59
  /**
58
60
  * Fields safe to log at INFO. Omits `Key` (may carry customer IDs / tenant IDs).
59
61
  */
@@ -139,8 +141,8 @@ const SCAN_SAFE_FIELDS = [
139
141
  'ReturnConsumedCapacity',
140
142
  ];
141
143
  const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
142
- const backoffDelay = (attempt) => {
143
- const exp = BATCH_WRITE_BASE_DELAY_MS * 2 ** attempt;
144
+ const backoffDelay = (attempt, baseDelayMs) => {
145
+ const exp = baseDelayMs * 2 ** attempt;
144
146
  return exp + Math.random() * exp;
145
147
  };
146
148
  /**
@@ -268,7 +270,10 @@ class DynamoDBService {
268
270
  return response;
269
271
  }
270
272
  /**
271
- * Batch-get items from one or more DynamoDB tables.
273
+ * Batch-get items from one or more DynamoDB tables, retrying
274
+ * `UnprocessedKeys` with jittered exponential backoff. Up to 5 attempts
275
+ * (200ms base delay). Throws when keys remain unprocessed after the final
276
+ * attempt. `Responses` are merged across attempts, keyed by table name.
272
277
  *
273
278
  * Note: this method is intentionally **not** generic. `BatchGet`'s
274
279
  * `Responses` field is a multi-table `Record<string, item[]>` whose item
@@ -284,7 +289,26 @@ class DynamoDBService {
284
289
  this.logger.info('Batch getting DynamoDB items', {
285
290
  input: logFullInput ? input : { tables: Object.keys(input.RequestItems ?? {}) },
286
291
  });
287
- return this.client.send(new libDynamodb.BatchGetCommand(input));
292
+ let current = input;
293
+ const mergedResponses = {};
294
+ for (let attempt = 0; attempt < BATCH_GET_MAX_ATTEMPTS; attempt++) {
295
+ const response = await this.client.send(new libDynamodb.BatchGetCommand(current));
296
+ for (const [table, items] of Object.entries(response.Responses ?? {})) {
297
+ mergedResponses[table] = [...(mergedResponses[table] ?? []), ...items];
298
+ }
299
+ const unprocessed = response.UnprocessedKeys;
300
+ if (!unprocessed || Object.keys(unprocessed).length === 0) {
301
+ return { ...response, Responses: mergedResponses };
302
+ }
303
+ this.logger.warn('Retrying unprocessed DynamoDB items', {
304
+ attempt: attempt + 1,
305
+ tables: Object.keys(unprocessed),
306
+ });
307
+ if (attempt < BATCH_GET_MAX_ATTEMPTS - 1)
308
+ await sleep(backoffDelay(attempt, BATCH_GET_BASE_DELAY_MS));
309
+ current = { ...input, RequestItems: unprocessed };
310
+ }
311
+ throw new Error(`batchGet failed after ${BATCH_GET_MAX_ATTEMPTS} attempts`);
288
312
  }
289
313
  /**
290
314
  * Batch-write items to DynamoDB, retrying `UnprocessedItems` with jittered
@@ -311,7 +335,7 @@ class DynamoDBService {
311
335
  tables: Object.keys(unprocessed),
312
336
  });
313
337
  if (attempt < BATCH_WRITE_MAX_ATTEMPTS - 1)
314
- await sleep(backoffDelay(attempt));
338
+ await sleep(backoffDelay(attempt, BATCH_WRITE_BASE_DELAY_MS));
315
339
  current = { ...input, RequestItems: unprocessed };
316
340
  }
317
341
  throw new Error(`batchWrite failed after ${BATCH_WRITE_MAX_ATTEMPTS} attempts`);
@@ -1278,6 +1302,7 @@ class SQSService {
1278
1302
  }
1279
1303
  }
1280
1304
 
1305
+ const GET_PARAMETERS_LIMIT = 10;
1281
1306
  /**
1282
1307
  * Fields safe to log at INFO level for `putParameter`. Omits `Value` (the
1283
1308
  * parameter content itself).
@@ -1347,6 +1372,11 @@ class SSMService {
1347
1372
  * });
1348
1373
  * ```
1349
1374
  *
1375
+ * The AWS SSM `GetParameters` API caps requests at
1376
+ * `GET_PARAMETERS_LIMIT` (10) names per call, so this method auto-chunks
1377
+ * the underlying parameter names and sends one request per chunk,
1378
+ * merging the results before building the alias-keyed return value.
1379
+ *
1350
1380
  * @param aliases - Record mapping each desired local alias to its SSM
1351
1381
  * parameter name (or ARN).
1352
1382
  * @returns A record keyed by the same aliases, mapping each to the
@@ -1355,14 +1385,18 @@ class SSMService {
1355
1385
  */
1356
1386
  async getParameters(aliases) {
1357
1387
  this.logger.info('Fetching SSM parameters', { input: { aliases } });
1358
- const response = await this.client.send(new clientSsm.GetParametersCommand({
1359
- Names: Object.values(aliases),
1360
- WithDecryption: true,
1361
- }));
1388
+ const names = Object.values(aliases);
1362
1389
  const byPath = new Map();
1363
- for (const parameter of response.Parameters ?? []) {
1364
- if (parameter.Name !== undefined)
1365
- byPath.set(parameter.Name, parameter.Value);
1390
+ for (let i = 0; i < names.length; i += GET_PARAMETERS_LIMIT) {
1391
+ const chunk = names.slice(i, i + GET_PARAMETERS_LIMIT);
1392
+ const response = await this.client.send(new clientSsm.GetParametersCommand({
1393
+ Names: chunk,
1394
+ WithDecryption: true,
1395
+ }));
1396
+ for (const parameter of response.Parameters ?? []) {
1397
+ if (parameter.Name !== undefined)
1398
+ byPath.set(parameter.Name, parameter.Value);
1399
+ }
1366
1400
  }
1367
1401
  const result = {};
1368
1402
  for (const alias of Object.keys(aliases)) {
package/cjs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aligent/aws-wrappers",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Opinionated AWS SDK wrappers with Powertools logging and X-Ray tracing",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -103,7 +103,10 @@ export declare class DynamoDBService {
103
103
  Items?: T[];
104
104
  }>;
105
105
  /**
106
- * Batch-get items from one or more DynamoDB tables.
106
+ * Batch-get items from one or more DynamoDB tables, retrying
107
+ * `UnprocessedKeys` with jittered exponential backoff. Up to 5 attempts
108
+ * (200ms base delay). Throws when keys remain unprocessed after the final
109
+ * attempt. `Responses` are merged across attempts, keyed by table name.
107
110
  *
108
111
  * Note: this method is intentionally **not** generic. `BatchGet`'s
109
112
  * `Responses` field is a multi-table `Record<string, item[]>` whose item
@@ -156,3 +159,4 @@ export declare class DynamoDBService {
156
159
  paginateScan<T extends Record<string, unknown> = Record<string, unknown>>(input: ScanCommandInput): AsyncGenerator<T>;
157
160
  }
158
161
  export {};
162
+ //# sourceMappingURL=dynamodb.d.ts.map
@@ -0,0 +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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EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAgC3E;;;;OAIG;IACG,UAAU,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAyBjF;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -6,3 +6,4 @@ export { StepFunctionsService } from './sfn/sfn.js';
6
6
  export { SNSService } from './sns/sns.js';
7
7
  export { SQSService } from './sqs/sqs.js';
8
8
  export { SSMService } from './ssm/ssm.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,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"}
@@ -144,3 +144,4 @@ export declare class S3Service {
144
144
  emptyBucket(bucket: string): Promise<string[]>;
145
145
  }
146
146
  export {};
147
+ //# sourceMappingURL=s3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.d.ts","sourceRoot":"","sources":["../../../../src/s3/s3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,sBAAsB,EACtB,uBAAuB,EAEvB,wBAAwB,EACxB,yBAAyB,EAEzB,0BAA0B,EAE1B,qBAAqB,EACrB,sBAAsB,EAEtB,sBAAsB,EACtB,uBAAuB,EAGvB,qBAAqB,EACrB,sBAAsB,EACtB,QAAQ,EACX,MAAM,oBAAoB,CAAC;AAS5B,gDAAgD;AAChD,KAAK,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;AAEvF,oDAAoD;AACpD,KAAK,kBAAkB,CAAC,CAAC,IAAI;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;IACR,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC;AAiBF;;;;;;;;;;;GAWG;AACH,qBAAa,SAAS;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAW;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;OAKG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,QAAQ,CAAA;KAAE;IAKlE;;;;;;;;OAQG;IACG,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAOvE;;;;;;;;OAQG;IACG,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAA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AAC,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBnB;;OAEG;IACG,YAAY,CACd,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,QAAQ,GAAG,KAAK,CAAC,CAAC,GAClE,OAAO,CAAC,yBAAyB,CAAC;IAKrC;;;;OAIG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAuB1F;;;;;;;;;;;;;;;;OAgBG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAYvD"}
@@ -83,3 +83,4 @@ export declare class SchedulerService {
83
83
  */
84
84
  listScheduleGroups(input?: ListScheduleGroupsCommandInput): Promise<ScheduleGroupSummary[]>;
85
85
  }
86
+ //# sourceMappingURL=scheduler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../../src/scheduler/scheduler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,0BAA0B,EAC1B,2BAA2B,EAE3B,+BAA+B,EAC/B,gCAAgC,EAEhC,0BAA0B,EAC1B,2BAA2B,EAE3B,+BAA+B,EAC/B,gCAAgC,EAEhC,uBAAuB,EACvB,wBAAwB,EAExB,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EAGzB,oBAAoB,EACpB,eAAe,EACf,eAAe,EAGf,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,2BAA2B,CAAC;AAgCnC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gBAAgB;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;OAKG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,eAAe,CAAA;KAAE;IAKzE;;;OAGG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAK7F;;OAEG;IACG,WAAW,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKpF;;;;;;;;;;;;OAYG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAK7F;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAK7F;;;;OAIG;IACG,aAAa,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAUlF;;;OAGG;IACG,mBAAmB,CACrB,KAAK,EAAE,+BAA+B,GACvC,OAAO,CAAC,gCAAgC,CAAC;IAK5C;;OAEG;IACG,gBAAgB,CAClB,KAAK,EAAE,4BAA4B,GACpC,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;OAIG;IACG,mBAAmB,CACrB,KAAK,EAAE,+BAA+B,GACvC,OAAO,CAAC,gCAAgC,CAAC;IAK5C;;;OAGG;IACG,kBAAkB,CACpB,KAAK,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,oBAAoB,EAAE,CAAC;CASrC"}
@@ -77,3 +77,4 @@ export declare class SecretsManagerService {
77
77
  deleteSecret(input: DeleteSecretCommandInput): Promise<DeleteSecretCommandOutput>;
78
78
  private fetchSecretString;
79
79
  }
80
+ //# sourceMappingURL=secrets-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets-manager.d.ts","sourceRoot":"","sources":["../../../../src/secrets-manager/secrets-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,wBAAwB,EACxB,yBAAyB,EAEzB,wBAAwB,EACxB,yBAAyB,EAGzB,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EAEpB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,iCAAiC,CAAC;AA0CzC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;;OAMG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,oBAAoB,CAAA;KAAE;IAK9E;;;;;;OAMG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKlD;;;;;;OAMG;IACG,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAMpD;;;;;;OAMG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAOvF;;;;;;OAMG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAOvF;;;;;OAKG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAO7F;;;;;OAKG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;YAOzE,iBAAiB;CASlC"}
@@ -40,3 +40,4 @@ export declare class StepFunctionsService {
40
40
  */
41
41
  stopExecution(input: StopExecutionCommandInput): Promise<StopExecutionCommandOutput>;
42
42
  }
43
+ //# sourceMappingURL=sfn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sfn.d.ts","sourceRoot":"","sources":["../../../../src/sfn/sfn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,6BAA6B,EAC7B,8BAA8B,EAC9B,iBAAiB,EACjB,0BAA0B,EAE1B,SAAS,EAET,0BAA0B,EAC1B,2BAA2B,EAE3B,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,qBAAqB,CAAC;AAe7B;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;OAKG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAA;KAAE;IAKnE;;;;OAIG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAUrF;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAO7F;;OAEG;IACG,iBAAiB,CACnB,KAAK,EAAE,6BAA6B,GACrC,OAAO,CAAC,8BAA8B,CAAC;IAK1C;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAI7F"}
@@ -56,3 +56,4 @@ export declare class SNSService {
56
56
  */
57
57
  publishBatch(input: PublishBatchCommandInput): Promise<PublishBatchCommandOutput[]>;
58
58
  }
59
+ //# sourceMappingURL=sns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sns.d.ts","sourceRoot":"","sources":["../../../../src/sns/sns.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,wBAAwB,EACxB,yBAAyB,EAGzB,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAuB7B;;;;;;;GAOG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC;;;;;;;;;;OAUG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;IAMvF;;;;;;;OAOG;IACG,OAAO,CACT,KAAK,EAAE,mBAAmB,EAC1B,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9B,OAAO,CAAC,oBAAoB,CAAC;IAShC;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IA0BvB;;;;;;OAMG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC;CAuB5F"}
@@ -68,3 +68,4 @@ export declare class SQSService {
68
68
  */
69
69
  deleteMessageBatch(input: DeleteMessageBatchCommandInput): Promise<DeleteMessageBatchCommandOutput[]>;
70
70
  }
71
+ //# sourceMappingURL=sqs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqs.d.ts","sourceRoot":"","sources":["../../../../src/sqs/sqs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEH,8BAA8B,EAC9B,+BAA+B,EAG/B,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,EAEP,0BAA0B,EAE1B,4BAA4B,EAC5B,6BAA6B,EAG7B,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;GAOG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAEnC;;;;;;;;;OASG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;IAMvF;;;;;OAKG;IACG,WAAW,CACb,KAAK,EAAE,uBAAuB,EAC9B,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9B,OAAO,CAAC,wBAAwB,CAAC;IASpC;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAkBvB;;;;;OAKG;IACG,eAAe,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAM5E;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAK1F;;;;OAIG;IACG,gBAAgB,CAClB,KAAK,EAAE,4BAA4B,GACpC,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAmB3C;;;;OAIG;IACG,kBAAkB,CACpB,KAAK,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,EAAE,CAAC;CAkBhD"}
@@ -49,6 +49,11 @@ export declare class SSMService {
49
49
  * });
50
50
  * ```
51
51
  *
52
+ * The AWS SSM `GetParameters` API caps requests at
53
+ * `GET_PARAMETERS_LIMIT` (10) names per call, so this method auto-chunks
54
+ * the underlying parameter names and sends one request per chunk,
55
+ * merging the results before building the alias-keyed return value.
56
+ *
52
57
  * @param aliases - Record mapping each desired local alias to its SSM
53
58
  * parameter name (or ARN).
54
59
  * @returns A record keyed by the same aliases, mapping each to the
@@ -86,3 +91,4 @@ export declare class SSMService {
86
91
  recursive?: boolean;
87
92
  }): Promise<Parameter[]>;
88
93
  }
94
+ //# sourceMappingURL=ssm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssm.d.ts","sourceRoot":"","sources":["../../../../src/ssm/ssm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAKH,SAAS,EAET,wBAAwB,EACxB,yBAAyB,EACzB,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAuB7B;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;;;OAKG;gBACS,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAA;KAAE;IAKnE;;;;;OAKG;IACG,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAQ7D;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,aAAa,CAAC,CAAC,SAAS,MAAM,EAChC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAC3B,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAuBzC;;;;;;OAMG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAOvF;;;;;OAKG;IACG,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlD;;;;;;;;;;OAUG;IACG,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAehG"}
@@ -42,3 +42,4 @@
42
42
  export declare function createMockService<T extends object, O extends Partial<T>>(service: {
43
43
  prototype: T;
44
44
  }, overrides: O): T & O;
45
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpE,OAAO,EAAE;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,EACzB,SAAS,EAAE,CAAC,GACb,CAAC,GAAG,CAAC,CA6BP"}
@@ -26,3 +26,4 @@ export declare function shouldLogFullInput(logger: LoggerInterface): boolean;
26
26
  * the design rationale and conventions on building the safe-field lists.
27
27
  */
28
28
  export declare function filterFieldsForLogLevel<T extends object, K extends keyof T>(logger: LoggerInterface, input: T, safeFields: readonly K[]): T | Pick<T, K>;
29
+ //# sourceMappingURL=redact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../../../src/util/redact.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAEnE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EACvE,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,CAAC,EACR,UAAU,EAAE,SAAS,CAAC,EAAE,GACzB,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAOhB"}
@@ -13,3 +13,4 @@ export declare function truncateUtf8(str: string, maxBytes: number): string;
13
13
  * it already fits.
14
14
  */
15
15
  export declare function truncateCodepoints(str: string, maxChars: number): string;
16
+ //# sourceMappingURL=truncate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"truncate.d.ts","sourceRoot":"","sources":["../../../../src/util/truncate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUlE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIxE"}
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: DynamoDBService
8
8
 
9
- Defined in: [dynamodb/dynamodb.ts:153](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L153)
9
+ Defined in: [dynamodb/dynamodb.ts:155](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L155)
10
10
 
11
11
  Wrapper around the AWS DynamoDB Document client providing structured
12
12
  Powertools logging and X-Ray tracing by default.
@@ -26,7 +26,7 @@ callers work with plain TypeScript objects in both directions.
26
26
 
27
27
  > **new DynamoDBService**(`opts?`): `DynamoDBService`
28
28
 
29
- Defined in: [dynamodb/dynamodb.ts:166](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L166)
29
+ Defined in: [dynamodb/dynamodb.ts:168](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L168)
30
30
 
31
31
  #### Parameters
32
32
 
@@ -61,9 +61,12 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
61
61
 
62
62
  > **batchGet**(`input`): `Promise`\<`BatchGetCommandOutput`\>
63
63
 
64
- Defined in: [dynamodb/dynamodb.ts:317](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L317)
64
+ Defined in: [dynamodb/dynamodb.ts:322](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L322)
65
65
 
66
- Batch-get items from one or more DynamoDB tables.
66
+ Batch-get items from one or more DynamoDB tables, retrying
67
+ `UnprocessedKeys` with jittered exponential backoff. Up to 5 attempts
68
+ (200ms base delay). Throws when keys remain unprocessed after the final
69
+ attempt. `Responses` are merged across attempts, keyed by table name.
67
70
 
68
71
  Note: this method is intentionally **not** generic. `BatchGet`'s
69
72
  `Responses` field is a multi-table `Record<string, item[]>` whose item
@@ -88,7 +91,7 @@ Callers should narrow the result type at the call site.
88
91
 
89
92
  > **batchWrite**(`input`): `Promise`\<`BatchWriteCommandOutput`\>
90
93
 
91
- Defined in: [dynamodb/dynamodb.ts:334](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L334)
94
+ Defined in: [dynamodb/dynamodb.ts:359](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L359)
92
95
 
93
96
  Batch-write items to DynamoDB, retrying `UnprocessedItems` with jittered
94
97
  exponential backoff. Up to 5 attempts (200ms base delay). Throws when
@@ -112,7 +115,7 @@ items remain unprocessed after the final attempt.
112
115
 
113
116
  > **deleteItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`DeleteCommandOutput`, `"Attributes"`\> & `object`\>
114
117
 
115
- Defined in: [dynamodb/dynamodb.ts:247](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L247)
118
+ Defined in: [dynamodb/dynamodb.ts:249](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L249)
116
119
 
117
120
  Delete an item from DynamoDB. The `Attributes` field on the response is
118
121
  typed as `R` — relevant when `ReturnValues: 'ALL_OLD'` is set.
@@ -149,7 +152,7 @@ Expected shape of the returned `Attributes`.
149
152
 
150
153
  > **getItem**\<`K`, `R`\>(`input`): `Promise`\<`R` \| `undefined`\>
151
154
 
152
- Defined in: [dynamodb/dynamodb.ts:181](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L181)
155
+ Defined in: [dynamodb/dynamodb.ts:183](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L183)
153
156
 
154
157
  Get an item from DynamoDB.
155
158
 
@@ -187,7 +190,7 @@ The item, or `undefined` if not found.
187
190
 
188
191
  > **paginateItems**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
189
192
 
190
- Defined in: [dynamodb/dynamodb.ts:384](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L384)
193
+ Defined in: [dynamodb/dynamodb.ts:410](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L410)
191
194
 
192
195
  Paginate over Query results, yielding one unmarshalled item at a time.
193
196
 
@@ -238,7 +241,7 @@ Expected shape of each yielded item.
238
241
 
239
242
  > **paginateScan**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
240
243
 
241
- Defined in: [dynamodb/dynamodb.ts:406](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L406)
244
+ Defined in: [dynamodb/dynamodb.ts:432](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L432)
242
245
 
243
246
  Paginate over Scan results, yielding one unmarshalled item at a time.
244
247
 
@@ -272,7 +275,7 @@ Expected shape of each yielded item.
272
275
 
273
276
  > **putItem**\<`T`\>(`input`): `Promise`\<`PutCommandOutput`\>
274
277
 
275
- Defined in: [dynamodb/dynamodb.ts:201](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L201)
278
+ Defined in: [dynamodb/dynamodb.ts:203](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L203)
276
279
 
277
280
  Put an item into DynamoDB. The caller's `Item` is typed as `T`, which
278
281
  the document client marshalls automatically.
@@ -303,7 +306,7 @@ Type of the item being stored.
303
306
 
304
307
  > **query**\<`T`\>(`input`): `Promise`\<`Omit`\<`QueryCommandOutput`, `"Items"`\> & `object`\>
305
308
 
306
- Defined in: [dynamodb/dynamodb.ts:270](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L270)
309
+ Defined in: [dynamodb/dynamodb.ts:272](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L272)
307
310
 
308
311
  Execute a DynamoDB Query. The full `QueryCommandOutput` is returned with
309
312
  `Items` typed as `T[]` so callers retain pagination metadata
@@ -335,7 +338,7 @@ Expected shape of each unmarshalled item.
335
338
 
336
339
  > **scan**\<`T`\>(`input`): `Promise`\<`Omit`\<`ScanCommandOutput`, `"Items"`\> & `object`\>
337
340
 
338
- Defined in: [dynamodb/dynamodb.ts:299](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L299)
341
+ Defined in: [dynamodb/dynamodb.ts:301](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L301)
339
342
 
340
343
  Scan a DynamoDB table. The full `ScanCommandOutput` is returned with
341
344
  `Items` typed as `T[]` so callers retain pagination metadata.
@@ -379,7 +382,7 @@ Expected shape of each unmarshalled item.
379
382
 
380
383
  > **updateItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`UpdateCommandOutput`, `"Attributes"`\> & `object`\>
381
384
 
382
- Defined in: [dynamodb/dynamodb.ts:224](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L224)
385
+ Defined in: [dynamodb/dynamodb.ts:226](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L226)
383
386
 
384
387
  Update an item in DynamoDB. The `Attributes` field on the response is
385
388
  typed as `R` — the caller should choose `R` to match their
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: S3Service
8
8
 
9
- Defined in: [s3/s3.ts:70](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L70)
9
+ Defined in: [s3/s3.ts:70](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L70)
10
10
 
11
11
  Wrapper around the AWS S3 client providing structured Powertools logging
12
12
  and X-Ray tracing by default.
@@ -27,7 +27,7 @@ tagging, version IDs) should use `S3Client` directly.
27
27
 
28
28
  > **new S3Service**(`opts?`): `S3Service`
29
29
 
30
- Defined in: [s3/s3.ts:80](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L80)
30
+ Defined in: [s3/s3.ts:80](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L80)
31
31
 
32
32
  #### Parameters
33
33
 
@@ -59,7 +59,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
59
59
 
60
60
  > **copyObject**(`input`): `Promise`\<`CopyObjectCommandOutput`\>
61
61
 
62
- Defined in: [s3/s3.ts:175](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L175)
62
+ Defined in: [s3/s3.ts:175](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L175)
63
63
 
64
64
  Copy an object within S3.
65
65
 
@@ -81,7 +81,7 @@ Copy an object within S3.
81
81
 
82
82
  > **deleteObject**(`input`): `Promise`\<`DeleteObjectCommandOutput`\>
83
83
 
84
- Defined in: [s3/s3.ts:268](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L268)
84
+ Defined in: [s3/s3.ts:268](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L268)
85
85
 
86
86
  Delete a single object from S3.
87
87
 
@@ -103,7 +103,7 @@ Delete a single object from S3.
103
103
 
104
104
  > **deleteObjects**(`bucket`, `keys`): `Promise`\<`DeleteObjectsCommandOutput`[]\>
105
105
 
106
- Defined in: [s3/s3.ts:280](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L280)
106
+ Defined in: [s3/s3.ts:280](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L280)
107
107
 
108
108
  Delete multiple objects from S3, auto-chunking the request into batches
109
109
  of 1000 keys (the S3-enforced DeleteObjects limit). Returns one output
@@ -131,7 +131,7 @@ per chunk.
131
131
 
132
132
  > **emptyBucket**(`bucket`): `Promise`\<`string`[]\>
133
133
 
134
- Defined in: [s3/s3.ts:320](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L320)
134
+ Defined in: [s3/s3.ts:320](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L320)
135
135
 
136
136
  Delete every object in an **unversioned** bucket. Streams the listing
137
137
  page-by-page and delegates each page's deletion to `deleteObjects`, so
@@ -167,7 +167,7 @@ The keys this call issued deletes for.
167
167
 
168
168
  > **getAllObjects**\<`T`\>(`bucket`, `prefix?`): `Promise`\<`T`[]\>
169
169
 
170
- Defined in: [s3/s3.ts:206](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L206)
170
+ Defined in: [s3/s3.ts:206](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L206)
171
171
 
172
172
  List and JSON-parse every object under a bucket and optional prefix.
173
173
  Auto-paginated. Objects without a body are skipped.
@@ -202,7 +202,7 @@ Expected type of each parsed object.
202
202
 
203
203
  > **getJsonObject**\<`T`\>(`input`): `Promise`\<`T` \| `undefined`\>
204
204
 
205
- Defined in: [s3/s3.ts:153](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L153)
205
+ Defined in: [s3/s3.ts:153](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L153)
206
206
 
207
207
  Get an object from S3 and parse it as JSON.
208
208
 
@@ -238,7 +238,7 @@ If the body is non-empty and not valid JSON.
238
238
 
239
239
  > **getObject**(`input`): `Promise`\<`GetObjectCommandOutput`\>
240
240
 
241
- Defined in: [s3/s3.ts:127](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L127)
241
+ Defined in: [s3/s3.ts:127](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L127)
242
242
 
243
243
  Get an object from S3.
244
244
 
@@ -260,7 +260,7 @@ Get an object from S3.
260
260
 
261
261
  > **getObjectBody**(`input`): `Promise`\<`string` \| `undefined`\>
262
262
 
263
- Defined in: [s3/s3.ts:139](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L139)
263
+ Defined in: [s3/s3.ts:139](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L139)
264
264
 
265
265
  Get an object from S3 and return its body as a string.
266
266
 
@@ -285,7 +285,7 @@ has no body.
285
285
 
286
286
  > **getPresignedUrl**(`input`): `Promise`\<`string`\>
287
287
 
288
- Defined in: [s3/s3.ts:244](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L244)
288
+ Defined in: [s3/s3.ts:244](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L244)
289
289
 
290
290
  Generate a presigned URL that callers can use to GET or PUT an S3 object
291
291
  directly, without going through the wrapper. The signing happens against
@@ -339,7 +339,7 @@ The S3 object key.
339
339
 
340
340
  > **headObject**(`input`): `Promise`\<`HeadObjectCommandOutput`\>
341
341
 
342
- Defined in: [s3/s3.ts:165](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L165)
342
+ Defined in: [s3/s3.ts:165](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L165)
343
343
 
344
344
  Fetch the metadata for an S3 object without downloading its body.
345
345
 
@@ -361,7 +361,7 @@ Fetch the metadata for an S3 object without downloading its body.
361
361
 
362
362
  > **listObjects**(`bucket`, `prefix?`): `Promise`\<`string`[]\>
363
363
 
364
- Defined in: [s3/s3.ts:186](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L186)
364
+ Defined in: [s3/s3.ts:186](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L186)
365
365
 
366
366
  List object keys under a bucket and optional prefix, auto-paginating
367
367
  across all pages.
@@ -388,7 +388,7 @@ across all pages.
388
388
 
389
389
  > **putJsonObject**\<`T`\>(`input`): `Promise`\<`PutObjectCommandOutput`\>
390
390
 
391
- Defined in: [s3/s3.ts:110](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L110)
391
+ Defined in: [s3/s3.ts:110](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L110)
392
392
 
393
393
  Serialise a value to JSON and store it as an S3 object.
394
394
 
@@ -422,7 +422,7 @@ Type of the value being stored.
422
422
 
423
423
  > **putObject**(`input`): `Promise`\<`PutObjectCommandOutput`\>
424
424
 
425
- Defined in: [s3/s3.ts:94](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/s3/s3.ts#L94)
425
+ Defined in: [s3/s3.ts:94](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/s3/s3.ts#L94)
426
426
 
427
427
  Put an object into S3.
428
428
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SNSService
8
8
 
9
- Defined in: [sns/sns.ts:43](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sns/sns.ts#L43)
9
+ Defined in: [sns/sns.ts:43](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/sns/sns.ts#L43)
10
10
 
11
11
  Wrapper around the AWS SNS client providing structured Powertools logging
12
12
  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 SNSService**(`opts?`): `SNSService`
25
25
 
26
- Defined in: [sns/sns.ts:59](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sns/sns.ts#L59)
26
+ Defined in: [sns/sns.ts:59](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/sns/sns.ts#L59)
27
27
 
28
28
  #### Parameters
29
29
 
@@ -65,7 +65,7 @@ its own `truncate` option.
65
65
 
66
66
  > **publish**(`input`, `opts?`): `Promise`\<`PublishCommandOutput`\>
67
67
 
68
- Defined in: [sns/sns.ts:73](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sns/sns.ts#L73)
68
+ Defined in: [sns/sns.ts:73](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/sns/sns.ts#L73)
69
69
 
70
70
  Publish a single message to an SNS topic.
71
71
 
@@ -98,7 +98,7 @@ PublishCommandInput including TopicArn and Message.
98
98
 
99
99
  > **publishBatch**(`input`): `Promise`\<`PublishBatchCommandOutput`[]\>
100
100
 
101
- Defined in: [sns/sns.ts:125](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sns/sns.ts#L125)
101
+ Defined in: [sns/sns.ts:125](https://github.com/aligent/microservice-development-utilities/blob/135acf0c1f1e51c4f6b4a4998b87709ae0a7ab50/packages/aws-wrappers/src/sns/sns.ts#L125)
102
102
 
103
103
  Publish a batch of messages to an SNS topic. The SNS API caps
104
104
  PublishBatch at 10 entries per request, so this method auto-chunks