@aligent/aws-wrappers 0.2.0 → 0.4.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.
- package/README.md +22 -3
- package/cjs/index.cjs +678 -1428
- package/cjs/package.json +4 -1
- package/cjs/src/dynamodb/dynamodb.d.ts +31 -0
- package/cjs/src/s3/s3.d.ts +19 -4
- package/cjs/src/scheduler/scheduler.d.ts +6 -4
- package/cjs/src/secrets-manager/secrets-manager.d.ts +7 -6
- package/cjs/src/sfn/sfn.d.ts +4 -0
- package/cjs/src/sns/sns.d.ts +12 -2
- package/cjs/src/sqs/sqs.d.ts +12 -2
- package/cjs/src/ssm/ssm.d.ts +4 -0
- package/cjs/src/util/redact.d.ts +14 -4
- package/docs/classes/DynamoDBService.md +41 -12
- package/docs/classes/S3Service.md +33 -19
- package/docs/classes/SNSService.md +9 -6
- package/docs/classes/SQSService.md +12 -9
- package/docs/classes/SSMService.md +11 -7
- package/docs/classes/SchedulerService.md +17 -15
- package/docs/classes/SecretsManagerService.md +15 -14
- package/docs/classes/StepFunctionsService.md +10 -6
- package/esm/index.mjs +680 -1430
- package/esm/package.json +4 -1
- package/esm/src/dynamodb/dynamodb.d.ts +31 -0
- package/esm/src/s3/s3.d.ts +19 -4
- package/esm/src/scheduler/scheduler.d.ts +6 -4
- package/esm/src/secrets-manager/secrets-manager.d.ts +7 -6
- package/esm/src/sfn/sfn.d.ts +4 -0
- package/esm/src/sns/sns.d.ts +12 -2
- package/esm/src/sqs/sqs.d.ts +12 -2
- package/esm/src/ssm/ssm.d.ts +4 -0
- package/esm/src/util/redact.d.ts +14 -4
- package/package.json +4 -1
|
@@ -6,11 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SNSService
|
|
8
8
|
|
|
9
|
-
Defined in: [sns/sns.ts:
|
|
9
|
+
Defined in: [sns/sns.ts:43](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
26
|
+
Defined in: [sns/sns.ts:59](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
68
|
+
Defined in: [sns/sns.ts:73](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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.
|
|
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:
|
|
101
|
+
Defined in: [sns/sns.ts:125](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sns/sns.ts#L125)
|
|
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:
|
|
9
|
+
Defined in: [sqs/sqs.ts:49](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
26
|
+
Defined in: [sqs/sqs.ts:64](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
67
|
+
Defined in: [sqs/sqs.ts:128](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sqs/sqs.ts#L128)
|
|
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:
|
|
89
|
+
Defined in: [sqs/sqs.ts:164](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sqs/sqs.ts#L164)
|
|
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:
|
|
113
|
+
Defined in: [sqs/sqs.ts:119](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sqs/sqs.ts#L119)
|
|
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:
|
|
139
|
+
Defined in: [sqs/sqs.ts:76](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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`.
|
|
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:
|
|
170
|
+
Defined in: [sqs/sqs.ts:138](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sqs/sqs.ts#L138)
|
|
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:
|
|
9
|
+
Defined in: [ssm/ssm.ts:50](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
34
|
+
Defined in: [ssm/ssm.ts:60](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
66
|
+
Defined in: [ssm/ssm.ts:139](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
91
|
+
Defined in: [ssm/ssm.ts:71](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
118
|
+
Defined in: [ssm/ssm.ts:98](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
163
|
+
Defined in: [ssm/ssm.ts:155](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
202
|
+
Defined in: [ssm/ssm.ts:126](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
9
|
+
Defined in: [scheduler/scheduler.ts:81](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
34
|
+
Defined in: [scheduler/scheduler.ts:91](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
66
|
+
Defined in: [scheduler/scheduler.ts:100](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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)
|
|
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:
|
|
89
|
+
Defined in: [scheduler/scheduler.ts:158](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
112
|
+
Defined in: [scheduler/scheduler.ts:134](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
134
|
+
Defined in: [scheduler/scheduler.ts:180](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
158
|
+
Defined in: [scheduler/scheduler.ts:108](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
180
|
+
Defined in: [scheduler/scheduler.ts:168](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
202
|
+
Defined in: [scheduler/scheduler.ts:191](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
225
|
+
Defined in: [scheduler/scheduler.ts:144](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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:
|
|
249
|
+
Defined in: [scheduler/scheduler.ts:126](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/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
|
|
259
|
-
unlocks the full input.
|
|
261
|
+
At INFO the log line omits `Target.Input`.
|
|
260
262
|
|
|
261
263
|
#### Parameters
|
|
262
264
|
|
|
@@ -6,11 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SecretsManagerService
|
|
8
8
|
|
|
9
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
9
|
+
Defined in: [secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L75)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Secrets Manager 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
|
Write operations (`createSecret`, `updateSecret`, `putSecretValue`,
|
|
15
19
|
`deleteSecret`) are exposed for convenience but should be used with care:
|
|
16
20
|
secret lifecycle is usually managed by IaC (CDK / Terraform). Prefer IaC
|
|
@@ -26,7 +30,7 @@ mutable values.
|
|
|
26
30
|
|
|
27
31
|
> **new SecretsManagerService**(`opts?`): `SecretsManagerService`
|
|
28
32
|
|
|
29
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
33
|
+
Defined in: [secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L86)
|
|
30
34
|
|
|
31
35
|
#### Parameters
|
|
32
36
|
|
|
@@ -59,11 +63,10 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
59
63
|
|
|
60
64
|
> **createSecret**(`input`): `Promise`\<`CreateSecretCommandOutput`\>
|
|
61
65
|
|
|
62
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
66
|
+
Defined in: [secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L123)
|
|
63
67
|
|
|
64
68
|
Create a new secret. At INFO level the log line includes only identity
|
|
65
|
-
and non-secret metadata
|
|
66
|
-
input (including `SecretString` / `SecretBinary`).
|
|
69
|
+
and non-secret metadata.
|
|
67
70
|
|
|
68
71
|
Prefer IaC (CDK / Terraform) for secret lifecycle — use this for
|
|
69
72
|
dynamically-issued credentials only.
|
|
@@ -86,7 +89,7 @@ dynamically-issued credentials only.
|
|
|
86
89
|
|
|
87
90
|
> **deleteSecret**(`input`): `Promise`\<`DeleteSecretCommandOutput`\>
|
|
88
91
|
|
|
89
|
-
Defined in: [secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/
|
|
92
|
+
Defined in: [secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L163)
|
|
90
93
|
|
|
91
94
|
Delete a secret. Pass `ForceDeleteWithoutRecovery: true` to bypass the
|
|
92
95
|
default 7-30 day recovery window (irreversible).
|
|
@@ -111,7 +114,7 @@ Prefer IaC (CDK / Terraform) for secret lifecycle.
|
|
|
111
114
|
|
|
112
115
|
> **getJsonSecret**\<`T`\>(`secretId`): `Promise`\<`T`\>
|
|
113
116
|
|
|
114
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
117
|
+
Defined in: [secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L110)
|
|
115
118
|
|
|
116
119
|
Fetch a secret and parse it as JSON.
|
|
117
120
|
|
|
@@ -149,7 +152,7 @@ If the secret has no `SecretString` or the value is not valid JSON.
|
|
|
149
152
|
|
|
150
153
|
> **getSecret**(`secretId`): `Promise`\<`string`\>
|
|
151
154
|
|
|
152
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
155
|
+
Defined in: [secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L98)
|
|
153
156
|
|
|
154
157
|
Fetch a secret's string value from Secrets Manager.
|
|
155
158
|
|
|
@@ -180,11 +183,10 @@ stores binary data).
|
|
|
180
183
|
|
|
181
184
|
> **putSecretValue**(`input`): `Promise`\<`PutSecretValueCommandOutput`\>
|
|
182
185
|
|
|
183
|
-
Defined in: [secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/
|
|
186
|
+
Defined in: [secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L150)
|
|
184
187
|
|
|
185
188
|
Store a new version of a secret's value. At INFO level the log line
|
|
186
|
-
omits `SecretString` / `SecretBinary
|
|
187
|
-
unlocks the full input.
|
|
189
|
+
omits `SecretString` / `SecretBinary`.
|
|
188
190
|
|
|
189
191
|
Typically used by rotation flows.
|
|
190
192
|
|
|
@@ -206,11 +208,10 @@ Typically used by rotation flows.
|
|
|
206
208
|
|
|
207
209
|
> **updateSecret**(`input`): `Promise`\<`UpdateSecretCommandOutput`\>
|
|
208
210
|
|
|
209
|
-
Defined in: [secrets-manager/secrets-manager.ts:
|
|
211
|
+
Defined in: [secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L137)
|
|
210
212
|
|
|
211
213
|
Update an existing secret's metadata or value. At INFO level the log
|
|
212
|
-
line omits `SecretString` / `SecretBinary
|
|
213
|
-
unlocks the full input.
|
|
214
|
+
line omits `SecretString` / `SecretBinary`.
|
|
214
215
|
|
|
215
216
|
Prefer IaC (CDK / Terraform) for secret lifecycle — use this for
|
|
216
217
|
runtime metadata updates only.
|
|
@@ -6,11 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: StepFunctionsService
|
|
8
8
|
|
|
9
|
-
Defined in: [sfn/sfn.ts:
|
|
9
|
+
Defined in: [sfn/sfn.ts:40](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L40)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Step Functions 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
|
## Constructors
|
|
15
19
|
|
|
16
20
|
<a id="constructor"></a>
|
|
@@ -19,7 +23,7 @@ Powertools logging and X-Ray tracing by default.
|
|
|
19
23
|
|
|
20
24
|
> **new StepFunctionsService**(`opts?`): `StepFunctionsService`
|
|
21
25
|
|
|
22
|
-
Defined in: [sfn/sfn.ts:
|
|
26
|
+
Defined in: [sfn/sfn.ts:50](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L50)
|
|
23
27
|
|
|
24
28
|
#### Parameters
|
|
25
29
|
|
|
@@ -51,7 +55,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
51
55
|
|
|
52
56
|
> **describeExecution**(`input`): `Promise`\<`DescribeExecutionCommandOutput`\>
|
|
53
57
|
|
|
54
|
-
Defined in: [sfn/sfn.ts:
|
|
58
|
+
Defined in: [sfn/sfn.ts:83](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L83)
|
|
55
59
|
|
|
56
60
|
Describe an existing Step Functions execution.
|
|
57
61
|
|
|
@@ -73,7 +77,7 @@ Describe an existing Step Functions execution.
|
|
|
73
77
|
|
|
74
78
|
> **listExecutions**(`input`): `Promise`\<`ExecutionListItem`[]\>
|
|
75
79
|
|
|
76
|
-
Defined in: [sfn/sfn.ts:
|
|
80
|
+
Defined in: [sfn/sfn.ts:60](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L60)
|
|
77
81
|
|
|
78
82
|
List all executions for a state machine, auto-paginating across all
|
|
79
83
|
pages. Typically bounded by `statusFilter` and state-machine retention,
|
|
@@ -97,7 +101,7 @@ so the flat-array shape is safe in practice.
|
|
|
97
101
|
|
|
98
102
|
> **startExecution**(`input`): `Promise`\<`StartExecutionCommandOutput`\>
|
|
99
103
|
|
|
100
|
-
Defined in: [sfn/sfn.ts:
|
|
104
|
+
Defined in: [sfn/sfn.ts:73](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L73)
|
|
101
105
|
|
|
102
106
|
Start a new Step Functions execution.
|
|
103
107
|
|
|
@@ -119,7 +123,7 @@ Start a new Step Functions execution.
|
|
|
119
123
|
|
|
120
124
|
> **stopExecution**(`input`): `Promise`\<`StopExecutionCommandOutput`\>
|
|
121
125
|
|
|
122
|
-
Defined in: [sfn/sfn.ts:
|
|
126
|
+
Defined in: [sfn/sfn.ts:93](https://github.com/aligent/microservice-development-utilities/blob/fd6cf9d0c7112a3e2feb0c83a6bedebeddcf46ed/packages/aws-wrappers/src/sfn/sfn.ts#L93)
|
|
123
127
|
|
|
124
128
|
Stop an in-progress Step Functions execution.
|
|
125
129
|
|