@aligent/aws-wrappers 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -2
- package/cjs/index.cjs +148 -8
- package/cjs/package.json +2 -1
- package/cjs/src/eventbridge/eventbridge.d.ts.map +1 -1
- package/cjs/src/index.d.ts +1 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/ses/ses.d.ts +64 -0
- package/cjs/src/ses/ses.d.ts.map +1 -0
- package/cjs/src/util/chunk.d.ts +8 -0
- package/cjs/src/util/chunk.d.ts.map +1 -1
- package/docs/index/classes/APIGatewayService.md +6 -6
- package/docs/index/classes/APIGatewayV2Service.md +5 -5
- package/docs/index/classes/BatchOperationError.md +5 -5
- package/docs/index/classes/DynamoDBService.md +12 -12
- package/docs/index/classes/EventBridgeService.md +3 -3
- package/docs/index/classes/LambdaFunctionError.md +7 -7
- package/docs/index/classes/LambdaService.md +3 -3
- package/docs/index/classes/S3Service.md +15 -15
- package/docs/index/classes/SESService.md +123 -0
- package/docs/index/classes/SNSService.md +4 -4
- package/docs/index/classes/SQSService.md +7 -7
- package/docs/index/classes/SSMService.md +7 -7
- package/docs/index/classes/SchedulerService.md +11 -11
- package/docs/index/classes/SecretsManagerService.md +8 -8
- package/docs/index/classes/StepFunctionsService.md +6 -6
- package/docs/index/interfaces/BatchFailedEntry.md +4 -4
- package/docs/index/interfaces/EmptyBucketPageResult.md +2 -2
- package/docs/index/modules.md +1 -0
- package/docs/testing/testing/functions/createMockService.md +1 -1
- package/esm/index.mjs +148 -9
- package/esm/package.json +2 -1
- package/esm/src/eventbridge/eventbridge.d.ts.map +1 -1
- package/esm/src/index.d.ts +1 -0
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/ses/ses.d.ts +64 -0
- package/esm/src/ses/ses.d.ts.map +1 -0
- package/esm/src/util/chunk.d.ts +8 -0
- package/esm/src/util/chunk.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: DynamoDBService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:166](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:166](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L166)
|
|
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: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:179](https://github.com/aligent/microservice-development-utilities/blob/
|
|
29
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:179](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L179)
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
@@ -61,7 +61,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
61
61
|
|
|
62
62
|
> **batchGet**(`input`): `Promise`\<`BatchGetCommandOutput`\>
|
|
63
63
|
|
|
64
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:317](https://github.com/aligent/microservice-development-utilities/blob/
|
|
64
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:317](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L317)
|
|
65
65
|
|
|
66
66
|
Batch-get items from one or more DynamoDB tables, retrying
|
|
67
67
|
`UnprocessedKeys` with jittered exponential backoff. Up to 5 attempts
|
|
@@ -91,7 +91,7 @@ Callers should narrow the result type at the call site.
|
|
|
91
91
|
|
|
92
92
|
> **batchWrite**(`input`): `Promise`\<`BatchWriteCommandOutput`\>
|
|
93
93
|
|
|
94
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:349](https://github.com/aligent/microservice-development-utilities/blob/
|
|
94
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:349](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L349)
|
|
95
95
|
|
|
96
96
|
Batch-write items to DynamoDB, retrying `UnprocessedItems` with jittered
|
|
97
97
|
exponential backoff. Up to 5 attempts (200ms base delay). Throws when
|
|
@@ -115,7 +115,7 @@ items remain unprocessed after the final attempt.
|
|
|
115
115
|
|
|
116
116
|
> **deleteItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`DeleteCommandOutput`, `"Attributes"`\> & `object`\>
|
|
117
117
|
|
|
118
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:248](https://github.com/aligent/microservice-development-utilities/blob/
|
|
118
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:248](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L248)
|
|
119
119
|
|
|
120
120
|
Delete an item from DynamoDB. The `Attributes` field on the response is
|
|
121
121
|
typed as `R` — relevant when `ReturnValues: 'ALL_OLD'` is set.
|
|
@@ -156,7 +156,7 @@ Expected shape of the returned `Attributes`.
|
|
|
156
156
|
|
|
157
157
|
> **getItem**\<`K`, `R`\>(`input`): `Promise`\<`R` \| `undefined`\>
|
|
158
158
|
|
|
159
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:194](https://github.com/aligent/microservice-development-utilities/blob/
|
|
159
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:194](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L194)
|
|
160
160
|
|
|
161
161
|
Get an item from DynamoDB.
|
|
162
162
|
|
|
@@ -198,7 +198,7 @@ The item, or `undefined` if not found.
|
|
|
198
198
|
|
|
199
199
|
> **paginateItems**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
|
|
200
200
|
|
|
201
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:395](https://github.com/aligent/microservice-development-utilities/blob/
|
|
201
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:395](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L395)
|
|
202
202
|
|
|
203
203
|
Paginate over Query results, yielding one unmarshalled item at a time.
|
|
204
204
|
|
|
@@ -251,7 +251,7 @@ Expected shape of each yielded item.
|
|
|
251
251
|
|
|
252
252
|
> **paginateScan**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
|
|
253
253
|
|
|
254
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:417](https://github.com/aligent/microservice-development-utilities/blob/
|
|
254
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:417](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L417)
|
|
255
255
|
|
|
256
256
|
Paginate over Scan results, yielding one unmarshalled item at a time.
|
|
257
257
|
|
|
@@ -287,7 +287,7 @@ Expected shape of each yielded item.
|
|
|
287
287
|
|
|
288
288
|
> **putItem**\<`T`\>(`input`): `Promise`\<`PutCommandOutput`\>
|
|
289
289
|
|
|
290
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:210](https://github.com/aligent/microservice-development-utilities/blob/
|
|
290
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:210](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L210)
|
|
291
291
|
|
|
292
292
|
Put an item into DynamoDB. The caller's `Item` is typed as `T`, which
|
|
293
293
|
the document client marshalls automatically.
|
|
@@ -320,7 +320,7 @@ Type of the item being stored.
|
|
|
320
320
|
|
|
321
321
|
> **query**\<`T`\>(`input`): `Promise`\<`Omit`\<`QueryCommandOutput`, `"Items"`\> & `object`\>
|
|
322
322
|
|
|
323
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:267](https://github.com/aligent/microservice-development-utilities/blob/
|
|
323
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:267](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L267)
|
|
324
324
|
|
|
325
325
|
Execute a DynamoDB Query. The full `QueryCommandOutput` is returned with
|
|
326
326
|
`Items` typed as `T[]` so callers retain pagination metadata
|
|
@@ -354,7 +354,7 @@ Expected shape of each unmarshalled item.
|
|
|
354
354
|
|
|
355
355
|
> **scan**\<`T`\>(`input`): `Promise`\<`Omit`\<`ScanCommandOutput`, `"Items"`\> & `object`\>
|
|
356
356
|
|
|
357
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:296](https://github.com/aligent/microservice-development-utilities/blob/
|
|
357
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:296](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L296)
|
|
358
358
|
|
|
359
359
|
Scan a DynamoDB table. The full `ScanCommandOutput` is returned with
|
|
360
360
|
`Items` typed as `T[]` so callers retain pagination metadata.
|
|
@@ -400,7 +400,7 @@ Expected shape of each unmarshalled item.
|
|
|
400
400
|
|
|
401
401
|
> **updateItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`UpdateCommandOutput`, `"Attributes"`\> & `object`\>
|
|
402
402
|
|
|
403
|
-
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:229](https://github.com/aligent/microservice-development-utilities/blob/
|
|
403
|
+
Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:229](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L229)
|
|
404
404
|
|
|
405
405
|
Update an item in DynamoDB. The `Attributes` field on the response is
|
|
406
406
|
typed as `R` — the caller should choose `R` to match their
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: EventBridgeService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:60](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/eventbridge/eventbridge.ts#L60)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS EventBridge client providing structured Powertools
|
|
12
12
|
logging and X-Ray tracing by default.
|
|
@@ -26,7 +26,7 @@ schedules live in `SchedulerService`.
|
|
|
26
26
|
|
|
27
27
|
> **new EventBridgeService**(`opts?`): `EventBridgeService`
|
|
28
28
|
|
|
29
|
-
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:
|
|
29
|
+
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:70](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/eventbridge/eventbridge.ts#L70)
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
@@ -58,7 +58,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
58
58
|
|
|
59
59
|
> **putEvents**(`input`): `Promise`\<`PutEventsCommandOutput`[]\>
|
|
60
60
|
|
|
61
|
-
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:
|
|
61
|
+
Defined in: [packages/aws-wrappers/src/eventbridge/eventbridge.ts:104](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/eventbridge/eventbridge.ts#L104)
|
|
62
62
|
|
|
63
63
|
Publish events to an event bus. The EventBridge API caps `PutEvents` at
|
|
64
64
|
10 entries per request, so this method auto-chunks the caller's `Entries`
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: LambdaFunctionError
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:21](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:21](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L21)
|
|
10
10
|
|
|
11
11
|
Thrown by `LambdaService.invoke` when a synchronous invocation reached the
|
|
12
12
|
function but the function itself failed. Lambda reports that as an HTTP 200
|
|
@@ -34,7 +34,7 @@ this package may be loaded in one process.
|
|
|
34
34
|
|
|
35
35
|
> **new LambdaFunctionError**(`functionName`, `functionError`, `payload`): `LambdaFunctionError`
|
|
36
36
|
|
|
37
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:26](https://github.com/aligent/microservice-development-utilities/blob/
|
|
37
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:26](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L26)
|
|
38
38
|
|
|
39
39
|
#### Parameters
|
|
40
40
|
|
|
@@ -80,7 +80,7 @@ Defined in: node\_modules/typescript/lib/lib.es2022.error.d.ts:24
|
|
|
80
80
|
|
|
81
81
|
> `readonly` **errorMessage**: `string` \| `undefined`
|
|
82
82
|
|
|
83
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:24](https://github.com/aligent/microservice-development-utilities/blob/
|
|
83
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:24](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L24)
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:24](https:/
|
|
|
90
90
|
|
|
91
91
|
> `readonly` **errorType**: `string` \| `undefined`
|
|
92
92
|
|
|
93
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:23](https://github.com/aligent/microservice-development-utilities/blob/
|
|
93
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:23](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L23)
|
|
94
94
|
|
|
95
95
|
***
|
|
96
96
|
|
|
@@ -100,7 +100,7 @@ Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:23](https:/
|
|
|
100
100
|
|
|
101
101
|
> `readonly` **functionError**: `string`
|
|
102
102
|
|
|
103
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:28](https://github.com/aligent/microservice-development-utilities/blob/
|
|
103
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:28](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L28)
|
|
104
104
|
|
|
105
105
|
***
|
|
106
106
|
|
|
@@ -110,7 +110,7 @@ Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:28](https:/
|
|
|
110
110
|
|
|
111
111
|
> `readonly` **functionName**: `string` \| `undefined`
|
|
112
112
|
|
|
113
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:27](https://github.com/aligent/microservice-development-utilities/blob/
|
|
113
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:27](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L27)
|
|
114
114
|
|
|
115
115
|
***
|
|
116
116
|
|
|
@@ -134,7 +134,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1075
|
|
|
134
134
|
|
|
135
135
|
> `readonly` **name**: `"LambdaFunctionError"` = `'LambdaFunctionError'`
|
|
136
136
|
|
|
137
|
-
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:22](https://github.com/aligent/microservice-development-utilities/blob/
|
|
137
|
+
Defined in: [packages/aws-wrappers/src/util/lambda-function-error.ts:22](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/lambda-function-error.ts#L22)
|
|
138
138
|
|
|
139
139
|
#### Overrides
|
|
140
140
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: LambdaService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:36](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:36](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/lambda/lambda.ts#L36)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Lambda client providing structured Powertools logging
|
|
12
12
|
and X-Ray tracing by default.
|
|
@@ -25,7 +25,7 @@ Covers `invoke` only.
|
|
|
25
25
|
|
|
26
26
|
> **new LambdaService**(`opts?`): `LambdaService`
|
|
27
27
|
|
|
28
|
-
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:46](https://github.com/aligent/microservice-development-utilities/blob/
|
|
28
|
+
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:46](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/lambda/lambda.ts#L46)
|
|
29
29
|
|
|
30
30
|
#### Parameters
|
|
31
31
|
|
|
@@ -57,7 +57,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
57
57
|
|
|
58
58
|
> **invoke**(`input`): `Promise`\<`InvokeCommandOutput`\>
|
|
59
59
|
|
|
60
|
-
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:77](https://github.com/aligent/microservice-development-utilities/blob/
|
|
60
|
+
Defined in: [packages/aws-wrappers/src/lambda/lambda.ts:77](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/lambda/lambda.ts#L77)
|
|
61
61
|
|
|
62
62
|
Invoke a Lambda function. The input is the SDK input unchanged and the
|
|
63
63
|
output is the SDK output unchanged: `Payload` stays a `Uint8Array` you
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: S3Service
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:86](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:86](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L86)
|
|
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: [packages/aws-wrappers/src/s3/s3.ts:96](https://github.com/aligent/microservice-development-utilities/blob/
|
|
30
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:96](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L96)
|
|
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: [packages/aws-wrappers/src/s3/s3.ts:191](https://github.com/aligent/microservice-development-utilities/blob/
|
|
62
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:191](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L191)
|
|
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: [packages/aws-wrappers/src/s3/s3.ts:279](https://github.com/aligent/microservice-development-utilities/blob/
|
|
84
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:279](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L279)
|
|
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: [packages/aws-wrappers/src/s3/s3.ts:297](https://github.com/aligent/microservice-development-utilities/blob/
|
|
106
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:297](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L297)
|
|
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
|
|
@@ -137,7 +137,7 @@ immediately, so earlier chunks may already have been deleted.
|
|
|
137
137
|
|
|
138
138
|
> **emptyBucket**(`bucket`): `Promise`\<`string`[]\>
|
|
139
139
|
|
|
140
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:343](https://github.com/aligent/microservice-development-utilities/blob/
|
|
140
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:343](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L343)
|
|
141
141
|
|
|
142
142
|
Delete every object in an **unversioned** bucket. Streams the listing
|
|
143
143
|
page-by-page and delegates each page's deletion to `deleteObjects`, so no
|
|
@@ -184,7 +184,7 @@ If S3 could not delete one or more keys.
|
|
|
184
184
|
|
|
185
185
|
> **getAllObjects**\<`T`\>(`bucket`, `prefix?`): `Promise`\<`T`[]\>
|
|
186
186
|
|
|
187
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:217](https://github.com/aligent/microservice-development-utilities/blob/
|
|
187
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:217](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L217)
|
|
188
188
|
|
|
189
189
|
List and JSON-parse every object under a bucket and optional prefix.
|
|
190
190
|
Auto-paginated. Objects without a body are skipped.
|
|
@@ -221,7 +221,7 @@ Expected type of each parsed object.
|
|
|
221
221
|
|
|
222
222
|
> **getJsonObject**\<`T`\>(`input`): `Promise`\<`T` \| `undefined`\>
|
|
223
223
|
|
|
224
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:169](https://github.com/aligent/microservice-development-utilities/blob/
|
|
224
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:169](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L169)
|
|
225
225
|
|
|
226
226
|
Get an object from S3 and parse it as JSON.
|
|
227
227
|
|
|
@@ -259,7 +259,7 @@ If the body is non-empty and not valid JSON.
|
|
|
259
259
|
|
|
260
260
|
> **getObject**(`input`): `Promise`\<`GetObjectCommandOutput`\>
|
|
261
261
|
|
|
262
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:143](https://github.com/aligent/microservice-development-utilities/blob/
|
|
262
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:143](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L143)
|
|
263
263
|
|
|
264
264
|
Get an object from S3.
|
|
265
265
|
|
|
@@ -281,7 +281,7 @@ Get an object from S3.
|
|
|
281
281
|
|
|
282
282
|
> **getObjectBody**(`input`): `Promise`\<`string` \| `undefined`\>
|
|
283
283
|
|
|
284
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:155](https://github.com/aligent/microservice-development-utilities/blob/
|
|
284
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:155](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L155)
|
|
285
285
|
|
|
286
286
|
Get an object from S3 and return its body as a string.
|
|
287
287
|
|
|
@@ -306,7 +306,7 @@ has no body.
|
|
|
306
306
|
|
|
307
307
|
> **getPresignedUrl**(`input`): `Promise`\<`string`\>
|
|
308
308
|
|
|
309
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:255](https://github.com/aligent/microservice-development-utilities/blob/
|
|
309
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:255](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L255)
|
|
310
310
|
|
|
311
311
|
Generate a presigned URL that callers can use to GET or PUT an S3 object
|
|
312
312
|
directly, without going through the wrapper. The signing happens against
|
|
@@ -360,7 +360,7 @@ The S3 object key.
|
|
|
360
360
|
|
|
361
361
|
> **headObject**(`input`): `Promise`\<`HeadObjectCommandOutput`\>
|
|
362
362
|
|
|
363
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:181](https://github.com/aligent/microservice-development-utilities/blob/
|
|
363
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:181](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L181)
|
|
364
364
|
|
|
365
365
|
Fetch the metadata for an S3 object without downloading its body.
|
|
366
366
|
|
|
@@ -382,7 +382,7 @@ Fetch the metadata for an S3 object without downloading its body.
|
|
|
382
382
|
|
|
383
383
|
> **listObjects**(`bucket`, `prefix?`): `Promise`\<`string`[]\>
|
|
384
384
|
|
|
385
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:202](https://github.com/aligent/microservice-development-utilities/blob/
|
|
385
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:202](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L202)
|
|
386
386
|
|
|
387
387
|
List object keys under a bucket and optional prefix, auto-paginating
|
|
388
388
|
across all pages.
|
|
@@ -409,7 +409,7 @@ across all pages.
|
|
|
409
409
|
|
|
410
410
|
> **putJsonObject**\<`T`\>(`input`): `Promise`\<`PutObjectCommandOutput`\>
|
|
411
411
|
|
|
412
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:126](https://github.com/aligent/microservice-development-utilities/blob/
|
|
412
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:126](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L126)
|
|
413
413
|
|
|
414
414
|
Serialise a value to JSON and store it as an S3 object.
|
|
415
415
|
|
|
@@ -445,7 +445,7 @@ Type of the value being stored.
|
|
|
445
445
|
|
|
446
446
|
> **putObject**(`input`): `Promise`\<`PutObjectCommandOutput`\>
|
|
447
447
|
|
|
448
|
-
Defined in: [packages/aws-wrappers/src/s3/s3.ts:110](https://github.com/aligent/microservice-development-utilities/blob/
|
|
448
|
+
Defined in: [packages/aws-wrappers/src/s3/s3.ts:110](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L110)
|
|
449
449
|
|
|
450
450
|
Put an object into S3.
|
|
451
451
|
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
[**@aligent/aws-wrappers**](../../modules.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@aligent/aws-wrappers](../../modules.md) / [index](../modules.md) / SESService
|
|
6
|
+
|
|
7
|
+
# Class: SESService
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/ses/ses.ts:116](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ses/ses.ts#L116)
|
|
10
|
+
|
|
11
|
+
Wrapper around the AWS SES v2 client providing structured Powertools logging
|
|
12
|
+
and X-Ray tracing by default.
|
|
13
|
+
|
|
14
|
+
Wraps SES v2 (`@aws-sdk/client-sesv2`), not the legacy v1 API. No defaults
|
|
15
|
+
are baked in: every send option, including `FromEmailAddress` and
|
|
16
|
+
`ConfigurationSetName`, comes from the caller.
|
|
17
|
+
|
|
18
|
+
Where a method's input carries payloads or PII, the INFO log line omits
|
|
19
|
+
them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or `TRACE`) log full
|
|
20
|
+
SDK inputs.
|
|
21
|
+
|
|
22
|
+
## Constructors
|
|
23
|
+
|
|
24
|
+
<a id="constructor"></a>
|
|
25
|
+
|
|
26
|
+
### Constructor
|
|
27
|
+
|
|
28
|
+
> **new SESService**(`opts?`): `SESService`
|
|
29
|
+
|
|
30
|
+
Defined in: [packages/aws-wrappers/src/ses/ses.ts:126](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ses/ses.ts#L126)
|
|
31
|
+
|
|
32
|
+
#### Parameters
|
|
33
|
+
|
|
34
|
+
##### opts?
|
|
35
|
+
|
|
36
|
+
###### client?
|
|
37
|
+
|
|
38
|
+
`SESv2Client`
|
|
39
|
+
|
|
40
|
+
Optional pre-configured `SESv2Client`. When supplied,
|
|
41
|
+
the wrapper does not apply X-Ray instrumentation.
|
|
42
|
+
|
|
43
|
+
###### logger?
|
|
44
|
+
|
|
45
|
+
`LoggerInterface`
|
|
46
|
+
|
|
47
|
+
Optional Powertools logger. Defaults to `new Logger()`,
|
|
48
|
+
which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
49
|
+
|
|
50
|
+
#### Returns
|
|
51
|
+
|
|
52
|
+
`SESService`
|
|
53
|
+
|
|
54
|
+
## Methods
|
|
55
|
+
|
|
56
|
+
<a id="sendbulkemail"></a>
|
|
57
|
+
|
|
58
|
+
### sendBulkEmail()
|
|
59
|
+
|
|
60
|
+
> **sendBulkEmail**(`input`): `Promise`\<`SendBulkEmailCommandOutput`[]\>
|
|
61
|
+
|
|
62
|
+
Defined in: [packages/aws-wrappers/src/ses/ses.ts:171](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ses/ses.ts#L171)
|
|
63
|
+
|
|
64
|
+
Send a templated email to many destinations. SES caps `SendBulkEmail`
|
|
65
|
+
at 50 entries per request, so this method auto-chunks `BulkEmailEntries`
|
|
66
|
+
and sends one request per chunk, in order. Every chunk shares the other
|
|
67
|
+
input fields.
|
|
68
|
+
|
|
69
|
+
At INFO level the log line includes only routing metadata, the template
|
|
70
|
+
name and an entry count; see `summariseSendBulkEmail`.
|
|
71
|
+
|
|
72
|
+
SES answers HTTP 200 even when entries fail, so every chunk is sent
|
|
73
|
+
before the outcome is judged. If any entry's `Status` isn't `SUCCESS`
|
|
74
|
+
(or SES returned no result for it), a [BatchOperationError](BatchOperationError.md) is thrown whose
|
|
75
|
+
`failed[].id` is the entry's original index in `BulkEmailEntries` as a
|
|
76
|
+
string, and whose `results` are the per-chunk outputs — so a caller can
|
|
77
|
+
retry only the failed indexes. Request-level SDK exceptions are not
|
|
78
|
+
wrapped.
|
|
79
|
+
|
|
80
|
+
Sending is not idempotent: retrying the whole batch after a throw
|
|
81
|
+
re-sends the entries that succeeded.
|
|
82
|
+
|
|
83
|
+
#### Parameters
|
|
84
|
+
|
|
85
|
+
##### input
|
|
86
|
+
|
|
87
|
+
`SendBulkEmailCommandInput`
|
|
88
|
+
|
|
89
|
+
#### Returns
|
|
90
|
+
|
|
91
|
+
`Promise`\<`SendBulkEmailCommandOutput`[]\>
|
|
92
|
+
|
|
93
|
+
One SDK output per request sent.
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
<a id="sendemail"></a>
|
|
98
|
+
|
|
99
|
+
### sendEmail()
|
|
100
|
+
|
|
101
|
+
> **sendEmail**(`input`): `Promise`\<`SendEmailCommandOutput`\>
|
|
102
|
+
|
|
103
|
+
Defined in: [packages/aws-wrappers/src/ses/ses.ts:142](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/ses/ses.ts#L142)
|
|
104
|
+
|
|
105
|
+
Send a single email (Simple, Raw or Template content).
|
|
106
|
+
|
|
107
|
+
At INFO level the log line includes only routing metadata and a
|
|
108
|
+
recipient count; see `summariseSendEmail`.
|
|
109
|
+
|
|
110
|
+
Pass-through: SDK exceptions (`MessageRejected`, `SendingPausedException`,
|
|
111
|
+
…) propagate unwrapped.
|
|
112
|
+
|
|
113
|
+
#### Parameters
|
|
114
|
+
|
|
115
|
+
##### input
|
|
116
|
+
|
|
117
|
+
`SendEmailCommandInput`
|
|
118
|
+
|
|
119
|
+
#### Returns
|
|
120
|
+
|
|
121
|
+
`Promise`\<`SendEmailCommandOutput`\>
|
|
122
|
+
|
|
123
|
+
The SDK output, including `MessageId`.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SNSService
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/aws-wrappers/src/sns/sns.ts:45](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/sns/sns.ts:45](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sns/sns.ts#L45)
|
|
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: [packages/aws-wrappers/src/sns/sns.ts:61](https://github.com/aligent/microservice-development-utilities/blob/
|
|
26
|
+
Defined in: [packages/aws-wrappers/src/sns/sns.ts:61](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sns/sns.ts#L61)
|
|
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: [packages/aws-wrappers/src/sns/sns.ts:75](https://github.com/aligent/microservice-development-utilities/blob/
|
|
68
|
+
Defined in: [packages/aws-wrappers/src/sns/sns.ts:75](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sns/sns.ts#L75)
|
|
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: [packages/aws-wrappers/src/sns/sns.ts:134](https://github.com/aligent/microservice-development-utilities/blob/
|
|
101
|
+
Defined in: [packages/aws-wrappers/src/sns/sns.ts:134](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sns/sns.ts#L134)
|
|
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: [packages/aws-wrappers/src/sqs/sqs.ts:62](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:62](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L62)
|
|
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: [packages/aws-wrappers/src/sqs/sqs.ts:77](https://github.com/aligent/microservice-development-utilities/blob/
|
|
26
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:77](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L77)
|
|
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: [packages/aws-wrappers/src/sqs/sqs.ts:141](https://github.com/aligent/microservice-development-utilities/blob/
|
|
67
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:141](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L141)
|
|
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: [packages/aws-wrappers/src/sqs/sqs.ts:185](https://github.com/aligent/microservice-development-utilities/blob/
|
|
89
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:185](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L185)
|
|
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
|
|
@@ -117,7 +117,7 @@ been deleted.
|
|
|
117
117
|
|
|
118
118
|
> **receiveMessages**(`input`): `Promise`\<`Message`[]\>
|
|
119
119
|
|
|
120
|
-
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:132](https://github.com/aligent/microservice-development-utilities/blob/
|
|
120
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:132](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L132)
|
|
121
121
|
|
|
122
122
|
Receive messages from an SQS queue. Returns an empty array when no
|
|
123
123
|
messages are available. No automatic deletion is performed — visibility
|
|
@@ -143,7 +143,7 @@ The `Messages` array from the response, or `[]` if absent.
|
|
|
143
143
|
|
|
144
144
|
> **sendMessage**(`input`, `opts?`): `Promise`\<`SendMessageCommandOutput`\>
|
|
145
145
|
|
|
146
|
-
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:89](https://github.com/aligent/microservice-development-utilities/blob/
|
|
146
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:89](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L89)
|
|
147
147
|
|
|
148
148
|
Send a single message to an SQS queue.
|
|
149
149
|
|
|
@@ -174,7 +174,7 @@ see `SEND_MESSAGE_SAFE_FIELDS`.
|
|
|
174
174
|
|
|
175
175
|
> **sendMessageBatch**(`input`): `Promise`\<`SendMessageBatchCommandOutput`[]\>
|
|
176
176
|
|
|
177
|
-
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:157](https://github.com/aligent/microservice-development-utilities/blob/
|
|
177
|
+
Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:157](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sqs/sqs.ts#L157)
|
|
178
178
|
|
|
179
179
|
Send a batch of messages to an SQS queue. The SQS API caps
|
|
180
180
|
SendMessageBatch at 10 entries per request, so this method auto-chunks
|