@aws-sdk/client-workspaces-web 3.215.0 → 3.218.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.
@@ -14,7 +14,7 @@ const serializeAws_restJson1AssociateBrowserSettingsCommand = async (input, cont
14
14
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
16
16
  const query = map({
17
- browserSettingsArn: [, input.browserSettingsArn],
17
+ browserSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.browserSettingsArn, `browserSettingsArn`)],
18
18
  });
19
19
  let body;
20
20
  return new protocol_http_1.HttpRequest({
@@ -35,7 +35,7 @@ const serializeAws_restJson1AssociateNetworkSettingsCommand = async (input, cont
35
35
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
36
36
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
37
37
  const query = map({
38
- networkSettingsArn: [, input.networkSettingsArn],
38
+ networkSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.networkSettingsArn, `networkSettingsArn`)],
39
39
  });
40
40
  let body;
41
41
  return new protocol_http_1.HttpRequest({
@@ -56,7 +56,7 @@ const serializeAws_restJson1AssociateTrustStoreCommand = async (input, context)
56
56
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
57
57
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
58
58
  const query = map({
59
- trustStoreArn: [, input.trustStoreArn],
59
+ trustStoreArn: [, (0, smithy_client_1.expectNonNull)(input.trustStoreArn, `trustStoreArn`)],
60
60
  });
61
61
  let body;
62
62
  return new protocol_http_1.HttpRequest({
@@ -78,7 +78,10 @@ const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (i
78
78
  "/portals/{portalArn+}/userAccessLoggingSettings";
79
79
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
80
80
  const query = map({
81
- userAccessLoggingSettingsArn: [, input.userAccessLoggingSettingsArn],
81
+ userAccessLoggingSettingsArn: [
82
+ ,
83
+ (0, smithy_client_1.expectNonNull)(input.userAccessLoggingSettingsArn, `userAccessLoggingSettingsArn`),
84
+ ],
82
85
  });
83
86
  let body;
84
87
  return new protocol_http_1.HttpRequest({
@@ -99,7 +102,7 @@ const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context
99
102
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
100
103
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
101
104
  const query = map({
102
- userSettingsArn: [, input.userSettingsArn],
105
+ userSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.userSettingsArn, `userSettingsArn`)],
103
106
  });
104
107
  let body;
105
108
  return new protocol_http_1.HttpRequest({
@@ -615,7 +618,7 @@ const serializeAws_restJson1GetTrustStoreCertificateCommand = async (input, cont
615
618
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
616
619
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
617
620
  const query = map({
618
- thumbprint: [, input.thumbprint],
621
+ thumbprint: [, (0, smithy_client_1.expectNonNull)(input.thumbprint, `thumbprint`)],
619
622
  });
620
623
  let body;
621
624
  return new protocol_http_1.HttpRequest({
@@ -882,7 +885,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
882
885
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
883
886
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
884
887
  const query = map({
885
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
888
+ tagKeys: [
889
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
890
+ () => (input.tagKeys || []).map((_entry) => _entry),
891
+ ],
886
892
  });
887
893
  let body;
888
894
  return new protocol_http_1.HttpRequest({
@@ -9,7 +9,7 @@ export const serializeAws_restJson1AssociateBrowserSettingsCommand = async (inpu
9
9
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
10
10
  resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
11
11
  const query = map({
12
- browserSettingsArn: [, input.browserSettingsArn],
12
+ browserSettingsArn: [, __expectNonNull(input.browserSettingsArn, `browserSettingsArn`)],
13
13
  });
14
14
  let body;
15
15
  return new __HttpRequest({
@@ -29,7 +29,7 @@ export const serializeAws_restJson1AssociateNetworkSettingsCommand = async (inpu
29
29
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
30
30
  resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
31
31
  const query = map({
32
- networkSettingsArn: [, input.networkSettingsArn],
32
+ networkSettingsArn: [, __expectNonNull(input.networkSettingsArn, `networkSettingsArn`)],
33
33
  });
34
34
  let body;
35
35
  return new __HttpRequest({
@@ -49,7 +49,7 @@ export const serializeAws_restJson1AssociateTrustStoreCommand = async (input, co
49
49
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
50
50
  resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
51
51
  const query = map({
52
- trustStoreArn: [, input.trustStoreArn],
52
+ trustStoreArn: [, __expectNonNull(input.trustStoreArn, `trustStoreArn`)],
53
53
  });
54
54
  let body;
55
55
  return new __HttpRequest({
@@ -70,7 +70,10 @@ export const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = a
70
70
  "/portals/{portalArn+}/userAccessLoggingSettings";
71
71
  resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
72
72
  const query = map({
73
- userAccessLoggingSettingsArn: [, input.userAccessLoggingSettingsArn],
73
+ userAccessLoggingSettingsArn: [
74
+ ,
75
+ __expectNonNull(input.userAccessLoggingSettingsArn, `userAccessLoggingSettingsArn`),
76
+ ],
74
77
  });
75
78
  let body;
76
79
  return new __HttpRequest({
@@ -90,7 +93,7 @@ export const serializeAws_restJson1AssociateUserSettingsCommand = async (input,
90
93
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
91
94
  resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
92
95
  const query = map({
93
- userSettingsArn: [, input.userSettingsArn],
96
+ userSettingsArn: [, __expectNonNull(input.userSettingsArn, `userSettingsArn`)],
94
97
  });
95
98
  let body;
96
99
  return new __HttpRequest({
@@ -580,7 +583,7 @@ export const serializeAws_restJson1GetTrustStoreCertificateCommand = async (inpu
580
583
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
581
584
  resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
582
585
  const query = map({
583
- thumbprint: [, input.thumbprint],
586
+ thumbprint: [, __expectNonNull(input.thumbprint, `thumbprint`)],
584
587
  });
585
588
  let body;
586
589
  return new __HttpRequest({
@@ -834,7 +837,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
834
837
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
835
838
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
836
839
  const query = map({
837
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
840
+ tagKeys: [
841
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
842
+ () => (input.tagKeys || []).map((_entry) => _entry),
843
+ ],
838
844
  });
839
845
  let body;
840
846
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces-web",
3
3
  "description": "AWS SDK for JavaScript Workspaces Web Client for Node.js, Browser and React Native",
4
- "version": "3.215.0",
4
+ "version": "3.218.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,9 +19,9 @@
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.215.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.216.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.215.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",