@aws-sdk/client-greengrass 3.658.0 → 3.662.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/dist-cjs/index.js CHANGED
@@ -449,7 +449,7 @@ var se_AssociateServiceRoleToAccountCommand = /* @__PURE__ */ __name(async (inpu
449
449
  }, "se_AssociateServiceRoleToAccountCommand");
450
450
  var se_CreateConnectorDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
451
451
  const b = (0, import_core.requestBuilder)(input, context);
452
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
452
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
453
453
  "content-type": "application/json",
454
454
  [_xact]: input[_ACT]
455
455
  });
@@ -467,7 +467,7 @@ var se_CreateConnectorDefinitionCommand = /* @__PURE__ */ __name(async (input, c
467
467
  }, "se_CreateConnectorDefinitionCommand");
468
468
  var se_CreateConnectorDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
469
469
  const b = (0, import_core.requestBuilder)(input, context);
470
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
470
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
471
471
  "content-type": "application/json",
472
472
  [_xact]: input[_ACT]
473
473
  });
@@ -484,7 +484,7 @@ var se_CreateConnectorDefinitionVersionCommand = /* @__PURE__ */ __name(async (i
484
484
  }, "se_CreateConnectorDefinitionVersionCommand");
485
485
  var se_CreateCoreDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
486
486
  const b = (0, import_core.requestBuilder)(input, context);
487
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
487
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
488
488
  "content-type": "application/json",
489
489
  [_xact]: input[_ACT]
490
490
  });
@@ -502,7 +502,7 @@ var se_CreateCoreDefinitionCommand = /* @__PURE__ */ __name(async (input, contex
502
502
  }, "se_CreateCoreDefinitionCommand");
503
503
  var se_CreateCoreDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
504
504
  const b = (0, import_core.requestBuilder)(input, context);
505
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
505
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
506
506
  "content-type": "application/json",
507
507
  [_xact]: input[_ACT]
508
508
  });
@@ -519,7 +519,7 @@ var se_CreateCoreDefinitionVersionCommand = /* @__PURE__ */ __name(async (input,
519
519
  }, "se_CreateCoreDefinitionVersionCommand");
520
520
  var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
521
521
  const b = (0, import_core.requestBuilder)(input, context);
522
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
522
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
523
523
  "content-type": "application/json",
524
524
  [_xact]: input[_ACT]
525
525
  });
@@ -538,7 +538,7 @@ var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) =
538
538
  }, "se_CreateDeploymentCommand");
539
539
  var se_CreateDeviceDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
540
540
  const b = (0, import_core.requestBuilder)(input, context);
541
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
541
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
542
542
  "content-type": "application/json",
543
543
  [_xact]: input[_ACT]
544
544
  });
@@ -556,7 +556,7 @@ var se_CreateDeviceDefinitionCommand = /* @__PURE__ */ __name(async (input, cont
556
556
  }, "se_CreateDeviceDefinitionCommand");
557
557
  var se_CreateDeviceDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
558
558
  const b = (0, import_core.requestBuilder)(input, context);
559
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
559
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
560
560
  "content-type": "application/json",
561
561
  [_xact]: input[_ACT]
562
562
  });
@@ -573,7 +573,7 @@ var se_CreateDeviceDefinitionVersionCommand = /* @__PURE__ */ __name(async (inpu
573
573
  }, "se_CreateDeviceDefinitionVersionCommand");
574
574
  var se_CreateFunctionDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
575
575
  const b = (0, import_core.requestBuilder)(input, context);
576
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
576
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
577
577
  "content-type": "application/json",
578
578
  [_xact]: input[_ACT]
579
579
  });
@@ -591,7 +591,7 @@ var se_CreateFunctionDefinitionCommand = /* @__PURE__ */ __name(async (input, co
591
591
  }, "se_CreateFunctionDefinitionCommand");
592
592
  var se_CreateFunctionDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
593
593
  const b = (0, import_core.requestBuilder)(input, context);
594
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
594
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
595
595
  "content-type": "application/json",
596
596
  [_xact]: input[_ACT]
597
597
  });
@@ -609,7 +609,7 @@ var se_CreateFunctionDefinitionVersionCommand = /* @__PURE__ */ __name(async (in
609
609
  }, "se_CreateFunctionDefinitionVersionCommand");
610
610
  var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
611
611
  const b = (0, import_core.requestBuilder)(input, context);
612
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
612
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
613
613
  "content-type": "application/json",
614
614
  [_xact]: input[_ACT]
615
615
  });
@@ -627,7 +627,7 @@ var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
627
627
  }, "se_CreateGroupCommand");
628
628
  var se_CreateGroupCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
629
629
  const b = (0, import_core.requestBuilder)(input, context);
630
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
630
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
631
631
  [_xact]: input[_ACT]
632
632
  });
633
633
  b.bp("/greengrass/groups/{GroupId}/certificateauthorities");
@@ -638,7 +638,7 @@ var se_CreateGroupCertificateAuthorityCommand = /* @__PURE__ */ __name(async (in
638
638
  }, "se_CreateGroupCertificateAuthorityCommand");
639
639
  var se_CreateGroupVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
640
640
  const b = (0, import_core.requestBuilder)(input, context);
641
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
641
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
642
642
  "content-type": "application/json",
643
643
  [_xact]: input[_ACT]
644
644
  });
@@ -661,7 +661,7 @@ var se_CreateGroupVersionCommand = /* @__PURE__ */ __name(async (input, context)
661
661
  }, "se_CreateGroupVersionCommand");
662
662
  var se_CreateLoggerDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
663
663
  const b = (0, import_core.requestBuilder)(input, context);
664
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
664
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
665
665
  "content-type": "application/json",
666
666
  [_xact]: input[_ACT]
667
667
  });
@@ -679,7 +679,7 @@ var se_CreateLoggerDefinitionCommand = /* @__PURE__ */ __name(async (input, cont
679
679
  }, "se_CreateLoggerDefinitionCommand");
680
680
  var se_CreateLoggerDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
681
681
  const b = (0, import_core.requestBuilder)(input, context);
682
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
682
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
683
683
  "content-type": "application/json",
684
684
  [_xact]: input[_ACT]
685
685
  });
@@ -696,7 +696,7 @@ var se_CreateLoggerDefinitionVersionCommand = /* @__PURE__ */ __name(async (inpu
696
696
  }, "se_CreateLoggerDefinitionVersionCommand");
697
697
  var se_CreateResourceDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
698
698
  const b = (0, import_core.requestBuilder)(input, context);
699
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
699
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
700
700
  "content-type": "application/json",
701
701
  [_xact]: input[_ACT]
702
702
  });
@@ -714,7 +714,7 @@ var se_CreateResourceDefinitionCommand = /* @__PURE__ */ __name(async (input, co
714
714
  }, "se_CreateResourceDefinitionCommand");
715
715
  var se_CreateResourceDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
716
716
  const b = (0, import_core.requestBuilder)(input, context);
717
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
717
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
718
718
  "content-type": "application/json",
719
719
  [_xact]: input[_ACT]
720
720
  });
@@ -731,7 +731,7 @@ var se_CreateResourceDefinitionVersionCommand = /* @__PURE__ */ __name(async (in
731
731
  }, "se_CreateResourceDefinitionVersionCommand");
732
732
  var se_CreateSoftwareUpdateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
733
733
  const b = (0, import_core.requestBuilder)(input, context);
734
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
734
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
735
735
  "content-type": "application/json",
736
736
  [_xact]: input[_ACT]
737
737
  });
@@ -752,7 +752,7 @@ var se_CreateSoftwareUpdateJobCommand = /* @__PURE__ */ __name(async (input, con
752
752
  }, "se_CreateSoftwareUpdateJobCommand");
753
753
  var se_CreateSubscriptionDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
754
754
  const b = (0, import_core.requestBuilder)(input, context);
755
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
755
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
756
756
  "content-type": "application/json",
757
757
  [_xact]: input[_ACT]
758
758
  });
@@ -770,7 +770,7 @@ var se_CreateSubscriptionDefinitionCommand = /* @__PURE__ */ __name(async (input
770
770
  }, "se_CreateSubscriptionDefinitionCommand");
771
771
  var se_CreateSubscriptionDefinitionVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
772
772
  const b = (0, import_core.requestBuilder)(input, context);
773
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
773
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
774
774
  "content-type": "application/json",
775
775
  [_xact]: input[_ACT]
776
776
  });
@@ -1382,7 +1382,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
1382
1382
  }, "se_ListTagsForResourceCommand");
1383
1383
  var se_ResetDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1384
1384
  const b = (0, import_core.requestBuilder)(input, context);
1385
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1385
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1386
1386
  "content-type": "application/json",
1387
1387
  [_xact]: input[_ACT]
1388
1388
  });
@@ -1399,7 +1399,7 @@ var se_ResetDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) =
1399
1399
  }, "se_ResetDeploymentsCommand");
1400
1400
  var se_StartBulkDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
1401
1401
  const b = (0, import_core.requestBuilder)(input, context);
1402
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1402
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1403
1403
  "content-type": "application/json",
1404
1404
  [_xact]: input[_ACT]
1405
1405
  });
@@ -1446,10 +1446,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1446
1446
  b.bp("/tags/{ResourceArn}");
1447
1447
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1448
1448
  const query = (0, import_smithy_client.map)({
1449
- [_tK]: [
1450
- (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1451
- () => (input[_TK] || []).map((_entry) => _entry)
1452
- ]
1449
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
1453
1450
  });
1454
1451
  let body;
1455
1452
  b.m("DELETE").h(headers).q(query).b(body);
@@ -3122,7 +3119,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3122
3119
  extendedRequestId: output.headers["x-amz-id-2"],
3123
3120
  cfId: output.headers["x-amz-cf-id"]
3124
3121
  }), "deserializeMetadata");
3125
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
3126
3122
  var _ACT = "AmznClientToken";
3127
3123
  var _MR = "MaxResults";
3128
3124
  var _NT = "NextToken";
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { GreengrassServiceException as __BaseException } from "../models/GreengrassServiceException";
5
5
  import { BadRequestException, InternalServerErrorException, } from "../models/models_0";
6
6
  export const se_AssociateRoleToGroupCommand = async (input, context) => {
@@ -977,10 +977,7 @@ export const se_UntagResourceCommand = async (input, context) => {
977
977
  b.bp("/tags/{ResourceArn}");
978
978
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
979
979
  const query = map({
980
- [_tK]: [
981
- __expectNonNull(input.TagKeys, `TagKeys`) != null,
982
- () => (input[_TK] || []).map((_entry) => _entry),
983
- ],
980
+ [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
984
981
  });
985
982
  let body;
986
983
  b.m("DELETE").h(headers).q(query).b(body);
@@ -2634,11 +2631,6 @@ const deserializeMetadata = (output) => ({
2634
2631
  cfId: output.headers["x-amz-cf-id"],
2635
2632
  });
2636
2633
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2637
- const isSerializableHeaderValue = (value) => value !== undefined &&
2638
- value !== null &&
2639
- value !== "" &&
2640
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2641
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2642
2634
  const _ACT = "AmznClientToken";
2643
2635
  const _MR = "MaxResults";
2644
2636
  const _NT = "NextToken";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrass",
3
3
  "description": "AWS SDK for JavaScript Greengrass Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
4
+ "version": "3.662.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-greengrass",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },