@aligent/aws-wrappers 0.5.10 → 0.5.11

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 (56) hide show
  1. package/README.md +36 -9
  2. package/cjs/index.cjs +279 -125
  3. package/cjs/package.json +2 -2
  4. package/cjs/src/dynamodb/dynamodb.d.ts +23 -4
  5. package/cjs/src/dynamodb/dynamodb.d.ts.map +1 -1
  6. package/cjs/src/s3/s3.d.ts +6 -1
  7. package/cjs/src/s3/s3.d.ts.map +1 -1
  8. package/cjs/src/secrets-manager/secrets-manager.d.ts +3 -1
  9. package/cjs/src/secrets-manager/secrets-manager.d.ts.map +1 -1
  10. package/cjs/src/sns/sns.d.ts +8 -5
  11. package/cjs/src/sns/sns.d.ts.map +1 -1
  12. package/cjs/src/sqs/sqs.d.ts +7 -3
  13. package/cjs/src/sqs/sqs.d.ts.map +1 -1
  14. package/cjs/src/ssm/ssm.d.ts +3 -1
  15. package/cjs/src/ssm/ssm.d.ts.map +1 -1
  16. package/cjs/src/util/batch-operation-error.d.ts +19 -2
  17. package/cjs/src/util/batch-operation-error.d.ts.map +1 -1
  18. package/cjs/src/util/json.d.ts +14 -0
  19. package/cjs/src/util/json.d.ts.map +1 -0
  20. package/docs/index/classes/APIGatewayService.md +6 -6
  21. package/docs/index/classes/APIGatewayV2Service.md +5 -5
  22. package/docs/index/classes/BatchOperationError.md +15 -6
  23. package/docs/index/classes/DynamoDBService.md +39 -16
  24. package/docs/index/classes/EventBridgeService.md +3 -3
  25. package/docs/index/classes/LambdaFunctionError.md +7 -7
  26. package/docs/index/classes/LambdaService.md +3 -3
  27. package/docs/index/classes/S3Service.md +24 -16
  28. package/docs/index/classes/SESService.md +4 -4
  29. package/docs/index/classes/SNSService.md +12 -9
  30. package/docs/index/classes/SQSService.md +14 -10
  31. package/docs/index/classes/SSMService.md +10 -8
  32. package/docs/index/classes/SchedulerService.md +11 -11
  33. package/docs/index/classes/SecretsManagerService.md +11 -9
  34. package/docs/index/classes/StepFunctionsService.md +6 -6
  35. package/docs/index/interfaces/BatchFailedEntry.md +6 -5
  36. package/docs/index/interfaces/EmptyBucketPageResult.md +2 -2
  37. package/docs/testing/testing/functions/createMockService.md +1 -1
  38. package/esm/index.mjs +280 -126
  39. package/esm/package.json +2 -2
  40. package/esm/src/dynamodb/dynamodb.d.ts +23 -4
  41. package/esm/src/dynamodb/dynamodb.d.ts.map +1 -1
  42. package/esm/src/s3/s3.d.ts +6 -1
  43. package/esm/src/s3/s3.d.ts.map +1 -1
  44. package/esm/src/secrets-manager/secrets-manager.d.ts +3 -1
  45. package/esm/src/secrets-manager/secrets-manager.d.ts.map +1 -1
  46. package/esm/src/sns/sns.d.ts +8 -5
  47. package/esm/src/sns/sns.d.ts.map +1 -1
  48. package/esm/src/sqs/sqs.d.ts +7 -3
  49. package/esm/src/sqs/sqs.d.ts.map +1 -1
  50. package/esm/src/ssm/ssm.d.ts +3 -1
  51. package/esm/src/ssm/ssm.d.ts.map +1 -1
  52. package/esm/src/util/batch-operation-error.d.ts +19 -2
  53. package/esm/src/util/batch-operation-error.d.ts.map +1 -1
  54. package/esm/src/util/json.d.ts +14 -0
  55. package/esm/src/util/json.d.ts.map +1 -0
  56. package/package.json +2 -2
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: StepFunctionsService
8
8
 
9
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:41](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L41)
9
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:41](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L41)
10
10
 
11
11
  Wrapper around the AWS Step Functions client providing structured
12
12
  Powertools logging and X-Ray tracing by default.
@@ -23,7 +23,7 @@ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
23
23
 
24
24
  > **new StepFunctionsService**(`opts?`): `StepFunctionsService`
25
25
 
26
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:51](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L51)
26
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:51](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L51)
27
27
 
28
28
  #### Parameters
29
29
 
@@ -55,7 +55,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
55
55
 
56
56
  > **describeExecution**(`input`): `Promise`\<`DescribeExecutionCommandOutput`\>
57
57
 
58
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:80](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L80)
58
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:80](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L80)
59
59
 
60
60
  Describe an existing Step Functions execution.
61
61
 
@@ -77,7 +77,7 @@ Describe an existing Step Functions execution.
77
77
 
78
78
  > **listExecutions**(`input`): `Promise`\<`ExecutionListItem`[]\>
79
79
 
80
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:61](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L61)
80
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:61](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L61)
81
81
 
82
82
  List all executions for a state machine, auto-paginating across all
83
83
  pages. Typically bounded by `statusFilter` and state-machine retention,
@@ -101,7 +101,7 @@ so the flat-array shape is safe in practice.
101
101
 
102
102
  > **startExecution**(`input`): `Promise`\<`StartExecutionCommandOutput`\>
103
103
 
104
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:70](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L70)
104
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:70](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L70)
105
105
 
106
106
  Start a new Step Functions execution.
107
107
 
@@ -123,7 +123,7 @@ Start a new Step Functions execution.
123
123
 
124
124
  > **stopExecution**(`input`): `Promise`\<`StopExecutionCommandOutput`\>
125
125
 
126
- Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:90](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/sfn/sfn.ts#L90)
126
+ Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:90](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/sfn/sfn.ts#L90)
127
127
 
128
128
  Stop an in-progress Step Functions execution.
129
129
 
@@ -6,12 +6,13 @@
6
6
 
7
7
  # Interface: BatchFailedEntry
8
8
 
9
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:9](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L9)
9
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/util/batch-operation-error.ts#L10)
10
10
 
11
11
  One entry a batch operation rejected. Deliberately limited to identifier,
12
12
  code and message so the error never carries message bodies, attributes or
13
13
  any other payload the caller sent. For S3 the identifier is the object key;
14
- for SSM it is the parameter path.
14
+ for SSM it is the parameter path; for DynamoDB it is `<table>[<index>]`,
15
+ since a key or item is caller data.
15
16
 
16
17
  ## Properties
17
18
 
@@ -21,7 +22,7 @@ for SSM it is the parameter path.
21
22
 
22
23
  > **code**: `string` \| `undefined`
23
24
 
24
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L11)
25
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:12](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/util/batch-operation-error.ts#L12)
25
26
 
26
27
  ***
27
28
 
@@ -31,7 +32,7 @@ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https:/
31
32
 
32
33
  > **id**: `string` \| `undefined`
33
34
 
34
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L10)
35
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:11](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/util/batch-operation-error.ts#L11)
35
36
 
36
37
  ***
37
38
 
@@ -41,4 +42,4 @@ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:10](https:/
41
42
 
42
43
  > **message**: `string` \| `undefined`
43
44
 
44
- Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:12](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/util/batch-operation-error.ts#L12)
45
+ Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:13](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/util/batch-operation-error.ts#L13)
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: EmptyBucketPageResult
8
8
 
9
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:43](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L43)
9
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:51](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/s3/s3.ts#L51)
10
10
 
11
11
  One page of an `emptyBucket` run, as carried in `BatchOperationError.results`.
12
12
 
@@ -18,6 +18,6 @@ One page of an `emptyBucket` run, as carried in `BatchOperationError.results`.
18
18
 
19
19
  > **deletedKeys**: `string`[]
20
20
 
21
- Defined in: [packages/aws-wrappers/src/s3/s3.ts:45](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/s3/s3.ts#L45)
21
+ Defined in: [packages/aws-wrappers/src/s3/s3.ts:53](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/s3/s3.ts#L53)
22
22
 
23
23
  The keys of this page that S3 deleted.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **createMockService**\<`T`, `O`\>(`service`, `overrides`): `T` & `O`
10
10
 
11
- Defined in: [packages/aws-wrappers/src/testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/e278ae3f29a38b1e451dd1bab16695aea28a55c1/packages/aws-wrappers/src/testing/testing.ts#L66)
11
+ Defined in: [packages/aws-wrappers/src/testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/27475744987d7ba5a02f8568491326793a14edb4/packages/aws-wrappers/src/testing/testing.ts#L66)
12
12
 
13
13
  Build a stand-in for a service class from an object of method overrides, for
14
14
  use in unit tests of code that depends on the service.