@aligent/aws-wrappers 0.5.0 → 0.5.1

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 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',
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.1",
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
@@ -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
@@ -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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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/71eddc43546914f2f8321d80003a486b30acef40/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
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SQSService
8
8
 
9
- Defined in: [sqs/sqs.ts:49](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L49)
9
+ Defined in: [sqs/sqs.ts:49](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L49)
10
10
 
11
11
  Wrapper around the AWS SQS 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 SQSService**(`opts?`): `SQSService`
25
25
 
26
- Defined in: [sqs/sqs.ts:64](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L64)
26
+ Defined in: [sqs/sqs.ts:64](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L64)
27
27
 
28
28
  #### Parameters
29
29
 
@@ -64,7 +64,7 @@ option.
64
64
 
65
65
  > **deleteMessage**(`input`): `Promise`\<`DeleteMessageCommandOutput`\>
66
66
 
67
- Defined in: [sqs/sqs.ts:128](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L128)
67
+ Defined in: [sqs/sqs.ts:128](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L128)
68
68
 
69
69
  Delete a single message from an SQS queue.
70
70
 
@@ -86,7 +86,7 @@ Delete a single message from an SQS queue.
86
86
 
87
87
  > **deleteMessageBatch**(`input`): `Promise`\<`DeleteMessageBatchCommandOutput`[]\>
88
88
 
89
- Defined in: [sqs/sqs.ts:164](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L164)
89
+ Defined in: [sqs/sqs.ts:164](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L164)
90
90
 
91
91
  Delete a batch of messages from an SQS queue. The SQS API caps
92
92
  DeleteMessageBatch at 10 entries per request, so this method auto-chunks
@@ -110,7 +110,7 @@ the caller's entries and sends one request per chunk.
110
110
 
111
111
  > **receiveMessages**(`input`): `Promise`\<`Message`[]\>
112
112
 
113
- Defined in: [sqs/sqs.ts:119](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L119)
113
+ Defined in: [sqs/sqs.ts:119](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L119)
114
114
 
115
115
  Receive messages from an SQS queue. Returns an empty array when no
116
116
  messages are available. No automatic deletion is performed — visibility
@@ -136,7 +136,7 @@ The `Messages` array from the response, or `[]` if absent.
136
136
 
137
137
  > **sendMessage**(`input`, `opts?`): `Promise`\<`SendMessageCommandOutput`\>
138
138
 
139
- Defined in: [sqs/sqs.ts:76](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L76)
139
+ Defined in: [sqs/sqs.ts:76](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L76)
140
140
 
141
141
  Send a single message to an SQS queue.
142
142
 
@@ -167,7 +167,7 @@ see `SEND_MESSAGE_SAFE_FIELDS`.
167
167
 
168
168
  > **sendMessageBatch**(`input`): `Promise`\<`SendMessageBatchCommandOutput`[]\>
169
169
 
170
- Defined in: [sqs/sqs.ts:138](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sqs/sqs.ts#L138)
170
+ Defined in: [sqs/sqs.ts:138](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sqs/sqs.ts#L138)
171
171
 
172
172
  Send a batch of messages to an SQS queue. The SQS API caps
173
173
  SendMessageBatch at 10 entries per request, so this method auto-chunks
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SSMService
8
8
 
9
- Defined in: [ssm/ssm.ts:50](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L50)
9
+ Defined in: [ssm/ssm.ts:52](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L52)
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: [ssm/ssm.ts:60](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L60)
34
+ Defined in: [ssm/ssm.ts:62](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L62)
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: [ssm/ssm.ts:139](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L139)
66
+ Defined in: [ssm/ssm.ts:150](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L150)
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: [ssm/ssm.ts:71](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L71)
91
+ Defined in: [ssm/ssm.ts:73](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L73)
92
92
 
93
93
  Fetch a single SSM parameter's value.
94
94
 
@@ -115,7 +115,7 @@ value set.
115
115
 
116
116
  > **getParameters**\<`K`\>(`aliases`): `Promise`\<`Record`\<`K`, `string` \| `undefined`\>\>
117
117
 
118
- Defined in: [ssm/ssm.ts:98](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L98)
118
+ Defined in: [ssm/ssm.ts:105](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L105)
119
119
 
120
120
  Fetch multiple SSM parameters in a single request. Callers supply an
121
121
  alias-to-path record, and the returned record is keyed by the same
@@ -129,6 +129,11 @@ const { username, password } = await ssm.getParameters({
129
129
  });
130
130
  ```
131
131
 
132
+ The AWS SSM `GetParameters` API caps requests at
133
+ `GET_PARAMETERS_LIMIT` (10) names per call, so this method auto-chunks
134
+ the underlying parameter names and sends one request per chunk,
135
+ merging the results before building the alias-keyed return value.
136
+
132
137
  #### Type Parameters
133
138
 
134
139
  ##### K
@@ -160,7 +165,7 @@ no value.
160
165
 
161
166
  > **getParametersByPath**(`path`, `opts?`): `Promise`\<`Parameter`[]\>
162
167
 
163
- Defined in: [ssm/ssm.ts:155](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L155)
168
+ Defined in: [ssm/ssm.ts:166](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L166)
164
169
 
165
170
  Fetch all parameters under an SSM hierarchy path, auto-paginating across
166
171
  all pages. `Recursive` defaults to `true` (overriding the AWS SDK
@@ -199,7 +204,7 @@ The full `Parameter` objects (including `Version`,
199
204
 
200
205
  > **putParameter**(`input`): `Promise`\<`PutParameterCommandOutput`\>
201
206
 
202
- Defined in: [ssm/ssm.ts:126](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/ssm/ssm.ts#L126)
207
+ Defined in: [ssm/ssm.ts:137](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/ssm/ssm.ts#L137)
203
208
 
204
209
  Create or update an SSM parameter. The log line omits `Value` to avoid
205
210
  leaking secret material.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SchedulerService
8
8
 
9
- Defined in: [scheduler/scheduler.ts:81](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L81)
9
+ Defined in: [scheduler/scheduler.ts:81](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L81)
10
10
 
11
11
  Wrapper around the AWS EventBridge Scheduler client providing structured
12
12
  Powertools logging and X-Ray tracing by default.
@@ -31,7 +31,7 @@ intent (`{ Mode: 'OFF' }` for a fixed-time schedule).
31
31
 
32
32
  > **new SchedulerService**(`opts?`): `SchedulerService`
33
33
 
34
- Defined in: [scheduler/scheduler.ts:91](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L91)
34
+ Defined in: [scheduler/scheduler.ts:91](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L91)
35
35
 
36
36
  #### Parameters
37
37
 
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
63
63
 
64
64
  > **createSchedule**(`input`): `Promise`\<`CreateScheduleCommandOutput`\>
65
65
 
66
- Defined in: [scheduler/scheduler.ts:100](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L100)
66
+ Defined in: [scheduler/scheduler.ts:100](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L100)
67
67
 
68
68
  Create a new schedule. At INFO the log line omits `Target.Input` (the
69
69
  target payload, a PII carrier).
@@ -86,7 +86,7 @@ target payload, a PII carrier).
86
86
 
87
87
  > **createScheduleGroup**(`input`): `Promise`\<`CreateScheduleGroupCommandOutput`\>
88
88
 
89
- Defined in: [scheduler/scheduler.ts:158](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L158)
89
+ Defined in: [scheduler/scheduler.ts:158](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L158)
90
90
 
91
91
  Create a new schedule group. Groups are containers for schedules and are
92
92
  typically IaC-managed; use this for dynamically-provisioned groups only.
@@ -109,7 +109,7 @@ typically IaC-managed; use this for dynamically-provisioned groups only.
109
109
 
110
110
  > **deleteSchedule**(`input`): `Promise`\<`DeleteScheduleCommandOutput`\>
111
111
 
112
- Defined in: [scheduler/scheduler.ts:134](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L134)
112
+ Defined in: [scheduler/scheduler.ts:134](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L134)
113
113
 
114
114
  Delete a schedule.
115
115
 
@@ -131,7 +131,7 @@ Delete a schedule.
131
131
 
132
132
  > **deleteScheduleGroup**(`input`): `Promise`\<`DeleteScheduleGroupCommandOutput`\>
133
133
 
134
- Defined in: [scheduler/scheduler.ts:180](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L180)
134
+ Defined in: [scheduler/scheduler.ts:180](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L180)
135
135
 
136
136
  Delete a schedule group. Deleting a group also deletes every schedule it
137
137
  contains, asynchronously — the API has no `UpdateScheduleGroup`, so this
@@ -155,7 +155,7 @@ is the only mutating group operation besides create.
155
155
 
156
156
  > **getSchedule**(`input`): `Promise`\<`GetScheduleCommandOutput`\>
157
157
 
158
- Defined in: [scheduler/scheduler.ts:108](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L108)
158
+ Defined in: [scheduler/scheduler.ts:108](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L108)
159
159
 
160
160
  Fetch a schedule's full configuration.
161
161
 
@@ -177,7 +177,7 @@ Fetch a schedule's full configuration.
177
177
 
178
178
  > **getScheduleGroup**(`input`): `Promise`\<`GetScheduleGroupCommandOutput`\>
179
179
 
180
- Defined in: [scheduler/scheduler.ts:168](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L168)
180
+ Defined in: [scheduler/scheduler.ts:168](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L168)
181
181
 
182
182
  Fetch a schedule group's configuration.
183
183
 
@@ -199,7 +199,7 @@ Fetch a schedule group's configuration.
199
199
 
200
200
  > **listScheduleGroups**(`input?`): `Promise`\<`ScheduleGroupSummary`[]\>
201
201
 
202
- Defined in: [scheduler/scheduler.ts:191](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L191)
202
+ Defined in: [scheduler/scheduler.ts:191](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L191)
203
203
 
204
204
  List schedule groups, auto-paginating across all pages. Bounded in
205
205
  practice by the account's group count and the `NamePrefix` filter.
@@ -222,7 +222,7 @@ practice by the account's group count and the `NamePrefix` filter.
222
222
 
223
223
  > **listSchedules**(`input?`): `Promise`\<`ScheduleSummary`[]\>
224
224
 
225
- Defined in: [scheduler/scheduler.ts:144](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L144)
225
+ Defined in: [scheduler/scheduler.ts:144](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L144)
226
226
 
227
227
  List schedules, auto-paginating across all pages. Bounded in practice by
228
228
  the account's schedule count and the `GroupName` / `NamePrefix` / `State`
@@ -246,7 +246,7 @@ filters, so the flat-array shape is safe.
246
246
 
247
247
  > **updateSchedule**(`input`): `Promise`\<`UpdateScheduleCommandOutput`\>
248
248
 
249
- Defined in: [scheduler/scheduler.ts:126](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/scheduler/scheduler.ts#L126)
249
+ Defined in: [scheduler/scheduler.ts:126](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/scheduler/scheduler.ts#L126)
250
250
 
251
251
  Update an existing schedule.
252
252
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SecretsManagerService
8
8
 
9
- Defined in: [secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L75)
9
+ Defined in: [secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/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: [secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L86)
33
+ Defined in: [secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/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: [secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L123)
66
+ Defined in: [secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/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: [secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L163)
92
+ Defined in: [secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/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: [secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L110)
117
+ Defined in: [secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L110)
118
118
 
119
119
  Fetch a secret and parse it as JSON.
120
120
 
@@ -152,7 +152,7 @@ If the secret has no `SecretString` or the value is not valid JSON.
152
152
 
153
153
  > **getSecret**(`secretId`): `Promise`\<`string`\>
154
154
 
155
- Defined in: [secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L98)
155
+ Defined in: [secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L98)
156
156
 
157
157
  Fetch a secret's string value from Secrets Manager.
158
158
 
@@ -183,7 +183,7 @@ stores binary data).
183
183
 
184
184
  > **putSecretValue**(`input`): `Promise`\<`PutSecretValueCommandOutput`\>
185
185
 
186
- Defined in: [secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L150)
186
+ Defined in: [secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L150)
187
187
 
188
188
  Store a new version of a secret's value. At INFO level the log line
189
189
  omits `SecretString` / `SecretBinary`.
@@ -208,7 +208,7 @@ Typically used by rotation flows.
208
208
 
209
209
  > **updateSecret**(`input`): `Promise`\<`UpdateSecretCommandOutput`\>
210
210
 
211
- Defined in: [secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L137)
211
+ Defined in: [secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L137)
212
212
 
213
213
  Update an existing secret's metadata or value. At INFO level the log
214
214
  line omits `SecretString` / `SecretBinary`.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: StepFunctionsService
8
8
 
9
- Defined in: [sfn/sfn.ts:40](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L40)
9
+ Defined in: [sfn/sfn.ts:40](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L40)
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: [sfn/sfn.ts:50](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L50)
26
+ Defined in: [sfn/sfn.ts:50](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L50)
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: [sfn/sfn.ts:83](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L83)
58
+ Defined in: [sfn/sfn.ts:83](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L83)
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: [sfn/sfn.ts:60](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L60)
80
+ Defined in: [sfn/sfn.ts:60](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L60)
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: [sfn/sfn.ts:73](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L73)
104
+ Defined in: [sfn/sfn.ts:73](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L73)
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: [sfn/sfn.ts:93](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/sfn/sfn.ts#L93)
126
+ Defined in: [sfn/sfn.ts:93](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/packages/aws-wrappers/src/sfn/sfn.ts#L93)
127
127
 
128
128
  Stop an in-progress Step Functions execution.
129
129
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **createMockService**\<`T`, `O`\>(`service`, `overrides`): `T` & `O`
10
10
 
11
- Defined in: [testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/12392981323381975cdaffeb0a828cecd4846ce0/packages/aws-wrappers/src/testing/testing.ts#L66)
11
+ Defined in: [testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/71eddc43546914f2f8321d80003a486b30acef40/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
@@ -52,6 +52,8 @@ function filterFieldsForLogLevel(logger, input, safeFields) {
52
52
 
53
53
  const BATCH_WRITE_MAX_ATTEMPTS = 5;
54
54
  const BATCH_WRITE_BASE_DELAY_MS = 200;
55
+ const BATCH_GET_MAX_ATTEMPTS = 5;
56
+ const BATCH_GET_BASE_DELAY_MS = 200;
55
57
  /**
56
58
  * Fields safe to log at INFO. Omits `Key` (may carry customer IDs / tenant IDs).
57
59
  */
@@ -137,8 +139,8 @@ const SCAN_SAFE_FIELDS = [
137
139
  'ReturnConsumedCapacity',
138
140
  ];
139
141
  const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
140
- const backoffDelay = (attempt) => {
141
- const exp = BATCH_WRITE_BASE_DELAY_MS * 2 ** attempt;
142
+ const backoffDelay = (attempt, baseDelayMs) => {
143
+ const exp = baseDelayMs * 2 ** attempt;
142
144
  return exp + Math.random() * exp;
143
145
  };
144
146
  /**
@@ -266,7 +268,10 @@ class DynamoDBService {
266
268
  return response;
267
269
  }
268
270
  /**
269
- * Batch-get items from one or more DynamoDB tables.
271
+ * Batch-get items from one or more DynamoDB tables, retrying
272
+ * `UnprocessedKeys` with jittered exponential backoff. Up to 5 attempts
273
+ * (200ms base delay). Throws when keys remain unprocessed after the final
274
+ * attempt. `Responses` are merged across attempts, keyed by table name.
270
275
  *
271
276
  * Note: this method is intentionally **not** generic. `BatchGet`'s
272
277
  * `Responses` field is a multi-table `Record<string, item[]>` whose item
@@ -282,7 +287,26 @@ class DynamoDBService {
282
287
  this.logger.info('Batch getting DynamoDB items', {
283
288
  input: logFullInput ? input : { tables: Object.keys(input.RequestItems ?? {}) },
284
289
  });
285
- return this.client.send(new BatchGetCommand(input));
290
+ let current = input;
291
+ const mergedResponses = {};
292
+ for (let attempt = 0; attempt < BATCH_GET_MAX_ATTEMPTS; attempt++) {
293
+ const response = await this.client.send(new BatchGetCommand(current));
294
+ for (const [table, items] of Object.entries(response.Responses ?? {})) {
295
+ mergedResponses[table] = [...(mergedResponses[table] ?? []), ...items];
296
+ }
297
+ const unprocessed = response.UnprocessedKeys;
298
+ if (!unprocessed || Object.keys(unprocessed).length === 0) {
299
+ return { ...response, Responses: mergedResponses };
300
+ }
301
+ this.logger.warn('Retrying unprocessed DynamoDB items', {
302
+ attempt: attempt + 1,
303
+ tables: Object.keys(unprocessed),
304
+ });
305
+ if (attempt < BATCH_GET_MAX_ATTEMPTS - 1)
306
+ await sleep(backoffDelay(attempt, BATCH_GET_BASE_DELAY_MS));
307
+ current = { ...input, RequestItems: unprocessed };
308
+ }
309
+ throw new Error(`batchGet failed after ${BATCH_GET_MAX_ATTEMPTS} attempts`);
286
310
  }
287
311
  /**
288
312
  * Batch-write items to DynamoDB, retrying `UnprocessedItems` with jittered
@@ -309,7 +333,7 @@ class DynamoDBService {
309
333
  tables: Object.keys(unprocessed),
310
334
  });
311
335
  if (attempt < BATCH_WRITE_MAX_ATTEMPTS - 1)
312
- await sleep(backoffDelay(attempt));
336
+ await sleep(backoffDelay(attempt, BATCH_WRITE_BASE_DELAY_MS));
313
337
  current = { ...input, RequestItems: unprocessed };
314
338
  }
315
339
  throw new Error(`batchWrite failed after ${BATCH_WRITE_MAX_ATTEMPTS} attempts`);
@@ -1276,6 +1300,7 @@ class SQSService {
1276
1300
  }
1277
1301
  }
1278
1302
 
1303
+ const GET_PARAMETERS_LIMIT = 10;
1279
1304
  /**
1280
1305
  * Fields safe to log at INFO level for `putParameter`. Omits `Value` (the
1281
1306
  * parameter content itself).
@@ -1345,6 +1370,11 @@ class SSMService {
1345
1370
  * });
1346
1371
  * ```
1347
1372
  *
1373
+ * The AWS SSM `GetParameters` API caps requests at
1374
+ * `GET_PARAMETERS_LIMIT` (10) names per call, so this method auto-chunks
1375
+ * the underlying parameter names and sends one request per chunk,
1376
+ * merging the results before building the alias-keyed return value.
1377
+ *
1348
1378
  * @param aliases - Record mapping each desired local alias to its SSM
1349
1379
  * parameter name (or ARN).
1350
1380
  * @returns A record keyed by the same aliases, mapping each to the
@@ -1353,14 +1383,18 @@ class SSMService {
1353
1383
  */
1354
1384
  async getParameters(aliases) {
1355
1385
  this.logger.info('Fetching SSM parameters', { input: { aliases } });
1356
- const response = await this.client.send(new GetParametersCommand({
1357
- Names: Object.values(aliases),
1358
- WithDecryption: true,
1359
- }));
1386
+ const names = Object.values(aliases);
1360
1387
  const byPath = new Map();
1361
- for (const parameter of response.Parameters ?? []) {
1362
- if (parameter.Name !== undefined)
1363
- byPath.set(parameter.Name, parameter.Value);
1388
+ for (let i = 0; i < names.length; i += GET_PARAMETERS_LIMIT) {
1389
+ const chunk = names.slice(i, i + GET_PARAMETERS_LIMIT);
1390
+ const response = await this.client.send(new GetParametersCommand({
1391
+ Names: chunk,
1392
+ WithDecryption: true,
1393
+ }));
1394
+ for (const parameter of response.Parameters ?? []) {
1395
+ if (parameter.Name !== undefined)
1396
+ byPath.set(parameter.Name, parameter.Value);
1397
+ }
1364
1398
  }
1365
1399
  const result = {};
1366
1400
  for (const alias of Object.keys(aliases)) {
package/esm/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aligent/aws-wrappers",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aligent/aws-wrappers",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Opinionated AWS SDK wrappers with Powertools logging and X-Ray tracing",
5
5
  "engines": {
6
6
  "node": ">=18"