@aligent/aws-wrappers 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +3 -2
  2. package/cjs/index.cjs +130 -144
  3. package/cjs/package.json +1 -1
  4. package/cjs/src/dynamodb/dynamodb.d.ts.map +1 -1
  5. package/cjs/src/s3/s3.d.ts.map +1 -1
  6. package/cjs/src/scheduler/scheduler.d.ts.map +1 -1
  7. package/cjs/src/sns/sns.d.ts +7 -0
  8. package/cjs/src/sns/sns.d.ts.map +1 -1
  9. package/cjs/src/sqs/sqs.d.ts +0 -7
  10. package/cjs/src/sqs/sqs.d.ts.map +1 -1
  11. package/cjs/src/util/batch-operation-error.d.ts +20 -3
  12. package/cjs/src/util/batch-operation-error.d.ts.map +1 -1
  13. package/cjs/src/util/redact.d.ts +17 -18
  14. package/cjs/src/util/redact.d.ts.map +1 -1
  15. package/docs/index/classes/APIGatewayService.md +6 -6
  16. package/docs/index/classes/APIGatewayV2Service.md +5 -5
  17. package/docs/index/classes/BatchOperationError.md +5 -5
  18. package/docs/index/classes/DynamoDBService.md +12 -12
  19. package/docs/index/classes/S3Service.md +15 -15
  20. package/docs/index/classes/SNSService.md +10 -4
  21. package/docs/index/classes/SQSService.md +7 -7
  22. package/docs/index/classes/SSMService.md +7 -7
  23. package/docs/index/classes/SchedulerService.md +11 -11
  24. package/docs/index/classes/SecretsManagerService.md +8 -8
  25. package/docs/index/classes/StepFunctionsService.md +6 -6
  26. package/docs/index/interfaces/BatchFailedEntry.md +4 -4
  27. package/docs/testing/testing/functions/createMockService.md +1 -1
  28. package/esm/index.mjs +130 -144
  29. package/esm/package.json +1 -1
  30. package/esm/src/dynamodb/dynamodb.d.ts.map +1 -1
  31. package/esm/src/s3/s3.d.ts.map +1 -1
  32. package/esm/src/scheduler/scheduler.d.ts.map +1 -1
  33. package/esm/src/sns/sns.d.ts +7 -0
  34. package/esm/src/sns/sns.d.ts.map +1 -1
  35. package/esm/src/sqs/sqs.d.ts +0 -7
  36. package/esm/src/sqs/sqs.d.ts.map +1 -1
  37. package/esm/src/util/batch-operation-error.d.ts +20 -3
  38. package/esm/src/util/batch-operation-error.d.ts.map +1 -1
  39. package/esm/src/util/redact.d.ts +17 -18
  40. package/esm/src/util/redact.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import type { LoggerInterface } from '@aws-lambda-powertools/logger/types';
1
2
  /**
2
3
  * One entry a batch operation rejected. Deliberately limited to identifier,
3
4
  * code and message so the error never carries message bodies, attributes or
@@ -26,8 +27,24 @@ export declare class BatchOperationError<TResult = unknown> extends Error {
26
27
  constructor(results: TResult[], failed: BatchFailedEntry[]);
27
28
  }
28
29
  /**
29
- * Distinct error codes in first-seen order, for the error message and the
30
- * warning log line.
30
+ * The shape SQS and SNS share for a rejected entry in a batch response.
31
31
  */
32
- export declare function distinctCodes(failed: readonly BatchFailedEntry[]): string[];
32
+ interface RejectedEntry {
33
+ Id?: string | undefined;
34
+ Code?: string | undefined;
35
+ Message?: string | undefined;
36
+ }
37
+ /**
38
+ * SQS and SNS report rejected entries under `Failed` on an otherwise
39
+ * successful response, so a resolved chunk does not mean every entry was
40
+ * accepted. Returns `results` untouched when nothing failed; otherwise warns
41
+ * and throws a {@link BatchOperationError}.
42
+ *
43
+ * Only id, code and message are copied out — never the entry itself — so
44
+ * neither the error nor the warning can leak a payload.
45
+ */
46
+ export declare function throwIfAnyFailed<TResult extends {
47
+ Failed?: RejectedEntry[] | undefined;
48
+ }>(logger: LoggerInterface, operation: string, results: TResult[]): TResult[];
49
+ export {};
33
50
  //# sourceMappingURL=batch-operation-error.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"batch-operation-error.d.ts","sourceRoot":"","sources":["../../../../src/util/batch-operation-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;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;;GAEG;AACH,UAAU,aAAa;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS;IAAE,MAAM,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAA;CAAE,EACrF,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,EAAE,GACnB,OAAO,EAAE,CAeX"}
@@ -1,29 +1,28 @@
1
1
  import type { LoggerInterface } from '@aws-lambda-powertools/logger/types';
2
- /**
3
- * Whether the logger is verbose enough that full SDK inputs — payloads, secret
4
- * material and PII — may be written to the log.
5
- *
6
- * **This is the only place in the package that reads the log level.** Never
7
- * compare `logger.getLevelName()` yourself: Powertools orders `TRACE` as *more*
8
- * verbose than `DEBUG` (thresholds 6 and 8), so the obvious
9
- * `getLevelName() === 'DEBUG'` check silently redacts at the most verbose level
10
- * available. Route every disclosure decision through this predicate instead.
11
- */
12
- export declare function shouldLogFullInput(logger: LoggerInterface): boolean;
13
2
  /**
14
3
  * Return a log-safe projection of `input` based on the logger's configured level.
15
4
  *
16
- * At the verbose levels — see {@link shouldLogFullInput} — the full input is
17
- * returned unchanged: operators who asked for that verbosity have explicitly
18
- * opted into seeing everything, including payloads, secret material and PII.
5
+ * At the verbose levels (`TRACE` and `DEBUG`) the full input is returned
6
+ * unchanged: operators who asked for that verbosity have explicitly opted into
7
+ * seeing everything, including payloads, secret material and PII. At any other
8
+ * level the projection is returned instead.
9
+ *
10
+ * **This module is the only place in the package that reads the log level.**
11
+ * Never compare `logger.getLevelName()` yourself: Powertools orders `TRACE` as
12
+ * *more* verbose than `DEBUG` (thresholds 6 and 8), so the obvious
13
+ * `getLevelName() === 'DEBUG'` check silently redacts at the most verbose level
14
+ * available. Route every disclosure decision through this function instead.
19
15
  *
20
- * At any other level, only the fields listed in `safeFields` are included.
21
- * Missing fields are silently skipped — the result type narrows to
22
- * `Pick<T, K>` accordingly.
16
+ * `project` is either a list of top-level keys to keep (absent keys are
17
+ * silently skipped, so the result narrows to `Pick<T, K>`) or a function from
18
+ * the input to a safe shape. Prefer the key list: it is safe by default, since
19
+ * a new SDK field is not logged until someone allowlists it. Use a function
20
+ * only for computed shapes such as counts, and keep it small.
23
21
  *
24
22
  * Used across the package so that the "what's safe to log at INFO" decision
25
23
  * lives in one place. See `packages/aws-wrappers/CLAUDE.md` ("Logging") for
26
24
  * the design rationale and conventions on building the safe-field lists.
27
25
  */
28
- export declare function filterFieldsForLogLevel<T extends object, K extends keyof T>(logger: LoggerInterface, input: T, safeFields: readonly K[]): T | Pick<T, K>;
26
+ export declare function redactInput<T extends object, K extends keyof T>(logger: LoggerInterface, input: T, project: readonly K[]): T | Pick<T, K>;
27
+ export declare function redactInput<T extends object, R>(logger: LoggerInterface, input: T, project: (input: T) => R): T | R;
29
28
  //# sourceMappingURL=redact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../../../src/util/redact.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAEnE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EACvE,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,CAAC,EACR,UAAU,EAAE,SAAS,CAAC,EAAE,GACzB,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAOhB"}
1
+ {"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../../../src/util/redact.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAU3E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAC3D,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,SAAS,CAAC,EAAE,GACtB,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAClB,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAC3C,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GACzB,CAAC,GAAG,CAAC,CAAC"}
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: APIGatewayService
8
8
 
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)
9
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:30](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
27
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:40](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
59
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:71](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
85
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:59](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
107
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:83](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
131
+ Defined in: [packages/aws-wrappers/src/api-gateway/api-gateway.ts:48](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
9
+ Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:26](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
26
+ Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:36](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
58
+ Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:45](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
81
+ Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:58](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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: [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)
107
+ Defined in: [packages/aws-wrappers/src/api-gateway-v2/api-gateway-v2.ts:66](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: BatchOperationError\<TResult\>
8
8
 
9
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:23](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L23)
9
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:25](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/util/batch-operation-error.ts#L25)
10
10
 
11
11
  Thrown by the batch methods once every chunk has been sent and at least one
12
12
  entry was rejected.
@@ -36,7 +36,7 @@ this package may be loaded in one process.
36
36
 
37
37
  > **new BatchOperationError**\<`TResult`\>(`results`, `failed`): `BatchOperationError`\<`TResult`\>
38
38
 
39
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:26](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L26)
39
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:28](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/util/batch-operation-error.ts#L28)
40
40
 
41
41
  #### Parameters
42
42
 
@@ -78,7 +78,7 @@ Defined in: node\_modules/typescript/lib/lib.es2022.error.d.ts:24
78
78
 
79
79
  > `readonly` **failed**: [`BatchFailedEntry`](../interfaces/BatchFailedEntry.md)[]
80
80
 
81
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:28](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L28)
81
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:30](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/util/batch-operation-error.ts#L30)
82
82
 
83
83
  ***
84
84
 
@@ -102,7 +102,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1075
102
102
 
103
103
  > `readonly` **name**: `"BatchOperationError"` = `'BatchOperationError'`
104
104
 
105
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:24](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L24)
105
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:26](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/util/batch-operation-error.ts#L26)
106
106
 
107
107
  #### Overrides
108
108
 
@@ -116,7 +116,7 @@ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:24](https:/
116
116
 
117
117
  > `readonly` **results**: `TResult`[]
118
118
 
119
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:27](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L27)
119
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:29](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/util/batch-operation-error.ts#L29)
120
120
 
121
121
  ***
122
122
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: DynamoDBService
8
8
 
9
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:155](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L155)
9
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:166](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:168](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L168)
29
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:179](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:322](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L322)
64
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:317](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:359](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L359)
94
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:349](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:249](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L249)
118
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:248](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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.
@@ -152,7 +152,7 @@ Expected shape of the returned `Attributes`.
152
152
 
153
153
  > **getItem**\<`K`, `R`\>(`input`): `Promise`\<`R` \| `undefined`\>
154
154
 
155
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:183](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L183)
155
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:194](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L194)
156
156
 
157
157
  Get an item from DynamoDB.
158
158
 
@@ -190,7 +190,7 @@ The item, or `undefined` if not found.
190
190
 
191
191
  > **paginateItems**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
192
192
 
193
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:410](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L410)
193
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:395](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L395)
194
194
 
195
195
  Paginate over Query results, yielding one unmarshalled item at a time.
196
196
 
@@ -241,7 +241,7 @@ Expected shape of each yielded item.
241
241
 
242
242
  > **paginateScan**\<`T`\>(`input`): `AsyncGenerator`\<`T`\>
243
243
 
244
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:432](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L432)
244
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:417](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L417)
245
245
 
246
246
  Paginate over Scan results, yielding one unmarshalled item at a time.
247
247
 
@@ -275,7 +275,7 @@ Expected shape of each yielded item.
275
275
 
276
276
  > **putItem**\<`T`\>(`input`): `Promise`\<`PutCommandOutput`\>
277
277
 
278
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:203](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L203)
278
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:210](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L210)
279
279
 
280
280
  Put an item into DynamoDB. The caller's `Item` is typed as `T`, which
281
281
  the document client marshalls automatically.
@@ -306,7 +306,7 @@ Type of the item being stored.
306
306
 
307
307
  > **query**\<`T`\>(`input`): `Promise`\<`Omit`\<`QueryCommandOutput`, `"Items"`\> & `object`\>
308
308
 
309
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:272](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L272)
309
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:267](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L267)
310
310
 
311
311
  Execute a DynamoDB Query. The full `QueryCommandOutput` is returned with
312
312
  `Items` typed as `T[]` so callers retain pagination metadata
@@ -338,7 +338,7 @@ Expected shape of each unmarshalled item.
338
338
 
339
339
  > **scan**\<`T`\>(`input`): `Promise`\<`Omit`\<`ScanCommandOutput`, `"Items"`\> & `object`\>
340
340
 
341
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:301](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L301)
341
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:296](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L296)
342
342
 
343
343
  Scan a DynamoDB table. The full `ScanCommandOutput` is returned with
344
344
  `Items` typed as `T[]` so callers retain pagination metadata.
@@ -382,7 +382,7 @@ Expected shape of each unmarshalled item.
382
382
 
383
383
  > **updateItem**\<`K`, `R`\>(`input`): `Promise`\<`Omit`\<`UpdateCommandOutput`, `"Attributes"`\> & `object`\>
384
384
 
385
- Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:226](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L226)
385
+ Defined in: [packages/aws-wrappers/src/dynamodb/dynamodb.ts:229](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/dynamodb/dynamodb.ts#L229)
386
386
 
387
387
  Update an item in DynamoDB. The `Attributes` field on the response is
388
388
  typed as `R` — the caller should choose `R` to match their
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: S3Service
8
8
 
9
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:72](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L72)
9
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:72](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L72)
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:82](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L82)
30
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:82](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L82)
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:177](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L177)
62
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:177](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L177)
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:265](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L265)
84
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:265](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L265)
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:277](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L277)
106
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:277](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L277)
107
107
 
108
108
  Delete multiple objects from S3, auto-chunking the request into batches
109
109
  of 1000 keys (the S3-enforced DeleteObjects limit). Returns one output
@@ -131,7 +131,7 @@ per chunk.
131
131
 
132
132
  > **emptyBucket**(`bucket`): `Promise`\<`string`[]\>
133
133
 
134
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:316](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L316)
134
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:315](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L315)
135
135
 
136
136
  Delete every object in an **unversioned** bucket. Streams the listing
137
137
  page-by-page and delegates each page's deletion to `deleteObjects`, so
@@ -167,7 +167,7 @@ The keys this call issued deletes for.
167
167
 
168
168
  > **getAllObjects**\<`T`\>(`bucket`, `prefix?`): `Promise`\<`T`[]\>
169
169
 
170
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:203](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L203)
170
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:203](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L203)
171
171
 
172
172
  List and JSON-parse every object under a bucket and optional prefix.
173
173
  Auto-paginated. Objects without a body are skipped.
@@ -202,7 +202,7 @@ Expected type of each parsed object.
202
202
 
203
203
  > **getJsonObject**\<`T`\>(`input`): `Promise`\<`T` \| `undefined`\>
204
204
 
205
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:155](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L155)
205
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:155](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L155)
206
206
 
207
207
  Get an object from S3 and parse it as JSON.
208
208
 
@@ -238,7 +238,7 @@ If the body is non-empty and not valid JSON.
238
238
 
239
239
  > **getObject**(`input`): `Promise`\<`GetObjectCommandOutput`\>
240
240
 
241
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:129](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L129)
241
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:129](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L129)
242
242
 
243
243
  Get an object from S3.
244
244
 
@@ -260,7 +260,7 @@ Get an object from S3.
260
260
 
261
261
  > **getObjectBody**(`input`): `Promise`\<`string` \| `undefined`\>
262
262
 
263
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:141](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L141)
263
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:141](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L141)
264
264
 
265
265
  Get an object from S3 and return its body as a string.
266
266
 
@@ -285,7 +285,7 @@ has no body.
285
285
 
286
286
  > **getPresignedUrl**(`input`): `Promise`\<`string`\>
287
287
 
288
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:241](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L241)
288
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:241](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L241)
289
289
 
290
290
  Generate a presigned URL that callers can use to GET or PUT an S3 object
291
291
  directly, without going through the wrapper. The signing happens against
@@ -339,7 +339,7 @@ The S3 object key.
339
339
 
340
340
  > **headObject**(`input`): `Promise`\<`HeadObjectCommandOutput`\>
341
341
 
342
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:167](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L167)
342
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:167](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L167)
343
343
 
344
344
  Fetch the metadata for an S3 object without downloading its body.
345
345
 
@@ -361,7 +361,7 @@ Fetch the metadata for an S3 object without downloading its body.
361
361
 
362
362
  > **listObjects**(`bucket`, `prefix?`): `Promise`\<`string`[]\>
363
363
 
364
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:188](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L188)
364
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:188](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L188)
365
365
 
366
366
  List object keys under a bucket and optional prefix, auto-paginating
367
367
  across all pages.
@@ -388,7 +388,7 @@ across all pages.
388
388
 
389
389
  > **putJsonObject**\<`T`\>(`input`): `Promise`\<`PutObjectCommandOutput`\>
390
390
 
391
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:112](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L112)
391
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:112](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L112)
392
392
 
393
393
  Serialise a value to JSON and store it as an S3 object.
394
394
 
@@ -422,7 +422,7 @@ Type of the value being stored.
422
422
 
423
423
  > **putObject**(`input`): `Promise`\<`PutObjectCommandOutput`\>
424
424
 
425
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:96](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/s3/s3.ts#L96)
425
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:96](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/s3/s3.ts#L96)
426
426
 
427
427
  Put an object into S3.
428
428
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SNSService
8
8
 
9
- Defined in: [packages/aws-wrappers/src/sns/sns.ts:44](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sns/sns.ts#L44)
9
+ Defined in: [packages/aws-wrappers/src/sns/sns.ts:45](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:60](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sns/sns.ts#L60)
26
+ Defined in: [packages/aws-wrappers/src/sns/sns.ts:61](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:74](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sns/sns.ts#L74)
68
+ Defined in: [packages/aws-wrappers/src/sns/sns.ts:75](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/packages/aws-wrappers/src/sns/sns.ts#L75)
69
69
 
70
70
  Publish a single message to an SNS topic.
71
71
 
@@ -98,13 +98,19 @@ 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:126](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sns/sns.ts#L126)
101
+ Defined in: [packages/aws-wrappers/src/sns/sns.ts:134](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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
105
105
  the caller's `PublishBatchRequestEntries` and sends one request per
106
106
  chunk, returning the array of outputs.
107
107
 
108
+ Every chunk is sent before the outcome is judged. If SNS rejected any
109
+ entry, a [BatchOperationError](BatchOperationError.md) is then thrown carrying the
110
+ per-chunk results and the failed entries. Request-level SDK exceptions
111
+ (throttling, access denied) propagate unchanged and immediately, so
112
+ earlier chunks may already have been published.
113
+
108
114
  #### Parameters
109
115
 
110
116
  ##### input
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: SQSService
8
8
 
9
- Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:56](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L56)
9
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:62](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:71](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L71)
26
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:77](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:135](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L135)
67
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:141](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:209](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L209)
89
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:185](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:126](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L126)
120
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:132](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:83](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L83)
146
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:89](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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:177](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sqs/sqs.ts#L177)
177
+ Defined in: [packages/aws-wrappers/src/sqs/sqs.ts:157](https://github.com/aligent/microservice-development-utilities/blob/759389988566c2660b19633a1e23f3f871a9f03a/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