@aligent/aws-wrappers 0.2.0 → 0.3.0

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.
@@ -6,11 +6,15 @@
6
6
 
7
7
  # Class: DynamoDBService
8
8
 
9
- Defined in: [dynamodb/dynamodb.ts:155](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L155)
9
+ Defined in: [dynamodb/dynamodb.ts:153](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L153)
10
10
 
11
11
  Wrapper around the AWS DynamoDB Document client providing structured
12
12
  Powertools logging and X-Ray tracing by default.
13
13
 
14
+ Where a method's input carries payloads, secret material or PII, the INFO
15
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
16
+ `TRACE`) log full SDK inputs.
17
+
14
18
  Items are automatically marshalled / unmarshalled via the document client —
15
19
  callers work with plain TypeScript objects in both directions.
16
20
 
@@ -22,7 +26,7 @@ callers work with plain TypeScript objects in both directions.
22
26
 
23
27
  > **new DynamoDBService**(`opts?`): `DynamoDBService`
24
28
 
25
- Defined in: [dynamodb/dynamodb.ts:168](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L168)
29
+ Defined in: [dynamodb/dynamodb.ts:166](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L166)
26
30
 
27
31
  #### Parameters
28
32
 
@@ -57,7 +61,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
57
61
 
58
62
  > **batchGet**(`input`): `Promise`\<`BatchGetCommandOutput`\>
59
63
 
60
- Defined in: [dynamodb/dynamodb.ts:319](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L319)
64
+ Defined in: [dynamodb/dynamodb.ts:317](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L317)
61
65
 
62
66
  Batch-get items from one or more DynamoDB tables.
63
67
 
@@ -84,7 +88,7 @@ Callers should narrow the result type at the call site.
84
88
 
85
89
  > **batchWrite**(`input`): `Promise`\<`BatchWriteCommandOutput`\>
86
90
 
87
- Defined in: [dynamodb/dynamodb.ts:336](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L336)
91
+ Defined in: [dynamodb/dynamodb.ts:334](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L334)
88
92
 
89
93
  Batch-write items to DynamoDB, retrying `UnprocessedItems` with jittered
90
94
  exponential backoff. Up to 5 attempts (200ms base delay). Throws when
@@ -108,7 +112,7 @@ items remain unprocessed after the final attempt.
108
112
 
109
113
  > **deleteItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`DeleteCommandOutput`, `"Attributes"`\> & `object`\>
110
114
 
111
- Defined in: [dynamodb/dynamodb.ts:249](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L249)
115
+ Defined in: [dynamodb/dynamodb.ts:247](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L247)
112
116
 
113
117
  Delete an item from DynamoDB. The `Attributes` field on the response is
114
118
  typed as `R` — relevant when `ReturnValues: 'ALL_OLD'` is set.
@@ -145,7 +149,7 @@ Expected shape of the returned `Attributes`.
145
149
 
146
150
  > **getItem**\<`K`, `R`\>(`input`): `Promise`\<`R` \| `undefined`\>
147
151
 
148
- Defined in: [dynamodb/dynamodb.ts:183](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L183)
152
+ Defined in: [dynamodb/dynamodb.ts:181](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L181)
149
153
 
150
154
  Get an item from DynamoDB.
151
155
 
@@ -183,7 +187,7 @@ The item, or `undefined` if not found.
183
187
 
184
188
  > **paginateItems**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
185
189
 
186
- Defined in: [dynamodb/dynamodb.ts:364](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L364)
190
+ Defined in: [dynamodb/dynamodb.ts:362](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L362)
187
191
 
188
192
  Paginate over Query results, yielding one unmarshalled item at a time.
189
193
 
@@ -213,7 +217,7 @@ Expected shape of each yielded item.
213
217
 
214
218
  > **paginateScan**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
215
219
 
216
- Defined in: [dynamodb/dynamodb.ts:381](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L381)
220
+ Defined in: [dynamodb/dynamodb.ts:379](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L379)
217
221
 
218
222
  Paginate over Scan results, yielding one unmarshalled item at a time.
219
223
 
@@ -243,7 +247,7 @@ Expected shape of each yielded item.
243
247
 
244
248
  > **putItem**\<`T`\>(`input`): `Promise`\<`PutCommandOutput`\>
245
249
 
246
- Defined in: [dynamodb/dynamodb.ts:203](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L203)
250
+ Defined in: [dynamodb/dynamodb.ts:201](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L201)
247
251
 
248
252
  Put an item into DynamoDB. The caller's `Item` is typed as `T`, which
249
253
  the document client marshalls automatically.
@@ -274,7 +278,7 @@ Type of the item being stored.
274
278
 
275
279
  > **query**\<`T`\>(`input`): `Promise`\<`Omit`\<`QueryCommandOutput`, `"Items"`\> & `object`\>
276
280
 
277
- Defined in: [dynamodb/dynamodb.ts:272](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L272)
281
+ Defined in: [dynamodb/dynamodb.ts:270](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L270)
278
282
 
279
283
  Execute a DynamoDB Query. The full `QueryCommandOutput` is returned with
280
284
  `Items` typed as `T[]` so callers retain pagination metadata
@@ -306,7 +310,7 @@ Expected shape of each unmarshalled item.
306
310
 
307
311
  > **scan**\<`T`\>(`input`): `Promise`\<`Omit`\<`ScanCommandOutput`, `"Items"`\> & `object`\>
308
312
 
309
- Defined in: [dynamodb/dynamodb.ts:301](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L301)
313
+ Defined in: [dynamodb/dynamodb.ts:299](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L299)
310
314
 
311
315
  Scan a DynamoDB table. The full `ScanCommandOutput` is returned with
312
316
  `Items` typed as `T[]` so callers retain pagination metadata.
@@ -350,7 +354,7 @@ Expected shape of each unmarshalled item.
350
354
 
351
355
  > **updateItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`UpdateCommandOutput`, `"Attributes"`\> & `object`\>
352
356
 
353
- Defined in: [dynamodb/dynamodb.ts:226](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L226)
357
+ Defined in: [dynamodb/dynamodb.ts:224](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L224)
354
358
 
355
359
  Update an item in DynamoDB. The `Attributes` field on the response is
356
360
  typed as `R` — the caller should choose `R` to match their
@@ -6,11 +6,15 @@
6
6
 
7
7
  # Class: S3Service
8
8
 
9
- Defined in: [s3/s3.ts:68](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L68)
9
+ Defined in: [s3/s3.ts:70](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/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.
13
13
 
14
+ Where a method's input carries payloads, secret material or PII, the INFO
15
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
16
+ `TRACE`) log full SDK inputs.
17
+
14
18
  Input shapes are intentionally tight (Bucket/Key/Body only). Callers
15
19
  needing SDK-level options not exposed here (server-side encryption,
16
20
  tagging, version IDs) should use `S3Client` directly.
@@ -23,7 +27,7 @@ tagging, version IDs) should use `S3Client` directly.
23
27
 
24
28
  > **new S3Service**(`opts?`): `S3Service`
25
29
 
26
- Defined in: [s3/s3.ts:78](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L78)
30
+ Defined in: [s3/s3.ts:80](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L80)
27
31
 
28
32
  #### Parameters
29
33
 
@@ -55,7 +59,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
55
59
 
56
60
  > **copyObject**(`input`): `Promise`\<`CopyObjectCommandOutput`\>
57
61
 
58
- Defined in: [s3/s3.ts:173](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L173)
62
+ Defined in: [s3/s3.ts:175](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L175)
59
63
 
60
64
  Copy an object within S3.
61
65
 
@@ -77,7 +81,7 @@ Copy an object within S3.
77
81
 
78
82
  > **deleteObject**(`input`): `Promise`\<`DeleteObjectCommandOutput`\>
79
83
 
80
- Defined in: [s3/s3.ts:266](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L266)
84
+ Defined in: [s3/s3.ts:268](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L268)
81
85
 
82
86
  Delete a single object from S3.
83
87
 
@@ -99,7 +103,7 @@ Delete a single object from S3.
99
103
 
100
104
  > **deleteObjects**(`bucket`, `keys`): `Promise`\<`DeleteObjectsCommandOutput`[]\>
101
105
 
102
- Defined in: [s3/s3.ts:278](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L278)
106
+ Defined in: [s3/s3.ts:280](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L280)
103
107
 
104
108
  Delete multiple objects from S3, auto-chunking the request into batches
105
109
  of 1000 keys (the S3-enforced DeleteObjects limit). Returns one output
@@ -127,7 +131,7 @@ per chunk.
127
131
 
128
132
  > **emptyBucket**(`bucket`): `Promise`\<`string`[]\>
129
133
 
130
- Defined in: [s3/s3.ts:307](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L307)
134
+ Defined in: [s3/s3.ts:309](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L309)
131
135
 
132
136
  Delete every object in a bucket. Streams the listing page-by-page and
133
137
  delegates each page's deletion to `deleteObjects`, so peak memory stays
@@ -153,7 +157,7 @@ The keys of every deleted object.
153
157
 
154
158
  > **getAllObjects**\<`T`\>(`bucket`, `prefix?`): `Promise`\<`T`[]\>
155
159
 
156
- Defined in: [s3/s3.ts:204](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L204)
160
+ Defined in: [s3/s3.ts:206](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L206)
157
161
 
158
162
  List and JSON-parse every object under a bucket and optional prefix.
159
163
  Auto-paginated. Objects without a body are skipped.
@@ -188,7 +192,7 @@ Expected type of each parsed object.
188
192
 
189
193
  > **getJsonObject**\<`T`\>(`input`): `Promise`\<`T` \| `undefined`\>
190
194
 
191
- Defined in: [s3/s3.ts:151](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L151)
195
+ Defined in: [s3/s3.ts:153](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L153)
192
196
 
193
197
  Get an object from S3 and parse it as JSON.
194
198
 
@@ -224,7 +228,7 @@ If the body is non-empty and not valid JSON.
224
228
 
225
229
  > **getObject**(`input`): `Promise`\<`GetObjectCommandOutput`\>
226
230
 
227
- Defined in: [s3/s3.ts:125](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L125)
231
+ Defined in: [s3/s3.ts:127](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L127)
228
232
 
229
233
  Get an object from S3.
230
234
 
@@ -246,7 +250,7 @@ Get an object from S3.
246
250
 
247
251
  > **getObjectBody**(`input`): `Promise`\<`string` \| `undefined`\>
248
252
 
249
- Defined in: [s3/s3.ts:137](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L137)
253
+ Defined in: [s3/s3.ts:139](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L139)
250
254
 
251
255
  Get an object from S3 and return its body as a string.
252
256
 
@@ -271,7 +275,7 @@ has no body.
271
275
 
272
276
  > **getPresignedUrl**(`input`): `Promise`\<`string`\>
273
277
 
274
- Defined in: [s3/s3.ts:242](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L242)
278
+ Defined in: [s3/s3.ts:244](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L244)
275
279
 
276
280
  Generate a presigned URL that callers can use to GET or PUT an S3 object
277
281
  directly, without going through the wrapper. The signing happens against
@@ -325,7 +329,7 @@ The S3 object key.
325
329
 
326
330
  > **headObject**(`input`): `Promise`\<`HeadObjectCommandOutput`\>
327
331
 
328
- Defined in: [s3/s3.ts:163](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L163)
332
+ Defined in: [s3/s3.ts:165](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L165)
329
333
 
330
334
  Fetch the metadata for an S3 object without downloading its body.
331
335
 
@@ -347,7 +351,7 @@ Fetch the metadata for an S3 object without downloading its body.
347
351
 
348
352
  > **listObjects**(`bucket`, `prefix?`): `Promise`\<`string`[]\>
349
353
 
350
- Defined in: [s3/s3.ts:184](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L184)
354
+ Defined in: [s3/s3.ts:186](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L186)
351
355
 
352
356
  List object keys under a bucket and optional prefix, auto-paginating
353
357
  across all pages.
@@ -374,7 +378,7 @@ across all pages.
374
378
 
375
379
  > **putJsonObject**\<`T`\>(`input`): `Promise`\<`PutObjectCommandOutput`\>
376
380
 
377
- Defined in: [s3/s3.ts:108](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L108)
381
+ Defined in: [s3/s3.ts:110](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L110)
378
382
 
379
383
  Serialise a value to JSON and store it as an S3 object.
380
384
 
@@ -408,7 +412,7 @@ Type of the value being stored.
408
412
 
409
413
  > **putObject**(`input`): `Promise`\<`PutObjectCommandOutput`\>
410
414
 
411
- Defined in: [s3/s3.ts:92](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/s3/s3.ts#L92)
415
+ Defined in: [s3/s3.ts:94](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/s3/s3.ts#L94)
412
416
 
413
417
  Put an object into S3.
414
418
 
@@ -6,11 +6,15 @@
6
6
 
7
7
  # Class: SNSService
8
8
 
9
- Defined in: [sns/sns.ts:39](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sns/sns.ts#L39)
9
+ Defined in: [sns/sns.ts:43](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/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.
13
13
 
14
+ Where a method's input carries payloads, secret material or PII, the INFO
15
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
16
+ `TRACE`) log full SDK inputs.
17
+
14
18
  ## Constructors
15
19
 
16
20
  <a id="constructor"></a>
@@ -19,7 +23,7 @@ and X-Ray tracing by default.
19
23
 
20
24
  > **new SNSService**(`opts?`): `SNSService`
21
25
 
22
- Defined in: [sns/sns.ts:55](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sns/sns.ts#L55)
26
+ Defined in: [sns/sns.ts:59](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sns/sns.ts#L59)
23
27
 
24
28
  #### Parameters
25
29
 
@@ -61,13 +65,12 @@ its own `truncate` option.
61
65
 
62
66
  > **publish**(`input`, `opts?`): `Promise`\<`PublishCommandOutput`\>
63
67
 
64
- Defined in: [sns/sns.ts:70](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sns/sns.ts#L70)
68
+ Defined in: [sns/sns.ts:73](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sns/sns.ts#L73)
65
69
 
66
70
  Publish a single message to an SNS topic.
67
71
 
68
72
  At INFO level the log line includes only routing / dedup metadata; see
69
- `PUBLISH_SAFE_FIELDS` for the list. Setting `POWERTOOLS_LOG_LEVEL=DEBUG`
70
- unlocks the full input.
73
+ `PUBLISH_SAFE_FIELDS` for the list.
71
74
 
72
75
  #### Parameters
73
76
 
@@ -95,7 +98,7 @@ PublishCommandInput including TopicArn and Message.
95
98
 
96
99
  > **publishBatch**(`input`): `Promise`\<`PublishBatchCommandOutput`[]\>
97
100
 
98
- Defined in: [sns/sns.ts:107](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sns/sns.ts#L107)
101
+ Defined in: [sns/sns.ts:110](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sns/sns.ts#L110)
99
102
 
100
103
  Publish a batch of messages to an SNS topic. The SNS API caps
101
104
  PublishBatch at 10 entries per request, so this method auto-chunks
@@ -6,11 +6,15 @@
6
6
 
7
7
  # Class: SQSService
8
8
 
9
- Defined in: [sqs/sqs.ts:46](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L46)
9
+ Defined in: [sqs/sqs.ts:49](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/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.
13
13
 
14
+ Where a method's input carries payloads, secret material or PII, the INFO
15
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
16
+ `TRACE`) log full SDK inputs.
17
+
14
18
  ## Constructors
15
19
 
16
20
  <a id="constructor"></a>
@@ -19,7 +23,7 @@ and X-Ray tracing by default.
19
23
 
20
24
  > **new SQSService**(`opts?`): `SQSService`
21
25
 
22
- Defined in: [sqs/sqs.ts:61](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L61)
26
+ Defined in: [sqs/sqs.ts:64](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L64)
23
27
 
24
28
  #### Parameters
25
29
 
@@ -60,7 +64,7 @@ option.
60
64
 
61
65
  > **deleteMessage**(`input`): `Promise`\<`DeleteMessageCommandOutput`\>
62
66
 
63
- Defined in: [sqs/sqs.ts:117](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L117)
67
+ Defined in: [sqs/sqs.ts:119](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L119)
64
68
 
65
69
  Delete a single message from an SQS queue.
66
70
 
@@ -82,7 +86,7 @@ Delete a single message from an SQS queue.
82
86
 
83
87
  > **deleteMessageBatch**(`input`): `Promise`\<`DeleteMessageBatchCommandOutput`[]\>
84
88
 
85
- Defined in: [sqs/sqs.ts:153](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L153)
89
+ Defined in: [sqs/sqs.ts:155](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L155)
86
90
 
87
91
  Delete a batch of messages from an SQS queue. The SQS API caps
88
92
  DeleteMessageBatch at 10 entries per request, so this method auto-chunks
@@ -106,7 +110,7 @@ the caller's entries and sends one request per chunk.
106
110
 
107
111
  > **receiveMessages**(`input`): `Promise`\<`Message`[]\>
108
112
 
109
- Defined in: [sqs/sqs.ts:108](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L108)
113
+ Defined in: [sqs/sqs.ts:110](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L110)
110
114
 
111
115
  Receive messages from an SQS queue. Returns an empty array when no
112
116
  messages are available. No automatic deletion is performed — visibility
@@ -132,13 +136,12 @@ The `Messages` array from the response, or `[]` if absent.
132
136
 
133
137
  > **sendMessage**(`input`, `opts?`): `Promise`\<`SendMessageCommandOutput`\>
134
138
 
135
- Defined in: [sqs/sqs.ts:74](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L74)
139
+ Defined in: [sqs/sqs.ts:76](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L76)
136
140
 
137
141
  Send a single message to an SQS queue.
138
142
 
139
143
  At INFO level the log line includes only queue routing / FIFO metadata;
140
- see `SEND_MESSAGE_SAFE_FIELDS`. `POWERTOOLS_LOG_LEVEL=DEBUG` unlocks the
141
- full input.
144
+ see `SEND_MESSAGE_SAFE_FIELDS`.
142
145
 
143
146
  #### Parameters
144
147
 
@@ -164,7 +167,7 @@ full input.
164
167
 
165
168
  > **sendMessageBatch**(`input`): `Promise`\<`SendMessageBatchCommandOutput`[]\>
166
169
 
167
- Defined in: [sqs/sqs.ts:127](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/sqs/sqs.ts#L127)
170
+ Defined in: [sqs/sqs.ts:129](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/sqs/sqs.ts#L129)
168
171
 
169
172
  Send a batch of messages to an SQS queue. The SQS API caps
170
173
  SendMessageBatch at 10 entries per request, so this method auto-chunks
@@ -6,13 +6,17 @@
6
6
 
7
7
  # Class: SSMService
8
8
 
9
- Defined in: [ssm/ssm.ts:47](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L47)
9
+ Defined in: [ssm/ssm.ts:50](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L50)
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
13
13
  `WithDecryption` — callers needing plaintext should use `SSMClient`
14
14
  directly.
15
15
 
16
+ Where a method's input carries payloads, secret material or PII, the INFO
17
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
18
+ `TRACE`) log full SDK inputs.
19
+
16
20
  Write operations (`putParameter`, `deleteParameter`) are exposed for
17
21
  convenience but should be used with care: parameter lifecycle is usually
18
22
  managed by IaC (CDK / Terraform). Prefer IaC for anything that exists at
@@ -27,7 +31,7 @@ mutate within the application.
27
31
 
28
32
  > **new SSMService**(`opts?`): `SSMService`
29
33
 
30
- Defined in: [ssm/ssm.ts:57](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L57)
34
+ Defined in: [ssm/ssm.ts:60](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L60)
31
35
 
32
36
  #### Parameters
33
37
 
@@ -59,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
59
63
 
60
64
  > **deleteParameter**(`name`): `Promise`\<`void`\>
61
65
 
62
- Defined in: [ssm/ssm.ts:136](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L136)
66
+ Defined in: [ssm/ssm.ts:139](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L139)
63
67
 
64
68
  Delete an SSM parameter by name.
65
69
 
@@ -84,7 +88,7 @@ runtime cleanup only.
84
88
 
85
89
  > **getParameter**(`name`): `Promise`\<`string` \| `undefined`\>
86
90
 
87
- Defined in: [ssm/ssm.ts:68](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L68)
91
+ Defined in: [ssm/ssm.ts:71](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L71)
88
92
 
89
93
  Fetch a single SSM parameter's value.
90
94
 
@@ -111,7 +115,7 @@ value set.
111
115
 
112
116
  > **getParameters**\<`K`\>(`aliases`): `Promise`\<`Record`\<`K`, `string` \| `undefined`\>\>
113
117
 
114
- Defined in: [ssm/ssm.ts:95](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L95)
118
+ Defined in: [ssm/ssm.ts:98](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L98)
115
119
 
116
120
  Fetch multiple SSM parameters in a single request. Callers supply an
117
121
  alias-to-path record, and the returned record is keyed by the same
@@ -156,7 +160,7 @@ no value.
156
160
 
157
161
  > **getParametersByPath**(`path`, `opts?`): `Promise`\<`Parameter`[]\>
158
162
 
159
- Defined in: [ssm/ssm.ts:152](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L152)
163
+ Defined in: [ssm/ssm.ts:155](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L155)
160
164
 
161
165
  Fetch all parameters under an SSM hierarchy path, auto-paginating across
162
166
  all pages. `Recursive` defaults to `true` (overriding the AWS SDK
@@ -195,7 +199,7 @@ The full `Parameter` objects (including `Version`,
195
199
 
196
200
  > **putParameter**(`input`): `Promise`\<`PutParameterCommandOutput`\>
197
201
 
198
- Defined in: [ssm/ssm.ts:123](https://github.com/aligent/microservice-development-utilities/blob/1c8403742cbf82a4bd82725126d0860e0996e39d/packages/aws-wrappers/src/ssm/ssm.ts#L123)
202
+ Defined in: [ssm/ssm.ts:126](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/ssm/ssm.ts#L126)
199
203
 
200
204
  Create or update an SSM parameter. The log line omits `Value` to avoid
201
205
  leaking secret material.
@@ -6,11 +6,15 @@
6
6
 
7
7
  # Class: SchedulerService
8
8
 
9
- Defined in: scheduler/scheduler.ts:75
9
+ Defined in: [scheduler/scheduler.ts:81](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/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.
13
13
 
14
+ Where a method's input carries payloads, secret material or PII, the INFO
15
+ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
16
+ `TRACE`) log full SDK inputs.
17
+
14
18
  Covers CRUD on schedules and their groups. Named `SchedulerService` (not
15
19
  `EventBridgeSchedulerService`) so it doesn't collide with a future wrapper
16
20
  over the separate EventBridge bus/rules API (`@aws-sdk/client-eventbridge`).
@@ -27,7 +31,7 @@ intent (`{ Mode: 'OFF' }` for a fixed-time schedule).
27
31
 
28
32
  > **new SchedulerService**(`opts?`): `SchedulerService`
29
33
 
30
- Defined in: scheduler/scheduler.ts:85
34
+ Defined in: [scheduler/scheduler.ts:91](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L91)
31
35
 
32
36
  #### Parameters
33
37
 
@@ -59,11 +63,10 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
59
63
 
60
64
  > **createSchedule**(`input`): `Promise`\<`CreateScheduleCommandOutput`\>
61
65
 
62
- Defined in: scheduler/scheduler.ts:95
66
+ Defined in: [scheduler/scheduler.ts:100](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L100)
63
67
 
64
68
  Create a new schedule. At INFO the log line omits `Target.Input` (the
65
- target payload, a PII carrier); `POWERTOOLS_LOG_LEVEL=DEBUG` unlocks the
66
- full input.
69
+ target payload, a PII carrier).
67
70
 
68
71
  #### Parameters
69
72
 
@@ -83,7 +86,7 @@ full input.
83
86
 
84
87
  > **createScheduleGroup**(`input`): `Promise`\<`CreateScheduleGroupCommandOutput`\>
85
88
 
86
- Defined in: scheduler/scheduler.ts:154
89
+ Defined in: [scheduler/scheduler.ts:158](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L158)
87
90
 
88
91
  Create a new schedule group. Groups are containers for schedules and are
89
92
  typically IaC-managed; use this for dynamically-provisioned groups only.
@@ -106,7 +109,7 @@ typically IaC-managed; use this for dynamically-provisioned groups only.
106
109
 
107
110
  > **deleteSchedule**(`input`): `Promise`\<`DeleteScheduleCommandOutput`\>
108
111
 
109
- Defined in: scheduler/scheduler.ts:130
112
+ Defined in: [scheduler/scheduler.ts:134](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L134)
110
113
 
111
114
  Delete a schedule.
112
115
 
@@ -128,7 +131,7 @@ Delete a schedule.
128
131
 
129
132
  > **deleteScheduleGroup**(`input`): `Promise`\<`DeleteScheduleGroupCommandOutput`\>
130
133
 
131
- Defined in: scheduler/scheduler.ts:176
134
+ Defined in: [scheduler/scheduler.ts:180](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L180)
132
135
 
133
136
  Delete a schedule group. Deleting a group also deletes every schedule it
134
137
  contains, asynchronously — the API has no `UpdateScheduleGroup`, so this
@@ -152,7 +155,7 @@ is the only mutating group operation besides create.
152
155
 
153
156
  > **getSchedule**(`input`): `Promise`\<`GetScheduleCommandOutput`\>
154
157
 
155
- Defined in: scheduler/scheduler.ts:103
158
+ Defined in: [scheduler/scheduler.ts:108](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L108)
156
159
 
157
160
  Fetch a schedule's full configuration.
158
161
 
@@ -174,7 +177,7 @@ Fetch a schedule's full configuration.
174
177
 
175
178
  > **getScheduleGroup**(`input`): `Promise`\<`GetScheduleGroupCommandOutput`\>
176
179
 
177
- Defined in: scheduler/scheduler.ts:164
180
+ Defined in: [scheduler/scheduler.ts:168](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L168)
178
181
 
179
182
  Fetch a schedule group's configuration.
180
183
 
@@ -196,7 +199,7 @@ Fetch a schedule group's configuration.
196
199
 
197
200
  > **listScheduleGroups**(`input?`): `Promise`\<`ScheduleGroupSummary`[]\>
198
201
 
199
- Defined in: scheduler/scheduler.ts:187
202
+ Defined in: [scheduler/scheduler.ts:191](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L191)
200
203
 
201
204
  List schedule groups, auto-paginating across all pages. Bounded in
202
205
  practice by the account's group count and the `NamePrefix` filter.
@@ -219,7 +222,7 @@ practice by the account's group count and the `NamePrefix` filter.
219
222
 
220
223
  > **listSchedules**(`input?`): `Promise`\<`ScheduleSummary`[]\>
221
224
 
222
- Defined in: scheduler/scheduler.ts:140
225
+ Defined in: [scheduler/scheduler.ts:144](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L144)
223
226
 
224
227
  List schedules, auto-paginating across all pages. Bounded in practice by
225
228
  the account's schedule count and the `GroupName` / `NamePrefix` / `State`
@@ -243,7 +246,7 @@ filters, so the flat-array shape is safe.
243
246
 
244
247
  > **updateSchedule**(`input`): `Promise`\<`UpdateScheduleCommandOutput`\>
245
248
 
246
- Defined in: scheduler/scheduler.ts:122
249
+ Defined in: [scheduler/scheduler.ts:126](https://github.com/aligent/microservice-development-utilities/blob/a2bb34fea27b6af8b52791a3302aefd2b6af331f/packages/aws-wrappers/src/scheduler/scheduler.ts#L126)
247
250
 
248
251
  Update an existing schedule.
249
252
 
@@ -255,8 +258,7 @@ that attribute modified, or you will silently erase `ScheduleExpression`,
255
258
  your behalf: deep-merging a `Target` (with its mutually-exclusive
256
259
  target-type params) has no single correct semantics.
257
260
 
258
- At INFO the log line omits `Target.Input`; `POWERTOOLS_LOG_LEVEL=DEBUG`
259
- unlocks the full input.
261
+ At INFO the log line omits `Target.Input`.
260
262
 
261
263
  #### Parameters
262
264