@jjrawlins/cdk-ami-builder 0.0.174 → 0.0.176
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/.jsii +11 -11
- package/cdkamibuilder/jsii/jsii.go +2 -2
- package/cdkamibuilder/version +1 -1
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/README.md +26 -46
- package/node_modules/@aws-sdk/client-ec2/package.json +36 -36
- package/node_modules/@aws-sdk/client-ecs/README.md +26 -46
- package/node_modules/@aws-sdk/client-ecs/package.json +34 -34
- package/node_modules/@aws-sdk/client-kms/README.md +26 -46
- package/node_modules/@aws-sdk/client-kms/package.json +33 -33
- package/node_modules/@aws-sdk/client-s3/README.md +26 -46
- package/node_modules/@aws-sdk/client-s3/package.json +50 -50
- package/node_modules/@aws-sdk/client-secrets-manager/README.md +26 -46
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +34 -34
- package/node_modules/@aws-sdk/client-sfn/README.md +26 -46
- package/node_modules/@aws-sdk/client-sfn/package.json +33 -33
- package/node_modules/@aws-sdk/client-sns/README.md +26 -46
- package/node_modules/@aws-sdk/client-sns/package.json +33 -33
- package/node_modules/@aws-sdk/client-sqs/README.md +65 -46
- package/node_modules/@aws-sdk/client-sqs/package.json +36 -36
- package/node_modules/@aws-sdk/client-ssm/README.md +26 -46
- package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/fast-xml-builder/CHANGELOG.md +2 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +3 -1
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.d.ts +4 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1009.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sns",
|
|
@@ -23,41 +23,41 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
34
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
-
"@smithy/core": "^3.23.
|
|
39
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
40
|
-
"@smithy/hash-node": "^4.2.
|
|
41
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
42
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
-
"@smithy/middleware-serde": "^4.2.
|
|
46
|
-
"@smithy/middleware-stack": "^4.2.
|
|
47
|
-
"@smithy/node-config-provider": "^4.3.
|
|
48
|
-
"@smithy/node-http-handler": "^4.4.
|
|
49
|
-
"@smithy/protocol-http": "^5.3.
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
51
|
-
"@smithy/types": "^4.13.
|
|
52
|
-
"@smithy/url-parser": "^4.2.
|
|
26
|
+
"@aws-sdk/core": "^3.973.20",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
33
|
+
"@aws-sdk/types": "^3.973.6",
|
|
34
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
38
|
+
"@smithy/core": "^3.23.11",
|
|
39
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
|
+
"@smithy/hash-node": "^4.2.12",
|
|
41
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
45
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
46
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
47
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
48
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
49
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
51
|
+
"@smithy/types": "^4.13.1",
|
|
52
|
+
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
-
"@smithy/util-endpoints": "^3.3.
|
|
59
|
-
"@smithy/util-middleware": "^4.2.
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
58
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
59
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
+
"@smithy/util-retry": "^4.2.12",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|
|
@@ -79,8 +79,9 @@ Endpoints</a>
|
|
|
79
79
|
</ul>
|
|
80
80
|
|
|
81
81
|
## Installing
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
|
|
83
|
+
To install this package, use the CLI of your favorite package manager:
|
|
84
|
+
|
|
84
85
|
- `npm install @aws-sdk/client-sqs`
|
|
85
86
|
- `yarn add @aws-sdk/client-sqs`
|
|
86
87
|
- `pnpm add @aws-sdk/client-sqs`
|
|
@@ -105,24 +106,63 @@ import { SQSClient, ListQueuesCommand } from "@aws-sdk/client-sqs";
|
|
|
105
106
|
|
|
106
107
|
### Usage
|
|
107
108
|
|
|
108
|
-
To send a request
|
|
109
|
+
To send a request:
|
|
109
110
|
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
111
|
+
- Instantiate a client with configuration (e.g. credentials, region).
|
|
112
|
+
- See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
|
|
113
|
+
- See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
|
|
114
|
+
- Instantiate a command with input parameters.
|
|
115
|
+
- Call the `send` operation on the client, providing the command object as input.
|
|
114
116
|
|
|
115
117
|
```js
|
|
116
|
-
// a client can be shared by different commands.
|
|
117
118
|
const client = new SQSClient({ region: "REGION" });
|
|
118
119
|
|
|
119
120
|
const params = { /** input parameters */ };
|
|
120
121
|
const command = new ListQueuesCommand(params);
|
|
121
122
|
```
|
|
122
123
|
|
|
124
|
+
#### Supported Message Protocols
|
|
125
|
+
|
|
126
|
+
This client supports multiple protocols.
|
|
127
|
+
|
|
128
|
+
The default for this client is **AWS JSON (RPC) 1.0**.
|
|
129
|
+
|
|
130
|
+
We have selected this default based on our evaluation of the
|
|
131
|
+
performance characteristics of this protocol format in JavaScript. You don't need to change it,
|
|
132
|
+
but you have the option to do so, for example to support existing integrations or tests.
|
|
133
|
+
Selecting a non-default protocol changes the format
|
|
134
|
+
of the data sent over the network, but does not affect how you interact with the
|
|
135
|
+
client using JavaScript objects.
|
|
136
|
+
|
|
137
|
+
Install the `@aws-sdk/config` package to access alternate protocols.
|
|
138
|
+
|
|
139
|
+
See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
|
|
140
|
+
|
|
141
|
+
##### AWS JSON (RPC) 1.0
|
|
142
|
+
|
|
143
|
+
This protocol uses JSON payloads.
|
|
144
|
+
```js
|
|
145
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/config/protocol";
|
|
146
|
+
|
|
147
|
+
const client = new SQSClient({
|
|
148
|
+
protocol: AwsJson1_0Protocol
|
|
149
|
+
});
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
##### AWS Query
|
|
153
|
+
|
|
154
|
+
This protocol uses query format requests and XML responses.
|
|
155
|
+
```js
|
|
156
|
+
import { AwsQueryProtocol } from "@aws-sdk/config/protocol";
|
|
157
|
+
|
|
158
|
+
const client = new SQSClient({
|
|
159
|
+
protocol: AwsQueryProtocol
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
123
163
|
#### Async/await
|
|
124
164
|
|
|
125
|
-
We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
165
|
+
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
126
166
|
operator to wait for the promise returned by send operation as follows:
|
|
127
167
|
|
|
128
168
|
```js
|
|
@@ -137,26 +177,9 @@ try {
|
|
|
137
177
|
}
|
|
138
178
|
```
|
|
139
179
|
|
|
140
|
-
Async-await is clean, concise, intuitive, easy to debug and has better error handling
|
|
141
|
-
as compared to using Promise chains or callbacks.
|
|
142
|
-
|
|
143
180
|
#### Promises
|
|
144
181
|
|
|
145
|
-
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
|
|
146
|
-
to execute send operation.
|
|
147
|
-
|
|
148
|
-
```js
|
|
149
|
-
client.send(command).then(
|
|
150
|
-
(data) => {
|
|
151
|
-
// process data.
|
|
152
|
-
},
|
|
153
|
-
(error) => {
|
|
154
|
-
// error handling.
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
Promises can also be called using `.catch()` and `.finally()` as follows:
|
|
182
|
+
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
|
|
160
183
|
|
|
161
184
|
```js
|
|
162
185
|
client
|
|
@@ -172,27 +195,21 @@ client
|
|
|
172
195
|
});
|
|
173
196
|
```
|
|
174
197
|
|
|
175
|
-
####
|
|
176
|
-
|
|
177
|
-
We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
|
|
178
|
-
but they are supported by the send operation.
|
|
198
|
+
#### Aggregated client
|
|
179
199
|
|
|
180
|
-
|
|
181
|
-
// callbacks.
|
|
182
|
-
client.send(command, (err, data) => {
|
|
183
|
-
// process err and data.
|
|
184
|
-
});
|
|
185
|
-
```
|
|
200
|
+
The aggregated client class is exported from the same package, but without the "Client" suffix.
|
|
186
201
|
|
|
187
|
-
|
|
202
|
+
`SQS` extends `SQSClient` and additionally supports all operations, waiters, and paginators as methods.
|
|
203
|
+
This style may be familiar to you from the AWS SDK for JavaScript v2.
|
|
188
204
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
205
|
+
If you are bundling the AWS SDK, we recommend using only the bare-bones client (`SQSClient`).
|
|
206
|
+
More details are in the blog post on
|
|
207
|
+
[modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
|
|
192
208
|
|
|
193
209
|
```ts
|
|
194
|
-
import
|
|
195
|
-
|
|
210
|
+
import { SQS } from "@aws-sdk/client-sqs";
|
|
211
|
+
|
|
212
|
+
const client = new SQS({ region: "REGION" });
|
|
196
213
|
|
|
197
214
|
// async/await.
|
|
198
215
|
try {
|
|
@@ -212,7 +229,7 @@ client
|
|
|
212
229
|
// error handling.
|
|
213
230
|
});
|
|
214
231
|
|
|
215
|
-
// callbacks.
|
|
232
|
+
// callbacks (not recommended).
|
|
216
233
|
client.listQueues(params, (err, data) => {
|
|
217
234
|
// process err and data.
|
|
218
235
|
});
|
|
@@ -240,12 +257,14 @@ try {
|
|
|
240
257
|
}
|
|
241
258
|
```
|
|
242
259
|
|
|
260
|
+
See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
|
|
261
|
+
|
|
243
262
|
## Getting Help
|
|
244
263
|
|
|
245
264
|
Please use these community resources for getting help.
|
|
246
|
-
We use
|
|
265
|
+
We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
|
|
247
266
|
|
|
248
|
-
- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
267
|
+
- Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
249
268
|
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
|
|
250
269
|
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
|
|
251
270
|
on AWS Developer Blog.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1009.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sqs",
|
|
@@ -29,48 +29,48 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
34
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
35
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
36
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
37
|
-
"@aws-sdk/middleware-sdk-sqs": "^3.972.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
39
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
40
|
-
"@aws-sdk/types": "^3.973.
|
|
41
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
42
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
43
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
44
|
-
"@smithy/config-resolver": "^4.4.
|
|
45
|
-
"@smithy/core": "^3.23.
|
|
46
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
47
|
-
"@smithy/hash-node": "^4.2.
|
|
48
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
49
|
-
"@smithy/md5-js": "^4.2.
|
|
50
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
51
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
52
|
-
"@smithy/middleware-retry": "^4.4.
|
|
53
|
-
"@smithy/middleware-serde": "^4.2.
|
|
54
|
-
"@smithy/middleware-stack": "^4.2.
|
|
55
|
-
"@smithy/node-config-provider": "^4.3.
|
|
56
|
-
"@smithy/node-http-handler": "^4.4.
|
|
57
|
-
"@smithy/protocol-http": "^5.3.
|
|
58
|
-
"@smithy/smithy-client": "^4.12.
|
|
59
|
-
"@smithy/types": "^4.13.
|
|
60
|
-
"@smithy/url-parser": "^4.2.
|
|
32
|
+
"@aws-sdk/core": "^3.973.20",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
34
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
35
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
36
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
37
|
+
"@aws-sdk/middleware-sdk-sqs": "^3.972.15",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
39
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
40
|
+
"@aws-sdk/types": "^3.973.6",
|
|
41
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
42
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
43
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
44
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
45
|
+
"@smithy/core": "^3.23.11",
|
|
46
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
47
|
+
"@smithy/hash-node": "^4.2.12",
|
|
48
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
49
|
+
"@smithy/md5-js": "^4.2.12",
|
|
50
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
51
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
52
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
53
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
54
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
55
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
56
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
57
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
58
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
59
|
+
"@smithy/types": "^4.13.1",
|
|
60
|
+
"@smithy/url-parser": "^4.2.12",
|
|
61
61
|
"@smithy/util-base64": "^4.3.2",
|
|
62
62
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
63
63
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
64
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
65
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
66
|
-
"@smithy/util-endpoints": "^3.3.
|
|
67
|
-
"@smithy/util-middleware": "^4.2.
|
|
68
|
-
"@smithy/util-retry": "^4.2.
|
|
64
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
65
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
66
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
67
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
68
|
+
"@smithy/util-retry": "^4.2.12",
|
|
69
69
|
"@smithy/util-utf8": "^4.2.2",
|
|
70
70
|
"tslib": "^2.6.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@smithy/snapshot-testing": "^2.0.
|
|
73
|
+
"@smithy/snapshot-testing": "^2.0.2",
|
|
74
74
|
"@tsconfig/node20": "20.1.8",
|
|
75
75
|
"@types/node": "^20.14.8",
|
|
76
76
|
"concurrently": "7.0.0",
|
|
@@ -46,8 +46,9 @@ Reference</a>
|
|
|
46
46
|
</ul>
|
|
47
47
|
|
|
48
48
|
## Installing
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
|
|
50
|
+
To install this package, use the CLI of your favorite package manager:
|
|
51
|
+
|
|
51
52
|
- `npm install @aws-sdk/client-ssm`
|
|
52
53
|
- `yarn add @aws-sdk/client-ssm`
|
|
53
54
|
- `pnpm add @aws-sdk/client-ssm`
|
|
@@ -72,15 +73,15 @@ import { SSMClient, ListNodesCommand } from "@aws-sdk/client-ssm";
|
|
|
72
73
|
|
|
73
74
|
### Usage
|
|
74
75
|
|
|
75
|
-
To send a request
|
|
76
|
+
To send a request:
|
|
76
77
|
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
78
|
+
- Instantiate a client with configuration (e.g. credentials, region).
|
|
79
|
+
- See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
|
|
80
|
+
- See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
|
|
81
|
+
- Instantiate a command with input parameters.
|
|
82
|
+
- Call the `send` operation on the client, providing the command object as input.
|
|
81
83
|
|
|
82
84
|
```js
|
|
83
|
-
// a client can be shared by different commands.
|
|
84
85
|
const client = new SSMClient({ region: "REGION" });
|
|
85
86
|
|
|
86
87
|
const params = { /** input parameters */ };
|
|
@@ -89,7 +90,7 @@ const command = new ListNodesCommand(params);
|
|
|
89
90
|
|
|
90
91
|
#### Async/await
|
|
91
92
|
|
|
92
|
-
We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
93
|
+
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
93
94
|
operator to wait for the promise returned by send operation as follows:
|
|
94
95
|
|
|
95
96
|
```js
|
|
@@ -104,26 +105,9 @@ try {
|
|
|
104
105
|
}
|
|
105
106
|
```
|
|
106
107
|
|
|
107
|
-
Async-await is clean, concise, intuitive, easy to debug and has better error handling
|
|
108
|
-
as compared to using Promise chains or callbacks.
|
|
109
|
-
|
|
110
108
|
#### Promises
|
|
111
109
|
|
|
112
|
-
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
|
|
113
|
-
to execute send operation.
|
|
114
|
-
|
|
115
|
-
```js
|
|
116
|
-
client.send(command).then(
|
|
117
|
-
(data) => {
|
|
118
|
-
// process data.
|
|
119
|
-
},
|
|
120
|
-
(error) => {
|
|
121
|
-
// error handling.
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
Promises can also be called using `.catch()` and `.finally()` as follows:
|
|
110
|
+
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
|
|
127
111
|
|
|
128
112
|
```js
|
|
129
113
|
client
|
|
@@ -139,27 +123,21 @@ client
|
|
|
139
123
|
});
|
|
140
124
|
```
|
|
141
125
|
|
|
142
|
-
####
|
|
143
|
-
|
|
144
|
-
We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
|
|
145
|
-
but they are supported by the send operation.
|
|
126
|
+
#### Aggregated client
|
|
146
127
|
|
|
147
|
-
|
|
148
|
-
// callbacks.
|
|
149
|
-
client.send(command, (err, data) => {
|
|
150
|
-
// process err and data.
|
|
151
|
-
});
|
|
152
|
-
```
|
|
128
|
+
The aggregated client class is exported from the same package, but without the "Client" suffix.
|
|
153
129
|
|
|
154
|
-
|
|
130
|
+
`SSM` extends `SSMClient` and additionally supports all operations, waiters, and paginators as methods.
|
|
131
|
+
This style may be familiar to you from the AWS SDK for JavaScript v2.
|
|
155
132
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
133
|
+
If you are bundling the AWS SDK, we recommend using only the bare-bones client (`SSMClient`).
|
|
134
|
+
More details are in the blog post on
|
|
135
|
+
[modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
|
|
159
136
|
|
|
160
137
|
```ts
|
|
161
|
-
import
|
|
162
|
-
|
|
138
|
+
import { SSM } from "@aws-sdk/client-ssm";
|
|
139
|
+
|
|
140
|
+
const client = new SSM({ region: "REGION" });
|
|
163
141
|
|
|
164
142
|
// async/await.
|
|
165
143
|
try {
|
|
@@ -179,7 +157,7 @@ client
|
|
|
179
157
|
// error handling.
|
|
180
158
|
});
|
|
181
159
|
|
|
182
|
-
// callbacks.
|
|
160
|
+
// callbacks (not recommended).
|
|
183
161
|
client.listNodes(params, (err, data) => {
|
|
184
162
|
// process err and data.
|
|
185
163
|
});
|
|
@@ -207,12 +185,14 @@ try {
|
|
|
207
185
|
}
|
|
208
186
|
```
|
|
209
187
|
|
|
188
|
+
See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
|
|
189
|
+
|
|
210
190
|
## Getting Help
|
|
211
191
|
|
|
212
192
|
Please use these community resources for getting help.
|
|
213
|
-
We use
|
|
193
|
+
We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
|
|
214
194
|
|
|
215
|
-
- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
195
|
+
- Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
|
|
216
196
|
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
|
|
217
197
|
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
|
|
218
198
|
on AWS Developer Blog.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1009.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm",
|
|
@@ -23,43 +23,43 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
34
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
-
"@smithy/core": "^3.23.
|
|
39
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
40
|
-
"@smithy/hash-node": "^4.2.
|
|
41
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
42
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
-
"@smithy/middleware-serde": "^4.2.
|
|
46
|
-
"@smithy/middleware-stack": "^4.2.
|
|
47
|
-
"@smithy/node-config-provider": "^4.3.
|
|
48
|
-
"@smithy/node-http-handler": "^4.4.
|
|
49
|
-
"@smithy/protocol-http": "^5.3.
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
51
|
-
"@smithy/types": "^4.13.
|
|
52
|
-
"@smithy/url-parser": "^4.2.
|
|
26
|
+
"@aws-sdk/core": "^3.973.20",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
33
|
+
"@aws-sdk/types": "^3.973.6",
|
|
34
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
38
|
+
"@smithy/core": "^3.23.11",
|
|
39
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
|
+
"@smithy/hash-node": "^4.2.12",
|
|
41
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
45
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
46
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
47
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
48
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
49
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
51
|
+
"@smithy/types": "^4.13.1",
|
|
52
|
+
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
-
"@smithy/util-endpoints": "^3.3.
|
|
59
|
-
"@smithy/util-middleware": "^4.2.
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
58
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
59
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
+
"@smithy/util-retry": "^4.2.12",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
|
-
"@smithy/util-waiter": "^4.2.
|
|
62
|
+
"@smithy/util-waiter": "^4.2.13",
|
|
63
63
|
"tslib": "^2.6.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.20",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -81,17 +81,17 @@
|
|
|
81
81
|
},
|
|
82
82
|
"license": "Apache-2.0",
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@aws-sdk/types": "^3.973.
|
|
85
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
86
|
-
"@smithy/core": "^3.23.
|
|
87
|
-
"@smithy/node-config-provider": "^4.3.
|
|
88
|
-
"@smithy/property-provider": "^4.2.
|
|
89
|
-
"@smithy/protocol-http": "^5.3.
|
|
90
|
-
"@smithy/signature-v4": "^5.3.
|
|
91
|
-
"@smithy/smithy-client": "^4.12.
|
|
92
|
-
"@smithy/types": "^4.13.
|
|
84
|
+
"@aws-sdk/types": "^3.973.6",
|
|
85
|
+
"@aws-sdk/xml-builder": "^3.972.11",
|
|
86
|
+
"@smithy/core": "^3.23.11",
|
|
87
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
88
|
+
"@smithy/property-provider": "^4.2.12",
|
|
89
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
90
|
+
"@smithy/signature-v4": "^5.3.12",
|
|
91
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
92
|
+
"@smithy/types": "^4.13.1",
|
|
93
93
|
"@smithy/util-base64": "^4.3.2",
|
|
94
|
-
"@smithy/util-middleware": "^4.2.
|
|
94
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
95
95
|
"@smithy/util-utf8": "^4.2.2",
|
|
96
96
|
"tslib": "^2.6.2"
|
|
97
97
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/crc64-nvme",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.5",
|
|
4
4
|
"description": "A pure JS implementation of CRC64-NVME checksum",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.13.
|
|
27
|
+
"@smithy/types": "^4.13.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.18",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.973.
|
|
30
|
-
"@aws-sdk/types": "^3.973.
|
|
31
|
-
"@smithy/property-provider": "^4.2.
|
|
32
|
-
"@smithy/types": "^4.13.
|
|
29
|
+
"@aws-sdk/core": "^3.973.20",
|
|
30
|
+
"@aws-sdk/types": "^3.973.6",
|
|
31
|
+
"@smithy/property-provider": "^4.2.12",
|
|
32
|
+
"@smithy/types": "^4.13.1",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|