@aligent/aws-wrappers 0.5.5 → 0.5.6
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 +30 -1
- package/cjs/index.cjs +93 -47
- package/cjs/package.json +1 -1
- package/cjs/src/index.d.ts +2 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/s3/s3.d.ts.map +1 -1
- package/cjs/src/scheduler/scheduler.d.ts.map +1 -1
- package/cjs/src/sfn/sfn.d.ts.map +1 -1
- package/cjs/src/sns/sns.d.ts.map +1 -1
- package/cjs/src/sqs/sqs.d.ts +20 -0
- package/cjs/src/sqs/sqs.d.ts.map +1 -1
- package/cjs/src/ssm/ssm.d.ts.map +1 -1
- package/cjs/src/util/batch-operation-error.d.ts +33 -0
- package/cjs/src/util/batch-operation-error.d.ts.map +1 -0
- package/cjs/src/util/chunk.d.ts +6 -0
- package/cjs/src/util/chunk.d.ts.map +1 -0
- package/docs/index/classes/APIGatewayService.md +6 -6
- package/docs/index/classes/APIGatewayV2Service.md +5 -5
- package/docs/index/classes/BatchOperationError.md +261 -0
- package/docs/index/classes/DynamoDBService.md +12 -12
- package/docs/index/classes/S3Service.md +15 -15
- package/docs/index/classes/SNSService.md +4 -4
- package/docs/index/classes/SQSService.md +20 -7
- package/docs/index/classes/SSMService.md +7 -7
- package/docs/index/classes/SchedulerService.md +11 -11
- package/docs/index/classes/SecretsManagerService.md +8 -8
- package/docs/index/classes/StepFunctionsService.md +6 -6
- package/docs/index/interfaces/BatchFailedEntry.md +43 -0
- package/docs/index/modules.md +5 -0
- package/docs/testing/testing/functions/createMockService.md +1 -1
- package/esm/index.mjs +93 -48
- package/esm/package.json +1 -1
- package/esm/src/index.d.ts +2 -0
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/s3/s3.d.ts.map +1 -1
- package/esm/src/scheduler/scheduler.d.ts.map +1 -1
- package/esm/src/sfn/sfn.d.ts.map +1 -1
- package/esm/src/sns/sns.d.ts.map +1 -1
- package/esm/src/sqs/sqs.d.ts +20 -0
- package/esm/src/sqs/sqs.d.ts.map +1 -1
- package/esm/src/ssm/ssm.d.ts.map +1 -1
- package/esm/src/util/batch-operation-error.d.ts +33 -0
- package/esm/src/util/batch-operation-error.d.ts.map +1 -0
- package/esm/src/util/chunk.d.ts +6 -0
- package/esm/src/util/chunk.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,34 @@ new XService({ logger?, client? })
|
|
|
25
25
|
|
|
26
26
|
Every wrapper emits one `logger.info` line per SDK call with a per-method safe-field allowlist (omitting payloads, secret material, and PII recipient identifiers). Set `POWERTOOLS_LOG_LEVEL` to either `DEBUG` or `TRACE` to unlock the full SDK input in those log lines — useful for local development and incident triage. Both levels unlock because Powertools orders `TRACE` as more verbose than `DEBUG`; every level from `INFO` upwards redacts. See `packages/aws-wrappers/CLAUDE.md` for the per-method allowlists currently in force.
|
|
27
27
|
|
|
28
|
+
### Batch semantics
|
|
29
|
+
|
|
30
|
+
Batch methods split your entries into chunks of the size the AWS API allows and send one request per chunk. AWS reports rejected entries inside an otherwise successful response, so a resolved request does not mean every entry was accepted. Currently covered: `SQSService.sendMessageBatch` and `SQSService.deleteMessageBatch`.
|
|
31
|
+
|
|
32
|
+
Every chunk is sent first. If any entry was rejected, the method then throws a single `BatchOperationError`. A call where nothing was rejected returns the per-chunk SDK outputs exactly as before.
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import { BatchOperationError } from '@aligent/aws-wrappers';
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
await sqs.sendMessageBatch({ QueueUrl, Entries: entries });
|
|
39
|
+
} catch (error) {
|
|
40
|
+
if (error instanceof BatchOperationError) {
|
|
41
|
+
// error.results — the raw SDK output of every chunk, including what succeeded
|
|
42
|
+
// error.failed — [{ id, code, message }] for every rejected entry
|
|
43
|
+
const failedIds = new Set(error.failed.map(entry => entry.id));
|
|
44
|
+
await retry(entries.filter(entry => failedIds.has(entry.Id)));
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- `failed` carries only the entry identifier, error code and message — never message bodies, attributes or any other payload.
|
|
52
|
+
- The error has a stable `name` of `'BatchOperationError'`. If both the CJS and ESM builds of this package can be loaded in one process, check `error.name` instead of `instanceof`.
|
|
53
|
+
- A warning is logged with the failure count and error codes, and no payload, at every log level.
|
|
54
|
+
- Request-level SDK exceptions (throttling, access denied, network errors) are **not** wrapped. They propagate unchanged and immediately, so earlier chunks may already have been sent and the caller cannot tell which. Treat those as "outcome unknown" and make the operation safe to repeat.
|
|
55
|
+
|
|
28
56
|
### X-Ray outside Lambda
|
|
29
57
|
|
|
30
58
|
X-Ray's middleware throws by default when no active segment exists, which is the case for CLI scripts and local development. Set the environment variable to silence the noise:
|
|
@@ -318,7 +346,8 @@ for (const message of messages) {
|
|
|
318
346
|
}
|
|
319
347
|
}
|
|
320
348
|
|
|
321
|
-
// Batch methods auto-chunk Entries to the SQS-enforced 10-entry limit
|
|
349
|
+
// Batch methods auto-chunk Entries to the SQS-enforced 10-entry limit and throw
|
|
350
|
+
// a BatchOperationError if SQS rejects any entry — see "Batch semantics".
|
|
322
351
|
await sqs.sendMessageBatch({ QueueUrl, Entries: bigEntryList });
|
|
323
352
|
await sqs.deleteMessageBatch({ QueueUrl, Entries: receiptEntries });
|
|
324
353
|
```
|
package/cjs/index.cjs
CHANGED
|
@@ -531,6 +531,18 @@ class DynamoDBService {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Split a list into consecutive chunks of at most `size` items, mirroring the
|
|
536
|
+
* per-request caps the AWS APIs enforce on batch operations.
|
|
537
|
+
*/
|
|
538
|
+
function chunk(items, size) {
|
|
539
|
+
const chunks = [];
|
|
540
|
+
for (let i = 0; i < items.length; i += size) {
|
|
541
|
+
chunks.push(items.slice(i, i + size));
|
|
542
|
+
}
|
|
543
|
+
return chunks;
|
|
544
|
+
}
|
|
545
|
+
|
|
534
546
|
const DEFAULT_PRESIGNED_URL_EXPIRES_IN_SECONDS = 3600;
|
|
535
547
|
const DELETE_OBJECTS_BATCH_LIMIT = 1000;
|
|
536
548
|
/**
|
|
@@ -656,14 +668,8 @@ class S3Service {
|
|
|
656
668
|
async listObjects(bucket, prefix) {
|
|
657
669
|
this.logger.info('Listing S3 objects', { input: { bucket, prefix } });
|
|
658
670
|
const paginator = clientS3.paginateListObjectsV2({ client: this.client }, { Bucket: bucket, Prefix: prefix });
|
|
659
|
-
const
|
|
660
|
-
|
|
661
|
-
for (const object of page.Contents ?? []) {
|
|
662
|
-
if (object.Key)
|
|
663
|
-
keys.push(object.Key);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
return keys;
|
|
671
|
+
const objects = await collectItems(paginator, page => page.Contents);
|
|
672
|
+
return objects.flatMap(object => (object.Key ? [object.Key] : []));
|
|
667
673
|
}
|
|
668
674
|
/**
|
|
669
675
|
* List and JSON-parse every object under a bucket and optional prefix.
|
|
@@ -739,8 +745,7 @@ class S3Service {
|
|
|
739
745
|
input: logFullInput ? { bucket, keys } : { bucket, keyCount: keys.length },
|
|
740
746
|
});
|
|
741
747
|
const results = [];
|
|
742
|
-
for (
|
|
743
|
-
const batch = keys.slice(i, i + DELETE_OBJECTS_BATCH_LIMIT);
|
|
748
|
+
for (const batch of chunk(keys, DELETE_OBJECTS_BATCH_LIMIT)) {
|
|
744
749
|
results.push(await this.client.send(new clientS3.DeleteObjectsCommand({
|
|
745
750
|
Bucket: bucket,
|
|
746
751
|
Delete: { Objects: batch.map(Key => ({ Key })) },
|
|
@@ -882,12 +887,7 @@ class SchedulerService {
|
|
|
882
887
|
async listSchedules(input) {
|
|
883
888
|
this.logger.info('Listing schedules', { input });
|
|
884
889
|
const paginator = clientScheduler.paginateListSchedules({ client: this.client }, input ?? {});
|
|
885
|
-
|
|
886
|
-
for await (const page of paginator) {
|
|
887
|
-
if (page.Schedules)
|
|
888
|
-
schedules.push(...page.Schedules);
|
|
889
|
-
}
|
|
890
|
-
return schedules;
|
|
890
|
+
return collectItems(paginator, page => page.Schedules);
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
893
893
|
* Create a new schedule group. Groups are containers for schedules and are
|
|
@@ -920,12 +920,7 @@ class SchedulerService {
|
|
|
920
920
|
async listScheduleGroups(input) {
|
|
921
921
|
this.logger.info('Listing schedule groups', { input });
|
|
922
922
|
const paginator = clientScheduler.paginateListScheduleGroups({ client: this.client }, input ?? {});
|
|
923
|
-
|
|
924
|
-
for await (const page of paginator) {
|
|
925
|
-
if (page.ScheduleGroups)
|
|
926
|
-
groups.push(...page.ScheduleGroups);
|
|
927
|
-
}
|
|
928
|
-
return groups;
|
|
923
|
+
return collectItems(paginator, page => page.ScheduleGroups);
|
|
929
924
|
}
|
|
930
925
|
}
|
|
931
926
|
|
|
@@ -1113,12 +1108,7 @@ class StepFunctionsService {
|
|
|
1113
1108
|
async listExecutions(input) {
|
|
1114
1109
|
this.logger.info('Listing Step Functions executions', { input });
|
|
1115
1110
|
const paginator = clientSfn.paginateListExecutions({ client: this.client }, input);
|
|
1116
|
-
|
|
1117
|
-
for await (const page of paginator) {
|
|
1118
|
-
if (page.executions)
|
|
1119
|
-
executions.push(...page.executions);
|
|
1120
|
-
}
|
|
1121
|
-
return executions;
|
|
1111
|
+
return collectItems(paginator, page => page.executions);
|
|
1122
1112
|
}
|
|
1123
1113
|
/**
|
|
1124
1114
|
* Start a new Step Functions execution.
|
|
@@ -1284,17 +1274,46 @@ class SNSService {
|
|
|
1284
1274
|
input: logFullInput ? input : { TopicArn: input.TopicArn, entryCount: entries.length },
|
|
1285
1275
|
});
|
|
1286
1276
|
const results = [];
|
|
1287
|
-
for (
|
|
1288
|
-
const chunk = entries.slice(i, i + PUBLISH_BATCH_LIMIT);
|
|
1277
|
+
for (const batch of chunk(entries, PUBLISH_BATCH_LIMIT)) {
|
|
1289
1278
|
results.push(await this.client.send(new clientSns.PublishBatchCommand({
|
|
1290
1279
|
...input,
|
|
1291
|
-
PublishBatchRequestEntries:
|
|
1280
|
+
PublishBatchRequestEntries: batch,
|
|
1292
1281
|
})));
|
|
1293
1282
|
}
|
|
1294
1283
|
return results;
|
|
1295
1284
|
}
|
|
1296
1285
|
}
|
|
1297
1286
|
|
|
1287
|
+
/**
|
|
1288
|
+
* Thrown by the batch methods once every chunk has been sent and at least one
|
|
1289
|
+
* entry was rejected.
|
|
1290
|
+
*
|
|
1291
|
+
* `results` holds the raw SDK output of every chunk, so the outputs of the
|
|
1292
|
+
* entries that succeeded (message ids, sequence numbers) stay readable.
|
|
1293
|
+
* `failed` is the normalised list of rejected entries across all chunks.
|
|
1294
|
+
*
|
|
1295
|
+
* Match on `name` rather than `instanceof` if both the CJS and ESM builds of
|
|
1296
|
+
* this package may be loaded in one process.
|
|
1297
|
+
*/
|
|
1298
|
+
class BatchOperationError extends Error {
|
|
1299
|
+
results;
|
|
1300
|
+
failed;
|
|
1301
|
+
name = 'BatchOperationError';
|
|
1302
|
+
constructor(results, failed) {
|
|
1303
|
+
super(`Batch operation failed for ${failed.length} entries (${distinctCodes(failed).join(', ')})`);
|
|
1304
|
+
this.results = results;
|
|
1305
|
+
this.failed = failed;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Distinct error codes in first-seen order, for the error message and the
|
|
1310
|
+
* warning log line.
|
|
1311
|
+
*/
|
|
1312
|
+
function distinctCodes(failed) {
|
|
1313
|
+
const codes = failed.flatMap(entry => (entry.code === undefined ? [] : [entry.code]));
|
|
1314
|
+
return [...new Set(codes)];
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1298
1317
|
const SQS_BATCH_LIMIT = 10;
|
|
1299
1318
|
const SQS_MESSAGE_BODY_MAX_BYTES = 256 * 1024;
|
|
1300
1319
|
/**
|
|
@@ -1388,10 +1407,36 @@ class SQSService {
|
|
|
1388
1407
|
this.logger.info('Deleting SQS message', { input });
|
|
1389
1408
|
return this.client.send(new clientSqs.DeleteMessageCommand(input));
|
|
1390
1409
|
}
|
|
1410
|
+
/**
|
|
1411
|
+
* SQS reports rejected entries under `Failed` on an otherwise successful
|
|
1412
|
+
* response, so a resolved chunk does not mean every entry was accepted.
|
|
1413
|
+
* Only id, code and message are copied out — never the entry itself — so
|
|
1414
|
+
* neither the error nor the warning can leak a payload.
|
|
1415
|
+
*/
|
|
1416
|
+
throwIfAnyFailed(operation, results) {
|
|
1417
|
+
const failed = results.flatMap(result => (result.Failed ?? []).map(({ Id, Code, Message }) => ({
|
|
1418
|
+
id: Id,
|
|
1419
|
+
code: Code,
|
|
1420
|
+
message: Message,
|
|
1421
|
+
})));
|
|
1422
|
+
if (failed.length === 0)
|
|
1423
|
+
return results;
|
|
1424
|
+
this.logger.warn(`${operation} had rejected entries`, {
|
|
1425
|
+
failedCount: failed.length,
|
|
1426
|
+
codes: distinctCodes(failed),
|
|
1427
|
+
});
|
|
1428
|
+
throw new BatchOperationError(results, failed);
|
|
1429
|
+
}
|
|
1391
1430
|
/**
|
|
1392
1431
|
* Send a batch of messages to an SQS queue. The SQS API caps
|
|
1393
1432
|
* SendMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1394
1433
|
* the caller's entries and sends one request per chunk.
|
|
1434
|
+
*
|
|
1435
|
+
* Every chunk is sent before the outcome is judged. If SQS rejected any
|
|
1436
|
+
* entry, a {@link BatchOperationError} is then thrown carrying the
|
|
1437
|
+
* per-chunk results and the failed entries. Request-level SDK exceptions
|
|
1438
|
+
* (throttling, access denied) propagate unchanged and immediately, so
|
|
1439
|
+
* earlier chunks may already have been sent.
|
|
1395
1440
|
*/
|
|
1396
1441
|
async sendMessageBatch(input) {
|
|
1397
1442
|
const entries = input.Entries ?? [];
|
|
@@ -1403,16 +1448,22 @@ class SQSService {
|
|
|
1403
1448
|
input: logFullInput ? input : { QueueUrl: input.QueueUrl, entryCount: entries.length },
|
|
1404
1449
|
});
|
|
1405
1450
|
const results = [];
|
|
1406
|
-
for (
|
|
1407
|
-
|
|
1408
|
-
results.push(await this.client.send(new clientSqs.SendMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1451
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1452
|
+
results.push(await this.client.send(new clientSqs.SendMessageBatchCommand({ ...input, Entries: batch })));
|
|
1409
1453
|
}
|
|
1410
|
-
return results;
|
|
1454
|
+
return this.throwIfAnyFailed('SQS sendMessageBatch', results);
|
|
1411
1455
|
}
|
|
1412
1456
|
/**
|
|
1413
1457
|
* Delete a batch of messages from an SQS queue. The SQS API caps
|
|
1414
1458
|
* DeleteMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1415
1459
|
* the caller's entries and sends one request per chunk.
|
|
1460
|
+
*
|
|
1461
|
+
* Every chunk is sent before the outcome is judged. If SQS failed to
|
|
1462
|
+
* delete any message, a {@link BatchOperationError} is then thrown carrying
|
|
1463
|
+
* the per-chunk results and the failed entries; those messages will be
|
|
1464
|
+
* redelivered. Request-level SDK exceptions (throttling, access denied)
|
|
1465
|
+
* propagate unchanged and immediately, so earlier chunks may already have
|
|
1466
|
+
* been deleted.
|
|
1416
1467
|
*/
|
|
1417
1468
|
async deleteMessageBatch(input) {
|
|
1418
1469
|
const entries = input.Entries ?? [];
|
|
@@ -1424,11 +1475,10 @@ class SQSService {
|
|
|
1424
1475
|
input: logFullInput ? input : { QueueUrl: input.QueueUrl, entryCount: entries.length },
|
|
1425
1476
|
});
|
|
1426
1477
|
const results = [];
|
|
1427
|
-
for (
|
|
1428
|
-
|
|
1429
|
-
results.push(await this.client.send(new clientSqs.DeleteMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1478
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1479
|
+
results.push(await this.client.send(new clientSqs.DeleteMessageBatchCommand({ ...input, Entries: batch })));
|
|
1430
1480
|
}
|
|
1431
|
-
return results;
|
|
1481
|
+
return this.throwIfAnyFailed('SQS deleteMessageBatch', results);
|
|
1432
1482
|
}
|
|
1433
1483
|
}
|
|
1434
1484
|
|
|
@@ -1517,10 +1567,9 @@ class SSMService {
|
|
|
1517
1567
|
this.logger.info('Fetching SSM parameters', { input: { aliases } });
|
|
1518
1568
|
const names = Object.values(aliases);
|
|
1519
1569
|
const byPath = new Map();
|
|
1520
|
-
for (
|
|
1521
|
-
const chunk = names.slice(i, i + GET_PARAMETERS_LIMIT);
|
|
1570
|
+
for (const batch of chunk(names, GET_PARAMETERS_LIMIT)) {
|
|
1522
1571
|
const response = await this.client.send(new clientSsm.GetParametersCommand({
|
|
1523
|
-
Names:
|
|
1572
|
+
Names: batch,
|
|
1524
1573
|
WithDecryption: true,
|
|
1525
1574
|
}));
|
|
1526
1575
|
for (const parameter of response.Parameters ?? []) {
|
|
@@ -1574,16 +1623,13 @@ class SSMService {
|
|
|
1574
1623
|
input: { path, recursive },
|
|
1575
1624
|
});
|
|
1576
1625
|
const paginator = clientSsm.paginateGetParametersByPath({ client: this.client }, { Path: path, Recursive: recursive, WithDecryption: true });
|
|
1577
|
-
|
|
1578
|
-
for await (const page of paginator) {
|
|
1579
|
-
parameters.push(...(page.Parameters ?? []));
|
|
1580
|
-
}
|
|
1581
|
-
return parameters;
|
|
1626
|
+
return collectItems(paginator, page => page.Parameters);
|
|
1582
1627
|
}
|
|
1583
1628
|
}
|
|
1584
1629
|
|
|
1585
1630
|
exports.APIGatewayService = APIGatewayService;
|
|
1586
1631
|
exports.APIGatewayV2Service = APIGatewayV2Service;
|
|
1632
|
+
exports.BatchOperationError = BatchOperationError;
|
|
1587
1633
|
exports.DynamoDBService = DynamoDBService;
|
|
1588
1634
|
exports.S3Service = S3Service;
|
|
1589
1635
|
exports.SNSService = SNSService;
|
package/cjs/package.json
CHANGED
package/cjs/src/index.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ export { StepFunctionsService } from './sfn/sfn.js';
|
|
|
8
8
|
export { SNSService } from './sns/sns.js';
|
|
9
9
|
export { SQSService } from './sqs/sqs.js';
|
|
10
10
|
export { SSMService } from './ssm/ssm.js';
|
|
11
|
+
export { BatchOperationError } from './util/batch-operation-error.js';
|
|
12
|
+
export type { BatchFailedEntry } from './util/batch-operation-error.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
package/cjs/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC"}
|
package/cjs/src/s3/s3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3.d.ts","sourceRoot":"","sources":["../../../../src/s3/s3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,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;
|
|
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;AAW5B,gDAAgD;AAChD,KAAK,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;AAEvF,oDAAoD;AACpD,KAAK,kBAAkB,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F;;;;;;;;;;;;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;IAMlF;;;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;CAKrC"}
|
package/cjs/src/sfn/sfn.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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;AAgB7B;;;;;;;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;IAMrF;;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"}
|
package/cjs/src/sns/sns.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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;AAwB7B;;;;;;;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;CAsB5F"}
|
package/cjs/src/sqs/sqs.d.ts
CHANGED
|
@@ -55,16 +55,36 @@ export declare class SQSService {
|
|
|
55
55
|
* Delete a single message from an SQS queue.
|
|
56
56
|
*/
|
|
57
57
|
deleteMessage(input: DeleteMessageCommandInput): Promise<DeleteMessageCommandOutput>;
|
|
58
|
+
/**
|
|
59
|
+
* SQS reports rejected entries under `Failed` on an otherwise successful
|
|
60
|
+
* response, so a resolved chunk does not mean every entry was accepted.
|
|
61
|
+
* Only id, code and message are copied out — never the entry itself — so
|
|
62
|
+
* neither the error nor the warning can leak a payload.
|
|
63
|
+
*/
|
|
64
|
+
private throwIfAnyFailed;
|
|
58
65
|
/**
|
|
59
66
|
* Send a batch of messages to an SQS queue. The SQS API caps
|
|
60
67
|
* SendMessageBatch at 10 entries per request, so this method auto-chunks
|
|
61
68
|
* the caller's entries and sends one request per chunk.
|
|
69
|
+
*
|
|
70
|
+
* Every chunk is sent before the outcome is judged. If SQS rejected any
|
|
71
|
+
* entry, a {@link BatchOperationError} is then thrown carrying the
|
|
72
|
+
* per-chunk results and the failed entries. Request-level SDK exceptions
|
|
73
|
+
* (throttling, access denied) propagate unchanged and immediately, so
|
|
74
|
+
* earlier chunks may already have been sent.
|
|
62
75
|
*/
|
|
63
76
|
sendMessageBatch(input: SendMessageBatchCommandInput): Promise<SendMessageBatchCommandOutput[]>;
|
|
64
77
|
/**
|
|
65
78
|
* Delete a batch of messages from an SQS queue. The SQS API caps
|
|
66
79
|
* DeleteMessageBatch at 10 entries per request, so this method auto-chunks
|
|
67
80
|
* the caller's entries and sends one request per chunk.
|
|
81
|
+
*
|
|
82
|
+
* Every chunk is sent before the outcome is judged. If SQS failed to
|
|
83
|
+
* delete any message, a {@link BatchOperationError} is then thrown carrying
|
|
84
|
+
* the per-chunk results and the failed entries; those messages will be
|
|
85
|
+
* redelivered. Request-level SDK exceptions (throttling, access denied)
|
|
86
|
+
* propagate unchanged and immediately, so earlier chunks may already have
|
|
87
|
+
* been deleted.
|
|
68
88
|
*/
|
|
69
89
|
deleteMessageBatch(input: DeleteMessageBatchCommandInput): Promise<DeleteMessageBatchCommandOutput[]>;
|
|
70
90
|
}
|
package/cjs/src/sqs/sqs.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,EAGH,8BAA8B,EAC9B,+BAA+B,EAG/B,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,EAEP,0BAA0B,EAE1B,4BAA4B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,CAAC;CAWhG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One entry a batch operation rejected. Deliberately limited to identifier,
|
|
3
|
+
* code and message so the error never carries message bodies, attributes or
|
|
4
|
+
* any other payload the caller sent.
|
|
5
|
+
*/
|
|
6
|
+
export interface BatchFailedEntry {
|
|
7
|
+
id: string | undefined;
|
|
8
|
+
code: string | undefined;
|
|
9
|
+
message: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Thrown by the batch methods once every chunk has been sent and at least one
|
|
13
|
+
* entry was rejected.
|
|
14
|
+
*
|
|
15
|
+
* `results` holds the raw SDK output of every chunk, so the outputs of the
|
|
16
|
+
* entries that succeeded (message ids, sequence numbers) stay readable.
|
|
17
|
+
* `failed` is the normalised list of rejected entries across all chunks.
|
|
18
|
+
*
|
|
19
|
+
* Match on `name` rather than `instanceof` if both the CJS and ESM builds of
|
|
20
|
+
* this package may be loaded in one process.
|
|
21
|
+
*/
|
|
22
|
+
export declare class BatchOperationError<TResult = unknown> extends Error {
|
|
23
|
+
readonly results: TResult[];
|
|
24
|
+
readonly failed: BatchFailedEntry[];
|
|
25
|
+
readonly name = "BatchOperationError";
|
|
26
|
+
constructor(results: TResult[], failed: BatchFailedEntry[]);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Distinct error codes in first-seen order, for the error message and the
|
|
30
|
+
* warning log line.
|
|
31
|
+
*/
|
|
32
|
+
export declare function distinctCodes(failed: readonly BatchFailedEntry[]): string[];
|
|
33
|
+
//# sourceMappingURL=batch-operation-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch-operation-error.d.ts","sourceRoot":"","sources":["../../../../src/util/batch-operation-error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,qBAAa,mBAAmB,CAAC,OAAO,GAAG,OAAO,CAAE,SAAQ,KAAK;IAIzD,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE;IAC3B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,EAAE;IAJvC,SAAkB,IAAI,yBAAyB;gBAGlC,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,EAAE;CAM1C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,EAAE,CAG3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk.d.ts","sourceRoot":"","sources":["../../../../src/util/chunk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAMjE"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: APIGatewayService
|
|
8
8
|
|
|
9
|
-
Defined in: [api-gateway/api-gateway.ts:30](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:30](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L30)
|
|
10
10
|
|
|
11
11
|
Read-only wrapper around the API Gateway (REST API, v1) control-plane client
|
|
12
12
|
providing structured Powertools logging and X-Ray tracing by default.
|
|
@@ -24,7 +24,7 @@ output; the wrapper never logs output, and no input carries secrets.
|
|
|
24
24
|
|
|
25
25
|
> **new APIGatewayService**(`opts?`): `APIGatewayService`
|
|
26
26
|
|
|
27
|
-
Defined in: [api-gateway/api-gateway.ts:40](https://github.com/aligent/microservice-development-utilities/blob/
|
|
27
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:40](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L40)
|
|
28
28
|
|
|
29
29
|
#### Parameters
|
|
30
30
|
|
|
@@ -56,7 +56,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
56
56
|
|
|
57
57
|
> **getApiKey**(`input`): `Promise`\<`GetApiKeyCommandOutput`\>
|
|
58
58
|
|
|
59
|
-
Defined in: [api-gateway/api-gateway.ts:71](https://github.com/aligent/microservice-development-utilities/blob/
|
|
59
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:71](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L71)
|
|
60
60
|
|
|
61
61
|
Fetch a single API key, including its secret value.
|
|
62
62
|
|
|
@@ -82,7 +82,7 @@ NotFoundException when the key does not exist.
|
|
|
82
82
|
|
|
83
83
|
> **getApiKeys**(`input?`): `Promise`\<`ApiKey`[]\>
|
|
84
84
|
|
|
85
|
-
Defined in: [api-gateway/api-gateway.ts:59](https://github.com/aligent/microservice-development-utilities/blob/
|
|
85
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:59](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L59)
|
|
86
86
|
|
|
87
87
|
List API keys, including their secret values. Auto-paginated.
|
|
88
88
|
|
|
@@ -104,7 +104,7 @@ List API keys, including their secret values. Auto-paginated.
|
|
|
104
104
|
|
|
105
105
|
> **getResources**(`input`): `Promise`\<`Resource`[]\>
|
|
106
106
|
|
|
107
|
-
Defined in: [api-gateway/api-gateway.ts:83](https://github.com/aligent/microservice-development-utilities/blob/
|
|
107
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:83](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L83)
|
|
108
108
|
|
|
109
109
|
List every resource (path) of a REST API, which is how REST APIs expose
|
|
110
110
|
their routes. Pass `embed: ['methods']` to include each resource's
|
|
@@ -128,7 +128,7 @@ methods. Auto-paginated.
|
|
|
128
128
|
|
|
129
129
|
> **getRestApis**(`input?`): `Promise`\<`RestApi`[]\>
|
|
130
130
|
|
|
131
|
-
Defined in: [api-gateway/api-gateway.ts:48](https://github.com/aligent/microservice-development-utilities/blob/
|
|
131
|
+
Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:48](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway/api-gateway.ts#L48)
|
|
132
132
|
|
|
133
133
|
List every REST API in the account and region. Auto-paginated.
|
|
134
134
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: APIGatewayV2Service
|
|
8
8
|
|
|
9
|
-
Defined in: [api-gateway-v2/api-gateway-v2.ts:26](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:26](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts#L26)
|
|
10
10
|
|
|
11
11
|
Read-only wrapper around the API Gateway v2 (HTTP and WebSocket APIs)
|
|
12
12
|
control-plane client providing structured Powertools logging and X-Ray
|
|
@@ -23,7 +23,7 @@ follow `NextToken` manually.
|
|
|
23
23
|
|
|
24
24
|
> **new APIGatewayV2Service**(`opts?`): `APIGatewayV2Service`
|
|
25
25
|
|
|
26
|
-
Defined in: [api-gateway-v2/api-gateway-v2.ts:36](https://github.com/aligent/microservice-development-utilities/blob/
|
|
26
|
+
Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:36](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts#L36)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -55,7 +55,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
55
55
|
|
|
56
56
|
> **getApis**(`input?`): `Promise`\<`Api`[]\>
|
|
57
57
|
|
|
58
|
-
Defined in: [api-gateway-v2/api-gateway-v2.ts:45](https://github.com/aligent/microservice-development-utilities/blob/
|
|
58
|
+
Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:45](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts#L45)
|
|
59
59
|
|
|
60
60
|
List every HTTP and WebSocket API in the account and region.
|
|
61
61
|
Auto-paginated.
|
|
@@ -78,7 +78,7 @@ Auto-paginated.
|
|
|
78
78
|
|
|
79
79
|
> **getRoute**(`input`): `Promise`\<`GetRouteCommandOutput`\>
|
|
80
80
|
|
|
81
|
-
Defined in: [api-gateway-v2/api-gateway-v2.ts:58](https://github.com/aligent/microservice-development-utilities/blob/
|
|
81
|
+
Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:58](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts#L58)
|
|
82
82
|
|
|
83
83
|
Fetch a single route of an HTTP or WebSocket API.
|
|
84
84
|
|
|
@@ -104,7 +104,7 @@ NotFoundException when the route does not exist.
|
|
|
104
104
|
|
|
105
105
|
> **getRoutes**(`input`): `Promise`\<`Route`[]\>
|
|
106
106
|
|
|
107
|
-
Defined in: [api-gateway-v2/api-gateway-v2.ts:66](https://github.com/aligent/microservice-development-utilities/blob/
|
|
107
|
+
Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:66](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts#L66)
|
|
108
108
|
|
|
109
109
|
List every route of an HTTP or WebSocket API. Auto-paginated.
|
|
110
110
|
|