@aws-sdk/client-greengrassv2 3.200.0 → 3.202.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/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +38 -44
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "greengrass",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -12,7 +12,7 @@ const serializeAws_restJson1AssociateServiceRoleToAccountCommand = async (input,
|
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
const resolvedPath = `${
|
|
15
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
...(input.roleArn != null && { RoleArn: input.roleArn }),
|
|
@@ -33,7 +33,7 @@ const serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = as
|
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/json",
|
|
35
35
|
};
|
|
36
|
-
let resolvedPath = `${
|
|
36
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
37
37
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices";
|
|
38
38
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
39
39
|
let body;
|
|
@@ -58,7 +58,7 @@ const serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand =
|
|
|
58
58
|
const headers = {
|
|
59
59
|
"content-type": "application/json",
|
|
60
60
|
};
|
|
61
|
-
let resolvedPath = `${
|
|
61
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
62
62
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices";
|
|
63
63
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
64
64
|
let body;
|
|
@@ -81,7 +81,7 @@ exports.serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand
|
|
|
81
81
|
const serializeAws_restJson1CancelDeploymentCommand = async (input, context) => {
|
|
82
82
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
83
|
const headers = {};
|
|
84
|
-
let resolvedPath = `${
|
|
84
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
85
85
|
"/greengrass/v2/deployments/{deploymentId}/cancel";
|
|
86
86
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
87
87
|
let body;
|
|
@@ -97,15 +97,14 @@ const serializeAws_restJson1CancelDeploymentCommand = async (input, context) =>
|
|
|
97
97
|
};
|
|
98
98
|
exports.serializeAws_restJson1CancelDeploymentCommand = serializeAws_restJson1CancelDeploymentCommand;
|
|
99
99
|
const serializeAws_restJson1CreateComponentVersionCommand = async (input, context) => {
|
|
100
|
-
var _a;
|
|
101
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
102
101
|
const headers = {
|
|
103
102
|
"content-type": "application/json",
|
|
104
103
|
};
|
|
105
|
-
const resolvedPath = `${
|
|
104
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/createComponentVersion";
|
|
106
105
|
let body;
|
|
107
106
|
body = JSON.stringify({
|
|
108
|
-
clientToken:
|
|
107
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
109
108
|
...(input.inlineRecipe != null && { inlineRecipe: context.base64Encoder(input.inlineRecipe) }),
|
|
110
109
|
...(input.lambdaFunction != null && {
|
|
111
110
|
lambdaFunction: serializeAws_restJson1LambdaFunctionRecipeSource(input.lambdaFunction, context),
|
|
@@ -124,15 +123,14 @@ const serializeAws_restJson1CreateComponentVersionCommand = async (input, contex
|
|
|
124
123
|
};
|
|
125
124
|
exports.serializeAws_restJson1CreateComponentVersionCommand = serializeAws_restJson1CreateComponentVersionCommand;
|
|
126
125
|
const serializeAws_restJson1CreateDeploymentCommand = async (input, context) => {
|
|
127
|
-
var _a;
|
|
128
126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
127
|
const headers = {
|
|
130
128
|
"content-type": "application/json",
|
|
131
129
|
};
|
|
132
|
-
const resolvedPath = `${
|
|
130
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
133
131
|
let body;
|
|
134
132
|
body = JSON.stringify({
|
|
135
|
-
clientToken:
|
|
133
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
136
134
|
...(input.components != null && {
|
|
137
135
|
components: serializeAws_restJson1ComponentDeploymentSpecifications(input.components, context),
|
|
138
136
|
}),
|
|
@@ -160,7 +158,7 @@ exports.serializeAws_restJson1CreateDeploymentCommand = serializeAws_restJson1Cr
|
|
|
160
158
|
const serializeAws_restJson1DeleteComponentCommand = async (input, context) => {
|
|
161
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
162
160
|
const headers = {};
|
|
163
|
-
let resolvedPath = `${
|
|
161
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}";
|
|
164
162
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
165
163
|
let body;
|
|
166
164
|
return new protocol_http_1.HttpRequest({
|
|
@@ -177,7 +175,7 @@ exports.serializeAws_restJson1DeleteComponentCommand = serializeAws_restJson1Del
|
|
|
177
175
|
const serializeAws_restJson1DeleteCoreDeviceCommand = async (input, context) => {
|
|
178
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
177
|
const headers = {};
|
|
180
|
-
let resolvedPath = `${
|
|
178
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
181
179
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}";
|
|
182
180
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
183
181
|
let body;
|
|
@@ -195,7 +193,7 @@ exports.serializeAws_restJson1DeleteCoreDeviceCommand = serializeAws_restJson1De
|
|
|
195
193
|
const serializeAws_restJson1DeleteDeploymentCommand = async (input, context) => {
|
|
196
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
197
195
|
const headers = {};
|
|
198
|
-
let resolvedPath = `${
|
|
196
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}";
|
|
199
197
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
200
198
|
let body;
|
|
201
199
|
return new protocol_http_1.HttpRequest({
|
|
@@ -212,7 +210,7 @@ exports.serializeAws_restJson1DeleteDeploymentCommand = serializeAws_restJson1De
|
|
|
212
210
|
const serializeAws_restJson1DescribeComponentCommand = async (input, context) => {
|
|
213
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
212
|
const headers = {};
|
|
215
|
-
let resolvedPath = `${
|
|
213
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/metadata";
|
|
216
214
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
217
215
|
let body;
|
|
218
216
|
return new protocol_http_1.HttpRequest({
|
|
@@ -231,7 +229,7 @@ const serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = async (i
|
|
|
231
229
|
const headers = {
|
|
232
230
|
"content-type": "application/json",
|
|
233
231
|
};
|
|
234
|
-
const resolvedPath = `${
|
|
232
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
|
|
235
233
|
let body;
|
|
236
234
|
body = "";
|
|
237
235
|
return new protocol_http_1.HttpRequest({
|
|
@@ -248,7 +246,7 @@ exports.serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = serial
|
|
|
248
246
|
const serializeAws_restJson1GetComponentCommand = async (input, context) => {
|
|
249
247
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
248
|
const headers = {};
|
|
251
|
-
let resolvedPath = `${
|
|
249
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}";
|
|
252
250
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
253
251
|
const query = map({
|
|
254
252
|
recipeOutputFormat: [, input.recipeOutputFormat],
|
|
@@ -269,7 +267,7 @@ exports.serializeAws_restJson1GetComponentCommand = serializeAws_restJson1GetCom
|
|
|
269
267
|
const serializeAws_restJson1GetComponentVersionArtifactCommand = async (input, context) => {
|
|
270
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
271
269
|
const headers = {};
|
|
272
|
-
let resolvedPath = `${
|
|
270
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
273
271
|
"/greengrass/v2/components/{arn}/artifacts/{artifactName+}";
|
|
274
272
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
275
273
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "artifactName", () => input.artifactName, "{artifactName+}", true);
|
|
@@ -288,7 +286,7 @@ exports.serializeAws_restJson1GetComponentVersionArtifactCommand = serializeAws_
|
|
|
288
286
|
const serializeAws_restJson1GetConnectivityInfoCommand = async (input, context) => {
|
|
289
287
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
288
|
const headers = {};
|
|
291
|
-
let resolvedPath = `${
|
|
289
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
292
290
|
"/greengrass/things/{thingName}/connectivityInfo";
|
|
293
291
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
294
292
|
let body;
|
|
@@ -306,7 +304,7 @@ exports.serializeAws_restJson1GetConnectivityInfoCommand = serializeAws_restJson
|
|
|
306
304
|
const serializeAws_restJson1GetCoreDeviceCommand = async (input, context) => {
|
|
307
305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
306
|
const headers = {};
|
|
309
|
-
let resolvedPath = `${
|
|
307
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
310
308
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}";
|
|
311
309
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
312
310
|
let body;
|
|
@@ -324,7 +322,7 @@ exports.serializeAws_restJson1GetCoreDeviceCommand = serializeAws_restJson1GetCo
|
|
|
324
322
|
const serializeAws_restJson1GetDeploymentCommand = async (input, context) => {
|
|
325
323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
324
|
const headers = {};
|
|
327
|
-
let resolvedPath = `${
|
|
325
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}";
|
|
328
326
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
329
327
|
let body;
|
|
330
328
|
return new protocol_http_1.HttpRequest({
|
|
@@ -343,7 +341,7 @@ const serializeAws_restJson1GetServiceRoleForAccountCommand = async (input, cont
|
|
|
343
341
|
const headers = {
|
|
344
342
|
"content-type": "application/json",
|
|
345
343
|
};
|
|
346
|
-
const resolvedPath = `${
|
|
344
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
|
|
347
345
|
let body;
|
|
348
346
|
body = "";
|
|
349
347
|
return new protocol_http_1.HttpRequest({
|
|
@@ -360,7 +358,7 @@ exports.serializeAws_restJson1GetServiceRoleForAccountCommand = serializeAws_res
|
|
|
360
358
|
const serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = async (input, context) => {
|
|
361
359
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
360
|
const headers = {};
|
|
363
|
-
let resolvedPath = `${
|
|
361
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
364
362
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices";
|
|
365
363
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
366
364
|
const query = map({
|
|
@@ -383,7 +381,7 @@ exports.serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand =
|
|
|
383
381
|
const serializeAws_restJson1ListComponentsCommand = async (input, context) => {
|
|
384
382
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
385
383
|
const headers = {};
|
|
386
|
-
const resolvedPath = `${
|
|
384
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components";
|
|
387
385
|
const query = map({
|
|
388
386
|
scope: [, input.scope],
|
|
389
387
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -405,7 +403,7 @@ exports.serializeAws_restJson1ListComponentsCommand = serializeAws_restJson1List
|
|
|
405
403
|
const serializeAws_restJson1ListComponentVersionsCommand = async (input, context) => {
|
|
406
404
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
407
405
|
const headers = {};
|
|
408
|
-
let resolvedPath = `${
|
|
406
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/versions";
|
|
409
407
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
410
408
|
const query = map({
|
|
411
409
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -427,7 +425,7 @@ exports.serializeAws_restJson1ListComponentVersionsCommand = serializeAws_restJs
|
|
|
427
425
|
const serializeAws_restJson1ListCoreDevicesCommand = async (input, context) => {
|
|
428
426
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
427
|
const headers = {};
|
|
430
|
-
const resolvedPath = `${
|
|
428
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/coreDevices";
|
|
431
429
|
const query = map({
|
|
432
430
|
thingGroupArn: [, input.thingGroupArn],
|
|
433
431
|
status: [, input.status],
|
|
@@ -450,7 +448,7 @@ exports.serializeAws_restJson1ListCoreDevicesCommand = serializeAws_restJson1Lis
|
|
|
450
448
|
const serializeAws_restJson1ListDeploymentsCommand = async (input, context) => {
|
|
451
449
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
450
|
const headers = {};
|
|
453
|
-
const resolvedPath = `${
|
|
451
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
454
452
|
const query = map({
|
|
455
453
|
targetArn: [, input.targetArn],
|
|
456
454
|
historyFilter: [, input.historyFilter],
|
|
@@ -473,7 +471,7 @@ exports.serializeAws_restJson1ListDeploymentsCommand = serializeAws_restJson1Lis
|
|
|
473
471
|
const serializeAws_restJson1ListEffectiveDeploymentsCommand = async (input, context) => {
|
|
474
472
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
473
|
const headers = {};
|
|
476
|
-
let resolvedPath = `${
|
|
474
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
477
475
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments";
|
|
478
476
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
479
477
|
const query = map({
|
|
@@ -496,7 +494,7 @@ exports.serializeAws_restJson1ListEffectiveDeploymentsCommand = serializeAws_res
|
|
|
496
494
|
const serializeAws_restJson1ListInstalledComponentsCommand = async (input, context) => {
|
|
497
495
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
496
|
const headers = {};
|
|
499
|
-
let resolvedPath = `${
|
|
497
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
500
498
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents";
|
|
501
499
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
502
500
|
const query = map({
|
|
@@ -520,7 +518,7 @@ exports.serializeAws_restJson1ListInstalledComponentsCommand = serializeAws_rest
|
|
|
520
518
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
521
519
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
520
|
const headers = {};
|
|
523
|
-
let resolvedPath = `${
|
|
521
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
524
522
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
525
523
|
let body;
|
|
526
524
|
return new protocol_http_1.HttpRequest({
|
|
@@ -539,7 +537,7 @@ const serializeAws_restJson1ResolveComponentCandidatesCommand = async (input, co
|
|
|
539
537
|
const headers = {
|
|
540
538
|
"content-type": "application/json",
|
|
541
539
|
};
|
|
542
|
-
const resolvedPath = `${
|
|
540
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/resolveComponentCandidates";
|
|
543
541
|
let body;
|
|
544
542
|
body = JSON.stringify({
|
|
545
543
|
...(input.componentCandidates != null && {
|
|
@@ -563,7 +561,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
563
561
|
const headers = {
|
|
564
562
|
"content-type": "application/json",
|
|
565
563
|
};
|
|
566
|
-
let resolvedPath = `${
|
|
564
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
567
565
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
568
566
|
let body;
|
|
569
567
|
body = JSON.stringify({
|
|
@@ -583,7 +581,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
583
581
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
584
582
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
585
583
|
const headers = {};
|
|
586
|
-
let resolvedPath = `${
|
|
584
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
587
585
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
588
586
|
const query = map({
|
|
589
587
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -606,7 +604,7 @@ const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input, contex
|
|
|
606
604
|
const headers = {
|
|
607
605
|
"content-type": "application/json",
|
|
608
606
|
};
|
|
609
|
-
let resolvedPath = `${
|
|
607
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
610
608
|
"/greengrass/things/{thingName}/connectivityInfo";
|
|
611
609
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
612
610
|
let body;
|
|
@@ -3047,15 +3045,12 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
3047
3045
|
});
|
|
3048
3046
|
return retVal;
|
|
3049
3047
|
};
|
|
3050
|
-
const deserializeMetadata = (output) => {
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3057
|
-
});
|
|
3058
|
-
};
|
|
3048
|
+
const deserializeMetadata = (output) => ({
|
|
3049
|
+
httpStatusCode: output.statusCode,
|
|
3050
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3051
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3052
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
3053
|
+
});
|
|
3059
3054
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3060
3055
|
if (streamBody instanceof Uint8Array) {
|
|
3061
3056
|
return Promise.resolve(streamBody);
|
|
@@ -3075,9 +3070,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3075
3070
|
return {};
|
|
3076
3071
|
});
|
|
3077
3072
|
const parseErrorBody = async (errorBody, context) => {
|
|
3078
|
-
var _a;
|
|
3079
3073
|
const value = await parseBody(errorBody, context);
|
|
3080
|
-
value.message =
|
|
3074
|
+
value.message = value.message ?? value.Message;
|
|
3081
3075
|
return value;
|
|
3082
3076
|
};
|
|
3083
3077
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2020-11-30",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "GreengrassV2",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-greengrassv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
60
|
-
"@tsconfig/
|
|
60
|
+
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"@types/uuid": "^8.3.0",
|
|
63
63
|
"concurrently": "7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
|
-
"node": ">=
|
|
75
|
+
"node": ">=14.0.0"
|
|
76
76
|
},
|
|
77
77
|
"typesVersions": {
|
|
78
78
|
"<4.0": {
|