@aws-sdk/client-redshift-serverless 3.927.0 → 3.928.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 (87) hide show
  1. package/dist-cjs/index.js +2135 -2484
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/RedshiftServerlessClient.js +2 -0
  4. package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +3 -9
  5. package/dist-es/commands/CreateCustomDomainAssociationCommand.js +3 -9
  6. package/dist-es/commands/CreateEndpointAccessCommand.js +3 -9
  7. package/dist-es/commands/CreateNamespaceCommand.js +3 -10
  8. package/dist-es/commands/CreateReservationCommand.js +3 -9
  9. package/dist-es/commands/CreateScheduledActionCommand.js +3 -9
  10. package/dist-es/commands/CreateSnapshotCommand.js +3 -9
  11. package/dist-es/commands/CreateSnapshotCopyConfigurationCommand.js +3 -9
  12. package/dist-es/commands/CreateUsageLimitCommand.js +3 -9
  13. package/dist-es/commands/CreateWorkgroupCommand.js +3 -9
  14. package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +3 -9
  15. package/dist-es/commands/DeleteEndpointAccessCommand.js +3 -9
  16. package/dist-es/commands/DeleteNamespaceCommand.js +3 -10
  17. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  18. package/dist-es/commands/DeleteScheduledActionCommand.js +3 -9
  19. package/dist-es/commands/DeleteSnapshotCommand.js +3 -9
  20. package/dist-es/commands/DeleteSnapshotCopyConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteUsageLimitCommand.js +3 -9
  22. package/dist-es/commands/DeleteWorkgroupCommand.js +3 -9
  23. package/dist-es/commands/GetCredentialsCommand.js +3 -10
  24. package/dist-es/commands/GetCustomDomainAssociationCommand.js +3 -9
  25. package/dist-es/commands/GetEndpointAccessCommand.js +3 -9
  26. package/dist-es/commands/GetNamespaceCommand.js +3 -10
  27. package/dist-es/commands/GetRecoveryPointCommand.js +3 -9
  28. package/dist-es/commands/GetReservationCommand.js +3 -9
  29. package/dist-es/commands/GetReservationOfferingCommand.js +3 -9
  30. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  31. package/dist-es/commands/GetScheduledActionCommand.js +3 -9
  32. package/dist-es/commands/GetSnapshotCommand.js +3 -9
  33. package/dist-es/commands/GetTableRestoreStatusCommand.js +3 -9
  34. package/dist-es/commands/GetTrackCommand.js +3 -9
  35. package/dist-es/commands/GetUsageLimitCommand.js +3 -9
  36. package/dist-es/commands/GetWorkgroupCommand.js +3 -9
  37. package/dist-es/commands/ListCustomDomainAssociationsCommand.js +3 -9
  38. package/dist-es/commands/ListEndpointAccessCommand.js +3 -9
  39. package/dist-es/commands/ListManagedWorkgroupsCommand.js +3 -9
  40. package/dist-es/commands/ListNamespacesCommand.js +3 -10
  41. package/dist-es/commands/ListRecoveryPointsCommand.js +3 -9
  42. package/dist-es/commands/ListReservationOfferingsCommand.js +3 -9
  43. package/dist-es/commands/ListReservationsCommand.js +3 -9
  44. package/dist-es/commands/ListScheduledActionsCommand.js +3 -9
  45. package/dist-es/commands/ListSnapshotCopyConfigurationsCommand.js +3 -9
  46. package/dist-es/commands/ListSnapshotsCommand.js +3 -9
  47. package/dist-es/commands/ListTableRestoreStatusCommand.js +3 -9
  48. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  49. package/dist-es/commands/ListTracksCommand.js +3 -9
  50. package/dist-es/commands/ListUsageLimitsCommand.js +3 -9
  51. package/dist-es/commands/ListWorkgroupsCommand.js +3 -9
  52. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  53. package/dist-es/commands/RestoreFromRecoveryPointCommand.js +3 -10
  54. package/dist-es/commands/RestoreFromSnapshotCommand.js +3 -10
  55. package/dist-es/commands/RestoreTableFromRecoveryPointCommand.js +3 -9
  56. package/dist-es/commands/RestoreTableFromSnapshotCommand.js +3 -9
  57. package/dist-es/commands/TagResourceCommand.js +3 -9
  58. package/dist-es/commands/UntagResourceCommand.js +3 -9
  59. package/dist-es/commands/UpdateCustomDomainAssociationCommand.js +3 -9
  60. package/dist-es/commands/UpdateEndpointAccessCommand.js +3 -9
  61. package/dist-es/commands/UpdateNamespaceCommand.js +3 -10
  62. package/dist-es/commands/UpdateScheduledActionCommand.js +3 -9
  63. package/dist-es/commands/UpdateSnapshotCommand.js +3 -9
  64. package/dist-es/commands/UpdateSnapshotCopyConfigurationCommand.js +3 -9
  65. package/dist-es/commands/UpdateUsageLimitCommand.js +3 -9
  66. package/dist-es/commands/UpdateWorkgroupCommand.js +3 -9
  67. package/dist-es/models/models_0.js +0 -48
  68. package/dist-es/runtimeConfig.shared.js +7 -0
  69. package/dist-es/schemas/schemas_0.js +1984 -0
  70. package/dist-types/RedshiftServerlessClient.d.ts +10 -1
  71. package/dist-types/models/models_0.d.ts +0 -44
  72. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  73. package/dist-types/runtimeConfig.d.ts +1 -0
  74. package/dist-types/runtimeConfig.native.d.ts +1 -0
  75. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  76. package/dist-types/schemas/schemas_0.d.ts +261 -0
  77. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +4 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  82. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  83. package/dist-types/ts3.4/schemas/schemas_0.d.ts +267 -0
  84. package/package.json +5 -6
  85. package/dist-es/protocols/Aws_json1_1.js +0 -1956
  86. package/dist-types/protocols/Aws_json1_1.d.ts +0 -569
  87. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -761
@@ -1,1956 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InsufficientCapacityException, InternalServerException, InvalidPaginationException, Ipv6CidrBlockNotFoundException, ResourceNotFoundException, Schedule, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
6
- import { RedshiftServerlessServiceException as __BaseException } from "../models/RedshiftServerlessServiceException";
7
- export const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
8
- const headers = sharedHeaders("ConvertRecoveryPointToSnapshot");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_CreateCustomDomainAssociationCommand = async (input, context) => {
14
- const headers = sharedHeaders("CreateCustomDomainAssociation");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_CreateEndpointAccessCommand = async (input, context) => {
20
- const headers = sharedHeaders("CreateEndpointAccess");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_CreateNamespaceCommand = async (input, context) => {
26
- const headers = sharedHeaders("CreateNamespace");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_CreateReservationCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateReservation");
33
- let body;
34
- body = JSON.stringify(se_CreateReservationRequest(input, context));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_CreateScheduledActionCommand = async (input, context) => {
38
- const headers = sharedHeaders("CreateScheduledAction");
39
- let body;
40
- body = JSON.stringify(se_CreateScheduledActionRequest(input, context));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_CreateSnapshotCommand = async (input, context) => {
44
- const headers = sharedHeaders("CreateSnapshot");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_CreateSnapshotCopyConfigurationCommand = async (input, context) => {
50
- const headers = sharedHeaders("CreateSnapshotCopyConfiguration");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_CreateUsageLimitCommand = async (input, context) => {
56
- const headers = sharedHeaders("CreateUsageLimit");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_CreateWorkgroupCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateWorkgroup");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
68
- const headers = sharedHeaders("DeleteCustomDomainAssociation");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_DeleteEndpointAccessCommand = async (input, context) => {
74
- const headers = sharedHeaders("DeleteEndpointAccess");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_DeleteNamespaceCommand = async (input, context) => {
80
- const headers = sharedHeaders("DeleteNamespace");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
86
- const headers = sharedHeaders("DeleteResourcePolicy");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_DeleteScheduledActionCommand = async (input, context) => {
92
- const headers = sharedHeaders("DeleteScheduledAction");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_DeleteSnapshotCommand = async (input, context) => {
98
- const headers = sharedHeaders("DeleteSnapshot");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_DeleteSnapshotCopyConfigurationCommand = async (input, context) => {
104
- const headers = sharedHeaders("DeleteSnapshotCopyConfiguration");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteUsageLimitCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteUsageLimit");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DeleteWorkgroupCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeleteWorkgroup");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_GetCredentialsCommand = async (input, context) => {
122
- const headers = sharedHeaders("GetCredentials");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_GetCustomDomainAssociationCommand = async (input, context) => {
128
- const headers = sharedHeaders("GetCustomDomainAssociation");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_GetEndpointAccessCommand = async (input, context) => {
134
- const headers = sharedHeaders("GetEndpointAccess");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_GetNamespaceCommand = async (input, context) => {
140
- const headers = sharedHeaders("GetNamespace");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_GetRecoveryPointCommand = async (input, context) => {
146
- const headers = sharedHeaders("GetRecoveryPoint");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_GetReservationCommand = async (input, context) => {
152
- const headers = sharedHeaders("GetReservation");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_GetReservationOfferingCommand = async (input, context) => {
158
- const headers = sharedHeaders("GetReservationOffering");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_GetResourcePolicyCommand = async (input, context) => {
164
- const headers = sharedHeaders("GetResourcePolicy");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_GetScheduledActionCommand = async (input, context) => {
170
- const headers = sharedHeaders("GetScheduledAction");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_GetSnapshotCommand = async (input, context) => {
176
- const headers = sharedHeaders("GetSnapshot");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_GetTableRestoreStatusCommand = async (input, context) => {
182
- const headers = sharedHeaders("GetTableRestoreStatus");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_GetTrackCommand = async (input, context) => {
188
- const headers = sharedHeaders("GetTrack");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_GetUsageLimitCommand = async (input, context) => {
194
- const headers = sharedHeaders("GetUsageLimit");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_GetWorkgroupCommand = async (input, context) => {
200
- const headers = sharedHeaders("GetWorkgroup");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_ListCustomDomainAssociationsCommand = async (input, context) => {
206
- const headers = sharedHeaders("ListCustomDomainAssociations");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_ListEndpointAccessCommand = async (input, context) => {
212
- const headers = sharedHeaders("ListEndpointAccess");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_ListManagedWorkgroupsCommand = async (input, context) => {
218
- const headers = sharedHeaders("ListManagedWorkgroups");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_ListNamespacesCommand = async (input, context) => {
224
- const headers = sharedHeaders("ListNamespaces");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_ListRecoveryPointsCommand = async (input, context) => {
230
- const headers = sharedHeaders("ListRecoveryPoints");
231
- let body;
232
- body = JSON.stringify(se_ListRecoveryPointsRequest(input, context));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_ListReservationOfferingsCommand = async (input, context) => {
236
- const headers = sharedHeaders("ListReservationOfferings");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_ListReservationsCommand = async (input, context) => {
242
- const headers = sharedHeaders("ListReservations");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_ListScheduledActionsCommand = async (input, context) => {
248
- const headers = sharedHeaders("ListScheduledActions");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_ListSnapshotCopyConfigurationsCommand = async (input, context) => {
254
- const headers = sharedHeaders("ListSnapshotCopyConfigurations");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_ListSnapshotsCommand = async (input, context) => {
260
- const headers = sharedHeaders("ListSnapshots");
261
- let body;
262
- body = JSON.stringify(se_ListSnapshotsRequest(input, context));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_ListTableRestoreStatusCommand = async (input, context) => {
266
- const headers = sharedHeaders("ListTableRestoreStatus");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_ListTagsForResourceCommand = async (input, context) => {
272
- const headers = sharedHeaders("ListTagsForResource");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_ListTracksCommand = async (input, context) => {
278
- const headers = sharedHeaders("ListTracks");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_ListUsageLimitsCommand = async (input, context) => {
284
- const headers = sharedHeaders("ListUsageLimits");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_ListWorkgroupsCommand = async (input, context) => {
290
- const headers = sharedHeaders("ListWorkgroups");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_PutResourcePolicyCommand = async (input, context) => {
296
- const headers = sharedHeaders("PutResourcePolicy");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_RestoreFromRecoveryPointCommand = async (input, context) => {
302
- const headers = sharedHeaders("RestoreFromRecoveryPoint");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_RestoreFromSnapshotCommand = async (input, context) => {
308
- const headers = sharedHeaders("RestoreFromSnapshot");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_RestoreTableFromRecoveryPointCommand = async (input, context) => {
314
- const headers = sharedHeaders("RestoreTableFromRecoveryPoint");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_RestoreTableFromSnapshotCommand = async (input, context) => {
320
- const headers = sharedHeaders("RestoreTableFromSnapshot");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_TagResourceCommand = async (input, context) => {
326
- const headers = sharedHeaders("TagResource");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_UntagResourceCommand = async (input, context) => {
332
- const headers = sharedHeaders("UntagResource");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_UpdateCustomDomainAssociationCommand = async (input, context) => {
338
- const headers = sharedHeaders("UpdateCustomDomainAssociation");
339
- let body;
340
- body = JSON.stringify(_json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_UpdateEndpointAccessCommand = async (input, context) => {
344
- const headers = sharedHeaders("UpdateEndpointAccess");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_UpdateNamespaceCommand = async (input, context) => {
350
- const headers = sharedHeaders("UpdateNamespace");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_UpdateScheduledActionCommand = async (input, context) => {
356
- const headers = sharedHeaders("UpdateScheduledAction");
357
- let body;
358
- body = JSON.stringify(se_UpdateScheduledActionRequest(input, context));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_UpdateSnapshotCommand = async (input, context) => {
362
- const headers = sharedHeaders("UpdateSnapshot");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_UpdateSnapshotCopyConfigurationCommand = async (input, context) => {
368
- const headers = sharedHeaders("UpdateSnapshotCopyConfiguration");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_UpdateUsageLimitCommand = async (input, context) => {
374
- const headers = sharedHeaders("UpdateUsageLimit");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_UpdateWorkgroupCommand = async (input, context) => {
380
- const headers = sharedHeaders("UpdateWorkgroup");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const de_ConvertRecoveryPointToSnapshotCommand = async (output, context) => {
386
- if (output.statusCode >= 300) {
387
- return de_CommandError(output, context);
388
- }
389
- const data = await parseBody(output.body, context);
390
- let contents = {};
391
- contents = de_ConvertRecoveryPointToSnapshotResponse(data, context);
392
- const response = {
393
- $metadata: deserializeMetadata(output),
394
- ...contents,
395
- };
396
- return response;
397
- };
398
- export const de_CreateCustomDomainAssociationCommand = async (output, context) => {
399
- if (output.statusCode >= 300) {
400
- return de_CommandError(output, context);
401
- }
402
- const data = await parseBody(output.body, context);
403
- let contents = {};
404
- contents = de_CreateCustomDomainAssociationResponse(data, context);
405
- const response = {
406
- $metadata: deserializeMetadata(output),
407
- ...contents,
408
- };
409
- return response;
410
- };
411
- export const de_CreateEndpointAccessCommand = async (output, context) => {
412
- if (output.statusCode >= 300) {
413
- return de_CommandError(output, context);
414
- }
415
- const data = await parseBody(output.body, context);
416
- let contents = {};
417
- contents = de_CreateEndpointAccessResponse(data, context);
418
- const response = {
419
- $metadata: deserializeMetadata(output),
420
- ...contents,
421
- };
422
- return response;
423
- };
424
- export const de_CreateNamespaceCommand = async (output, context) => {
425
- if (output.statusCode >= 300) {
426
- return de_CommandError(output, context);
427
- }
428
- const data = await parseBody(output.body, context);
429
- let contents = {};
430
- contents = de_CreateNamespaceResponse(data, context);
431
- const response = {
432
- $metadata: deserializeMetadata(output),
433
- ...contents,
434
- };
435
- return response;
436
- };
437
- export const de_CreateReservationCommand = async (output, context) => {
438
- if (output.statusCode >= 300) {
439
- return de_CommandError(output, context);
440
- }
441
- const data = await parseBody(output.body, context);
442
- let contents = {};
443
- contents = de_CreateReservationResponse(data, context);
444
- const response = {
445
- $metadata: deserializeMetadata(output),
446
- ...contents,
447
- };
448
- return response;
449
- };
450
- export const de_CreateScheduledActionCommand = async (output, context) => {
451
- if (output.statusCode >= 300) {
452
- return de_CommandError(output, context);
453
- }
454
- const data = await parseBody(output.body, context);
455
- let contents = {};
456
- contents = de_CreateScheduledActionResponse(data, context);
457
- const response = {
458
- $metadata: deserializeMetadata(output),
459
- ...contents,
460
- };
461
- return response;
462
- };
463
- export const de_CreateSnapshotCommand = async (output, context) => {
464
- if (output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const data = await parseBody(output.body, context);
468
- let contents = {};
469
- contents = de_CreateSnapshotResponse(data, context);
470
- const response = {
471
- $metadata: deserializeMetadata(output),
472
- ...contents,
473
- };
474
- return response;
475
- };
476
- export const de_CreateSnapshotCopyConfigurationCommand = async (output, context) => {
477
- if (output.statusCode >= 300) {
478
- return de_CommandError(output, context);
479
- }
480
- const data = await parseBody(output.body, context);
481
- let contents = {};
482
- contents = _json(data);
483
- const response = {
484
- $metadata: deserializeMetadata(output),
485
- ...contents,
486
- };
487
- return response;
488
- };
489
- export const de_CreateUsageLimitCommand = async (output, context) => {
490
- if (output.statusCode >= 300) {
491
- return de_CommandError(output, context);
492
- }
493
- const data = await parseBody(output.body, context);
494
- let contents = {};
495
- contents = _json(data);
496
- const response = {
497
- $metadata: deserializeMetadata(output),
498
- ...contents,
499
- };
500
- return response;
501
- };
502
- export const de_CreateWorkgroupCommand = async (output, context) => {
503
- if (output.statusCode >= 300) {
504
- return de_CommandError(output, context);
505
- }
506
- const data = await parseBody(output.body, context);
507
- let contents = {};
508
- contents = de_CreateWorkgroupResponse(data, context);
509
- const response = {
510
- $metadata: deserializeMetadata(output),
511
- ...contents,
512
- };
513
- return response;
514
- };
515
- export const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
516
- if (output.statusCode >= 300) {
517
- return de_CommandError(output, context);
518
- }
519
- const data = await parseBody(output.body, context);
520
- let contents = {};
521
- contents = _json(data);
522
- const response = {
523
- $metadata: deserializeMetadata(output),
524
- ...contents,
525
- };
526
- return response;
527
- };
528
- export const de_DeleteEndpointAccessCommand = async (output, context) => {
529
- if (output.statusCode >= 300) {
530
- return de_CommandError(output, context);
531
- }
532
- const data = await parseBody(output.body, context);
533
- let contents = {};
534
- contents = de_DeleteEndpointAccessResponse(data, context);
535
- const response = {
536
- $metadata: deserializeMetadata(output),
537
- ...contents,
538
- };
539
- return response;
540
- };
541
- export const de_DeleteNamespaceCommand = async (output, context) => {
542
- if (output.statusCode >= 300) {
543
- return de_CommandError(output, context);
544
- }
545
- const data = await parseBody(output.body, context);
546
- let contents = {};
547
- contents = de_DeleteNamespaceResponse(data, context);
548
- const response = {
549
- $metadata: deserializeMetadata(output),
550
- ...contents,
551
- };
552
- return response;
553
- };
554
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
555
- if (output.statusCode >= 300) {
556
- return de_CommandError(output, context);
557
- }
558
- const data = await parseBody(output.body, context);
559
- let contents = {};
560
- contents = _json(data);
561
- const response = {
562
- $metadata: deserializeMetadata(output),
563
- ...contents,
564
- };
565
- return response;
566
- };
567
- export const de_DeleteScheduledActionCommand = async (output, context) => {
568
- if (output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const data = await parseBody(output.body, context);
572
- let contents = {};
573
- contents = de_DeleteScheduledActionResponse(data, context);
574
- const response = {
575
- $metadata: deserializeMetadata(output),
576
- ...contents,
577
- };
578
- return response;
579
- };
580
- export const de_DeleteSnapshotCommand = async (output, context) => {
581
- if (output.statusCode >= 300) {
582
- return de_CommandError(output, context);
583
- }
584
- const data = await parseBody(output.body, context);
585
- let contents = {};
586
- contents = de_DeleteSnapshotResponse(data, context);
587
- const response = {
588
- $metadata: deserializeMetadata(output),
589
- ...contents,
590
- };
591
- return response;
592
- };
593
- export const de_DeleteSnapshotCopyConfigurationCommand = async (output, context) => {
594
- if (output.statusCode >= 300) {
595
- return de_CommandError(output, context);
596
- }
597
- const data = await parseBody(output.body, context);
598
- let contents = {};
599
- contents = _json(data);
600
- const response = {
601
- $metadata: deserializeMetadata(output),
602
- ...contents,
603
- };
604
- return response;
605
- };
606
- export const de_DeleteUsageLimitCommand = async (output, context) => {
607
- if (output.statusCode >= 300) {
608
- return de_CommandError(output, context);
609
- }
610
- const data = await parseBody(output.body, context);
611
- let contents = {};
612
- contents = _json(data);
613
- const response = {
614
- $metadata: deserializeMetadata(output),
615
- ...contents,
616
- };
617
- return response;
618
- };
619
- export const de_DeleteWorkgroupCommand = async (output, context) => {
620
- if (output.statusCode >= 300) {
621
- return de_CommandError(output, context);
622
- }
623
- const data = await parseBody(output.body, context);
624
- let contents = {};
625
- contents = de_DeleteWorkgroupResponse(data, context);
626
- const response = {
627
- $metadata: deserializeMetadata(output),
628
- ...contents,
629
- };
630
- return response;
631
- };
632
- export const de_GetCredentialsCommand = async (output, context) => {
633
- if (output.statusCode >= 300) {
634
- return de_CommandError(output, context);
635
- }
636
- const data = await parseBody(output.body, context);
637
- let contents = {};
638
- contents = de_GetCredentialsResponse(data, context);
639
- const response = {
640
- $metadata: deserializeMetadata(output),
641
- ...contents,
642
- };
643
- return response;
644
- };
645
- export const de_GetCustomDomainAssociationCommand = async (output, context) => {
646
- if (output.statusCode >= 300) {
647
- return de_CommandError(output, context);
648
- }
649
- const data = await parseBody(output.body, context);
650
- let contents = {};
651
- contents = de_GetCustomDomainAssociationResponse(data, context);
652
- const response = {
653
- $metadata: deserializeMetadata(output),
654
- ...contents,
655
- };
656
- return response;
657
- };
658
- export const de_GetEndpointAccessCommand = async (output, context) => {
659
- if (output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const data = await parseBody(output.body, context);
663
- let contents = {};
664
- contents = de_GetEndpointAccessResponse(data, context);
665
- const response = {
666
- $metadata: deserializeMetadata(output),
667
- ...contents,
668
- };
669
- return response;
670
- };
671
- export const de_GetNamespaceCommand = async (output, context) => {
672
- if (output.statusCode >= 300) {
673
- return de_CommandError(output, context);
674
- }
675
- const data = await parseBody(output.body, context);
676
- let contents = {};
677
- contents = de_GetNamespaceResponse(data, context);
678
- const response = {
679
- $metadata: deserializeMetadata(output),
680
- ...contents,
681
- };
682
- return response;
683
- };
684
- export const de_GetRecoveryPointCommand = async (output, context) => {
685
- if (output.statusCode >= 300) {
686
- return de_CommandError(output, context);
687
- }
688
- const data = await parseBody(output.body, context);
689
- let contents = {};
690
- contents = de_GetRecoveryPointResponse(data, context);
691
- const response = {
692
- $metadata: deserializeMetadata(output),
693
- ...contents,
694
- };
695
- return response;
696
- };
697
- export const de_GetReservationCommand = async (output, context) => {
698
- if (output.statusCode >= 300) {
699
- return de_CommandError(output, context);
700
- }
701
- const data = await parseBody(output.body, context);
702
- let contents = {};
703
- contents = de_GetReservationResponse(data, context);
704
- const response = {
705
- $metadata: deserializeMetadata(output),
706
- ...contents,
707
- };
708
- return response;
709
- };
710
- export const de_GetReservationOfferingCommand = async (output, context) => {
711
- if (output.statusCode >= 300) {
712
- return de_CommandError(output, context);
713
- }
714
- const data = await parseBody(output.body, context);
715
- let contents = {};
716
- contents = de_GetReservationOfferingResponse(data, context);
717
- const response = {
718
- $metadata: deserializeMetadata(output),
719
- ...contents,
720
- };
721
- return response;
722
- };
723
- export const de_GetResourcePolicyCommand = async (output, context) => {
724
- if (output.statusCode >= 300) {
725
- return de_CommandError(output, context);
726
- }
727
- const data = await parseBody(output.body, context);
728
- let contents = {};
729
- contents = _json(data);
730
- const response = {
731
- $metadata: deserializeMetadata(output),
732
- ...contents,
733
- };
734
- return response;
735
- };
736
- export const de_GetScheduledActionCommand = async (output, context) => {
737
- if (output.statusCode >= 300) {
738
- return de_CommandError(output, context);
739
- }
740
- const data = await parseBody(output.body, context);
741
- let contents = {};
742
- contents = de_GetScheduledActionResponse(data, context);
743
- const response = {
744
- $metadata: deserializeMetadata(output),
745
- ...contents,
746
- };
747
- return response;
748
- };
749
- export const de_GetSnapshotCommand = async (output, context) => {
750
- if (output.statusCode >= 300) {
751
- return de_CommandError(output, context);
752
- }
753
- const data = await parseBody(output.body, context);
754
- let contents = {};
755
- contents = de_GetSnapshotResponse(data, context);
756
- const response = {
757
- $metadata: deserializeMetadata(output),
758
- ...contents,
759
- };
760
- return response;
761
- };
762
- export const de_GetTableRestoreStatusCommand = async (output, context) => {
763
- if (output.statusCode >= 300) {
764
- return de_CommandError(output, context);
765
- }
766
- const data = await parseBody(output.body, context);
767
- let contents = {};
768
- contents = de_GetTableRestoreStatusResponse(data, context);
769
- const response = {
770
- $metadata: deserializeMetadata(output),
771
- ...contents,
772
- };
773
- return response;
774
- };
775
- export const de_GetTrackCommand = async (output, context) => {
776
- if (output.statusCode >= 300) {
777
- return de_CommandError(output, context);
778
- }
779
- const data = await parseBody(output.body, context);
780
- let contents = {};
781
- contents = _json(data);
782
- const response = {
783
- $metadata: deserializeMetadata(output),
784
- ...contents,
785
- };
786
- return response;
787
- };
788
- export const de_GetUsageLimitCommand = async (output, context) => {
789
- if (output.statusCode >= 300) {
790
- return de_CommandError(output, context);
791
- }
792
- const data = await parseBody(output.body, context);
793
- let contents = {};
794
- contents = _json(data);
795
- const response = {
796
- $metadata: deserializeMetadata(output),
797
- ...contents,
798
- };
799
- return response;
800
- };
801
- export const de_GetWorkgroupCommand = async (output, context) => {
802
- if (output.statusCode >= 300) {
803
- return de_CommandError(output, context);
804
- }
805
- const data = await parseBody(output.body, context);
806
- let contents = {};
807
- contents = de_GetWorkgroupResponse(data, context);
808
- const response = {
809
- $metadata: deserializeMetadata(output),
810
- ...contents,
811
- };
812
- return response;
813
- };
814
- export const de_ListCustomDomainAssociationsCommand = async (output, context) => {
815
- if (output.statusCode >= 300) {
816
- return de_CommandError(output, context);
817
- }
818
- const data = await parseBody(output.body, context);
819
- let contents = {};
820
- contents = de_ListCustomDomainAssociationsResponse(data, context);
821
- const response = {
822
- $metadata: deserializeMetadata(output),
823
- ...contents,
824
- };
825
- return response;
826
- };
827
- export const de_ListEndpointAccessCommand = async (output, context) => {
828
- if (output.statusCode >= 300) {
829
- return de_CommandError(output, context);
830
- }
831
- const data = await parseBody(output.body, context);
832
- let contents = {};
833
- contents = de_ListEndpointAccessResponse(data, context);
834
- const response = {
835
- $metadata: deserializeMetadata(output),
836
- ...contents,
837
- };
838
- return response;
839
- };
840
- export const de_ListManagedWorkgroupsCommand = async (output, context) => {
841
- if (output.statusCode >= 300) {
842
- return de_CommandError(output, context);
843
- }
844
- const data = await parseBody(output.body, context);
845
- let contents = {};
846
- contents = de_ListManagedWorkgroupsResponse(data, context);
847
- const response = {
848
- $metadata: deserializeMetadata(output),
849
- ...contents,
850
- };
851
- return response;
852
- };
853
- export const de_ListNamespacesCommand = async (output, context) => {
854
- if (output.statusCode >= 300) {
855
- return de_CommandError(output, context);
856
- }
857
- const data = await parseBody(output.body, context);
858
- let contents = {};
859
- contents = de_ListNamespacesResponse(data, context);
860
- const response = {
861
- $metadata: deserializeMetadata(output),
862
- ...contents,
863
- };
864
- return response;
865
- };
866
- export const de_ListRecoveryPointsCommand = async (output, context) => {
867
- if (output.statusCode >= 300) {
868
- return de_CommandError(output, context);
869
- }
870
- const data = await parseBody(output.body, context);
871
- let contents = {};
872
- contents = de_ListRecoveryPointsResponse(data, context);
873
- const response = {
874
- $metadata: deserializeMetadata(output),
875
- ...contents,
876
- };
877
- return response;
878
- };
879
- export const de_ListReservationOfferingsCommand = async (output, context) => {
880
- if (output.statusCode >= 300) {
881
- return de_CommandError(output, context);
882
- }
883
- const data = await parseBody(output.body, context);
884
- let contents = {};
885
- contents = de_ListReservationOfferingsResponse(data, context);
886
- const response = {
887
- $metadata: deserializeMetadata(output),
888
- ...contents,
889
- };
890
- return response;
891
- };
892
- export const de_ListReservationsCommand = async (output, context) => {
893
- if (output.statusCode >= 300) {
894
- return de_CommandError(output, context);
895
- }
896
- const data = await parseBody(output.body, context);
897
- let contents = {};
898
- contents = de_ListReservationsResponse(data, context);
899
- const response = {
900
- $metadata: deserializeMetadata(output),
901
- ...contents,
902
- };
903
- return response;
904
- };
905
- export const de_ListScheduledActionsCommand = async (output, context) => {
906
- if (output.statusCode >= 300) {
907
- return de_CommandError(output, context);
908
- }
909
- const data = await parseBody(output.body, context);
910
- let contents = {};
911
- contents = _json(data);
912
- const response = {
913
- $metadata: deserializeMetadata(output),
914
- ...contents,
915
- };
916
- return response;
917
- };
918
- export const de_ListSnapshotCopyConfigurationsCommand = async (output, context) => {
919
- if (output.statusCode >= 300) {
920
- return de_CommandError(output, context);
921
- }
922
- const data = await parseBody(output.body, context);
923
- let contents = {};
924
- contents = _json(data);
925
- const response = {
926
- $metadata: deserializeMetadata(output),
927
- ...contents,
928
- };
929
- return response;
930
- };
931
- export const de_ListSnapshotsCommand = async (output, context) => {
932
- if (output.statusCode >= 300) {
933
- return de_CommandError(output, context);
934
- }
935
- const data = await parseBody(output.body, context);
936
- let contents = {};
937
- contents = de_ListSnapshotsResponse(data, context);
938
- const response = {
939
- $metadata: deserializeMetadata(output),
940
- ...contents,
941
- };
942
- return response;
943
- };
944
- export const de_ListTableRestoreStatusCommand = async (output, context) => {
945
- if (output.statusCode >= 300) {
946
- return de_CommandError(output, context);
947
- }
948
- const data = await parseBody(output.body, context);
949
- let contents = {};
950
- contents = de_ListTableRestoreStatusResponse(data, context);
951
- const response = {
952
- $metadata: deserializeMetadata(output),
953
- ...contents,
954
- };
955
- return response;
956
- };
957
- export const de_ListTagsForResourceCommand = async (output, context) => {
958
- if (output.statusCode >= 300) {
959
- return de_CommandError(output, context);
960
- }
961
- const data = await parseBody(output.body, context);
962
- let contents = {};
963
- contents = _json(data);
964
- const response = {
965
- $metadata: deserializeMetadata(output),
966
- ...contents,
967
- };
968
- return response;
969
- };
970
- export const de_ListTracksCommand = async (output, context) => {
971
- if (output.statusCode >= 300) {
972
- return de_CommandError(output, context);
973
- }
974
- const data = await parseBody(output.body, context);
975
- let contents = {};
976
- contents = _json(data);
977
- const response = {
978
- $metadata: deserializeMetadata(output),
979
- ...contents,
980
- };
981
- return response;
982
- };
983
- export const de_ListUsageLimitsCommand = async (output, context) => {
984
- if (output.statusCode >= 300) {
985
- return de_CommandError(output, context);
986
- }
987
- const data = await parseBody(output.body, context);
988
- let contents = {};
989
- contents = _json(data);
990
- const response = {
991
- $metadata: deserializeMetadata(output),
992
- ...contents,
993
- };
994
- return response;
995
- };
996
- export const de_ListWorkgroupsCommand = async (output, context) => {
997
- if (output.statusCode >= 300) {
998
- return de_CommandError(output, context);
999
- }
1000
- const data = await parseBody(output.body, context);
1001
- let contents = {};
1002
- contents = de_ListWorkgroupsResponse(data, context);
1003
- const response = {
1004
- $metadata: deserializeMetadata(output),
1005
- ...contents,
1006
- };
1007
- return response;
1008
- };
1009
- export const de_PutResourcePolicyCommand = async (output, context) => {
1010
- if (output.statusCode >= 300) {
1011
- return de_CommandError(output, context);
1012
- }
1013
- const data = await parseBody(output.body, context);
1014
- let contents = {};
1015
- contents = _json(data);
1016
- const response = {
1017
- $metadata: deserializeMetadata(output),
1018
- ...contents,
1019
- };
1020
- return response;
1021
- };
1022
- export const de_RestoreFromRecoveryPointCommand = async (output, context) => {
1023
- if (output.statusCode >= 300) {
1024
- return de_CommandError(output, context);
1025
- }
1026
- const data = await parseBody(output.body, context);
1027
- let contents = {};
1028
- contents = de_RestoreFromRecoveryPointResponse(data, context);
1029
- const response = {
1030
- $metadata: deserializeMetadata(output),
1031
- ...contents,
1032
- };
1033
- return response;
1034
- };
1035
- export const de_RestoreFromSnapshotCommand = async (output, context) => {
1036
- if (output.statusCode >= 300) {
1037
- return de_CommandError(output, context);
1038
- }
1039
- const data = await parseBody(output.body, context);
1040
- let contents = {};
1041
- contents = de_RestoreFromSnapshotResponse(data, context);
1042
- const response = {
1043
- $metadata: deserializeMetadata(output),
1044
- ...contents,
1045
- };
1046
- return response;
1047
- };
1048
- export const de_RestoreTableFromRecoveryPointCommand = async (output, context) => {
1049
- if (output.statusCode >= 300) {
1050
- return de_CommandError(output, context);
1051
- }
1052
- const data = await parseBody(output.body, context);
1053
- let contents = {};
1054
- contents = de_RestoreTableFromRecoveryPointResponse(data, context);
1055
- const response = {
1056
- $metadata: deserializeMetadata(output),
1057
- ...contents,
1058
- };
1059
- return response;
1060
- };
1061
- export const de_RestoreTableFromSnapshotCommand = async (output, context) => {
1062
- if (output.statusCode >= 300) {
1063
- return de_CommandError(output, context);
1064
- }
1065
- const data = await parseBody(output.body, context);
1066
- let contents = {};
1067
- contents = de_RestoreTableFromSnapshotResponse(data, context);
1068
- const response = {
1069
- $metadata: deserializeMetadata(output),
1070
- ...contents,
1071
- };
1072
- return response;
1073
- };
1074
- export const de_TagResourceCommand = async (output, context) => {
1075
- if (output.statusCode >= 300) {
1076
- return de_CommandError(output, context);
1077
- }
1078
- const data = await parseBody(output.body, context);
1079
- let contents = {};
1080
- contents = _json(data);
1081
- const response = {
1082
- $metadata: deserializeMetadata(output),
1083
- ...contents,
1084
- };
1085
- return response;
1086
- };
1087
- export const de_UntagResourceCommand = async (output, context) => {
1088
- if (output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- const data = await parseBody(output.body, context);
1092
- let contents = {};
1093
- contents = _json(data);
1094
- const response = {
1095
- $metadata: deserializeMetadata(output),
1096
- ...contents,
1097
- };
1098
- return response;
1099
- };
1100
- export const de_UpdateCustomDomainAssociationCommand = async (output, context) => {
1101
- if (output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- const data = await parseBody(output.body, context);
1105
- let contents = {};
1106
- contents = de_UpdateCustomDomainAssociationResponse(data, context);
1107
- const response = {
1108
- $metadata: deserializeMetadata(output),
1109
- ...contents,
1110
- };
1111
- return response;
1112
- };
1113
- export const de_UpdateEndpointAccessCommand = async (output, context) => {
1114
- if (output.statusCode >= 300) {
1115
- return de_CommandError(output, context);
1116
- }
1117
- const data = await parseBody(output.body, context);
1118
- let contents = {};
1119
- contents = de_UpdateEndpointAccessResponse(data, context);
1120
- const response = {
1121
- $metadata: deserializeMetadata(output),
1122
- ...contents,
1123
- };
1124
- return response;
1125
- };
1126
- export const de_UpdateNamespaceCommand = async (output, context) => {
1127
- if (output.statusCode >= 300) {
1128
- return de_CommandError(output, context);
1129
- }
1130
- const data = await parseBody(output.body, context);
1131
- let contents = {};
1132
- contents = de_UpdateNamespaceResponse(data, context);
1133
- const response = {
1134
- $metadata: deserializeMetadata(output),
1135
- ...contents,
1136
- };
1137
- return response;
1138
- };
1139
- export const de_UpdateScheduledActionCommand = async (output, context) => {
1140
- if (output.statusCode >= 300) {
1141
- return de_CommandError(output, context);
1142
- }
1143
- const data = await parseBody(output.body, context);
1144
- let contents = {};
1145
- contents = de_UpdateScheduledActionResponse(data, context);
1146
- const response = {
1147
- $metadata: deserializeMetadata(output),
1148
- ...contents,
1149
- };
1150
- return response;
1151
- };
1152
- export const de_UpdateSnapshotCommand = async (output, context) => {
1153
- if (output.statusCode >= 300) {
1154
- return de_CommandError(output, context);
1155
- }
1156
- const data = await parseBody(output.body, context);
1157
- let contents = {};
1158
- contents = de_UpdateSnapshotResponse(data, context);
1159
- const response = {
1160
- $metadata: deserializeMetadata(output),
1161
- ...contents,
1162
- };
1163
- return response;
1164
- };
1165
- export const de_UpdateSnapshotCopyConfigurationCommand = async (output, context) => {
1166
- if (output.statusCode >= 300) {
1167
- return de_CommandError(output, context);
1168
- }
1169
- const data = await parseBody(output.body, context);
1170
- let contents = {};
1171
- contents = _json(data);
1172
- const response = {
1173
- $metadata: deserializeMetadata(output),
1174
- ...contents,
1175
- };
1176
- return response;
1177
- };
1178
- export const de_UpdateUsageLimitCommand = async (output, context) => {
1179
- if (output.statusCode >= 300) {
1180
- return de_CommandError(output, context);
1181
- }
1182
- const data = await parseBody(output.body, context);
1183
- let contents = {};
1184
- contents = _json(data);
1185
- const response = {
1186
- $metadata: deserializeMetadata(output),
1187
- ...contents,
1188
- };
1189
- return response;
1190
- };
1191
- export const de_UpdateWorkgroupCommand = async (output, context) => {
1192
- if (output.statusCode >= 300) {
1193
- return de_CommandError(output, context);
1194
- }
1195
- const data = await parseBody(output.body, context);
1196
- let contents = {};
1197
- contents = de_UpdateWorkgroupResponse(data, context);
1198
- const response = {
1199
- $metadata: deserializeMetadata(output),
1200
- ...contents,
1201
- };
1202
- return response;
1203
- };
1204
- const de_CommandError = async (output, context) => {
1205
- const parsedOutput = {
1206
- ...output,
1207
- body: await parseErrorBody(output.body, context),
1208
- };
1209
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1210
- switch (errorCode) {
1211
- case "ConflictException":
1212
- case "com.amazonaws.redshiftserverless#ConflictException":
1213
- throw await de_ConflictExceptionRes(parsedOutput, context);
1214
- case "InternalServerException":
1215
- case "com.amazonaws.redshiftserverless#InternalServerException":
1216
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1217
- case "ResourceNotFoundException":
1218
- case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
1219
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1220
- case "ServiceQuotaExceededException":
1221
- case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
1222
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1223
- case "TooManyTagsException":
1224
- case "com.amazonaws.redshiftserverless#TooManyTagsException":
1225
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1226
- case "ValidationException":
1227
- case "com.amazonaws.redshiftserverless#ValidationException":
1228
- throw await de_ValidationExceptionRes(parsedOutput, context);
1229
- case "AccessDeniedException":
1230
- case "com.amazonaws.redshiftserverless#AccessDeniedException":
1231
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1232
- case "ThrottlingException":
1233
- case "com.amazonaws.redshiftserverless#ThrottlingException":
1234
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1235
- case "InsufficientCapacityException":
1236
- case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
1237
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1238
- case "Ipv6CidrBlockNotFoundException":
1239
- case "com.amazonaws.redshiftserverless#Ipv6CidrBlockNotFoundException":
1240
- throw await de_Ipv6CidrBlockNotFoundExceptionRes(parsedOutput, context);
1241
- case "InvalidPaginationException":
1242
- case "com.amazonaws.redshiftserverless#InvalidPaginationException":
1243
- throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
1244
- default:
1245
- const parsedBody = parsedOutput.body;
1246
- return throwDefaultError({
1247
- output,
1248
- parsedBody,
1249
- errorCode,
1250
- });
1251
- }
1252
- };
1253
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1254
- const body = parsedOutput.body;
1255
- const deserialized = _json(body);
1256
- const exception = new AccessDeniedException({
1257
- $metadata: deserializeMetadata(parsedOutput),
1258
- ...deserialized,
1259
- });
1260
- return __decorateServiceException(exception, body);
1261
- };
1262
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1263
- const body = parsedOutput.body;
1264
- const deserialized = _json(body);
1265
- const exception = new ConflictException({
1266
- $metadata: deserializeMetadata(parsedOutput),
1267
- ...deserialized,
1268
- });
1269
- return __decorateServiceException(exception, body);
1270
- };
1271
- const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
1272
- const body = parsedOutput.body;
1273
- const deserialized = _json(body);
1274
- const exception = new InsufficientCapacityException({
1275
- $metadata: deserializeMetadata(parsedOutput),
1276
- ...deserialized,
1277
- });
1278
- return __decorateServiceException(exception, body);
1279
- };
1280
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1281
- const body = parsedOutput.body;
1282
- const deserialized = _json(body);
1283
- const exception = new InternalServerException({
1284
- $metadata: deserializeMetadata(parsedOutput),
1285
- ...deserialized,
1286
- });
1287
- return __decorateServiceException(exception, body);
1288
- };
1289
- const de_InvalidPaginationExceptionRes = async (parsedOutput, context) => {
1290
- const body = parsedOutput.body;
1291
- const deserialized = _json(body);
1292
- const exception = new InvalidPaginationException({
1293
- $metadata: deserializeMetadata(parsedOutput),
1294
- ...deserialized,
1295
- });
1296
- return __decorateServiceException(exception, body);
1297
- };
1298
- const de_Ipv6CidrBlockNotFoundExceptionRes = async (parsedOutput, context) => {
1299
- const body = parsedOutput.body;
1300
- const deserialized = _json(body);
1301
- const exception = new Ipv6CidrBlockNotFoundException({
1302
- $metadata: deserializeMetadata(parsedOutput),
1303
- ...deserialized,
1304
- });
1305
- return __decorateServiceException(exception, body);
1306
- };
1307
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1308
- const body = parsedOutput.body;
1309
- const deserialized = _json(body);
1310
- const exception = new ResourceNotFoundException({
1311
- $metadata: deserializeMetadata(parsedOutput),
1312
- ...deserialized,
1313
- });
1314
- return __decorateServiceException(exception, body);
1315
- };
1316
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1317
- const body = parsedOutput.body;
1318
- const deserialized = _json(body);
1319
- const exception = new ServiceQuotaExceededException({
1320
- $metadata: deserializeMetadata(parsedOutput),
1321
- ...deserialized,
1322
- });
1323
- return __decorateServiceException(exception, body);
1324
- };
1325
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1326
- const body = parsedOutput.body;
1327
- const deserialized = _json(body);
1328
- const exception = new ThrottlingException({
1329
- $metadata: deserializeMetadata(parsedOutput),
1330
- ...deserialized,
1331
- });
1332
- return __decorateServiceException(exception, body);
1333
- };
1334
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1335
- const body = parsedOutput.body;
1336
- const deserialized = _json(body);
1337
- const exception = new TooManyTagsException({
1338
- $metadata: deserializeMetadata(parsedOutput),
1339
- ...deserialized,
1340
- });
1341
- return __decorateServiceException(exception, body);
1342
- };
1343
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1344
- const body = parsedOutput.body;
1345
- const deserialized = _json(body);
1346
- const exception = new ValidationException({
1347
- $metadata: deserializeMetadata(parsedOutput),
1348
- ...deserialized,
1349
- });
1350
- return __decorateServiceException(exception, body);
1351
- };
1352
- const se_CreateReservationRequest = (input, context) => {
1353
- return take(input, {
1354
- capacity: [],
1355
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1356
- offeringId: [],
1357
- });
1358
- };
1359
- const se_CreateScheduledActionRequest = (input, context) => {
1360
- return take(input, {
1361
- enabled: [],
1362
- endTime: (_) => _.getTime() / 1_000,
1363
- namespaceName: [],
1364
- roleArn: [],
1365
- schedule: (_) => se_Schedule(_, context),
1366
- scheduledActionDescription: [],
1367
- scheduledActionName: [],
1368
- startTime: (_) => _.getTime() / 1_000,
1369
- targetAction: _json,
1370
- });
1371
- };
1372
- const se_ListRecoveryPointsRequest = (input, context) => {
1373
- return take(input, {
1374
- endTime: (_) => _.getTime() / 1_000,
1375
- maxResults: [],
1376
- namespaceArn: [],
1377
- namespaceName: [],
1378
- nextToken: [],
1379
- startTime: (_) => _.getTime() / 1_000,
1380
- });
1381
- };
1382
- const se_ListSnapshotsRequest = (input, context) => {
1383
- return take(input, {
1384
- endTime: (_) => _.getTime() / 1_000,
1385
- maxResults: [],
1386
- namespaceArn: [],
1387
- namespaceName: [],
1388
- nextToken: [],
1389
- ownerAccount: [],
1390
- startTime: (_) => _.getTime() / 1_000,
1391
- });
1392
- };
1393
- const se_Schedule = (input, context) => {
1394
- return Schedule.visit(input, {
1395
- at: (value) => ({ at: value.getTime() / 1_000 }),
1396
- cron: (value) => ({ cron: value }),
1397
- _: (name, value) => ({ [name]: value }),
1398
- });
1399
- };
1400
- const se_UpdateScheduledActionRequest = (input, context) => {
1401
- return take(input, {
1402
- enabled: [],
1403
- endTime: (_) => _.getTime() / 1_000,
1404
- roleArn: [],
1405
- schedule: (_) => se_Schedule(_, context),
1406
- scheduledActionDescription: [],
1407
- scheduledActionName: [],
1408
- startTime: (_) => _.getTime() / 1_000,
1409
- targetAction: _json,
1410
- });
1411
- };
1412
- const de_Association = (output, context) => {
1413
- return take(output, {
1414
- customDomainCertificateArn: __expectString,
1415
- customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1416
- customDomainName: __expectString,
1417
- workgroupName: __expectString,
1418
- });
1419
- };
1420
- const de_AssociationList = (output, context) => {
1421
- const retVal = (output || [])
1422
- .filter((e) => e != null)
1423
- .map((entry) => {
1424
- return de_Association(entry, context);
1425
- });
1426
- return retVal;
1427
- };
1428
- const de_ConvertRecoveryPointToSnapshotResponse = (output, context) => {
1429
- return take(output, {
1430
- snapshot: (_) => de_Snapshot(_, context),
1431
- });
1432
- };
1433
- const de_CreateCustomDomainAssociationResponse = (output, context) => {
1434
- return take(output, {
1435
- customDomainCertificateArn: __expectString,
1436
- customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1437
- customDomainName: __expectString,
1438
- workgroupName: __expectString,
1439
- });
1440
- };
1441
- const de_CreateEndpointAccessResponse = (output, context) => {
1442
- return take(output, {
1443
- endpoint: (_) => de_EndpointAccess(_, context),
1444
- });
1445
- };
1446
- const de_CreateNamespaceResponse = (output, context) => {
1447
- return take(output, {
1448
- namespace: (_) => de_Namespace(_, context),
1449
- });
1450
- };
1451
- const de_CreateReservationResponse = (output, context) => {
1452
- return take(output, {
1453
- reservation: (_) => de_Reservation(_, context),
1454
- });
1455
- };
1456
- const de_CreateScheduledActionResponse = (output, context) => {
1457
- return take(output, {
1458
- scheduledAction: (_) => de_ScheduledActionResponse(_, context),
1459
- });
1460
- };
1461
- const de_CreateSnapshotResponse = (output, context) => {
1462
- return take(output, {
1463
- snapshot: (_) => de_Snapshot(_, context),
1464
- });
1465
- };
1466
- const de_CreateWorkgroupResponse = (output, context) => {
1467
- return take(output, {
1468
- workgroup: (_) => de_Workgroup(_, context),
1469
- });
1470
- };
1471
- const de_DeleteEndpointAccessResponse = (output, context) => {
1472
- return take(output, {
1473
- endpoint: (_) => de_EndpointAccess(_, context),
1474
- });
1475
- };
1476
- const de_DeleteNamespaceResponse = (output, context) => {
1477
- return take(output, {
1478
- namespace: (_) => de_Namespace(_, context),
1479
- });
1480
- };
1481
- const de_DeleteScheduledActionResponse = (output, context) => {
1482
- return take(output, {
1483
- scheduledAction: (_) => de_ScheduledActionResponse(_, context),
1484
- });
1485
- };
1486
- const de_DeleteSnapshotResponse = (output, context) => {
1487
- return take(output, {
1488
- snapshot: (_) => de_Snapshot(_, context),
1489
- });
1490
- };
1491
- const de_DeleteWorkgroupResponse = (output, context) => {
1492
- return take(output, {
1493
- workgroup: (_) => de_Workgroup(_, context),
1494
- });
1495
- };
1496
- const de_EndpointAccess = (output, context) => {
1497
- return take(output, {
1498
- address: __expectString,
1499
- endpointArn: __expectString,
1500
- endpointCreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1501
- endpointName: __expectString,
1502
- endpointStatus: __expectString,
1503
- port: __expectInt32,
1504
- subnetIds: _json,
1505
- vpcEndpoint: _json,
1506
- vpcSecurityGroups: _json,
1507
- workgroupName: __expectString,
1508
- });
1509
- };
1510
- const de_EndpointAccessList = (output, context) => {
1511
- const retVal = (output || [])
1512
- .filter((e) => e != null)
1513
- .map((entry) => {
1514
- return de_EndpointAccess(entry, context);
1515
- });
1516
- return retVal;
1517
- };
1518
- const de_GetCredentialsResponse = (output, context) => {
1519
- return take(output, {
1520
- dbPassword: __expectString,
1521
- dbUser: __expectString,
1522
- expiration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1523
- nextRefreshTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1524
- });
1525
- };
1526
- const de_GetCustomDomainAssociationResponse = (output, context) => {
1527
- return take(output, {
1528
- customDomainCertificateArn: __expectString,
1529
- customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1530
- customDomainName: __expectString,
1531
- workgroupName: __expectString,
1532
- });
1533
- };
1534
- const de_GetEndpointAccessResponse = (output, context) => {
1535
- return take(output, {
1536
- endpoint: (_) => de_EndpointAccess(_, context),
1537
- });
1538
- };
1539
- const de_GetNamespaceResponse = (output, context) => {
1540
- return take(output, {
1541
- namespace: (_) => de_Namespace(_, context),
1542
- });
1543
- };
1544
- const de_GetRecoveryPointResponse = (output, context) => {
1545
- return take(output, {
1546
- recoveryPoint: (_) => de_RecoveryPoint(_, context),
1547
- });
1548
- };
1549
- const de_GetReservationOfferingResponse = (output, context) => {
1550
- return take(output, {
1551
- reservationOffering: (_) => de_ReservationOffering(_, context),
1552
- });
1553
- };
1554
- const de_GetReservationResponse = (output, context) => {
1555
- return take(output, {
1556
- reservation: (_) => de_Reservation(_, context),
1557
- });
1558
- };
1559
- const de_GetScheduledActionResponse = (output, context) => {
1560
- return take(output, {
1561
- scheduledAction: (_) => de_ScheduledActionResponse(_, context),
1562
- });
1563
- };
1564
- const de_GetSnapshotResponse = (output, context) => {
1565
- return take(output, {
1566
- snapshot: (_) => de_Snapshot(_, context),
1567
- });
1568
- };
1569
- const de_GetTableRestoreStatusResponse = (output, context) => {
1570
- return take(output, {
1571
- tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
1572
- });
1573
- };
1574
- const de_GetWorkgroupResponse = (output, context) => {
1575
- return take(output, {
1576
- workgroup: (_) => de_Workgroup(_, context),
1577
- });
1578
- };
1579
- const de_ListCustomDomainAssociationsResponse = (output, context) => {
1580
- return take(output, {
1581
- associations: (_) => de_AssociationList(_, context),
1582
- nextToken: __expectString,
1583
- });
1584
- };
1585
- const de_ListEndpointAccessResponse = (output, context) => {
1586
- return take(output, {
1587
- endpoints: (_) => de_EndpointAccessList(_, context),
1588
- nextToken: __expectString,
1589
- });
1590
- };
1591
- const de_ListManagedWorkgroupsResponse = (output, context) => {
1592
- return take(output, {
1593
- managedWorkgroups: (_) => de_ManagedWorkgroups(_, context),
1594
- nextToken: __expectString,
1595
- });
1596
- };
1597
- const de_ListNamespacesResponse = (output, context) => {
1598
- return take(output, {
1599
- namespaces: (_) => de_NamespaceList(_, context),
1600
- nextToken: __expectString,
1601
- });
1602
- };
1603
- const de_ListRecoveryPointsResponse = (output, context) => {
1604
- return take(output, {
1605
- nextToken: __expectString,
1606
- recoveryPoints: (_) => de_RecoveryPointList(_, context),
1607
- });
1608
- };
1609
- const de_ListReservationOfferingsResponse = (output, context) => {
1610
- return take(output, {
1611
- nextToken: __expectString,
1612
- reservationOfferingsList: (_) => de_ReservationOfferingsList(_, context),
1613
- });
1614
- };
1615
- const de_ListReservationsResponse = (output, context) => {
1616
- return take(output, {
1617
- nextToken: __expectString,
1618
- reservationsList: (_) => de_ReservationsList(_, context),
1619
- });
1620
- };
1621
- const de_ListSnapshotsResponse = (output, context) => {
1622
- return take(output, {
1623
- nextToken: __expectString,
1624
- snapshots: (_) => de_SnapshotList(_, context),
1625
- });
1626
- };
1627
- const de_ListTableRestoreStatusResponse = (output, context) => {
1628
- return take(output, {
1629
- nextToken: __expectString,
1630
- tableRestoreStatuses: (_) => de_TableRestoreStatusList(_, context),
1631
- });
1632
- };
1633
- const de_ListWorkgroupsResponse = (output, context) => {
1634
- return take(output, {
1635
- nextToken: __expectString,
1636
- workgroups: (_) => de_WorkgroupList(_, context),
1637
- });
1638
- };
1639
- const de_ManagedWorkgroupListItem = (output, context) => {
1640
- return take(output, {
1641
- creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1642
- managedWorkgroupId: __expectString,
1643
- managedWorkgroupName: __expectString,
1644
- sourceArn: __expectString,
1645
- status: __expectString,
1646
- });
1647
- };
1648
- const de_ManagedWorkgroups = (output, context) => {
1649
- const retVal = (output || [])
1650
- .filter((e) => e != null)
1651
- .map((entry) => {
1652
- return de_ManagedWorkgroupListItem(entry, context);
1653
- });
1654
- return retVal;
1655
- };
1656
- const de_Namespace = (output, context) => {
1657
- return take(output, {
1658
- adminPasswordSecretArn: __expectString,
1659
- adminPasswordSecretKmsKeyId: __expectString,
1660
- adminUsername: __expectString,
1661
- creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1662
- dbName: __expectString,
1663
- defaultIamRoleArn: __expectString,
1664
- iamRoles: _json,
1665
- kmsKeyId: __expectString,
1666
- logExports: _json,
1667
- namespaceArn: __expectString,
1668
- namespaceId: __expectString,
1669
- namespaceName: __expectString,
1670
- status: __expectString,
1671
- });
1672
- };
1673
- const de_NamespaceList = (output, context) => {
1674
- const retVal = (output || [])
1675
- .filter((e) => e != null)
1676
- .map((entry) => {
1677
- return de_Namespace(entry, context);
1678
- });
1679
- return retVal;
1680
- };
1681
- const de_NextInvocationsList = (output, context) => {
1682
- const retVal = (output || [])
1683
- .filter((e) => e != null)
1684
- .map((entry) => {
1685
- return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
1686
- });
1687
- return retVal;
1688
- };
1689
- const de_RecoveryPoint = (output, context) => {
1690
- return take(output, {
1691
- namespaceArn: __expectString,
1692
- namespaceName: __expectString,
1693
- recoveryPointCreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1694
- recoveryPointId: __expectString,
1695
- totalSizeInMegaBytes: __limitedParseDouble,
1696
- workgroupName: __expectString,
1697
- });
1698
- };
1699
- const de_RecoveryPointList = (output, context) => {
1700
- const retVal = (output || [])
1701
- .filter((e) => e != null)
1702
- .map((entry) => {
1703
- return de_RecoveryPoint(entry, context);
1704
- });
1705
- return retVal;
1706
- };
1707
- const de_Reservation = (output, context) => {
1708
- return take(output, {
1709
- capacity: __expectInt32,
1710
- endDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1711
- offering: (_) => de_ReservationOffering(_, context),
1712
- reservationArn: __expectString,
1713
- reservationId: __expectString,
1714
- startDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1715
- status: __expectString,
1716
- });
1717
- };
1718
- const de_ReservationOffering = (output, context) => {
1719
- return take(output, {
1720
- currencyCode: __expectString,
1721
- duration: __expectInt32,
1722
- hourlyCharge: __limitedParseDouble,
1723
- offeringId: __expectString,
1724
- offeringType: __expectString,
1725
- upfrontCharge: __limitedParseDouble,
1726
- });
1727
- };
1728
- const de_ReservationOfferingsList = (output, context) => {
1729
- const retVal = (output || [])
1730
- .filter((e) => e != null)
1731
- .map((entry) => {
1732
- return de_ReservationOffering(entry, context);
1733
- });
1734
- return retVal;
1735
- };
1736
- const de_ReservationsList = (output, context) => {
1737
- const retVal = (output || [])
1738
- .filter((e) => e != null)
1739
- .map((entry) => {
1740
- return de_Reservation(entry, context);
1741
- });
1742
- return retVal;
1743
- };
1744
- const de_RestoreFromRecoveryPointResponse = (output, context) => {
1745
- return take(output, {
1746
- namespace: (_) => de_Namespace(_, context),
1747
- recoveryPointId: __expectString,
1748
- });
1749
- };
1750
- const de_RestoreFromSnapshotResponse = (output, context) => {
1751
- return take(output, {
1752
- namespace: (_) => de_Namespace(_, context),
1753
- ownerAccount: __expectString,
1754
- snapshotName: __expectString,
1755
- });
1756
- };
1757
- const de_RestoreTableFromRecoveryPointResponse = (output, context) => {
1758
- return take(output, {
1759
- tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
1760
- });
1761
- };
1762
- const de_RestoreTableFromSnapshotResponse = (output, context) => {
1763
- return take(output, {
1764
- tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
1765
- });
1766
- };
1767
- const de_Schedule = (output, context) => {
1768
- if (output.at != null) {
1769
- return {
1770
- at: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.at))),
1771
- };
1772
- }
1773
- if (__expectString(output.cron) !== undefined) {
1774
- return { cron: __expectString(output.cron) };
1775
- }
1776
- return { $unknown: Object.entries(output)[0] };
1777
- };
1778
- const de_ScheduledActionResponse = (output, context) => {
1779
- return take(output, {
1780
- endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1781
- namespaceName: __expectString,
1782
- nextInvocations: (_) => de_NextInvocationsList(_, context),
1783
- roleArn: __expectString,
1784
- schedule: (_) => de_Schedule(__expectUnion(_), context),
1785
- scheduledActionDescription: __expectString,
1786
- scheduledActionName: __expectString,
1787
- scheduledActionUuid: __expectString,
1788
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1789
- state: __expectString,
1790
- targetAction: (_) => _json(__expectUnion(_)),
1791
- });
1792
- };
1793
- const de_Snapshot = (output, context) => {
1794
- return take(output, {
1795
- accountsWithProvisionedRestoreAccess: _json,
1796
- accountsWithRestoreAccess: _json,
1797
- actualIncrementalBackupSizeInMegaBytes: __limitedParseDouble,
1798
- adminPasswordSecretArn: __expectString,
1799
- adminPasswordSecretKmsKeyId: __expectString,
1800
- adminUsername: __expectString,
1801
- backupProgressInMegaBytes: __limitedParseDouble,
1802
- currentBackupRateInMegaBytesPerSecond: __limitedParseDouble,
1803
- elapsedTimeInSeconds: __expectLong,
1804
- estimatedSecondsToCompletion: __expectLong,
1805
- kmsKeyId: __expectString,
1806
- namespaceArn: __expectString,
1807
- namespaceName: __expectString,
1808
- ownerAccount: __expectString,
1809
- snapshotArn: __expectString,
1810
- snapshotCreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1811
- snapshotName: __expectString,
1812
- snapshotRemainingDays: __expectInt32,
1813
- snapshotRetentionPeriod: __expectInt32,
1814
- snapshotRetentionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1815
- status: __expectString,
1816
- totalBackupSizeInMegaBytes: __limitedParseDouble,
1817
- });
1818
- };
1819
- const de_SnapshotList = (output, context) => {
1820
- const retVal = (output || [])
1821
- .filter((e) => e != null)
1822
- .map((entry) => {
1823
- return de_Snapshot(entry, context);
1824
- });
1825
- return retVal;
1826
- };
1827
- const de_TableRestoreStatus = (output, context) => {
1828
- return take(output, {
1829
- message: __expectString,
1830
- namespaceName: __expectString,
1831
- newTableName: __expectString,
1832
- progressInMegaBytes: __expectLong,
1833
- recoveryPointId: __expectString,
1834
- requestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1835
- snapshotName: __expectString,
1836
- sourceDatabaseName: __expectString,
1837
- sourceSchemaName: __expectString,
1838
- sourceTableName: __expectString,
1839
- status: __expectString,
1840
- tableRestoreRequestId: __expectString,
1841
- targetDatabaseName: __expectString,
1842
- targetSchemaName: __expectString,
1843
- totalDataInMegaBytes: __expectLong,
1844
- workgroupName: __expectString,
1845
- });
1846
- };
1847
- const de_TableRestoreStatusList = (output, context) => {
1848
- const retVal = (output || [])
1849
- .filter((e) => e != null)
1850
- .map((entry) => {
1851
- return de_TableRestoreStatus(entry, context);
1852
- });
1853
- return retVal;
1854
- };
1855
- const de_UpdateCustomDomainAssociationResponse = (output, context) => {
1856
- return take(output, {
1857
- customDomainCertificateArn: __expectString,
1858
- customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1859
- customDomainName: __expectString,
1860
- workgroupName: __expectString,
1861
- });
1862
- };
1863
- const de_UpdateEndpointAccessResponse = (output, context) => {
1864
- return take(output, {
1865
- endpoint: (_) => de_EndpointAccess(_, context),
1866
- });
1867
- };
1868
- const de_UpdateNamespaceResponse = (output, context) => {
1869
- return take(output, {
1870
- namespace: (_) => de_Namespace(_, context),
1871
- });
1872
- };
1873
- const de_UpdateScheduledActionResponse = (output, context) => {
1874
- return take(output, {
1875
- scheduledAction: (_) => de_ScheduledActionResponse(_, context),
1876
- });
1877
- };
1878
- const de_UpdateSnapshotResponse = (output, context) => {
1879
- return take(output, {
1880
- snapshot: (_) => de_Snapshot(_, context),
1881
- });
1882
- };
1883
- const de_UpdateWorkgroupResponse = (output, context) => {
1884
- return take(output, {
1885
- workgroup: (_) => de_Workgroup(_, context),
1886
- });
1887
- };
1888
- const de_Workgroup = (output, context) => {
1889
- return take(output, {
1890
- baseCapacity: __expectInt32,
1891
- configParameters: _json,
1892
- creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1893
- crossAccountVpcs: _json,
1894
- customDomainCertificateArn: __expectString,
1895
- customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1896
- customDomainName: __expectString,
1897
- endpoint: _json,
1898
- enhancedVpcRouting: __expectBoolean,
1899
- ipAddressType: __expectString,
1900
- maxCapacity: __expectInt32,
1901
- namespaceName: __expectString,
1902
- patchVersion: __expectString,
1903
- pendingTrackName: __expectString,
1904
- port: __expectInt32,
1905
- pricePerformanceTarget: _json,
1906
- publiclyAccessible: __expectBoolean,
1907
- securityGroupIds: _json,
1908
- status: __expectString,
1909
- subnetIds: _json,
1910
- trackName: __expectString,
1911
- workgroupArn: __expectString,
1912
- workgroupId: __expectString,
1913
- workgroupName: __expectString,
1914
- workgroupVersion: __expectString,
1915
- });
1916
- };
1917
- const de_WorkgroupList = (output, context) => {
1918
- const retVal = (output || [])
1919
- .filter((e) => e != null)
1920
- .map((entry) => {
1921
- return de_Workgroup(entry, context);
1922
- });
1923
- return retVal;
1924
- };
1925
- const deserializeMetadata = (output) => ({
1926
- httpStatusCode: output.statusCode,
1927
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1928
- extendedRequestId: output.headers["x-amz-id-2"],
1929
- cfId: output.headers["x-amz-cf-id"],
1930
- });
1931
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1932
- const throwDefaultError = withBaseException(__BaseException);
1933
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1934
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1935
- const contents = {
1936
- protocol,
1937
- hostname,
1938
- port,
1939
- method: "POST",
1940
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1941
- headers,
1942
- };
1943
- if (resolvedHostname !== undefined) {
1944
- contents.hostname = resolvedHostname;
1945
- }
1946
- if (body !== undefined) {
1947
- contents.body = body;
1948
- }
1949
- return new __HttpRequest(contents);
1950
- };
1951
- function sharedHeaders(operation) {
1952
- return {
1953
- "content-type": "application/x-amz-json-1.1",
1954
- "x-amz-target": `RedshiftServerless.${operation}`,
1955
- };
1956
- }