@aws-sdk/client-finspace 3.344.0 → 3.346.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.
Files changed (158) hide show
  1. package/README.md +208 -0
  2. package/dist-cjs/Finspace.js +52 -0
  3. package/dist-cjs/commands/CreateKxChangesetCommand.js +46 -0
  4. package/dist-cjs/commands/CreateKxClusterCommand.js +46 -0
  5. package/dist-cjs/commands/CreateKxDatabaseCommand.js +46 -0
  6. package/dist-cjs/commands/CreateKxEnvironmentCommand.js +46 -0
  7. package/dist-cjs/commands/CreateKxUserCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteKxClusterCommand.js +46 -0
  9. package/dist-cjs/commands/DeleteKxDatabaseCommand.js +46 -0
  10. package/dist-cjs/commands/DeleteKxEnvironmentCommand.js +46 -0
  11. package/dist-cjs/commands/DeleteKxUserCommand.js +46 -0
  12. package/dist-cjs/commands/GetKxChangesetCommand.js +46 -0
  13. package/dist-cjs/commands/GetKxClusterCommand.js +46 -0
  14. package/dist-cjs/commands/GetKxConnectionStringCommand.js +47 -0
  15. package/dist-cjs/commands/GetKxDatabaseCommand.js +46 -0
  16. package/dist-cjs/commands/GetKxEnvironmentCommand.js +46 -0
  17. package/dist-cjs/commands/GetKxUserCommand.js +46 -0
  18. package/dist-cjs/commands/ListKxChangesetsCommand.js +46 -0
  19. package/dist-cjs/commands/ListKxClusterNodesCommand.js +46 -0
  20. package/dist-cjs/commands/ListKxClustersCommand.js +46 -0
  21. package/dist-cjs/commands/ListKxDatabasesCommand.js +46 -0
  22. package/dist-cjs/commands/ListKxEnvironmentsCommand.js +46 -0
  23. package/dist-cjs/commands/ListKxUsersCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateKxClusterDatabasesCommand.js +46 -0
  25. package/dist-cjs/commands/UpdateKxDatabaseCommand.js +46 -0
  26. package/dist-cjs/commands/UpdateKxEnvironmentCommand.js +46 -0
  27. package/dist-cjs/commands/UpdateKxEnvironmentNetworkCommand.js +46 -0
  28. package/dist-cjs/commands/UpdateKxUserCommand.js +46 -0
  29. package/dist-cjs/commands/index.js +26 -0
  30. package/dist-cjs/endpoint/ruleset.js +3 -3
  31. package/dist-cjs/index.js +1 -0
  32. package/dist-cjs/models/models_0.js +98 -1
  33. package/dist-cjs/pagination/Interfaces.js +2 -0
  34. package/dist-cjs/pagination/ListKxChangesetsPaginator.js +29 -0
  35. package/dist-cjs/pagination/ListKxClusterNodesPaginator.js +29 -0
  36. package/dist-cjs/pagination/ListKxDatabasesPaginator.js +29 -0
  37. package/dist-cjs/pagination/ListKxEnvironmentsPaginator.js +29 -0
  38. package/dist-cjs/pagination/index.js +8 -0
  39. package/dist-cjs/protocols/Aws_restJson1.js +2270 -125
  40. package/dist-es/Finspace.js +52 -0
  41. package/dist-es/commands/CreateKxChangesetCommand.js +42 -0
  42. package/dist-es/commands/CreateKxClusterCommand.js +42 -0
  43. package/dist-es/commands/CreateKxDatabaseCommand.js +42 -0
  44. package/dist-es/commands/CreateKxEnvironmentCommand.js +42 -0
  45. package/dist-es/commands/CreateKxUserCommand.js +42 -0
  46. package/dist-es/commands/DeleteKxClusterCommand.js +42 -0
  47. package/dist-es/commands/DeleteKxDatabaseCommand.js +42 -0
  48. package/dist-es/commands/DeleteKxEnvironmentCommand.js +42 -0
  49. package/dist-es/commands/DeleteKxUserCommand.js +42 -0
  50. package/dist-es/commands/GetKxChangesetCommand.js +42 -0
  51. package/dist-es/commands/GetKxClusterCommand.js +42 -0
  52. package/dist-es/commands/GetKxConnectionStringCommand.js +43 -0
  53. package/dist-es/commands/GetKxDatabaseCommand.js +42 -0
  54. package/dist-es/commands/GetKxEnvironmentCommand.js +42 -0
  55. package/dist-es/commands/GetKxUserCommand.js +42 -0
  56. package/dist-es/commands/ListKxChangesetsCommand.js +42 -0
  57. package/dist-es/commands/ListKxClusterNodesCommand.js +42 -0
  58. package/dist-es/commands/ListKxClustersCommand.js +42 -0
  59. package/dist-es/commands/ListKxDatabasesCommand.js +42 -0
  60. package/dist-es/commands/ListKxEnvironmentsCommand.js +42 -0
  61. package/dist-es/commands/ListKxUsersCommand.js +42 -0
  62. package/dist-es/commands/UpdateKxClusterDatabasesCommand.js +42 -0
  63. package/dist-es/commands/UpdateKxDatabaseCommand.js +42 -0
  64. package/dist-es/commands/UpdateKxEnvironmentCommand.js +42 -0
  65. package/dist-es/commands/UpdateKxEnvironmentNetworkCommand.js +42 -0
  66. package/dist-es/commands/UpdateKxUserCommand.js +42 -0
  67. package/dist-es/commands/index.js +26 -0
  68. package/dist-es/endpoint/ruleset.js +3 -3
  69. package/dist-es/index.js +1 -0
  70. package/dist-es/models/models_0.js +94 -0
  71. package/dist-es/pagination/Interfaces.js +1 -0
  72. package/dist-es/pagination/ListKxChangesetsPaginator.js +25 -0
  73. package/dist-es/pagination/ListKxClusterNodesPaginator.js +25 -0
  74. package/dist-es/pagination/ListKxDatabasesPaginator.js +25 -0
  75. package/dist-es/pagination/ListKxEnvironmentsPaginator.js +25 -0
  76. package/dist-es/pagination/index.js +5 -0
  77. package/dist-es/protocols/Aws_restJson1.js +2192 -100
  78. package/dist-types/Finspace.d.ts +182 -0
  79. package/dist-types/FinspaceClient.d.ts +28 -2
  80. package/dist-types/commands/CreateEnvironmentCommand.d.ts +1 -1
  81. package/dist-types/commands/CreateKxChangesetCommand.d.ts +122 -0
  82. package/dist-types/commands/CreateKxClusterCommand.d.ts +233 -0
  83. package/dist-types/commands/CreateKxDatabaseCommand.d.ts +109 -0
  84. package/dist-types/commands/CreateKxEnvironmentCommand.d.ts +108 -0
  85. package/dist-types/commands/CreateKxUserCommand.d.ts +107 -0
  86. package/dist-types/commands/DeleteKxClusterCommand.d.ts +95 -0
  87. package/dist-types/commands/DeleteKxDatabaseCommand.d.ts +92 -0
  88. package/dist-types/commands/DeleteKxEnvironmentCommand.d.ts +87 -0
  89. package/dist-types/commands/DeleteKxUserCommand.d.ts +88 -0
  90. package/dist-types/commands/GetEnvironmentCommand.d.ts +2 -2
  91. package/dist-types/commands/GetKxChangesetCommand.d.ts +108 -0
  92. package/dist-types/commands/GetKxClusterCommand.d.ts +164 -0
  93. package/dist-types/commands/GetKxConnectionStringCommand.d.ts +91 -0
  94. package/dist-types/commands/GetKxDatabaseCommand.d.ts +99 -0
  95. package/dist-types/commands/GetKxEnvironmentCommand.d.ts +112 -0
  96. package/dist-types/commands/GetKxUserCommand.d.ts +93 -0
  97. package/dist-types/commands/ListEnvironmentsCommand.d.ts +2 -2
  98. package/dist-types/commands/ListKxChangesetsCommand.d.ts +101 -0
  99. package/dist-types/commands/ListKxClusterNodesCommand.d.ts +102 -0
  100. package/dist-types/commands/ListKxClustersCommand.d.ts +114 -0
  101. package/dist-types/commands/ListKxDatabasesCommand.d.ts +98 -0
  102. package/dist-types/commands/ListKxEnvironmentsCommand.d.ts +112 -0
  103. package/dist-types/commands/ListKxUsersCommand.d.ts +100 -0
  104. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +3 -3
  105. package/dist-types/commands/UpdateKxClusterDatabasesCommand.d.ts +107 -0
  106. package/dist-types/commands/UpdateKxDatabaseCommand.d.ts +98 -0
  107. package/dist-types/commands/UpdateKxEnvironmentCommand.d.ts +120 -0
  108. package/dist-types/commands/UpdateKxEnvironmentNetworkCommand.d.ts +129 -0
  109. package/dist-types/commands/UpdateKxUserCommand.d.ts +101 -0
  110. package/dist-types/commands/index.d.ts +26 -0
  111. package/dist-types/index.d.ts +1 -0
  112. package/dist-types/models/models_0.d.ts +2390 -105
  113. package/dist-types/pagination/Interfaces.d.ts +8 -0
  114. package/dist-types/pagination/ListKxChangesetsPaginator.d.ts +7 -0
  115. package/dist-types/pagination/ListKxClusterNodesPaginator.d.ts +7 -0
  116. package/dist-types/pagination/ListKxDatabasesPaginator.d.ts +7 -0
  117. package/dist-types/pagination/ListKxEnvironmentsPaginator.d.ts +7 -0
  118. package/dist-types/pagination/index.d.ts +5 -0
  119. package/dist-types/protocols/Aws_restJson1.d.ts +234 -0
  120. package/dist-types/ts3.4/Finspace.d.ts +442 -0
  121. package/dist-types/ts3.4/FinspaceClient.d.ts +158 -2
  122. package/dist-types/ts3.4/commands/CreateKxChangesetCommand.d.ts +39 -0
  123. package/dist-types/ts3.4/commands/CreateKxClusterCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/CreateKxDatabaseCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/CreateKxEnvironmentCommand.d.ts +39 -0
  126. package/dist-types/ts3.4/commands/CreateKxUserCommand.d.ts +35 -0
  127. package/dist-types/ts3.4/commands/DeleteKxClusterCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/DeleteKxDatabaseCommand.d.ts +38 -0
  129. package/dist-types/ts3.4/commands/DeleteKxEnvironmentCommand.d.ts +39 -0
  130. package/dist-types/ts3.4/commands/DeleteKxUserCommand.d.ts +35 -0
  131. package/dist-types/ts3.4/commands/GetKxChangesetCommand.d.ts +38 -0
  132. package/dist-types/ts3.4/commands/GetKxClusterCommand.d.ts +35 -0
  133. package/dist-types/ts3.4/commands/GetKxConnectionStringCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/GetKxDatabaseCommand.d.ts +38 -0
  135. package/dist-types/ts3.4/commands/GetKxEnvironmentCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/GetKxUserCommand.d.ts +35 -0
  137. package/dist-types/ts3.4/commands/ListKxChangesetsCommand.d.ts +38 -0
  138. package/dist-types/ts3.4/commands/ListKxClusterNodesCommand.d.ts +39 -0
  139. package/dist-types/ts3.4/commands/ListKxClustersCommand.d.ts +38 -0
  140. package/dist-types/ts3.4/commands/ListKxDatabasesCommand.d.ts +38 -0
  141. package/dist-types/ts3.4/commands/ListKxEnvironmentsCommand.d.ts +39 -0
  142. package/dist-types/ts3.4/commands/ListKxUsersCommand.d.ts +35 -0
  143. package/dist-types/ts3.4/commands/UpdateKxClusterDatabasesCommand.d.ts +42 -0
  144. package/dist-types/ts3.4/commands/UpdateKxDatabaseCommand.d.ts +38 -0
  145. package/dist-types/ts3.4/commands/UpdateKxEnvironmentCommand.d.ts +39 -0
  146. package/dist-types/ts3.4/commands/UpdateKxEnvironmentNetworkCommand.d.ts +42 -0
  147. package/dist-types/ts3.4/commands/UpdateKxUserCommand.d.ts +35 -0
  148. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  149. package/dist-types/ts3.4/index.d.ts +1 -0
  150. package/dist-types/ts3.4/models/models_0.d.ts +575 -3
  151. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  152. package/dist-types/ts3.4/pagination/ListKxChangesetsPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/ListKxClusterNodesPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListKxDatabasesPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListKxEnvironmentsPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  157. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +312 -0
  158. package/package.json +9 -7
@@ -1,7 +1,8 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { FinspaceServiceException as __BaseException } from "../models/FinspaceServiceException";
4
- import { AccessDeniedException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, ConflictException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
6
  export const se_CreateEnvironmentCommand = async (input, context) => {
6
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
8
  const headers = {
@@ -29,6 +30,141 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
29
30
  body,
30
31
  });
31
32
  };
33
+ export const se_CreateKxChangesetCommand = async (input, context) => {
34
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const headers = {
36
+ "content-type": "application/json",
37
+ };
38
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
39
+ "/kx/environments/{environmentId}/databases/{databaseName}/changesets";
40
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
41
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
42
+ let body;
43
+ body = JSON.stringify(take(input, {
44
+ changeRequests: (_) => _json(_),
45
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
46
+ }));
47
+ return new __HttpRequest({
48
+ protocol,
49
+ hostname,
50
+ port,
51
+ method: "POST",
52
+ headers,
53
+ path: resolvedPath,
54
+ body,
55
+ });
56
+ };
57
+ export const se_CreateKxClusterCommand = async (input, context) => {
58
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const headers = {
60
+ "content-type": "application/json",
61
+ };
62
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/clusters";
63
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
64
+ let body;
65
+ body = JSON.stringify(take(input, {
66
+ autoScalingConfiguration: (_) => se_AutoScalingConfiguration(_, context),
67
+ availabilityZoneId: [],
68
+ azMode: [],
69
+ cacheStorageConfigurations: (_) => _json(_),
70
+ capacityConfiguration: (_) => _json(_),
71
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
72
+ clusterDescription: [],
73
+ clusterName: [],
74
+ clusterType: [],
75
+ code: (_) => _json(_),
76
+ commandLineArguments: (_) => _json(_),
77
+ databases: (_) => _json(_),
78
+ executionRole: [],
79
+ initializationScript: [],
80
+ releaseLabel: [],
81
+ savedownStorageConfiguration: (_) => _json(_),
82
+ tags: (_) => _json(_),
83
+ vpcConfiguration: (_) => _json(_),
84
+ }));
85
+ return new __HttpRequest({
86
+ protocol,
87
+ hostname,
88
+ port,
89
+ method: "POST",
90
+ headers,
91
+ path: resolvedPath,
92
+ body,
93
+ });
94
+ };
95
+ export const se_CreateKxDatabaseCommand = async (input, context) => {
96
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const headers = {
98
+ "content-type": "application/json",
99
+ };
100
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
101
+ "/kx/environments/{environmentId}/databases";
102
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
103
+ let body;
104
+ body = JSON.stringify(take(input, {
105
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
106
+ databaseName: [],
107
+ description: [],
108
+ tags: (_) => _json(_),
109
+ }));
110
+ return new __HttpRequest({
111
+ protocol,
112
+ hostname,
113
+ port,
114
+ method: "POST",
115
+ headers,
116
+ path: resolvedPath,
117
+ body,
118
+ });
119
+ };
120
+ export const se_CreateKxEnvironmentCommand = async (input, context) => {
121
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const headers = {
123
+ "content-type": "application/json",
124
+ };
125
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments";
126
+ let body;
127
+ body = JSON.stringify(take(input, {
128
+ clientToken: [],
129
+ description: [],
130
+ kmsKeyId: [],
131
+ name: [],
132
+ tags: (_) => _json(_),
133
+ }));
134
+ return new __HttpRequest({
135
+ protocol,
136
+ hostname,
137
+ port,
138
+ method: "POST",
139
+ headers,
140
+ path: resolvedPath,
141
+ body,
142
+ });
143
+ };
144
+ export const se_CreateKxUserCommand = async (input, context) => {
145
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const headers = {
147
+ "content-type": "application/json",
148
+ };
149
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/users";
150
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
151
+ let body;
152
+ body = JSON.stringify(take(input, {
153
+ clientToken: [],
154
+ iamRole: [],
155
+ tags: (_) => _json(_),
156
+ userName: [],
157
+ }));
158
+ return new __HttpRequest({
159
+ protocol,
160
+ hostname,
161
+ port,
162
+ method: "POST",
163
+ headers,
164
+ path: resolvedPath,
165
+ body,
166
+ });
167
+ };
32
168
  export const se_DeleteEnvironmentCommand = async (input, context) => {
33
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
170
  const headers = {};
@@ -45,6 +181,84 @@ export const se_DeleteEnvironmentCommand = async (input, context) => {
45
181
  body,
46
182
  });
47
183
  };
184
+ export const se_DeleteKxClusterCommand = async (input, context) => {
185
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const headers = {};
187
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
188
+ "/kx/environments/{environmentId}/clusters/{clusterName}";
189
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
190
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
191
+ const query = map({
192
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
193
+ });
194
+ let body;
195
+ return new __HttpRequest({
196
+ protocol,
197
+ hostname,
198
+ port,
199
+ method: "DELETE",
200
+ headers,
201
+ path: resolvedPath,
202
+ query,
203
+ body,
204
+ });
205
+ };
206
+ export const se_DeleteKxDatabaseCommand = async (input, context) => {
207
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const headers = {};
209
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
210
+ "/kx/environments/{environmentId}/databases/{databaseName}";
211
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
212
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
213
+ const query = map({
214
+ clientToken: [, __expectNonNull(input.clientToken, `clientToken`)],
215
+ });
216
+ let body;
217
+ return new __HttpRequest({
218
+ protocol,
219
+ hostname,
220
+ port,
221
+ method: "DELETE",
222
+ headers,
223
+ path: resolvedPath,
224
+ query,
225
+ body,
226
+ });
227
+ };
228
+ export const se_DeleteKxEnvironmentCommand = async (input, context) => {
229
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
+ const headers = {};
231
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}";
232
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
233
+ let body;
234
+ return new __HttpRequest({
235
+ protocol,
236
+ hostname,
237
+ port,
238
+ method: "DELETE",
239
+ headers,
240
+ path: resolvedPath,
241
+ body,
242
+ });
243
+ };
244
+ export const se_DeleteKxUserCommand = async (input, context) => {
245
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const headers = {};
247
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
248
+ "/kx/environments/{environmentId}/users/{userName}";
249
+ resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
250
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
251
+ let body;
252
+ return new __HttpRequest({
253
+ protocol,
254
+ hostname,
255
+ port,
256
+ method: "DELETE",
257
+ headers,
258
+ path: resolvedPath,
259
+ body,
260
+ });
261
+ };
48
262
  export const se_GetEnvironmentCommand = async (input, context) => {
49
263
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
264
  const headers = {};
@@ -61,13 +275,52 @@ export const se_GetEnvironmentCommand = async (input, context) => {
61
275
  body,
62
276
  });
63
277
  };
64
- export const se_ListEnvironmentsCommand = async (input, context) => {
278
+ export const se_GetKxChangesetCommand = async (input, context) => {
65
279
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
280
  const headers = {};
67
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
281
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
282
+ "/kx/environments/{environmentId}/databases/{databaseName}/changesets/{changesetId}";
283
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
284
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
285
+ resolvedPath = __resolvedPath(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
286
+ let body;
287
+ return new __HttpRequest({
288
+ protocol,
289
+ hostname,
290
+ port,
291
+ method: "GET",
292
+ headers,
293
+ path: resolvedPath,
294
+ body,
295
+ });
296
+ };
297
+ export const se_GetKxClusterCommand = async (input, context) => {
298
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const headers = {};
300
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
301
+ "/kx/environments/{environmentId}/clusters/{clusterName}";
302
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
303
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
304
+ let body;
305
+ return new __HttpRequest({
306
+ protocol,
307
+ hostname,
308
+ port,
309
+ method: "GET",
310
+ headers,
311
+ path: resolvedPath,
312
+ body,
313
+ });
314
+ };
315
+ export const se_GetKxConnectionStringCommand = async (input, context) => {
316
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
+ const headers = {};
318
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
319
+ "/kx/environments/{environmentId}/connectionString";
320
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
68
321
  const query = map({
69
- nextToken: [, input.nextToken],
70
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
322
+ userArn: [, __expectNonNull(input.userArn, `userArn`)],
323
+ clusterName: [, __expectNonNull(input.clusterName, `clusterName`)],
71
324
  });
72
325
  let body;
73
326
  return new __HttpRequest({
@@ -81,11 +334,13 @@ export const se_ListEnvironmentsCommand = async (input, context) => {
81
334
  body,
82
335
  });
83
336
  };
84
- export const se_ListTagsForResourceCommand = async (input, context) => {
337
+ export const se_GetKxDatabaseCommand = async (input, context) => {
85
338
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
339
  const headers = {};
87
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
88
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
340
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
341
+ "/kx/environments/{environmentId}/databases/{databaseName}";
342
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
343
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
89
344
  let body;
90
345
  return new __HttpRequest({
91
346
  protocol,
@@ -97,91 +352,1612 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
97
352
  body,
98
353
  });
99
354
  };
100
- export const se_TagResourceCommand = async (input, context) => {
355
+ export const se_GetKxEnvironmentCommand = async (input, context) => {
101
356
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
- const headers = {
103
- "content-type": "application/json",
104
- };
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
106
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
357
+ const headers = {};
358
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}";
359
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
107
360
  let body;
108
- body = JSON.stringify(take(input, {
109
- tags: (_) => _json(_),
110
- }));
111
361
  return new __HttpRequest({
112
362
  protocol,
113
363
  hostname,
114
364
  port,
115
- method: "POST",
365
+ method: "GET",
116
366
  headers,
117
367
  path: resolvedPath,
118
368
  body,
119
369
  });
120
370
  };
121
- export const se_UntagResourceCommand = async (input, context) => {
371
+ export const se_GetKxUserCommand = async (input, context) => {
122
372
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
373
  const headers = {};
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
125
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
374
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
375
+ "/kx/environments/{environmentId}/users/{userName}";
376
+ resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
377
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
378
+ let body;
379
+ return new __HttpRequest({
380
+ protocol,
381
+ hostname,
382
+ port,
383
+ method: "GET",
384
+ headers,
385
+ path: resolvedPath,
386
+ body,
387
+ });
388
+ };
389
+ export const se_ListEnvironmentsCommand = async (input, context) => {
390
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const headers = {};
392
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
126
393
  const query = map({
127
- tagKeys: [
128
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
129
- () => (input.tagKeys || []).map((_entry) => _entry),
130
- ],
394
+ nextToken: [, input.nextToken],
395
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
131
396
  });
132
397
  let body;
133
398
  return new __HttpRequest({
134
399
  protocol,
135
400
  hostname,
136
401
  port,
137
- method: "DELETE",
402
+ method: "GET",
138
403
  headers,
139
404
  path: resolvedPath,
140
405
  query,
141
406
  body,
142
407
  });
143
408
  };
144
- export const se_UpdateEnvironmentCommand = async (input, context) => {
409
+ export const se_ListKxChangesetsCommand = async (input, context) => {
145
410
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
- const headers = {
147
- "content-type": "application/json",
148
- };
149
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
411
+ const headers = {};
412
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
413
+ "/kx/environments/{environmentId}/databases/{databaseName}/changesets";
150
414
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
415
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
416
+ const query = map({
417
+ nextToken: [, input.nextToken],
418
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
419
+ });
151
420
  let body;
152
- body = JSON.stringify(take(input, {
153
- description: [],
154
- federationMode: [],
155
- federationParameters: (_) => _json(_),
156
- name: [],
157
- }));
158
421
  return new __HttpRequest({
159
422
  protocol,
160
423
  hostname,
161
424
  port,
162
- method: "PUT",
425
+ method: "GET",
163
426
  headers,
164
427
  path: resolvedPath,
428
+ query,
165
429
  body,
166
430
  });
167
431
  };
168
- export const de_CreateEnvironmentCommand = async (output, context) => {
432
+ export const se_ListKxClusterNodesCommand = async (input, context) => {
433
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
434
+ const headers = {};
435
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
436
+ "/kx/environments/{environmentId}/clusters/{clusterName}/nodes";
437
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
438
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
439
+ const query = map({
440
+ nextToken: [, input.nextToken],
441
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
442
+ });
443
+ let body;
444
+ return new __HttpRequest({
445
+ protocol,
446
+ hostname,
447
+ port,
448
+ method: "GET",
449
+ headers,
450
+ path: resolvedPath,
451
+ query,
452
+ body,
453
+ });
454
+ };
455
+ export const se_ListKxClustersCommand = async (input, context) => {
456
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
+ const headers = {};
458
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/clusters";
459
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
460
+ const query = map({
461
+ clusterType: [, input.clusterType],
462
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
463
+ nextToken: [, input.nextToken],
464
+ });
465
+ let body;
466
+ return new __HttpRequest({
467
+ protocol,
468
+ hostname,
469
+ port,
470
+ method: "GET",
471
+ headers,
472
+ path: resolvedPath,
473
+ query,
474
+ body,
475
+ });
476
+ };
477
+ export const se_ListKxDatabasesCommand = async (input, context) => {
478
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
479
+ const headers = {};
480
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
481
+ "/kx/environments/{environmentId}/databases";
482
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
483
+ const query = map({
484
+ nextToken: [, input.nextToken],
485
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
486
+ });
487
+ let body;
488
+ return new __HttpRequest({
489
+ protocol,
490
+ hostname,
491
+ port,
492
+ method: "GET",
493
+ headers,
494
+ path: resolvedPath,
495
+ query,
496
+ body,
497
+ });
498
+ };
499
+ export const se_ListKxEnvironmentsCommand = async (input, context) => {
500
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
501
+ const headers = {};
502
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments";
503
+ const query = map({
504
+ nextToken: [, input.nextToken],
505
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
506
+ });
507
+ let body;
508
+ return new __HttpRequest({
509
+ protocol,
510
+ hostname,
511
+ port,
512
+ method: "GET",
513
+ headers,
514
+ path: resolvedPath,
515
+ query,
516
+ body,
517
+ });
518
+ };
519
+ export const se_ListKxUsersCommand = async (input, context) => {
520
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
+ const headers = {};
522
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/users";
523
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
524
+ const query = map({
525
+ nextToken: [, input.nextToken],
526
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
527
+ });
528
+ let body;
529
+ return new __HttpRequest({
530
+ protocol,
531
+ hostname,
532
+ port,
533
+ method: "GET",
534
+ headers,
535
+ path: resolvedPath,
536
+ query,
537
+ body,
538
+ });
539
+ };
540
+ export const se_ListTagsForResourceCommand = async (input, context) => {
541
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
+ const headers = {};
543
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
544
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
545
+ let body;
546
+ return new __HttpRequest({
547
+ protocol,
548
+ hostname,
549
+ port,
550
+ method: "GET",
551
+ headers,
552
+ path: resolvedPath,
553
+ body,
554
+ });
555
+ };
556
+ export const se_TagResourceCommand = async (input, context) => {
557
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
+ const headers = {
559
+ "content-type": "application/json",
560
+ };
561
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
562
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
563
+ let body;
564
+ body = JSON.stringify(take(input, {
565
+ tags: (_) => _json(_),
566
+ }));
567
+ return new __HttpRequest({
568
+ protocol,
569
+ hostname,
570
+ port,
571
+ method: "POST",
572
+ headers,
573
+ path: resolvedPath,
574
+ body,
575
+ });
576
+ };
577
+ export const se_UntagResourceCommand = async (input, context) => {
578
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const headers = {};
580
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
581
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
582
+ const query = map({
583
+ tagKeys: [
584
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
585
+ () => (input.tagKeys || []).map((_entry) => _entry),
586
+ ],
587
+ });
588
+ let body;
589
+ return new __HttpRequest({
590
+ protocol,
591
+ hostname,
592
+ port,
593
+ method: "DELETE",
594
+ headers,
595
+ path: resolvedPath,
596
+ query,
597
+ body,
598
+ });
599
+ };
600
+ export const se_UpdateEnvironmentCommand = async (input, context) => {
601
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const headers = {
603
+ "content-type": "application/json",
604
+ };
605
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
606
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
607
+ let body;
608
+ body = JSON.stringify(take(input, {
609
+ description: [],
610
+ federationMode: [],
611
+ federationParameters: (_) => _json(_),
612
+ name: [],
613
+ }));
614
+ return new __HttpRequest({
615
+ protocol,
616
+ hostname,
617
+ port,
618
+ method: "PUT",
619
+ headers,
620
+ path: resolvedPath,
621
+ body,
622
+ });
623
+ };
624
+ export const se_UpdateKxClusterDatabasesCommand = async (input, context) => {
625
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
+ const headers = {
627
+ "content-type": "application/json",
628
+ };
629
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
630
+ "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/databases";
631
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
632
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
633
+ let body;
634
+ body = JSON.stringify(take(input, {
635
+ clientToken: [],
636
+ databases: (_) => _json(_),
637
+ }));
638
+ return new __HttpRequest({
639
+ protocol,
640
+ hostname,
641
+ port,
642
+ method: "PUT",
643
+ headers,
644
+ path: resolvedPath,
645
+ body,
646
+ });
647
+ };
648
+ export const se_UpdateKxDatabaseCommand = async (input, context) => {
649
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
650
+ const headers = {
651
+ "content-type": "application/json",
652
+ };
653
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
654
+ "/kx/environments/{environmentId}/databases/{databaseName}";
655
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
656
+ resolvedPath = __resolvedPath(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
657
+ let body;
658
+ body = JSON.stringify(take(input, {
659
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
660
+ description: [],
661
+ }));
662
+ return new __HttpRequest({
663
+ protocol,
664
+ hostname,
665
+ port,
666
+ method: "PUT",
667
+ headers,
668
+ path: resolvedPath,
669
+ body,
670
+ });
671
+ };
672
+ export const se_UpdateKxEnvironmentCommand = async (input, context) => {
673
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
674
+ const headers = {
675
+ "content-type": "application/json",
676
+ };
677
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}";
678
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
679
+ let body;
680
+ body = JSON.stringify(take(input, {
681
+ clientToken: [],
682
+ description: [],
683
+ name: [],
684
+ }));
685
+ return new __HttpRequest({
686
+ protocol,
687
+ hostname,
688
+ port,
689
+ method: "PUT",
690
+ headers,
691
+ path: resolvedPath,
692
+ body,
693
+ });
694
+ };
695
+ export const se_UpdateKxEnvironmentNetworkCommand = async (input, context) => {
696
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const headers = {
698
+ "content-type": "application/json",
699
+ };
700
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/network";
701
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
702
+ let body;
703
+ body = JSON.stringify(take(input, {
704
+ clientToken: [],
705
+ customDNSConfiguration: (_) => _json(_),
706
+ transitGatewayConfiguration: (_) => _json(_),
707
+ }));
708
+ return new __HttpRequest({
709
+ protocol,
710
+ hostname,
711
+ port,
712
+ method: "PUT",
713
+ headers,
714
+ path: resolvedPath,
715
+ body,
716
+ });
717
+ };
718
+ export const se_UpdateKxUserCommand = async (input, context) => {
719
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
720
+ const headers = {
721
+ "content-type": "application/json",
722
+ };
723
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
724
+ "/kx/environments/{environmentId}/users/{userName}";
725
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
726
+ resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
727
+ let body;
728
+ body = JSON.stringify(take(input, {
729
+ clientToken: [],
730
+ iamRole: [],
731
+ }));
732
+ return new __HttpRequest({
733
+ protocol,
734
+ hostname,
735
+ port,
736
+ method: "PUT",
737
+ headers,
738
+ path: resolvedPath,
739
+ body,
740
+ });
741
+ };
742
+ export const de_CreateEnvironmentCommand = async (output, context) => {
743
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
744
+ return de_CreateEnvironmentCommandError(output, context);
745
+ }
746
+ const contents = map({
747
+ $metadata: deserializeMetadata(output),
748
+ });
749
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
750
+ const doc = take(data, {
751
+ environmentArn: __expectString,
752
+ environmentId: __expectString,
753
+ environmentUrl: __expectString,
754
+ });
755
+ Object.assign(contents, doc);
756
+ return contents;
757
+ };
758
+ const de_CreateEnvironmentCommandError = async (output, context) => {
759
+ const parsedOutput = {
760
+ ...output,
761
+ body: await parseErrorBody(output.body, context),
762
+ };
763
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
764
+ switch (errorCode) {
765
+ case "AccessDeniedException":
766
+ case "com.amazonaws.finspace#AccessDeniedException":
767
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
768
+ case "InternalServerException":
769
+ case "com.amazonaws.finspace#InternalServerException":
770
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
771
+ case "LimitExceededException":
772
+ case "com.amazonaws.finspace#LimitExceededException":
773
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
774
+ case "ServiceQuotaExceededException":
775
+ case "com.amazonaws.finspace#ServiceQuotaExceededException":
776
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
777
+ case "ThrottlingException":
778
+ case "com.amazonaws.finspace#ThrottlingException":
779
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
780
+ case "ValidationException":
781
+ case "com.amazonaws.finspace#ValidationException":
782
+ throw await de_ValidationExceptionRes(parsedOutput, context);
783
+ default:
784
+ const parsedBody = parsedOutput.body;
785
+ return throwDefaultError({
786
+ output,
787
+ parsedBody,
788
+ errorCode,
789
+ });
790
+ }
791
+ };
792
+ export const de_CreateKxChangesetCommand = async (output, context) => {
793
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
794
+ return de_CreateKxChangesetCommandError(output, context);
795
+ }
796
+ const contents = map({
797
+ $metadata: deserializeMetadata(output),
798
+ });
799
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
800
+ const doc = take(data, {
801
+ changeRequests: _json,
802
+ changesetId: __expectString,
803
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
804
+ databaseName: __expectString,
805
+ environmentId: __expectString,
806
+ errorInfo: _json,
807
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
808
+ status: __expectString,
809
+ });
810
+ Object.assign(contents, doc);
811
+ return contents;
812
+ };
813
+ const de_CreateKxChangesetCommandError = async (output, context) => {
814
+ const parsedOutput = {
815
+ ...output,
816
+ body: await parseErrorBody(output.body, context),
817
+ };
818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
+ switch (errorCode) {
820
+ case "AccessDeniedException":
821
+ case "com.amazonaws.finspace#AccessDeniedException":
822
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
823
+ case "ConflictException":
824
+ case "com.amazonaws.finspace#ConflictException":
825
+ throw await de_ConflictExceptionRes(parsedOutput, context);
826
+ case "InternalServerException":
827
+ case "com.amazonaws.finspace#InternalServerException":
828
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
829
+ case "LimitExceededException":
830
+ case "com.amazonaws.finspace#LimitExceededException":
831
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
832
+ case "ResourceNotFoundException":
833
+ case "com.amazonaws.finspace#ResourceNotFoundException":
834
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
835
+ case "ThrottlingException":
836
+ case "com.amazonaws.finspace#ThrottlingException":
837
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
838
+ case "ValidationException":
839
+ case "com.amazonaws.finspace#ValidationException":
840
+ throw await de_ValidationExceptionRes(parsedOutput, context);
841
+ default:
842
+ const parsedBody = parsedOutput.body;
843
+ return throwDefaultError({
844
+ output,
845
+ parsedBody,
846
+ errorCode,
847
+ });
848
+ }
849
+ };
850
+ export const de_CreateKxClusterCommand = async (output, context) => {
851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
852
+ return de_CreateKxClusterCommandError(output, context);
853
+ }
854
+ const contents = map({
855
+ $metadata: deserializeMetadata(output),
856
+ });
857
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
858
+ const doc = take(data, {
859
+ autoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
860
+ availabilityZoneId: __expectString,
861
+ azMode: __expectString,
862
+ cacheStorageConfigurations: _json,
863
+ capacityConfiguration: _json,
864
+ clusterDescription: __expectString,
865
+ clusterName: __expectString,
866
+ clusterType: __expectString,
867
+ code: _json,
868
+ commandLineArguments: _json,
869
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
870
+ databases: _json,
871
+ environmentId: __expectString,
872
+ executionRole: __expectString,
873
+ initializationScript: __expectString,
874
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
875
+ releaseLabel: __expectString,
876
+ savedownStorageConfiguration: _json,
877
+ status: __expectString,
878
+ statusReason: __expectString,
879
+ vpcConfiguration: _json,
880
+ });
881
+ Object.assign(contents, doc);
882
+ return contents;
883
+ };
884
+ const de_CreateKxClusterCommandError = async (output, context) => {
885
+ const parsedOutput = {
886
+ ...output,
887
+ body: await parseErrorBody(output.body, context),
888
+ };
889
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
+ switch (errorCode) {
891
+ case "AccessDeniedException":
892
+ case "com.amazonaws.finspace#AccessDeniedException":
893
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
894
+ case "ConflictException":
895
+ case "com.amazonaws.finspace#ConflictException":
896
+ throw await de_ConflictExceptionRes(parsedOutput, context);
897
+ case "InternalServerException":
898
+ case "com.amazonaws.finspace#InternalServerException":
899
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
900
+ case "LimitExceededException":
901
+ case "com.amazonaws.finspace#LimitExceededException":
902
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
903
+ case "ResourceNotFoundException":
904
+ case "com.amazonaws.finspace#ResourceNotFoundException":
905
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
906
+ case "ThrottlingException":
907
+ case "com.amazonaws.finspace#ThrottlingException":
908
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
909
+ case "ValidationException":
910
+ case "com.amazonaws.finspace#ValidationException":
911
+ throw await de_ValidationExceptionRes(parsedOutput, context);
912
+ default:
913
+ const parsedBody = parsedOutput.body;
914
+ return throwDefaultError({
915
+ output,
916
+ parsedBody,
917
+ errorCode,
918
+ });
919
+ }
920
+ };
921
+ export const de_CreateKxDatabaseCommand = async (output, context) => {
922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
923
+ return de_CreateKxDatabaseCommandError(output, context);
924
+ }
925
+ const contents = map({
926
+ $metadata: deserializeMetadata(output),
927
+ });
928
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
929
+ const doc = take(data, {
930
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
931
+ databaseArn: __expectString,
932
+ databaseName: __expectString,
933
+ description: __expectString,
934
+ environmentId: __expectString,
935
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
936
+ });
937
+ Object.assign(contents, doc);
938
+ return contents;
939
+ };
940
+ const de_CreateKxDatabaseCommandError = async (output, context) => {
941
+ const parsedOutput = {
942
+ ...output,
943
+ body: await parseErrorBody(output.body, context),
944
+ };
945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
+ switch (errorCode) {
947
+ case "AccessDeniedException":
948
+ case "com.amazonaws.finspace#AccessDeniedException":
949
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
950
+ case "ConflictException":
951
+ case "com.amazonaws.finspace#ConflictException":
952
+ throw await de_ConflictExceptionRes(parsedOutput, context);
953
+ case "InternalServerException":
954
+ case "com.amazonaws.finspace#InternalServerException":
955
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
956
+ case "LimitExceededException":
957
+ case "com.amazonaws.finspace#LimitExceededException":
958
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
959
+ case "ResourceAlreadyExistsException":
960
+ case "com.amazonaws.finspace#ResourceAlreadyExistsException":
961
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
962
+ case "ResourceNotFoundException":
963
+ case "com.amazonaws.finspace#ResourceNotFoundException":
964
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
965
+ case "ThrottlingException":
966
+ case "com.amazonaws.finspace#ThrottlingException":
967
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
968
+ case "ValidationException":
969
+ case "com.amazonaws.finspace#ValidationException":
970
+ throw await de_ValidationExceptionRes(parsedOutput, context);
971
+ default:
972
+ const parsedBody = parsedOutput.body;
973
+ return throwDefaultError({
974
+ output,
975
+ parsedBody,
976
+ errorCode,
977
+ });
978
+ }
979
+ };
980
+ export const de_CreateKxEnvironmentCommand = async (output, context) => {
981
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
982
+ return de_CreateKxEnvironmentCommandError(output, context);
983
+ }
984
+ const contents = map({
985
+ $metadata: deserializeMetadata(output),
986
+ });
987
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
988
+ const doc = take(data, {
989
+ creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
990
+ description: __expectString,
991
+ environmentArn: __expectString,
992
+ environmentId: __expectString,
993
+ kmsKeyId: __expectString,
994
+ name: __expectString,
995
+ status: __expectString,
996
+ });
997
+ Object.assign(contents, doc);
998
+ return contents;
999
+ };
1000
+ const de_CreateKxEnvironmentCommandError = async (output, context) => {
1001
+ const parsedOutput = {
1002
+ ...output,
1003
+ body: await parseErrorBody(output.body, context),
1004
+ };
1005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1006
+ switch (errorCode) {
1007
+ case "AccessDeniedException":
1008
+ case "com.amazonaws.finspace#AccessDeniedException":
1009
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1010
+ case "ConflictException":
1011
+ case "com.amazonaws.finspace#ConflictException":
1012
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1013
+ case "InternalServerException":
1014
+ case "com.amazonaws.finspace#InternalServerException":
1015
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1016
+ case "LimitExceededException":
1017
+ case "com.amazonaws.finspace#LimitExceededException":
1018
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1019
+ case "ServiceQuotaExceededException":
1020
+ case "com.amazonaws.finspace#ServiceQuotaExceededException":
1021
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1022
+ case "ThrottlingException":
1023
+ case "com.amazonaws.finspace#ThrottlingException":
1024
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1025
+ case "ValidationException":
1026
+ case "com.amazonaws.finspace#ValidationException":
1027
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1028
+ default:
1029
+ const parsedBody = parsedOutput.body;
1030
+ return throwDefaultError({
1031
+ output,
1032
+ parsedBody,
1033
+ errorCode,
1034
+ });
1035
+ }
1036
+ };
1037
+ export const de_CreateKxUserCommand = async (output, context) => {
1038
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
+ return de_CreateKxUserCommandError(output, context);
1040
+ }
1041
+ const contents = map({
1042
+ $metadata: deserializeMetadata(output),
1043
+ });
1044
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1045
+ const doc = take(data, {
1046
+ environmentId: __expectString,
1047
+ iamRole: __expectString,
1048
+ userArn: __expectString,
1049
+ userName: __expectString,
1050
+ });
1051
+ Object.assign(contents, doc);
1052
+ return contents;
1053
+ };
1054
+ const de_CreateKxUserCommandError = async (output, context) => {
1055
+ const parsedOutput = {
1056
+ ...output,
1057
+ body: await parseErrorBody(output.body, context),
1058
+ };
1059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
+ switch (errorCode) {
1061
+ case "AccessDeniedException":
1062
+ case "com.amazonaws.finspace#AccessDeniedException":
1063
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1064
+ case "ConflictException":
1065
+ case "com.amazonaws.finspace#ConflictException":
1066
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1067
+ case "InternalServerException":
1068
+ case "com.amazonaws.finspace#InternalServerException":
1069
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1070
+ case "LimitExceededException":
1071
+ case "com.amazonaws.finspace#LimitExceededException":
1072
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1073
+ case "ResourceAlreadyExistsException":
1074
+ case "com.amazonaws.finspace#ResourceAlreadyExistsException":
1075
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1076
+ case "ResourceNotFoundException":
1077
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1078
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1079
+ case "ThrottlingException":
1080
+ case "com.amazonaws.finspace#ThrottlingException":
1081
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1082
+ case "ValidationException":
1083
+ case "com.amazonaws.finspace#ValidationException":
1084
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1085
+ default:
1086
+ const parsedBody = parsedOutput.body;
1087
+ return throwDefaultError({
1088
+ output,
1089
+ parsedBody,
1090
+ errorCode,
1091
+ });
1092
+ }
1093
+ };
1094
+ export const de_DeleteEnvironmentCommand = async (output, context) => {
1095
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
+ return de_DeleteEnvironmentCommandError(output, context);
1097
+ }
1098
+ const contents = map({
1099
+ $metadata: deserializeMetadata(output),
1100
+ });
1101
+ await collectBody(output.body, context);
1102
+ return contents;
1103
+ };
1104
+ const de_DeleteEnvironmentCommandError = async (output, context) => {
1105
+ const parsedOutput = {
1106
+ ...output,
1107
+ body: await parseErrorBody(output.body, context),
1108
+ };
1109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
+ switch (errorCode) {
1111
+ case "AccessDeniedException":
1112
+ case "com.amazonaws.finspace#AccessDeniedException":
1113
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1114
+ case "InternalServerException":
1115
+ case "com.amazonaws.finspace#InternalServerException":
1116
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1117
+ case "ResourceNotFoundException":
1118
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1119
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1120
+ case "ThrottlingException":
1121
+ case "com.amazonaws.finspace#ThrottlingException":
1122
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1123
+ case "ValidationException":
1124
+ case "com.amazonaws.finspace#ValidationException":
1125
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1126
+ default:
1127
+ const parsedBody = parsedOutput.body;
1128
+ return throwDefaultError({
1129
+ output,
1130
+ parsedBody,
1131
+ errorCode,
1132
+ });
1133
+ }
1134
+ };
1135
+ export const de_DeleteKxClusterCommand = async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_DeleteKxClusterCommandError(output, context);
1138
+ }
1139
+ const contents = map({
1140
+ $metadata: deserializeMetadata(output),
1141
+ });
1142
+ await collectBody(output.body, context);
1143
+ return contents;
1144
+ };
1145
+ const de_DeleteKxClusterCommandError = async (output, context) => {
1146
+ const parsedOutput = {
1147
+ ...output,
1148
+ body: await parseErrorBody(output.body, context),
1149
+ };
1150
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1151
+ switch (errorCode) {
1152
+ case "AccessDeniedException":
1153
+ case "com.amazonaws.finspace#AccessDeniedException":
1154
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1155
+ case "ConflictException":
1156
+ case "com.amazonaws.finspace#ConflictException":
1157
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1158
+ case "InternalServerException":
1159
+ case "com.amazonaws.finspace#InternalServerException":
1160
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1161
+ case "LimitExceededException":
1162
+ case "com.amazonaws.finspace#LimitExceededException":
1163
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1164
+ case "ResourceNotFoundException":
1165
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1166
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1167
+ case "ThrottlingException":
1168
+ case "com.amazonaws.finspace#ThrottlingException":
1169
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1170
+ case "ValidationException":
1171
+ case "com.amazonaws.finspace#ValidationException":
1172
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1173
+ default:
1174
+ const parsedBody = parsedOutput.body;
1175
+ return throwDefaultError({
1176
+ output,
1177
+ parsedBody,
1178
+ errorCode,
1179
+ });
1180
+ }
1181
+ };
1182
+ export const de_DeleteKxDatabaseCommand = async (output, context) => {
1183
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1184
+ return de_DeleteKxDatabaseCommandError(output, context);
1185
+ }
1186
+ const contents = map({
1187
+ $metadata: deserializeMetadata(output),
1188
+ });
1189
+ await collectBody(output.body, context);
1190
+ return contents;
1191
+ };
1192
+ const de_DeleteKxDatabaseCommandError = async (output, context) => {
1193
+ const parsedOutput = {
1194
+ ...output,
1195
+ body: await parseErrorBody(output.body, context),
1196
+ };
1197
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1198
+ switch (errorCode) {
1199
+ case "AccessDeniedException":
1200
+ case "com.amazonaws.finspace#AccessDeniedException":
1201
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1202
+ case "ConflictException":
1203
+ case "com.amazonaws.finspace#ConflictException":
1204
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1205
+ case "InternalServerException":
1206
+ case "com.amazonaws.finspace#InternalServerException":
1207
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1208
+ case "ResourceNotFoundException":
1209
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1210
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1211
+ case "ThrottlingException":
1212
+ case "com.amazonaws.finspace#ThrottlingException":
1213
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1214
+ case "ValidationException":
1215
+ case "com.amazonaws.finspace#ValidationException":
1216
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1217
+ default:
1218
+ const parsedBody = parsedOutput.body;
1219
+ return throwDefaultError({
1220
+ output,
1221
+ parsedBody,
1222
+ errorCode,
1223
+ });
1224
+ }
1225
+ };
1226
+ export const de_DeleteKxEnvironmentCommand = async (output, context) => {
1227
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1228
+ return de_DeleteKxEnvironmentCommandError(output, context);
1229
+ }
1230
+ const contents = map({
1231
+ $metadata: deserializeMetadata(output),
1232
+ });
1233
+ await collectBody(output.body, context);
1234
+ return contents;
1235
+ };
1236
+ const de_DeleteKxEnvironmentCommandError = async (output, context) => {
1237
+ const parsedOutput = {
1238
+ ...output,
1239
+ body: await parseErrorBody(output.body, context),
1240
+ };
1241
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1242
+ switch (errorCode) {
1243
+ case "AccessDeniedException":
1244
+ case "com.amazonaws.finspace#AccessDeniedException":
1245
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1246
+ case "InternalServerException":
1247
+ case "com.amazonaws.finspace#InternalServerException":
1248
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1249
+ case "ResourceNotFoundException":
1250
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1251
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1252
+ case "ThrottlingException":
1253
+ case "com.amazonaws.finspace#ThrottlingException":
1254
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1255
+ case "ValidationException":
1256
+ case "com.amazonaws.finspace#ValidationException":
1257
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1258
+ default:
1259
+ const parsedBody = parsedOutput.body;
1260
+ return throwDefaultError({
1261
+ output,
1262
+ parsedBody,
1263
+ errorCode,
1264
+ });
1265
+ }
1266
+ };
1267
+ export const de_DeleteKxUserCommand = async (output, context) => {
1268
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1269
+ return de_DeleteKxUserCommandError(output, context);
1270
+ }
1271
+ const contents = map({
1272
+ $metadata: deserializeMetadata(output),
1273
+ });
1274
+ await collectBody(output.body, context);
1275
+ return contents;
1276
+ };
1277
+ const de_DeleteKxUserCommandError = async (output, context) => {
1278
+ const parsedOutput = {
1279
+ ...output,
1280
+ body: await parseErrorBody(output.body, context),
1281
+ };
1282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1283
+ switch (errorCode) {
1284
+ case "AccessDeniedException":
1285
+ case "com.amazonaws.finspace#AccessDeniedException":
1286
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1287
+ case "InternalServerException":
1288
+ case "com.amazonaws.finspace#InternalServerException":
1289
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1290
+ case "ResourceNotFoundException":
1291
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1292
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1293
+ case "ThrottlingException":
1294
+ case "com.amazonaws.finspace#ThrottlingException":
1295
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1296
+ case "ValidationException":
1297
+ case "com.amazonaws.finspace#ValidationException":
1298
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1299
+ default:
1300
+ const parsedBody = parsedOutput.body;
1301
+ return throwDefaultError({
1302
+ output,
1303
+ parsedBody,
1304
+ errorCode,
1305
+ });
1306
+ }
1307
+ };
1308
+ export const de_GetEnvironmentCommand = async (output, context) => {
1309
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
+ return de_GetEnvironmentCommandError(output, context);
1311
+ }
1312
+ const contents = map({
1313
+ $metadata: deserializeMetadata(output),
1314
+ });
1315
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1316
+ const doc = take(data, {
1317
+ environment: _json,
1318
+ });
1319
+ Object.assign(contents, doc);
1320
+ return contents;
1321
+ };
1322
+ const de_GetEnvironmentCommandError = async (output, context) => {
1323
+ const parsedOutput = {
1324
+ ...output,
1325
+ body: await parseErrorBody(output.body, context),
1326
+ };
1327
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1328
+ switch (errorCode) {
1329
+ case "AccessDeniedException":
1330
+ case "com.amazonaws.finspace#AccessDeniedException":
1331
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1332
+ case "InternalServerException":
1333
+ case "com.amazonaws.finspace#InternalServerException":
1334
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1335
+ case "ResourceNotFoundException":
1336
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1337
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1338
+ case "ValidationException":
1339
+ case "com.amazonaws.finspace#ValidationException":
1340
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1341
+ default:
1342
+ const parsedBody = parsedOutput.body;
1343
+ return throwDefaultError({
1344
+ output,
1345
+ parsedBody,
1346
+ errorCode,
1347
+ });
1348
+ }
1349
+ };
1350
+ export const de_GetKxChangesetCommand = async (output, context) => {
1351
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
+ return de_GetKxChangesetCommandError(output, context);
1353
+ }
1354
+ const contents = map({
1355
+ $metadata: deserializeMetadata(output),
1356
+ });
1357
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1358
+ const doc = take(data, {
1359
+ activeFromTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1360
+ changeRequests: _json,
1361
+ changesetId: __expectString,
1362
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1363
+ databaseName: __expectString,
1364
+ environmentId: __expectString,
1365
+ errorInfo: _json,
1366
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1367
+ status: __expectString,
1368
+ });
1369
+ Object.assign(contents, doc);
1370
+ return contents;
1371
+ };
1372
+ const de_GetKxChangesetCommandError = async (output, context) => {
1373
+ const parsedOutput = {
1374
+ ...output,
1375
+ body: await parseErrorBody(output.body, context),
1376
+ };
1377
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
+ switch (errorCode) {
1379
+ case "AccessDeniedException":
1380
+ case "com.amazonaws.finspace#AccessDeniedException":
1381
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1382
+ case "InternalServerException":
1383
+ case "com.amazonaws.finspace#InternalServerException":
1384
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1385
+ case "ResourceNotFoundException":
1386
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1387
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1388
+ case "ThrottlingException":
1389
+ case "com.amazonaws.finspace#ThrottlingException":
1390
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1391
+ case "ValidationException":
1392
+ case "com.amazonaws.finspace#ValidationException":
1393
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1394
+ default:
1395
+ const parsedBody = parsedOutput.body;
1396
+ return throwDefaultError({
1397
+ output,
1398
+ parsedBody,
1399
+ errorCode,
1400
+ });
1401
+ }
1402
+ };
1403
+ export const de_GetKxClusterCommand = async (output, context) => {
1404
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1405
+ return de_GetKxClusterCommandError(output, context);
1406
+ }
1407
+ const contents = map({
1408
+ $metadata: deserializeMetadata(output),
1409
+ });
1410
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1411
+ const doc = take(data, {
1412
+ autoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1413
+ availabilityZoneId: __expectString,
1414
+ azMode: __expectString,
1415
+ cacheStorageConfigurations: _json,
1416
+ capacityConfiguration: _json,
1417
+ clusterDescription: __expectString,
1418
+ clusterName: __expectString,
1419
+ clusterType: __expectString,
1420
+ code: _json,
1421
+ commandLineArguments: _json,
1422
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1423
+ databases: _json,
1424
+ executionRole: __expectString,
1425
+ initializationScript: __expectString,
1426
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1427
+ releaseLabel: __expectString,
1428
+ savedownStorageConfiguration: _json,
1429
+ status: __expectString,
1430
+ statusReason: __expectString,
1431
+ vpcConfiguration: _json,
1432
+ });
1433
+ Object.assign(contents, doc);
1434
+ return contents;
1435
+ };
1436
+ const de_GetKxClusterCommandError = async (output, context) => {
1437
+ const parsedOutput = {
1438
+ ...output,
1439
+ body: await parseErrorBody(output.body, context),
1440
+ };
1441
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1442
+ switch (errorCode) {
1443
+ case "AccessDeniedException":
1444
+ case "com.amazonaws.finspace#AccessDeniedException":
1445
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1446
+ case "ConflictException":
1447
+ case "com.amazonaws.finspace#ConflictException":
1448
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1449
+ case "InternalServerException":
1450
+ case "com.amazonaws.finspace#InternalServerException":
1451
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1452
+ case "LimitExceededException":
1453
+ case "com.amazonaws.finspace#LimitExceededException":
1454
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1455
+ case "ResourceNotFoundException":
1456
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1457
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1458
+ case "ThrottlingException":
1459
+ case "com.amazonaws.finspace#ThrottlingException":
1460
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1461
+ case "ValidationException":
1462
+ case "com.amazonaws.finspace#ValidationException":
1463
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1464
+ default:
1465
+ const parsedBody = parsedOutput.body;
1466
+ return throwDefaultError({
1467
+ output,
1468
+ parsedBody,
1469
+ errorCode,
1470
+ });
1471
+ }
1472
+ };
1473
+ export const de_GetKxConnectionStringCommand = async (output, context) => {
1474
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1475
+ return de_GetKxConnectionStringCommandError(output, context);
1476
+ }
1477
+ const contents = map({
1478
+ $metadata: deserializeMetadata(output),
1479
+ });
1480
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1481
+ const doc = take(data, {
1482
+ signedConnectionString: __expectString,
1483
+ });
1484
+ Object.assign(contents, doc);
1485
+ return contents;
1486
+ };
1487
+ const de_GetKxConnectionStringCommandError = async (output, context) => {
1488
+ const parsedOutput = {
1489
+ ...output,
1490
+ body: await parseErrorBody(output.body, context),
1491
+ };
1492
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1493
+ switch (errorCode) {
1494
+ case "AccessDeniedException":
1495
+ case "com.amazonaws.finspace#AccessDeniedException":
1496
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1497
+ case "InternalServerException":
1498
+ case "com.amazonaws.finspace#InternalServerException":
1499
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1500
+ case "ResourceNotFoundException":
1501
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1502
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1503
+ case "ThrottlingException":
1504
+ case "com.amazonaws.finspace#ThrottlingException":
1505
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1506
+ case "ValidationException":
1507
+ case "com.amazonaws.finspace#ValidationException":
1508
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1509
+ default:
1510
+ const parsedBody = parsedOutput.body;
1511
+ return throwDefaultError({
1512
+ output,
1513
+ parsedBody,
1514
+ errorCode,
1515
+ });
1516
+ }
1517
+ };
1518
+ export const de_GetKxDatabaseCommand = async (output, context) => {
1519
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1520
+ return de_GetKxDatabaseCommandError(output, context);
1521
+ }
1522
+ const contents = map({
1523
+ $metadata: deserializeMetadata(output),
1524
+ });
1525
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1526
+ const doc = take(data, {
1527
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1528
+ databaseArn: __expectString,
1529
+ databaseName: __expectString,
1530
+ description: __expectString,
1531
+ environmentId: __expectString,
1532
+ lastCompletedChangesetId: __expectString,
1533
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1534
+ numBytes: __expectLong,
1535
+ numChangesets: __expectInt32,
1536
+ numFiles: __expectInt32,
1537
+ });
1538
+ Object.assign(contents, doc);
1539
+ return contents;
1540
+ };
1541
+ const de_GetKxDatabaseCommandError = async (output, context) => {
1542
+ const parsedOutput = {
1543
+ ...output,
1544
+ body: await parseErrorBody(output.body, context),
1545
+ };
1546
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1547
+ switch (errorCode) {
1548
+ case "AccessDeniedException":
1549
+ case "com.amazonaws.finspace#AccessDeniedException":
1550
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1551
+ case "InternalServerException":
1552
+ case "com.amazonaws.finspace#InternalServerException":
1553
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1554
+ case "ResourceNotFoundException":
1555
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1556
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1557
+ case "ThrottlingException":
1558
+ case "com.amazonaws.finspace#ThrottlingException":
1559
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1560
+ case "ValidationException":
1561
+ case "com.amazonaws.finspace#ValidationException":
1562
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1563
+ default:
1564
+ const parsedBody = parsedOutput.body;
1565
+ return throwDefaultError({
1566
+ output,
1567
+ parsedBody,
1568
+ errorCode,
1569
+ });
1570
+ }
1571
+ };
1572
+ export const de_GetKxEnvironmentCommand = async (output, context) => {
1573
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1574
+ return de_GetKxEnvironmentCommandError(output, context);
1575
+ }
1576
+ const contents = map({
1577
+ $metadata: deserializeMetadata(output),
1578
+ });
1579
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1580
+ const doc = take(data, {
1581
+ availabilityZoneIds: _json,
1582
+ awsAccountId: __expectString,
1583
+ certificateAuthorityArn: __expectString,
1584
+ creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1585
+ customDNSConfiguration: _json,
1586
+ dedicatedServiceAccountId: __expectString,
1587
+ description: __expectString,
1588
+ dnsStatus: __expectString,
1589
+ environmentArn: __expectString,
1590
+ environmentId: __expectString,
1591
+ errorMessage: __expectString,
1592
+ kmsKeyId: __expectString,
1593
+ name: __expectString,
1594
+ status: __expectString,
1595
+ tgwStatus: __expectString,
1596
+ transitGatewayConfiguration: _json,
1597
+ updateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1598
+ });
1599
+ Object.assign(contents, doc);
1600
+ return contents;
1601
+ };
1602
+ const de_GetKxEnvironmentCommandError = async (output, context) => {
1603
+ const parsedOutput = {
1604
+ ...output,
1605
+ body: await parseErrorBody(output.body, context),
1606
+ };
1607
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1608
+ switch (errorCode) {
1609
+ case "AccessDeniedException":
1610
+ case "com.amazonaws.finspace#AccessDeniedException":
1611
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1612
+ case "InternalServerException":
1613
+ case "com.amazonaws.finspace#InternalServerException":
1614
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1615
+ case "ResourceNotFoundException":
1616
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1617
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1618
+ case "ValidationException":
1619
+ case "com.amazonaws.finspace#ValidationException":
1620
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1621
+ default:
1622
+ const parsedBody = parsedOutput.body;
1623
+ return throwDefaultError({
1624
+ output,
1625
+ parsedBody,
1626
+ errorCode,
1627
+ });
1628
+ }
1629
+ };
1630
+ export const de_GetKxUserCommand = async (output, context) => {
1631
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1632
+ return de_GetKxUserCommandError(output, context);
1633
+ }
1634
+ const contents = map({
1635
+ $metadata: deserializeMetadata(output),
1636
+ });
1637
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1638
+ const doc = take(data, {
1639
+ environmentId: __expectString,
1640
+ iamRole: __expectString,
1641
+ userArn: __expectString,
1642
+ userName: __expectString,
1643
+ });
1644
+ Object.assign(contents, doc);
1645
+ return contents;
1646
+ };
1647
+ const de_GetKxUserCommandError = async (output, context) => {
1648
+ const parsedOutput = {
1649
+ ...output,
1650
+ body: await parseErrorBody(output.body, context),
1651
+ };
1652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
+ switch (errorCode) {
1654
+ case "AccessDeniedException":
1655
+ case "com.amazonaws.finspace#AccessDeniedException":
1656
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1657
+ case "InternalServerException":
1658
+ case "com.amazonaws.finspace#InternalServerException":
1659
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1660
+ case "ResourceNotFoundException":
1661
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1662
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1663
+ case "ThrottlingException":
1664
+ case "com.amazonaws.finspace#ThrottlingException":
1665
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1666
+ case "ValidationException":
1667
+ case "com.amazonaws.finspace#ValidationException":
1668
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1669
+ default:
1670
+ const parsedBody = parsedOutput.body;
1671
+ return throwDefaultError({
1672
+ output,
1673
+ parsedBody,
1674
+ errorCode,
1675
+ });
1676
+ }
1677
+ };
1678
+ export const de_ListEnvironmentsCommand = async (output, context) => {
169
1679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
170
- return de_CreateEnvironmentCommandError(output, context);
1680
+ return de_ListEnvironmentsCommandError(output, context);
171
1681
  }
172
1682
  const contents = map({
173
1683
  $metadata: deserializeMetadata(output),
174
1684
  });
175
1685
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
176
1686
  const doc = take(data, {
177
- environmentArn: __expectString,
178
- environmentId: __expectString,
179
- environmentUrl: __expectString,
1687
+ environments: _json,
1688
+ nextToken: __expectString,
1689
+ });
1690
+ Object.assign(contents, doc);
1691
+ return contents;
1692
+ };
1693
+ const de_ListEnvironmentsCommandError = async (output, context) => {
1694
+ const parsedOutput = {
1695
+ ...output,
1696
+ body: await parseErrorBody(output.body, context),
1697
+ };
1698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
+ switch (errorCode) {
1700
+ case "InternalServerException":
1701
+ case "com.amazonaws.finspace#InternalServerException":
1702
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1703
+ case "ValidationException":
1704
+ case "com.amazonaws.finspace#ValidationException":
1705
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1706
+ default:
1707
+ const parsedBody = parsedOutput.body;
1708
+ return throwDefaultError({
1709
+ output,
1710
+ parsedBody,
1711
+ errorCode,
1712
+ });
1713
+ }
1714
+ };
1715
+ export const de_ListKxChangesetsCommand = async (output, context) => {
1716
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1717
+ return de_ListKxChangesetsCommandError(output, context);
1718
+ }
1719
+ const contents = map({
1720
+ $metadata: deserializeMetadata(output),
1721
+ });
1722
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1723
+ const doc = take(data, {
1724
+ kxChangesets: (_) => de_KxChangesets(_, context),
1725
+ nextToken: __expectString,
1726
+ });
1727
+ Object.assign(contents, doc);
1728
+ return contents;
1729
+ };
1730
+ const de_ListKxChangesetsCommandError = async (output, context) => {
1731
+ const parsedOutput = {
1732
+ ...output,
1733
+ body: await parseErrorBody(output.body, context),
1734
+ };
1735
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1736
+ switch (errorCode) {
1737
+ case "AccessDeniedException":
1738
+ case "com.amazonaws.finspace#AccessDeniedException":
1739
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1740
+ case "InternalServerException":
1741
+ case "com.amazonaws.finspace#InternalServerException":
1742
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1743
+ case "ResourceNotFoundException":
1744
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1745
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1746
+ case "ThrottlingException":
1747
+ case "com.amazonaws.finspace#ThrottlingException":
1748
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1749
+ case "ValidationException":
1750
+ case "com.amazonaws.finspace#ValidationException":
1751
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1752
+ default:
1753
+ const parsedBody = parsedOutput.body;
1754
+ return throwDefaultError({
1755
+ output,
1756
+ parsedBody,
1757
+ errorCode,
1758
+ });
1759
+ }
1760
+ };
1761
+ export const de_ListKxClusterNodesCommand = async (output, context) => {
1762
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1763
+ return de_ListKxClusterNodesCommandError(output, context);
1764
+ }
1765
+ const contents = map({
1766
+ $metadata: deserializeMetadata(output),
1767
+ });
1768
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1769
+ const doc = take(data, {
1770
+ nextToken: __expectString,
1771
+ nodes: (_) => de_KxNodeSummaries(_, context),
1772
+ });
1773
+ Object.assign(contents, doc);
1774
+ return contents;
1775
+ };
1776
+ const de_ListKxClusterNodesCommandError = async (output, context) => {
1777
+ const parsedOutput = {
1778
+ ...output,
1779
+ body: await parseErrorBody(output.body, context),
1780
+ };
1781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1782
+ switch (errorCode) {
1783
+ case "AccessDeniedException":
1784
+ case "com.amazonaws.finspace#AccessDeniedException":
1785
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1786
+ case "InternalServerException":
1787
+ case "com.amazonaws.finspace#InternalServerException":
1788
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
+ case "LimitExceededException":
1790
+ case "com.amazonaws.finspace#LimitExceededException":
1791
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1792
+ case "ResourceNotFoundException":
1793
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1794
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1795
+ case "ThrottlingException":
1796
+ case "com.amazonaws.finspace#ThrottlingException":
1797
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1798
+ case "ValidationException":
1799
+ case "com.amazonaws.finspace#ValidationException":
1800
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1801
+ default:
1802
+ const parsedBody = parsedOutput.body;
1803
+ return throwDefaultError({
1804
+ output,
1805
+ parsedBody,
1806
+ errorCode,
1807
+ });
1808
+ }
1809
+ };
1810
+ export const de_ListKxClustersCommand = async (output, context) => {
1811
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1812
+ return de_ListKxClustersCommandError(output, context);
1813
+ }
1814
+ const contents = map({
1815
+ $metadata: deserializeMetadata(output),
1816
+ });
1817
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1818
+ const doc = take(data, {
1819
+ kxClusterSummaries: (_) => de_KxClusters(_, context),
1820
+ nextToken: __expectString,
1821
+ });
1822
+ Object.assign(contents, doc);
1823
+ return contents;
1824
+ };
1825
+ const de_ListKxClustersCommandError = async (output, context) => {
1826
+ const parsedOutput = {
1827
+ ...output,
1828
+ body: await parseErrorBody(output.body, context),
1829
+ };
1830
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1831
+ switch (errorCode) {
1832
+ case "AccessDeniedException":
1833
+ case "com.amazonaws.finspace#AccessDeniedException":
1834
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1835
+ case "ConflictException":
1836
+ case "com.amazonaws.finspace#ConflictException":
1837
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1838
+ case "InternalServerException":
1839
+ case "com.amazonaws.finspace#InternalServerException":
1840
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1841
+ case "LimitExceededException":
1842
+ case "com.amazonaws.finspace#LimitExceededException":
1843
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1844
+ case "ResourceNotFoundException":
1845
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1846
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1847
+ case "ThrottlingException":
1848
+ case "com.amazonaws.finspace#ThrottlingException":
1849
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1850
+ case "ValidationException":
1851
+ case "com.amazonaws.finspace#ValidationException":
1852
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1853
+ default:
1854
+ const parsedBody = parsedOutput.body;
1855
+ return throwDefaultError({
1856
+ output,
1857
+ parsedBody,
1858
+ errorCode,
1859
+ });
1860
+ }
1861
+ };
1862
+ export const de_ListKxDatabasesCommand = async (output, context) => {
1863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1864
+ return de_ListKxDatabasesCommandError(output, context);
1865
+ }
1866
+ const contents = map({
1867
+ $metadata: deserializeMetadata(output),
1868
+ });
1869
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1870
+ const doc = take(data, {
1871
+ kxDatabases: (_) => de_KxDatabases(_, context),
1872
+ nextToken: __expectString,
1873
+ });
1874
+ Object.assign(contents, doc);
1875
+ return contents;
1876
+ };
1877
+ const de_ListKxDatabasesCommandError = async (output, context) => {
1878
+ const parsedOutput = {
1879
+ ...output,
1880
+ body: await parseErrorBody(output.body, context),
1881
+ };
1882
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1883
+ switch (errorCode) {
1884
+ case "AccessDeniedException":
1885
+ case "com.amazonaws.finspace#AccessDeniedException":
1886
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1887
+ case "InternalServerException":
1888
+ case "com.amazonaws.finspace#InternalServerException":
1889
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1890
+ case "ResourceNotFoundException":
1891
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1892
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1893
+ case "ThrottlingException":
1894
+ case "com.amazonaws.finspace#ThrottlingException":
1895
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1896
+ case "ValidationException":
1897
+ case "com.amazonaws.finspace#ValidationException":
1898
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1899
+ default:
1900
+ const parsedBody = parsedOutput.body;
1901
+ return throwDefaultError({
1902
+ output,
1903
+ parsedBody,
1904
+ errorCode,
1905
+ });
1906
+ }
1907
+ };
1908
+ export const de_ListKxEnvironmentsCommand = async (output, context) => {
1909
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1910
+ return de_ListKxEnvironmentsCommandError(output, context);
1911
+ }
1912
+ const contents = map({
1913
+ $metadata: deserializeMetadata(output),
1914
+ });
1915
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1916
+ const doc = take(data, {
1917
+ environments: (_) => de_KxEnvironmentList(_, context),
1918
+ nextToken: __expectString,
1919
+ });
1920
+ Object.assign(contents, doc);
1921
+ return contents;
1922
+ };
1923
+ const de_ListKxEnvironmentsCommandError = async (output, context) => {
1924
+ const parsedOutput = {
1925
+ ...output,
1926
+ body: await parseErrorBody(output.body, context),
1927
+ };
1928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1929
+ switch (errorCode) {
1930
+ case "InternalServerException":
1931
+ case "com.amazonaws.finspace#InternalServerException":
1932
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1933
+ case "ValidationException":
1934
+ case "com.amazonaws.finspace#ValidationException":
1935
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1936
+ default:
1937
+ const parsedBody = parsedOutput.body;
1938
+ return throwDefaultError({
1939
+ output,
1940
+ parsedBody,
1941
+ errorCode,
1942
+ });
1943
+ }
1944
+ };
1945
+ export const de_ListKxUsersCommand = async (output, context) => {
1946
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1947
+ return de_ListKxUsersCommandError(output, context);
1948
+ }
1949
+ const contents = map({
1950
+ $metadata: deserializeMetadata(output),
1951
+ });
1952
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1953
+ const doc = take(data, {
1954
+ nextToken: __expectString,
1955
+ users: (_) => de_KxUserList(_, context),
180
1956
  });
181
1957
  Object.assign(contents, doc);
182
1958
  return contents;
183
1959
  };
184
- const de_CreateEnvironmentCommandError = async (output, context) => {
1960
+ const de_ListKxUsersCommandError = async (output, context) => {
185
1961
  const parsedOutput = {
186
1962
  ...output,
187
1963
  body: await parseErrorBody(output.body, context),
@@ -194,12 +1970,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
194
1970
  case "InternalServerException":
195
1971
  case "com.amazonaws.finspace#InternalServerException":
196
1972
  throw await de_InternalServerExceptionRes(parsedOutput, context);
197
- case "LimitExceededException":
198
- case "com.amazonaws.finspace#LimitExceededException":
199
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
200
- case "ServiceQuotaExceededException":
201
- case "com.amazonaws.finspace#ServiceQuotaExceededException":
202
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1973
+ case "ResourceNotFoundException":
1974
+ case "com.amazonaws.finspace#ResourceNotFoundException":
1975
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
203
1976
  case "ThrottlingException":
204
1977
  case "com.amazonaws.finspace#ThrottlingException":
205
1978
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -215,9 +1988,48 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
215
1988
  });
216
1989
  }
217
1990
  };
218
- export const de_DeleteEnvironmentCommand = async (output, context) => {
1991
+ export const de_ListTagsForResourceCommand = async (output, context) => {
219
1992
  if (output.statusCode !== 200 && output.statusCode >= 300) {
220
- return de_DeleteEnvironmentCommandError(output, context);
1993
+ return de_ListTagsForResourceCommandError(output, context);
1994
+ }
1995
+ const contents = map({
1996
+ $metadata: deserializeMetadata(output),
1997
+ });
1998
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1999
+ const doc = take(data, {
2000
+ tags: _json,
2001
+ });
2002
+ Object.assign(contents, doc);
2003
+ return contents;
2004
+ };
2005
+ const de_ListTagsForResourceCommandError = async (output, context) => {
2006
+ const parsedOutput = {
2007
+ ...output,
2008
+ body: await parseErrorBody(output.body, context),
2009
+ };
2010
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2011
+ switch (errorCode) {
2012
+ case "InternalServerException":
2013
+ case "com.amazonaws.finspace#InternalServerException":
2014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2015
+ case "InvalidRequestException":
2016
+ case "com.amazonaws.finspace#InvalidRequestException":
2017
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2018
+ case "ResourceNotFoundException":
2019
+ case "com.amazonaws.finspace#ResourceNotFoundException":
2020
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2021
+ default:
2022
+ const parsedBody = parsedOutput.body;
2023
+ return throwDefaultError({
2024
+ output,
2025
+ parsedBody,
2026
+ errorCode,
2027
+ });
2028
+ }
2029
+ };
2030
+ export const de_TagResourceCommand = async (output, context) => {
2031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2032
+ return de_TagResourceCommandError(output, context);
221
2033
  }
222
2034
  const contents = map({
223
2035
  $metadata: deserializeMetadata(output),
@@ -225,28 +2037,22 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
225
2037
  await collectBody(output.body, context);
226
2038
  return contents;
227
2039
  };
228
- const de_DeleteEnvironmentCommandError = async (output, context) => {
2040
+ const de_TagResourceCommandError = async (output, context) => {
229
2041
  const parsedOutput = {
230
2042
  ...output,
231
2043
  body: await parseErrorBody(output.body, context),
232
2044
  };
233
2045
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
234
2046
  switch (errorCode) {
235
- case "AccessDeniedException":
236
- case "com.amazonaws.finspace#AccessDeniedException":
237
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
238
2047
  case "InternalServerException":
239
2048
  case "com.amazonaws.finspace#InternalServerException":
240
2049
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2050
+ case "InvalidRequestException":
2051
+ case "com.amazonaws.finspace#InvalidRequestException":
2052
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
241
2053
  case "ResourceNotFoundException":
242
2054
  case "com.amazonaws.finspace#ResourceNotFoundException":
243
2055
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
244
- case "ThrottlingException":
245
- case "com.amazonaws.finspace#ThrottlingException":
246
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
247
- case "ValidationException":
248
- case "com.amazonaws.finspace#ValidationException":
249
- throw await de_ValidationExceptionRes(parsedOutput, context);
250
2056
  default:
251
2057
  const parsedBody = parsedOutput.body;
252
2058
  return throwDefaultError({
@@ -256,9 +2062,44 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
256
2062
  });
257
2063
  }
258
2064
  };
259
- export const de_GetEnvironmentCommand = async (output, context) => {
2065
+ export const de_UntagResourceCommand = async (output, context) => {
260
2066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
261
- return de_GetEnvironmentCommandError(output, context);
2067
+ return de_UntagResourceCommandError(output, context);
2068
+ }
2069
+ const contents = map({
2070
+ $metadata: deserializeMetadata(output),
2071
+ });
2072
+ await collectBody(output.body, context);
2073
+ return contents;
2074
+ };
2075
+ const de_UntagResourceCommandError = async (output, context) => {
2076
+ const parsedOutput = {
2077
+ ...output,
2078
+ body: await parseErrorBody(output.body, context),
2079
+ };
2080
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2081
+ switch (errorCode) {
2082
+ case "InternalServerException":
2083
+ case "com.amazonaws.finspace#InternalServerException":
2084
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2085
+ case "InvalidRequestException":
2086
+ case "com.amazonaws.finspace#InvalidRequestException":
2087
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2088
+ case "ResourceNotFoundException":
2089
+ case "com.amazonaws.finspace#ResourceNotFoundException":
2090
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2091
+ default:
2092
+ const parsedBody = parsedOutput.body;
2093
+ return throwDefaultError({
2094
+ output,
2095
+ parsedBody,
2096
+ errorCode,
2097
+ });
2098
+ }
2099
+ };
2100
+ export const de_UpdateEnvironmentCommand = async (output, context) => {
2101
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2102
+ return de_UpdateEnvironmentCommandError(output, context);
262
2103
  }
263
2104
  const contents = map({
264
2105
  $metadata: deserializeMetadata(output),
@@ -270,7 +2111,7 @@ export const de_GetEnvironmentCommand = async (output, context) => {
270
2111
  Object.assign(contents, doc);
271
2112
  return contents;
272
2113
  };
273
- const de_GetEnvironmentCommandError = async (output, context) => {
2114
+ const de_UpdateEnvironmentCommandError = async (output, context) => {
274
2115
  const parsedOutput = {
275
2116
  ...output,
276
2117
  body: await parseErrorBody(output.body, context),
@@ -286,6 +2127,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
286
2127
  case "ResourceNotFoundException":
287
2128
  case "com.amazonaws.finspace#ResourceNotFoundException":
288
2129
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2130
+ case "ThrottlingException":
2131
+ case "com.amazonaws.finspace#ThrottlingException":
2132
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
289
2133
  case "ValidationException":
290
2134
  case "com.amazonaws.finspace#ValidationException":
291
2135
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -298,31 +2142,38 @@ const de_GetEnvironmentCommandError = async (output, context) => {
298
2142
  });
299
2143
  }
300
2144
  };
301
- export const de_ListEnvironmentsCommand = async (output, context) => {
2145
+ export const de_UpdateKxClusterDatabasesCommand = async (output, context) => {
302
2146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
303
- return de_ListEnvironmentsCommandError(output, context);
2147
+ return de_UpdateKxClusterDatabasesCommandError(output, context);
304
2148
  }
305
2149
  const contents = map({
306
2150
  $metadata: deserializeMetadata(output),
307
2151
  });
308
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
309
- const doc = take(data, {
310
- environments: _json,
311
- nextToken: __expectString,
312
- });
313
- Object.assign(contents, doc);
2152
+ await collectBody(output.body, context);
314
2153
  return contents;
315
2154
  };
316
- const de_ListEnvironmentsCommandError = async (output, context) => {
2155
+ const de_UpdateKxClusterDatabasesCommandError = async (output, context) => {
317
2156
  const parsedOutput = {
318
2157
  ...output,
319
2158
  body: await parseErrorBody(output.body, context),
320
2159
  };
321
2160
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
322
2161
  switch (errorCode) {
2162
+ case "AccessDeniedException":
2163
+ case "com.amazonaws.finspace#AccessDeniedException":
2164
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
323
2165
  case "InternalServerException":
324
2166
  case "com.amazonaws.finspace#InternalServerException":
325
2167
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2168
+ case "LimitExceededException":
2169
+ case "com.amazonaws.finspace#LimitExceededException":
2170
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2171
+ case "ResourceNotFoundException":
2172
+ case "com.amazonaws.finspace#ResourceNotFoundException":
2173
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2174
+ case "ThrottlingException":
2175
+ case "com.amazonaws.finspace#ThrottlingException":
2176
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
326
2177
  case "ValidationException":
327
2178
  case "com.amazonaws.finspace#ValidationException":
328
2179
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -335,36 +2186,48 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
335
2186
  });
336
2187
  }
337
2188
  };
338
- export const de_ListTagsForResourceCommand = async (output, context) => {
2189
+ export const de_UpdateKxDatabaseCommand = async (output, context) => {
339
2190
  if (output.statusCode !== 200 && output.statusCode >= 300) {
340
- return de_ListTagsForResourceCommandError(output, context);
2191
+ return de_UpdateKxDatabaseCommandError(output, context);
341
2192
  }
342
2193
  const contents = map({
343
2194
  $metadata: deserializeMetadata(output),
344
2195
  });
345
2196
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
346
2197
  const doc = take(data, {
347
- tags: _json,
2198
+ databaseName: __expectString,
2199
+ description: __expectString,
2200
+ environmentId: __expectString,
2201
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
348
2202
  });
349
2203
  Object.assign(contents, doc);
350
2204
  return contents;
351
2205
  };
352
- const de_ListTagsForResourceCommandError = async (output, context) => {
2206
+ const de_UpdateKxDatabaseCommandError = async (output, context) => {
353
2207
  const parsedOutput = {
354
2208
  ...output,
355
2209
  body: await parseErrorBody(output.body, context),
356
2210
  };
357
2211
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
358
2212
  switch (errorCode) {
2213
+ case "AccessDeniedException":
2214
+ case "com.amazonaws.finspace#AccessDeniedException":
2215
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2216
+ case "ConflictException":
2217
+ case "com.amazonaws.finspace#ConflictException":
2218
+ throw await de_ConflictExceptionRes(parsedOutput, context);
359
2219
  case "InternalServerException":
360
2220
  case "com.amazonaws.finspace#InternalServerException":
361
2221
  throw await de_InternalServerExceptionRes(parsedOutput, context);
362
- case "InvalidRequestException":
363
- case "com.amazonaws.finspace#InvalidRequestException":
364
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
365
2222
  case "ResourceNotFoundException":
366
2223
  case "com.amazonaws.finspace#ResourceNotFoundException":
367
2224
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2225
+ case "ThrottlingException":
2226
+ case "com.amazonaws.finspace#ThrottlingException":
2227
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2228
+ case "ValidationException":
2229
+ case "com.amazonaws.finspace#ValidationException":
2230
+ throw await de_ValidationExceptionRes(parsedOutput, context);
368
2231
  default:
369
2232
  const parsedBody = parsedOutput.body;
370
2233
  return throwDefaultError({
@@ -374,32 +2237,60 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
374
2237
  });
375
2238
  }
376
2239
  };
377
- export const de_TagResourceCommand = async (output, context) => {
2240
+ export const de_UpdateKxEnvironmentCommand = async (output, context) => {
378
2241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
379
- return de_TagResourceCommandError(output, context);
2242
+ return de_UpdateKxEnvironmentCommandError(output, context);
380
2243
  }
381
2244
  const contents = map({
382
2245
  $metadata: deserializeMetadata(output),
383
2246
  });
384
- await collectBody(output.body, context);
2247
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2248
+ const doc = take(data, {
2249
+ availabilityZoneIds: _json,
2250
+ awsAccountId: __expectString,
2251
+ creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2252
+ customDNSConfiguration: _json,
2253
+ dedicatedServiceAccountId: __expectString,
2254
+ description: __expectString,
2255
+ dnsStatus: __expectString,
2256
+ environmentArn: __expectString,
2257
+ environmentId: __expectString,
2258
+ errorMessage: __expectString,
2259
+ kmsKeyId: __expectString,
2260
+ name: __expectString,
2261
+ status: __expectString,
2262
+ tgwStatus: __expectString,
2263
+ transitGatewayConfiguration: _json,
2264
+ updateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2265
+ });
2266
+ Object.assign(contents, doc);
385
2267
  return contents;
386
2268
  };
387
- const de_TagResourceCommandError = async (output, context) => {
2269
+ const de_UpdateKxEnvironmentCommandError = async (output, context) => {
388
2270
  const parsedOutput = {
389
2271
  ...output,
390
2272
  body: await parseErrorBody(output.body, context),
391
2273
  };
392
2274
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
393
2275
  switch (errorCode) {
2276
+ case "AccessDeniedException":
2277
+ case "com.amazonaws.finspace#AccessDeniedException":
2278
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2279
+ case "ConflictException":
2280
+ case "com.amazonaws.finspace#ConflictException":
2281
+ throw await de_ConflictExceptionRes(parsedOutput, context);
394
2282
  case "InternalServerException":
395
2283
  case "com.amazonaws.finspace#InternalServerException":
396
2284
  throw await de_InternalServerExceptionRes(parsedOutput, context);
397
- case "InvalidRequestException":
398
- case "com.amazonaws.finspace#InvalidRequestException":
399
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
400
2285
  case "ResourceNotFoundException":
401
2286
  case "com.amazonaws.finspace#ResourceNotFoundException":
402
2287
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2288
+ case "ThrottlingException":
2289
+ case "com.amazonaws.finspace#ThrottlingException":
2290
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2291
+ case "ValidationException":
2292
+ case "com.amazonaws.finspace#ValidationException":
2293
+ throw await de_ValidationExceptionRes(parsedOutput, context);
403
2294
  default:
404
2295
  const parsedBody = parsedOutput.body;
405
2296
  return throwDefaultError({
@@ -409,32 +2300,60 @@ const de_TagResourceCommandError = async (output, context) => {
409
2300
  });
410
2301
  }
411
2302
  };
412
- export const de_UntagResourceCommand = async (output, context) => {
2303
+ export const de_UpdateKxEnvironmentNetworkCommand = async (output, context) => {
413
2304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
414
- return de_UntagResourceCommandError(output, context);
2305
+ return de_UpdateKxEnvironmentNetworkCommandError(output, context);
415
2306
  }
416
2307
  const contents = map({
417
2308
  $metadata: deserializeMetadata(output),
418
2309
  });
419
- await collectBody(output.body, context);
2310
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2311
+ const doc = take(data, {
2312
+ availabilityZoneIds: _json,
2313
+ awsAccountId: __expectString,
2314
+ creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2315
+ customDNSConfiguration: _json,
2316
+ dedicatedServiceAccountId: __expectString,
2317
+ description: __expectString,
2318
+ dnsStatus: __expectString,
2319
+ environmentArn: __expectString,
2320
+ environmentId: __expectString,
2321
+ errorMessage: __expectString,
2322
+ kmsKeyId: __expectString,
2323
+ name: __expectString,
2324
+ status: __expectString,
2325
+ tgwStatus: __expectString,
2326
+ transitGatewayConfiguration: _json,
2327
+ updateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2328
+ });
2329
+ Object.assign(contents, doc);
420
2330
  return contents;
421
2331
  };
422
- const de_UntagResourceCommandError = async (output, context) => {
2332
+ const de_UpdateKxEnvironmentNetworkCommandError = async (output, context) => {
423
2333
  const parsedOutput = {
424
2334
  ...output,
425
2335
  body: await parseErrorBody(output.body, context),
426
2336
  };
427
2337
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
428
2338
  switch (errorCode) {
2339
+ case "AccessDeniedException":
2340
+ case "com.amazonaws.finspace#AccessDeniedException":
2341
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2342
+ case "ConflictException":
2343
+ case "com.amazonaws.finspace#ConflictException":
2344
+ throw await de_ConflictExceptionRes(parsedOutput, context);
429
2345
  case "InternalServerException":
430
2346
  case "com.amazonaws.finspace#InternalServerException":
431
2347
  throw await de_InternalServerExceptionRes(parsedOutput, context);
432
- case "InvalidRequestException":
433
- case "com.amazonaws.finspace#InvalidRequestException":
434
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
435
2348
  case "ResourceNotFoundException":
436
2349
  case "com.amazonaws.finspace#ResourceNotFoundException":
437
2350
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2351
+ case "ThrottlingException":
2352
+ case "com.amazonaws.finspace#ThrottlingException":
2353
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2354
+ case "ValidationException":
2355
+ case "com.amazonaws.finspace#ValidationException":
2356
+ throw await de_ValidationExceptionRes(parsedOutput, context);
438
2357
  default:
439
2358
  const parsedBody = parsedOutput.body;
440
2359
  return throwDefaultError({
@@ -444,21 +2363,24 @@ const de_UntagResourceCommandError = async (output, context) => {
444
2363
  });
445
2364
  }
446
2365
  };
447
- export const de_UpdateEnvironmentCommand = async (output, context) => {
2366
+ export const de_UpdateKxUserCommand = async (output, context) => {
448
2367
  if (output.statusCode !== 200 && output.statusCode >= 300) {
449
- return de_UpdateEnvironmentCommandError(output, context);
2368
+ return de_UpdateKxUserCommandError(output, context);
450
2369
  }
451
2370
  const contents = map({
452
2371
  $metadata: deserializeMetadata(output),
453
2372
  });
454
2373
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
455
2374
  const doc = take(data, {
456
- environment: _json,
2375
+ environmentId: __expectString,
2376
+ iamRole: __expectString,
2377
+ userArn: __expectString,
2378
+ userName: __expectString,
457
2379
  });
458
2380
  Object.assign(contents, doc);
459
2381
  return contents;
460
2382
  };
461
- const de_UpdateEnvironmentCommandError = async (output, context) => {
2383
+ const de_UpdateKxUserCommandError = async (output, context) => {
462
2384
  const parsedOutput = {
463
2385
  ...output,
464
2386
  body: await parseErrorBody(output.body, context),
@@ -468,9 +2390,15 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
468
2390
  case "AccessDeniedException":
469
2391
  case "com.amazonaws.finspace#AccessDeniedException":
470
2392
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2393
+ case "ConflictException":
2394
+ case "com.amazonaws.finspace#ConflictException":
2395
+ throw await de_ConflictExceptionRes(parsedOutput, context);
471
2396
  case "InternalServerException":
472
2397
  case "com.amazonaws.finspace#InternalServerException":
473
2398
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2399
+ case "LimitExceededException":
2400
+ case "com.amazonaws.finspace#LimitExceededException":
2401
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
474
2402
  case "ResourceNotFoundException":
475
2403
  case "com.amazonaws.finspace#ResourceNotFoundException":
476
2404
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -501,6 +2429,20 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
501
2429
  });
502
2430
  return __decorateServiceException(exception, parsedOutput.body);
503
2431
  };
2432
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2433
+ const contents = map({});
2434
+ const data = parsedOutput.body;
2435
+ const doc = take(data, {
2436
+ message: __expectString,
2437
+ reason: __expectString,
2438
+ });
2439
+ Object.assign(contents, doc);
2440
+ const exception = new ConflictException({
2441
+ $metadata: deserializeMetadata(parsedOutput),
2442
+ ...contents,
2443
+ });
2444
+ return __decorateServiceException(exception, parsedOutput.body);
2445
+ };
504
2446
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
505
2447
  const contents = map({});
506
2448
  const data = parsedOutput.body;
@@ -540,6 +2482,19 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
540
2482
  });
541
2483
  return __decorateServiceException(exception, parsedOutput.body);
542
2484
  };
2485
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2486
+ const contents = map({});
2487
+ const data = parsedOutput.body;
2488
+ const doc = take(data, {
2489
+ message: __expectString,
2490
+ });
2491
+ Object.assign(contents, doc);
2492
+ const exception = new ResourceAlreadyExistsException({
2493
+ $metadata: deserializeMetadata(parsedOutput),
2494
+ ...contents,
2495
+ });
2496
+ return __decorateServiceException(exception, parsedOutput.body);
2497
+ };
543
2498
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
544
2499
  const contents = map({});
545
2500
  const data = parsedOutput.body;
@@ -590,6 +2545,143 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
590
2545
  });
591
2546
  return __decorateServiceException(exception, parsedOutput.body);
592
2547
  };
2548
+ const se_AutoScalingConfiguration = (input, context) => {
2549
+ return take(input, {
2550
+ autoScalingMetric: [],
2551
+ maxNodeCount: [],
2552
+ metricTarget: __serializeFloat,
2553
+ minNodeCount: [],
2554
+ scaleInCooldownSeconds: __serializeFloat,
2555
+ scaleOutCooldownSeconds: __serializeFloat,
2556
+ });
2557
+ };
2558
+ const de_AutoScalingConfiguration = (output, context) => {
2559
+ return take(output, {
2560
+ autoScalingMetric: __expectString,
2561
+ maxNodeCount: __expectInt32,
2562
+ metricTarget: __limitedParseDouble,
2563
+ minNodeCount: __expectInt32,
2564
+ scaleInCooldownSeconds: __limitedParseDouble,
2565
+ scaleOutCooldownSeconds: __limitedParseDouble,
2566
+ });
2567
+ };
2568
+ const de_KxChangesetListEntry = (output, context) => {
2569
+ return take(output, {
2570
+ activeFromTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2571
+ changesetId: __expectString,
2572
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2573
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2574
+ status: __expectString,
2575
+ });
2576
+ };
2577
+ const de_KxChangesets = (output, context) => {
2578
+ const retVal = (output || [])
2579
+ .filter((e) => e != null)
2580
+ .map((entry) => {
2581
+ return de_KxChangesetListEntry(entry, context);
2582
+ });
2583
+ return retVal;
2584
+ };
2585
+ const de_KxCluster = (output, context) => {
2586
+ return take(output, {
2587
+ availabilityZoneId: __expectString,
2588
+ azMode: __expectString,
2589
+ clusterDescription: __expectString,
2590
+ clusterName: __expectString,
2591
+ clusterType: __expectString,
2592
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2593
+ executionRole: __expectString,
2594
+ initializationScript: __expectString,
2595
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2596
+ releaseLabel: __expectString,
2597
+ status: __expectString,
2598
+ statusReason: __expectString,
2599
+ });
2600
+ };
2601
+ const de_KxClusters = (output, context) => {
2602
+ const retVal = (output || [])
2603
+ .filter((e) => e != null)
2604
+ .map((entry) => {
2605
+ return de_KxCluster(entry, context);
2606
+ });
2607
+ return retVal;
2608
+ };
2609
+ const de_KxDatabaseListEntry = (output, context) => {
2610
+ return take(output, {
2611
+ createdTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2612
+ databaseName: __expectString,
2613
+ lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2614
+ });
2615
+ };
2616
+ const de_KxDatabases = (output, context) => {
2617
+ const retVal = (output || [])
2618
+ .filter((e) => e != null)
2619
+ .map((entry) => {
2620
+ return de_KxDatabaseListEntry(entry, context);
2621
+ });
2622
+ return retVal;
2623
+ };
2624
+ const de_KxEnvironment = (output, context) => {
2625
+ return take(output, {
2626
+ availabilityZoneIds: _json,
2627
+ awsAccountId: __expectString,
2628
+ certificateAuthorityArn: __expectString,
2629
+ creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2630
+ customDNSConfiguration: _json,
2631
+ dedicatedServiceAccountId: __expectString,
2632
+ description: __expectString,
2633
+ dnsStatus: __expectString,
2634
+ environmentArn: __expectString,
2635
+ environmentId: __expectString,
2636
+ errorMessage: __expectString,
2637
+ kmsKeyId: __expectString,
2638
+ name: __expectString,
2639
+ status: __expectString,
2640
+ tgwStatus: __expectString,
2641
+ transitGatewayConfiguration: _json,
2642
+ updateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2643
+ });
2644
+ };
2645
+ const de_KxEnvironmentList = (output, context) => {
2646
+ const retVal = (output || [])
2647
+ .filter((e) => e != null)
2648
+ .map((entry) => {
2649
+ return de_KxEnvironment(entry, context);
2650
+ });
2651
+ return retVal;
2652
+ };
2653
+ const de_KxNode = (output, context) => {
2654
+ return take(output, {
2655
+ availabilityZoneId: __expectString,
2656
+ launchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2657
+ nodeId: __expectString,
2658
+ });
2659
+ };
2660
+ const de_KxNodeSummaries = (output, context) => {
2661
+ const retVal = (output || [])
2662
+ .filter((e) => e != null)
2663
+ .map((entry) => {
2664
+ return de_KxNode(entry, context);
2665
+ });
2666
+ return retVal;
2667
+ };
2668
+ const de_KxUser = (output, context) => {
2669
+ return take(output, {
2670
+ createTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2671
+ iamRole: __expectString,
2672
+ updateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2673
+ userArn: __expectString,
2674
+ userName: __expectString,
2675
+ });
2676
+ };
2677
+ const de_KxUserList = (output, context) => {
2678
+ const retVal = (output || [])
2679
+ .filter((e) => e != null)
2680
+ .map((entry) => {
2681
+ return de_KxUser(entry, context);
2682
+ });
2683
+ return retVal;
2684
+ };
593
2685
  const deserializeMetadata = (output) => ({
594
2686
  httpStatusCode: output.statusCode,
595
2687
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],