@aws-sdk/client-directory-service 3.312.0 → 3.315.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.
@@ -10,469 +10,469 @@ const models_0_1 = require("../models/models_0");
10
10
  const se_AcceptSharedDirectoryCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("AcceptSharedDirectory");
12
12
  let body;
13
- body = JSON.stringify(se_AcceptSharedDirectoryRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_AcceptSharedDirectoryCommand = se_AcceptSharedDirectoryCommand;
17
17
  const se_AddIpRoutesCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("AddIpRoutes");
19
19
  let body;
20
- body = JSON.stringify(se_AddIpRoutesRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_AddIpRoutesCommand = se_AddIpRoutesCommand;
24
24
  const se_AddRegionCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AddRegion");
26
26
  let body;
27
- body = JSON.stringify(se_AddRegionRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_AddRegionCommand = se_AddRegionCommand;
31
31
  const se_AddTagsToResourceCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("AddTagsToResource");
33
33
  let body;
34
- body = JSON.stringify(se_AddTagsToResourceRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
38
38
  const se_CancelSchemaExtensionCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("CancelSchemaExtension");
40
40
  let body;
41
- body = JSON.stringify(se_CancelSchemaExtensionRequest(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_CancelSchemaExtensionCommand = se_CancelSchemaExtensionCommand;
45
45
  const se_ConnectDirectoryCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("ConnectDirectory");
47
47
  let body;
48
- body = JSON.stringify(se_ConnectDirectoryRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_ConnectDirectoryCommand = se_ConnectDirectoryCommand;
52
52
  const se_CreateAliasCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreateAlias");
54
54
  let body;
55
- body = JSON.stringify(se_CreateAliasRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreateAliasCommand = se_CreateAliasCommand;
59
59
  const se_CreateComputerCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateComputer");
61
61
  let body;
62
- body = JSON.stringify(se_CreateComputerRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_CreateComputerCommand = se_CreateComputerCommand;
66
66
  const se_CreateConditionalForwarderCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("CreateConditionalForwarder");
68
68
  let body;
69
- body = JSON.stringify(se_CreateConditionalForwarderRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_CreateConditionalForwarderCommand = se_CreateConditionalForwarderCommand;
73
73
  const se_CreateDirectoryCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("CreateDirectory");
75
75
  let body;
76
- body = JSON.stringify(se_CreateDirectoryRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_CreateDirectoryCommand = se_CreateDirectoryCommand;
80
80
  const se_CreateLogSubscriptionCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("CreateLogSubscription");
82
82
  let body;
83
- body = JSON.stringify(se_CreateLogSubscriptionRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_CreateLogSubscriptionCommand = se_CreateLogSubscriptionCommand;
87
87
  const se_CreateMicrosoftADCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("CreateMicrosoftAD");
89
89
  let body;
90
- body = JSON.stringify(se_CreateMicrosoftADRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_CreateMicrosoftADCommand = se_CreateMicrosoftADCommand;
94
94
  const se_CreateSnapshotCommand = async (input, context) => {
95
95
  const headers = sharedHeaders("CreateSnapshot");
96
96
  let body;
97
- body = JSON.stringify(se_CreateSnapshotRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
99
  };
100
100
  exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
101
101
  const se_CreateTrustCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("CreateTrust");
103
103
  let body;
104
- body = JSON.stringify(se_CreateTrustRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_CreateTrustCommand = se_CreateTrustCommand;
108
108
  const se_DeleteConditionalForwarderCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DeleteConditionalForwarder");
110
110
  let body;
111
- body = JSON.stringify(se_DeleteConditionalForwarderRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_DeleteConditionalForwarderCommand = se_DeleteConditionalForwarderCommand;
115
115
  const se_DeleteDirectoryCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("DeleteDirectory");
117
117
  let body;
118
- body = JSON.stringify(se_DeleteDirectoryRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_DeleteDirectoryCommand = se_DeleteDirectoryCommand;
122
122
  const se_DeleteLogSubscriptionCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("DeleteLogSubscription");
124
124
  let body;
125
- body = JSON.stringify(se_DeleteLogSubscriptionRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_DeleteLogSubscriptionCommand = se_DeleteLogSubscriptionCommand;
129
129
  const se_DeleteSnapshotCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("DeleteSnapshot");
131
131
  let body;
132
- body = JSON.stringify(se_DeleteSnapshotRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
136
136
  const se_DeleteTrustCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("DeleteTrust");
138
138
  let body;
139
- body = JSON.stringify(se_DeleteTrustRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_DeleteTrustCommand = se_DeleteTrustCommand;
143
143
  const se_DeregisterCertificateCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DeregisterCertificate");
145
145
  let body;
146
- body = JSON.stringify(se_DeregisterCertificateRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_DeregisterCertificateCommand = se_DeregisterCertificateCommand;
150
150
  const se_DeregisterEventTopicCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DeregisterEventTopic");
152
152
  let body;
153
- body = JSON.stringify(se_DeregisterEventTopicRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DeregisterEventTopicCommand = se_DeregisterEventTopicCommand;
157
157
  const se_DescribeCertificateCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DescribeCertificate");
159
159
  let body;
160
- body = JSON.stringify(se_DescribeCertificateRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
164
164
  const se_DescribeClientAuthenticationSettingsCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DescribeClientAuthenticationSettings");
166
166
  let body;
167
- body = JSON.stringify(se_DescribeClientAuthenticationSettingsRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DescribeClientAuthenticationSettingsCommand = se_DescribeClientAuthenticationSettingsCommand;
171
171
  const se_DescribeConditionalForwardersCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DescribeConditionalForwarders");
173
173
  let body;
174
- body = JSON.stringify(se_DescribeConditionalForwardersRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DescribeConditionalForwardersCommand = se_DescribeConditionalForwardersCommand;
178
178
  const se_DescribeDirectoriesCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("DescribeDirectories");
180
180
  let body;
181
- body = JSON.stringify(se_DescribeDirectoriesRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_DescribeDirectoriesCommand = se_DescribeDirectoriesCommand;
185
185
  const se_DescribeDomainControllersCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DescribeDomainControllers");
187
187
  let body;
188
- body = JSON.stringify(se_DescribeDomainControllersRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_DescribeDomainControllersCommand = se_DescribeDomainControllersCommand;
192
192
  const se_DescribeEventTopicsCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("DescribeEventTopics");
194
194
  let body;
195
- body = JSON.stringify(se_DescribeEventTopicsRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_DescribeEventTopicsCommand = se_DescribeEventTopicsCommand;
199
199
  const se_DescribeLDAPSSettingsCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("DescribeLDAPSSettings");
201
201
  let body;
202
- body = JSON.stringify(se_DescribeLDAPSSettingsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_DescribeLDAPSSettingsCommand = se_DescribeLDAPSSettingsCommand;
206
206
  const se_DescribeRegionsCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("DescribeRegions");
208
208
  let body;
209
- body = JSON.stringify(se_DescribeRegionsRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_DescribeRegionsCommand = se_DescribeRegionsCommand;
213
213
  const se_DescribeSettingsCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("DescribeSettings");
215
215
  let body;
216
- body = JSON.stringify(se_DescribeSettingsRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_DescribeSettingsCommand = se_DescribeSettingsCommand;
220
220
  const se_DescribeSharedDirectoriesCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("DescribeSharedDirectories");
222
222
  let body;
223
- body = JSON.stringify(se_DescribeSharedDirectoriesRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_DescribeSharedDirectoriesCommand = se_DescribeSharedDirectoriesCommand;
227
227
  const se_DescribeSnapshotsCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("DescribeSnapshots");
229
229
  let body;
230
- body = JSON.stringify(se_DescribeSnapshotsRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
234
234
  const se_DescribeTrustsCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("DescribeTrusts");
236
236
  let body;
237
- body = JSON.stringify(se_DescribeTrustsRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_DescribeTrustsCommand = se_DescribeTrustsCommand;
241
241
  const se_DescribeUpdateDirectoryCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("DescribeUpdateDirectory");
243
243
  let body;
244
- body = JSON.stringify(se_DescribeUpdateDirectoryRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_DescribeUpdateDirectoryCommand = se_DescribeUpdateDirectoryCommand;
248
248
  const se_DisableClientAuthenticationCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("DisableClientAuthentication");
250
250
  let body;
251
- body = JSON.stringify(se_DisableClientAuthenticationRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_DisableClientAuthenticationCommand = se_DisableClientAuthenticationCommand;
255
255
  const se_DisableLDAPSCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("DisableLDAPS");
257
257
  let body;
258
- body = JSON.stringify(se_DisableLDAPSRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_DisableLDAPSCommand = se_DisableLDAPSCommand;
262
262
  const se_DisableRadiusCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("DisableRadius");
264
264
  let body;
265
- body = JSON.stringify(se_DisableRadiusRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_DisableRadiusCommand = se_DisableRadiusCommand;
269
269
  const se_DisableSsoCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("DisableSso");
271
271
  let body;
272
- body = JSON.stringify(se_DisableSsoRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  exports.se_DisableSsoCommand = se_DisableSsoCommand;
276
276
  const se_EnableClientAuthenticationCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("EnableClientAuthentication");
278
278
  let body;
279
- body = JSON.stringify(se_EnableClientAuthenticationRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  exports.se_EnableClientAuthenticationCommand = se_EnableClientAuthenticationCommand;
283
283
  const se_EnableLDAPSCommand = async (input, context) => {
284
284
  const headers = sharedHeaders("EnableLDAPS");
285
285
  let body;
286
- body = JSON.stringify(se_EnableLDAPSRequest(input, context));
286
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
288
  };
289
289
  exports.se_EnableLDAPSCommand = se_EnableLDAPSCommand;
290
290
  const se_EnableRadiusCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("EnableRadius");
292
292
  let body;
293
- body = JSON.stringify(se_EnableRadiusRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_EnableRadiusCommand = se_EnableRadiusCommand;
297
297
  const se_EnableSsoCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("EnableSso");
299
299
  let body;
300
- body = JSON.stringify(se_EnableSsoRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_EnableSsoCommand = se_EnableSsoCommand;
304
304
  const se_GetDirectoryLimitsCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("GetDirectoryLimits");
306
306
  let body;
307
- body = JSON.stringify(se_GetDirectoryLimitsRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_GetDirectoryLimitsCommand = se_GetDirectoryLimitsCommand;
311
311
  const se_GetSnapshotLimitsCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("GetSnapshotLimits");
313
313
  let body;
314
- body = JSON.stringify(se_GetSnapshotLimitsRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_GetSnapshotLimitsCommand = se_GetSnapshotLimitsCommand;
318
318
  const se_ListCertificatesCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("ListCertificates");
320
320
  let body;
321
- body = JSON.stringify(se_ListCertificatesRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
325
325
  const se_ListIpRoutesCommand = async (input, context) => {
326
326
  const headers = sharedHeaders("ListIpRoutes");
327
327
  let body;
328
- body = JSON.stringify(se_ListIpRoutesRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
329
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
330
  };
331
331
  exports.se_ListIpRoutesCommand = se_ListIpRoutesCommand;
332
332
  const se_ListLogSubscriptionsCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("ListLogSubscriptions");
334
334
  let body;
335
- body = JSON.stringify(se_ListLogSubscriptionsRequest(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_ListLogSubscriptionsCommand = se_ListLogSubscriptionsCommand;
339
339
  const se_ListSchemaExtensionsCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("ListSchemaExtensions");
341
341
  let body;
342
- body = JSON.stringify(se_ListSchemaExtensionsRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_ListSchemaExtensionsCommand = se_ListSchemaExtensionsCommand;
346
346
  const se_ListTagsForResourceCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("ListTagsForResource");
348
348
  let body;
349
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
353
353
  const se_RegisterCertificateCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("RegisterCertificate");
355
355
  let body;
356
- body = JSON.stringify(se_RegisterCertificateRequest(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_RegisterCertificateCommand = se_RegisterCertificateCommand;
360
360
  const se_RegisterEventTopicCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("RegisterEventTopic");
362
362
  let body;
363
- body = JSON.stringify(se_RegisterEventTopicRequest(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_RegisterEventTopicCommand = se_RegisterEventTopicCommand;
367
367
  const se_RejectSharedDirectoryCommand = async (input, context) => {
368
368
  const headers = sharedHeaders("RejectSharedDirectory");
369
369
  let body;
370
- body = JSON.stringify(se_RejectSharedDirectoryRequest(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
371
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
372
  };
373
373
  exports.se_RejectSharedDirectoryCommand = se_RejectSharedDirectoryCommand;
374
374
  const se_RemoveIpRoutesCommand = async (input, context) => {
375
375
  const headers = sharedHeaders("RemoveIpRoutes");
376
376
  let body;
377
- body = JSON.stringify(se_RemoveIpRoutesRequest(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
378
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
379
  };
380
380
  exports.se_RemoveIpRoutesCommand = se_RemoveIpRoutesCommand;
381
381
  const se_RemoveRegionCommand = async (input, context) => {
382
382
  const headers = sharedHeaders("RemoveRegion");
383
383
  let body;
384
- body = JSON.stringify(se_RemoveRegionRequest(input, context));
384
+ body = JSON.stringify((0, smithy_client_1._json)(input));
385
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
386
  };
387
387
  exports.se_RemoveRegionCommand = se_RemoveRegionCommand;
388
388
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
389
389
  const headers = sharedHeaders("RemoveTagsFromResource");
390
390
  let body;
391
- body = JSON.stringify(se_RemoveTagsFromResourceRequest(input, context));
391
+ body = JSON.stringify((0, smithy_client_1._json)(input));
392
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
393
393
  };
394
394
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
395
395
  const se_ResetUserPasswordCommand = async (input, context) => {
396
396
  const headers = sharedHeaders("ResetUserPassword");
397
397
  let body;
398
- body = JSON.stringify(se_ResetUserPasswordRequest(input, context));
398
+ body = JSON.stringify((0, smithy_client_1._json)(input));
399
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
400
  };
401
401
  exports.se_ResetUserPasswordCommand = se_ResetUserPasswordCommand;
402
402
  const se_RestoreFromSnapshotCommand = async (input, context) => {
403
403
  const headers = sharedHeaders("RestoreFromSnapshot");
404
404
  let body;
405
- body = JSON.stringify(se_RestoreFromSnapshotRequest(input, context));
405
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
407
  };
408
408
  exports.se_RestoreFromSnapshotCommand = se_RestoreFromSnapshotCommand;
409
409
  const se_ShareDirectoryCommand = async (input, context) => {
410
410
  const headers = sharedHeaders("ShareDirectory");
411
411
  let body;
412
- body = JSON.stringify(se_ShareDirectoryRequest(input, context));
412
+ body = JSON.stringify((0, smithy_client_1._json)(input));
413
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
414
  };
415
415
  exports.se_ShareDirectoryCommand = se_ShareDirectoryCommand;
416
416
  const se_StartSchemaExtensionCommand = async (input, context) => {
417
417
  const headers = sharedHeaders("StartSchemaExtension");
418
418
  let body;
419
- body = JSON.stringify(se_StartSchemaExtensionRequest(input, context));
419
+ body = JSON.stringify((0, smithy_client_1._json)(input));
420
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
421
  };
422
422
  exports.se_StartSchemaExtensionCommand = se_StartSchemaExtensionCommand;
423
423
  const se_UnshareDirectoryCommand = async (input, context) => {
424
424
  const headers = sharedHeaders("UnshareDirectory");
425
425
  let body;
426
- body = JSON.stringify(se_UnshareDirectoryRequest(input, context));
426
+ body = JSON.stringify((0, smithy_client_1._json)(input));
427
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
428
  };
429
429
  exports.se_UnshareDirectoryCommand = se_UnshareDirectoryCommand;
430
430
  const se_UpdateConditionalForwarderCommand = async (input, context) => {
431
431
  const headers = sharedHeaders("UpdateConditionalForwarder");
432
432
  let body;
433
- body = JSON.stringify(se_UpdateConditionalForwarderRequest(input, context));
433
+ body = JSON.stringify((0, smithy_client_1._json)(input));
434
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
435
  };
436
436
  exports.se_UpdateConditionalForwarderCommand = se_UpdateConditionalForwarderCommand;
437
437
  const se_UpdateDirectorySetupCommand = async (input, context) => {
438
438
  const headers = sharedHeaders("UpdateDirectorySetup");
439
439
  let body;
440
- body = JSON.stringify(se_UpdateDirectorySetupRequest(input, context));
440
+ body = JSON.stringify((0, smithy_client_1._json)(input));
441
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
442
  };
443
443
  exports.se_UpdateDirectorySetupCommand = se_UpdateDirectorySetupCommand;
444
444
  const se_UpdateNumberOfDomainControllersCommand = async (input, context) => {
445
445
  const headers = sharedHeaders("UpdateNumberOfDomainControllers");
446
446
  let body;
447
- body = JSON.stringify(se_UpdateNumberOfDomainControllersRequest(input, context));
447
+ body = JSON.stringify((0, smithy_client_1._json)(input));
448
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
449
  };
450
450
  exports.se_UpdateNumberOfDomainControllersCommand = se_UpdateNumberOfDomainControllersCommand;
451
451
  const se_UpdateRadiusCommand = async (input, context) => {
452
452
  const headers = sharedHeaders("UpdateRadius");
453
453
  let body;
454
- body = JSON.stringify(se_UpdateRadiusRequest(input, context));
454
+ body = JSON.stringify((0, smithy_client_1._json)(input));
455
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
456
  };
457
457
  exports.se_UpdateRadiusCommand = se_UpdateRadiusCommand;
458
458
  const se_UpdateSettingsCommand = async (input, context) => {
459
459
  const headers = sharedHeaders("UpdateSettings");
460
460
  let body;
461
- body = JSON.stringify(se_UpdateSettingsRequest(input, context));
461
+ body = JSON.stringify((0, smithy_client_1._json)(input));
462
462
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
463
  };
464
464
  exports.se_UpdateSettingsCommand = se_UpdateSettingsCommand;
465
465
  const se_UpdateTrustCommand = async (input, context) => {
466
466
  const headers = sharedHeaders("UpdateTrust");
467
467
  let body;
468
- body = JSON.stringify(se_UpdateTrustRequest(input, context));
468
+ body = JSON.stringify((0, smithy_client_1._json)(input));
469
469
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
470
  };
471
471
  exports.se_UpdateTrustCommand = se_UpdateTrustCommand;
472
472
  const se_VerifyTrustCommand = async (input, context) => {
473
473
  const headers = sharedHeaders("VerifyTrust");
474
474
  let body;
475
- body = JSON.stringify(se_VerifyTrustRequest(input, context));
475
+ body = JSON.stringify((0, smithy_client_1._json)(input));
476
476
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
477
477
  };
478
478
  exports.se_VerifyTrustCommand = se_VerifyTrustCommand;
@@ -487,7 +487,7 @@ const de_AcceptSharedDirectoryCommand = async (output, context) => {
487
487
  $metadata: deserializeMetadata(output),
488
488
  ...contents,
489
489
  };
490
- return Promise.resolve(response);
490
+ return response;
491
491
  };
492
492
  exports.de_AcceptSharedDirectoryCommand = de_AcceptSharedDirectoryCommand;
493
493
  const de_AcceptSharedDirectoryCommandError = async (output, context) => {
@@ -514,10 +514,9 @@ const de_AcceptSharedDirectoryCommandError = async (output, context) => {
514
514
  throw await de_ServiceExceptionRes(parsedOutput, context);
515
515
  default:
516
516
  const parsedBody = parsedOutput.body;
517
- (0, smithy_client_1.throwDefaultError)({
517
+ return throwDefaultError({
518
518
  output,
519
519
  parsedBody,
520
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
521
520
  errorCode,
522
521
  });
523
522
  }
@@ -528,12 +527,12 @@ const de_AddIpRoutesCommand = async (output, context) => {
528
527
  }
529
528
  const data = await parseBody(output.body, context);
530
529
  let contents = {};
531
- contents = de_AddIpRoutesResult(data, context);
530
+ contents = (0, smithy_client_1._json)(data);
532
531
  const response = {
533
532
  $metadata: deserializeMetadata(output),
534
533
  ...contents,
535
534
  };
536
- return Promise.resolve(response);
535
+ return response;
537
536
  };
538
537
  exports.de_AddIpRoutesCommand = de_AddIpRoutesCommand;
539
538
  const de_AddIpRoutesCommandError = async (output, context) => {
@@ -566,10 +565,9 @@ const de_AddIpRoutesCommandError = async (output, context) => {
566
565
  throw await de_ServiceExceptionRes(parsedOutput, context);
567
566
  default:
568
567
  const parsedBody = parsedOutput.body;
569
- (0, smithy_client_1.throwDefaultError)({
568
+ return throwDefaultError({
570
569
  output,
571
570
  parsedBody,
572
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
573
571
  errorCode,
574
572
  });
575
573
  }
@@ -580,12 +578,12 @@ const de_AddRegionCommand = async (output, context) => {
580
578
  }
581
579
  const data = await parseBody(output.body, context);
582
580
  let contents = {};
583
- contents = de_AddRegionResult(data, context);
581
+ contents = (0, smithy_client_1._json)(data);
584
582
  const response = {
585
583
  $metadata: deserializeMetadata(output),
586
584
  ...contents,
587
585
  };
588
- return Promise.resolve(response);
586
+ return response;
589
587
  };
590
588
  exports.de_AddRegionCommand = de_AddRegionCommand;
591
589
  const de_AddRegionCommandError = async (output, context) => {
@@ -627,10 +625,9 @@ const de_AddRegionCommandError = async (output, context) => {
627
625
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
628
626
  default:
629
627
  const parsedBody = parsedOutput.body;
630
- (0, smithy_client_1.throwDefaultError)({
628
+ return throwDefaultError({
631
629
  output,
632
630
  parsedBody,
633
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
634
631
  errorCode,
635
632
  });
636
633
  }
@@ -641,12 +638,12 @@ const de_AddTagsToResourceCommand = async (output, context) => {
641
638
  }
642
639
  const data = await parseBody(output.body, context);
643
640
  let contents = {};
644
- contents = de_AddTagsToResourceResult(data, context);
641
+ contents = (0, smithy_client_1._json)(data);
645
642
  const response = {
646
643
  $metadata: deserializeMetadata(output),
647
644
  ...contents,
648
645
  };
649
- return Promise.resolve(response);
646
+ return response;
650
647
  };
651
648
  exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
652
649
  const de_AddTagsToResourceCommandError = async (output, context) => {
@@ -673,10 +670,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
673
670
  throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
674
671
  default:
675
672
  const parsedBody = parsedOutput.body;
676
- (0, smithy_client_1.throwDefaultError)({
673
+ return throwDefaultError({
677
674
  output,
678
675
  parsedBody,
679
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
680
676
  errorCode,
681
677
  });
682
678
  }
@@ -687,12 +683,12 @@ const de_CancelSchemaExtensionCommand = async (output, context) => {
687
683
  }
688
684
  const data = await parseBody(output.body, context);
689
685
  let contents = {};
690
- contents = de_CancelSchemaExtensionResult(data, context);
686
+ contents = (0, smithy_client_1._json)(data);
691
687
  const response = {
692
688
  $metadata: deserializeMetadata(output),
693
689
  ...contents,
694
690
  };
695
- return Promise.resolve(response);
691
+ return response;
696
692
  };
697
693
  exports.de_CancelSchemaExtensionCommand = de_CancelSchemaExtensionCommand;
698
694
  const de_CancelSchemaExtensionCommandError = async (output, context) => {
@@ -713,10 +709,9 @@ const de_CancelSchemaExtensionCommandError = async (output, context) => {
713
709
  throw await de_ServiceExceptionRes(parsedOutput, context);
714
710
  default:
715
711
  const parsedBody = parsedOutput.body;
716
- (0, smithy_client_1.throwDefaultError)({
712
+ return throwDefaultError({
717
713
  output,
718
714
  parsedBody,
719
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
720
715
  errorCode,
721
716
  });
722
717
  }
@@ -727,12 +722,12 @@ const de_ConnectDirectoryCommand = async (output, context) => {
727
722
  }
728
723
  const data = await parseBody(output.body, context);
729
724
  let contents = {};
730
- contents = de_ConnectDirectoryResult(data, context);
725
+ contents = (0, smithy_client_1._json)(data);
731
726
  const response = {
732
727
  $metadata: deserializeMetadata(output),
733
728
  ...contents,
734
729
  };
735
- return Promise.resolve(response);
730
+ return response;
736
731
  };
737
732
  exports.de_ConnectDirectoryCommand = de_ConnectDirectoryCommand;
738
733
  const de_ConnectDirectoryCommandError = async (output, context) => {
@@ -756,10 +751,9 @@ const de_ConnectDirectoryCommandError = async (output, context) => {
756
751
  throw await de_ServiceExceptionRes(parsedOutput, context);
757
752
  default:
758
753
  const parsedBody = parsedOutput.body;
759
- (0, smithy_client_1.throwDefaultError)({
754
+ return throwDefaultError({
760
755
  output,
761
756
  parsedBody,
762
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
763
757
  errorCode,
764
758
  });
765
759
  }
@@ -770,12 +764,12 @@ const de_CreateAliasCommand = async (output, context) => {
770
764
  }
771
765
  const data = await parseBody(output.body, context);
772
766
  let contents = {};
773
- contents = de_CreateAliasResult(data, context);
767
+ contents = (0, smithy_client_1._json)(data);
774
768
  const response = {
775
769
  $metadata: deserializeMetadata(output),
776
770
  ...contents,
777
771
  };
778
- return Promise.resolve(response);
772
+ return response;
779
773
  };
780
774
  exports.de_CreateAliasCommand = de_CreateAliasCommand;
781
775
  const de_CreateAliasCommandError = async (output, context) => {
@@ -802,10 +796,9 @@ const de_CreateAliasCommandError = async (output, context) => {
802
796
  throw await de_ServiceExceptionRes(parsedOutput, context);
803
797
  default:
804
798
  const parsedBody = parsedOutput.body;
805
- (0, smithy_client_1.throwDefaultError)({
799
+ return throwDefaultError({
806
800
  output,
807
801
  parsedBody,
808
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
809
802
  errorCode,
810
803
  });
811
804
  }
@@ -816,12 +809,12 @@ const de_CreateComputerCommand = async (output, context) => {
816
809
  }
817
810
  const data = await parseBody(output.body, context);
818
811
  let contents = {};
819
- contents = de_CreateComputerResult(data, context);
812
+ contents = (0, smithy_client_1._json)(data);
820
813
  const response = {
821
814
  $metadata: deserializeMetadata(output),
822
815
  ...contents,
823
816
  };
824
- return Promise.resolve(response);
817
+ return response;
825
818
  };
826
819
  exports.de_CreateComputerCommand = de_CreateComputerCommand;
827
820
  const de_CreateComputerCommandError = async (output, context) => {
@@ -857,10 +850,9 @@ const de_CreateComputerCommandError = async (output, context) => {
857
850
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
858
851
  default:
859
852
  const parsedBody = parsedOutput.body;
860
- (0, smithy_client_1.throwDefaultError)({
853
+ return throwDefaultError({
861
854
  output,
862
855
  parsedBody,
863
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
864
856
  errorCode,
865
857
  });
866
858
  }
@@ -871,12 +863,12 @@ const de_CreateConditionalForwarderCommand = async (output, context) => {
871
863
  }
872
864
  const data = await parseBody(output.body, context);
873
865
  let contents = {};
874
- contents = de_CreateConditionalForwarderResult(data, context);
866
+ contents = (0, smithy_client_1._json)(data);
875
867
  const response = {
876
868
  $metadata: deserializeMetadata(output),
877
869
  ...contents,
878
870
  };
879
- return Promise.resolve(response);
871
+ return response;
880
872
  };
881
873
  exports.de_CreateConditionalForwarderCommand = de_CreateConditionalForwarderCommand;
882
874
  const de_CreateConditionalForwarderCommandError = async (output, context) => {
@@ -909,10 +901,9 @@ const de_CreateConditionalForwarderCommandError = async (output, context) => {
909
901
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
910
902
  default:
911
903
  const parsedBody = parsedOutput.body;
912
- (0, smithy_client_1.throwDefaultError)({
904
+ return throwDefaultError({
913
905
  output,
914
906
  parsedBody,
915
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
916
907
  errorCode,
917
908
  });
918
909
  }
@@ -923,12 +914,12 @@ const de_CreateDirectoryCommand = async (output, context) => {
923
914
  }
924
915
  const data = await parseBody(output.body, context);
925
916
  let contents = {};
926
- contents = de_CreateDirectoryResult(data, context);
917
+ contents = (0, smithy_client_1._json)(data);
927
918
  const response = {
928
919
  $metadata: deserializeMetadata(output),
929
920
  ...contents,
930
921
  };
931
- return Promise.resolve(response);
922
+ return response;
932
923
  };
933
924
  exports.de_CreateDirectoryCommand = de_CreateDirectoryCommand;
934
925
  const de_CreateDirectoryCommandError = async (output, context) => {
@@ -952,10 +943,9 @@ const de_CreateDirectoryCommandError = async (output, context) => {
952
943
  throw await de_ServiceExceptionRes(parsedOutput, context);
953
944
  default:
954
945
  const parsedBody = parsedOutput.body;
955
- (0, smithy_client_1.throwDefaultError)({
946
+ return throwDefaultError({
956
947
  output,
957
948
  parsedBody,
958
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
959
949
  errorCode,
960
950
  });
961
951
  }
@@ -966,12 +956,12 @@ const de_CreateLogSubscriptionCommand = async (output, context) => {
966
956
  }
967
957
  const data = await parseBody(output.body, context);
968
958
  let contents = {};
969
- contents = de_CreateLogSubscriptionResult(data, context);
959
+ contents = (0, smithy_client_1._json)(data);
970
960
  const response = {
971
961
  $metadata: deserializeMetadata(output),
972
962
  ...contents,
973
963
  };
974
- return Promise.resolve(response);
964
+ return response;
975
965
  };
976
966
  exports.de_CreateLogSubscriptionCommand = de_CreateLogSubscriptionCommand;
977
967
  const de_CreateLogSubscriptionCommandError = async (output, context) => {
@@ -1001,10 +991,9 @@ const de_CreateLogSubscriptionCommandError = async (output, context) => {
1001
991
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1002
992
  default:
1003
993
  const parsedBody = parsedOutput.body;
1004
- (0, smithy_client_1.throwDefaultError)({
994
+ return throwDefaultError({
1005
995
  output,
1006
996
  parsedBody,
1007
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1008
997
  errorCode,
1009
998
  });
1010
999
  }
@@ -1015,12 +1004,12 @@ const de_CreateMicrosoftADCommand = async (output, context) => {
1015
1004
  }
1016
1005
  const data = await parseBody(output.body, context);
1017
1006
  let contents = {};
1018
- contents = de_CreateMicrosoftADResult(data, context);
1007
+ contents = (0, smithy_client_1._json)(data);
1019
1008
  const response = {
1020
1009
  $metadata: deserializeMetadata(output),
1021
1010
  ...contents,
1022
1011
  };
1023
- return Promise.resolve(response);
1012
+ return response;
1024
1013
  };
1025
1014
  exports.de_CreateMicrosoftADCommand = de_CreateMicrosoftADCommand;
1026
1015
  const de_CreateMicrosoftADCommandError = async (output, context) => {
@@ -1047,10 +1036,9 @@ const de_CreateMicrosoftADCommandError = async (output, context) => {
1047
1036
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1048
1037
  default:
1049
1038
  const parsedBody = parsedOutput.body;
1050
- (0, smithy_client_1.throwDefaultError)({
1039
+ return throwDefaultError({
1051
1040
  output,
1052
1041
  parsedBody,
1053
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1054
1042
  errorCode,
1055
1043
  });
1056
1044
  }
@@ -1061,12 +1049,12 @@ const de_CreateSnapshotCommand = async (output, context) => {
1061
1049
  }
1062
1050
  const data = await parseBody(output.body, context);
1063
1051
  let contents = {};
1064
- contents = de_CreateSnapshotResult(data, context);
1052
+ contents = (0, smithy_client_1._json)(data);
1065
1053
  const response = {
1066
1054
  $metadata: deserializeMetadata(output),
1067
1055
  ...contents,
1068
1056
  };
1069
- return Promise.resolve(response);
1057
+ return response;
1070
1058
  };
1071
1059
  exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
1072
1060
  const de_CreateSnapshotCommandError = async (output, context) => {
@@ -1093,10 +1081,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
1093
1081
  throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
1094
1082
  default:
1095
1083
  const parsedBody = parsedOutput.body;
1096
- (0, smithy_client_1.throwDefaultError)({
1084
+ return throwDefaultError({
1097
1085
  output,
1098
1086
  parsedBody,
1099
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1100
1087
  errorCode,
1101
1088
  });
1102
1089
  }
@@ -1107,12 +1094,12 @@ const de_CreateTrustCommand = async (output, context) => {
1107
1094
  }
1108
1095
  const data = await parseBody(output.body, context);
1109
1096
  let contents = {};
1110
- contents = de_CreateTrustResult(data, context);
1097
+ contents = (0, smithy_client_1._json)(data);
1111
1098
  const response = {
1112
1099
  $metadata: deserializeMetadata(output),
1113
1100
  ...contents,
1114
1101
  };
1115
- return Promise.resolve(response);
1102
+ return response;
1116
1103
  };
1117
1104
  exports.de_CreateTrustCommand = de_CreateTrustCommand;
1118
1105
  const de_CreateTrustCommandError = async (output, context) => {
@@ -1142,10 +1129,9 @@ const de_CreateTrustCommandError = async (output, context) => {
1142
1129
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1143
1130
  default:
1144
1131
  const parsedBody = parsedOutput.body;
1145
- (0, smithy_client_1.throwDefaultError)({
1132
+ return throwDefaultError({
1146
1133
  output,
1147
1134
  parsedBody,
1148
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1149
1135
  errorCode,
1150
1136
  });
1151
1137
  }
@@ -1156,12 +1142,12 @@ const de_DeleteConditionalForwarderCommand = async (output, context) => {
1156
1142
  }
1157
1143
  const data = await parseBody(output.body, context);
1158
1144
  let contents = {};
1159
- contents = de_DeleteConditionalForwarderResult(data, context);
1145
+ contents = (0, smithy_client_1._json)(data);
1160
1146
  const response = {
1161
1147
  $metadata: deserializeMetadata(output),
1162
1148
  ...contents,
1163
1149
  };
1164
- return Promise.resolve(response);
1150
+ return response;
1165
1151
  };
1166
1152
  exports.de_DeleteConditionalForwarderCommand = de_DeleteConditionalForwarderCommand;
1167
1153
  const de_DeleteConditionalForwarderCommandError = async (output, context) => {
@@ -1191,10 +1177,9 @@ const de_DeleteConditionalForwarderCommandError = async (output, context) => {
1191
1177
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1192
1178
  default:
1193
1179
  const parsedBody = parsedOutput.body;
1194
- (0, smithy_client_1.throwDefaultError)({
1180
+ return throwDefaultError({
1195
1181
  output,
1196
1182
  parsedBody,
1197
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1198
1183
  errorCode,
1199
1184
  });
1200
1185
  }
@@ -1205,12 +1190,12 @@ const de_DeleteDirectoryCommand = async (output, context) => {
1205
1190
  }
1206
1191
  const data = await parseBody(output.body, context);
1207
1192
  let contents = {};
1208
- contents = de_DeleteDirectoryResult(data, context);
1193
+ contents = (0, smithy_client_1._json)(data);
1209
1194
  const response = {
1210
1195
  $metadata: deserializeMetadata(output),
1211
1196
  ...contents,
1212
1197
  };
1213
- return Promise.resolve(response);
1198
+ return response;
1214
1199
  };
1215
1200
  exports.de_DeleteDirectoryCommand = de_DeleteDirectoryCommand;
1216
1201
  const de_DeleteDirectoryCommandError = async (output, context) => {
@@ -1231,10 +1216,9 @@ const de_DeleteDirectoryCommandError = async (output, context) => {
1231
1216
  throw await de_ServiceExceptionRes(parsedOutput, context);
1232
1217
  default:
1233
1218
  const parsedBody = parsedOutput.body;
1234
- (0, smithy_client_1.throwDefaultError)({
1219
+ return throwDefaultError({
1235
1220
  output,
1236
1221
  parsedBody,
1237
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1238
1222
  errorCode,
1239
1223
  });
1240
1224
  }
@@ -1245,12 +1229,12 @@ const de_DeleteLogSubscriptionCommand = async (output, context) => {
1245
1229
  }
1246
1230
  const data = await parseBody(output.body, context);
1247
1231
  let contents = {};
1248
- contents = de_DeleteLogSubscriptionResult(data, context);
1232
+ contents = (0, smithy_client_1._json)(data);
1249
1233
  const response = {
1250
1234
  $metadata: deserializeMetadata(output),
1251
1235
  ...contents,
1252
1236
  };
1253
- return Promise.resolve(response);
1237
+ return response;
1254
1238
  };
1255
1239
  exports.de_DeleteLogSubscriptionCommand = de_DeleteLogSubscriptionCommand;
1256
1240
  const de_DeleteLogSubscriptionCommandError = async (output, context) => {
@@ -1274,10 +1258,9 @@ const de_DeleteLogSubscriptionCommandError = async (output, context) => {
1274
1258
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1275
1259
  default:
1276
1260
  const parsedBody = parsedOutput.body;
1277
- (0, smithy_client_1.throwDefaultError)({
1261
+ return throwDefaultError({
1278
1262
  output,
1279
1263
  parsedBody,
1280
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1281
1264
  errorCode,
1282
1265
  });
1283
1266
  }
@@ -1288,12 +1271,12 @@ const de_DeleteSnapshotCommand = async (output, context) => {
1288
1271
  }
1289
1272
  const data = await parseBody(output.body, context);
1290
1273
  let contents = {};
1291
- contents = de_DeleteSnapshotResult(data, context);
1274
+ contents = (0, smithy_client_1._json)(data);
1292
1275
  const response = {
1293
1276
  $metadata: deserializeMetadata(output),
1294
1277
  ...contents,
1295
1278
  };
1296
- return Promise.resolve(response);
1279
+ return response;
1297
1280
  };
1298
1281
  exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
1299
1282
  const de_DeleteSnapshotCommandError = async (output, context) => {
@@ -1317,10 +1300,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
1317
1300
  throw await de_ServiceExceptionRes(parsedOutput, context);
1318
1301
  default:
1319
1302
  const parsedBody = parsedOutput.body;
1320
- (0, smithy_client_1.throwDefaultError)({
1303
+ return throwDefaultError({
1321
1304
  output,
1322
1305
  parsedBody,
1323
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1324
1306
  errorCode,
1325
1307
  });
1326
1308
  }
@@ -1331,12 +1313,12 @@ const de_DeleteTrustCommand = async (output, context) => {
1331
1313
  }
1332
1314
  const data = await parseBody(output.body, context);
1333
1315
  let contents = {};
1334
- contents = de_DeleteTrustResult(data, context);
1316
+ contents = (0, smithy_client_1._json)(data);
1335
1317
  const response = {
1336
1318
  $metadata: deserializeMetadata(output),
1337
1319
  ...contents,
1338
1320
  };
1339
- return Promise.resolve(response);
1321
+ return response;
1340
1322
  };
1341
1323
  exports.de_DeleteTrustCommand = de_DeleteTrustCommand;
1342
1324
  const de_DeleteTrustCommandError = async (output, context) => {
@@ -1363,10 +1345,9 @@ const de_DeleteTrustCommandError = async (output, context) => {
1363
1345
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1364
1346
  default:
1365
1347
  const parsedBody = parsedOutput.body;
1366
- (0, smithy_client_1.throwDefaultError)({
1348
+ return throwDefaultError({
1367
1349
  output,
1368
1350
  parsedBody,
1369
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1370
1351
  errorCode,
1371
1352
  });
1372
1353
  }
@@ -1377,12 +1358,12 @@ const de_DeregisterCertificateCommand = async (output, context) => {
1377
1358
  }
1378
1359
  const data = await parseBody(output.body, context);
1379
1360
  let contents = {};
1380
- contents = de_DeregisterCertificateResult(data, context);
1361
+ contents = (0, smithy_client_1._json)(data);
1381
1362
  const response = {
1382
1363
  $metadata: deserializeMetadata(output),
1383
1364
  ...contents,
1384
1365
  };
1385
- return Promise.resolve(response);
1366
+ return response;
1386
1367
  };
1387
1368
  exports.de_DeregisterCertificateCommand = de_DeregisterCertificateCommand;
1388
1369
  const de_DeregisterCertificateCommandError = async (output, context) => {
@@ -1418,10 +1399,9 @@ const de_DeregisterCertificateCommandError = async (output, context) => {
1418
1399
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1419
1400
  default:
1420
1401
  const parsedBody = parsedOutput.body;
1421
- (0, smithy_client_1.throwDefaultError)({
1402
+ return throwDefaultError({
1422
1403
  output,
1423
1404
  parsedBody,
1424
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1425
1405
  errorCode,
1426
1406
  });
1427
1407
  }
@@ -1432,12 +1412,12 @@ const de_DeregisterEventTopicCommand = async (output, context) => {
1432
1412
  }
1433
1413
  const data = await parseBody(output.body, context);
1434
1414
  let contents = {};
1435
- contents = de_DeregisterEventTopicResult(data, context);
1415
+ contents = (0, smithy_client_1._json)(data);
1436
1416
  const response = {
1437
1417
  $metadata: deserializeMetadata(output),
1438
1418
  ...contents,
1439
1419
  };
1440
- return Promise.resolve(response);
1420
+ return response;
1441
1421
  };
1442
1422
  exports.de_DeregisterEventTopicCommand = de_DeregisterEventTopicCommand;
1443
1423
  const de_DeregisterEventTopicCommandError = async (output, context) => {
@@ -1461,10 +1441,9 @@ const de_DeregisterEventTopicCommandError = async (output, context) => {
1461
1441
  throw await de_ServiceExceptionRes(parsedOutput, context);
1462
1442
  default:
1463
1443
  const parsedBody = parsedOutput.body;
1464
- (0, smithy_client_1.throwDefaultError)({
1444
+ return throwDefaultError({
1465
1445
  output,
1466
1446
  parsedBody,
1467
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1468
1447
  errorCode,
1469
1448
  });
1470
1449
  }
@@ -1480,7 +1459,7 @@ const de_DescribeCertificateCommand = async (output, context) => {
1480
1459
  $metadata: deserializeMetadata(output),
1481
1460
  ...contents,
1482
1461
  };
1483
- return Promise.resolve(response);
1462
+ return response;
1484
1463
  };
1485
1464
  exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
1486
1465
  const de_DescribeCertificateCommandError = async (output, context) => {
@@ -1510,10 +1489,9 @@ const de_DescribeCertificateCommandError = async (output, context) => {
1510
1489
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1511
1490
  default:
1512
1491
  const parsedBody = parsedOutput.body;
1513
- (0, smithy_client_1.throwDefaultError)({
1492
+ return throwDefaultError({
1514
1493
  output,
1515
1494
  parsedBody,
1516
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1517
1495
  errorCode,
1518
1496
  });
1519
1497
  }
@@ -1529,7 +1507,7 @@ const de_DescribeClientAuthenticationSettingsCommand = async (output, context) =
1529
1507
  $metadata: deserializeMetadata(output),
1530
1508
  ...contents,
1531
1509
  };
1532
- return Promise.resolve(response);
1510
+ return response;
1533
1511
  };
1534
1512
  exports.de_DescribeClientAuthenticationSettingsCommand = de_DescribeClientAuthenticationSettingsCommand;
1535
1513
  const de_DescribeClientAuthenticationSettingsCommandError = async (output, context) => {
@@ -1559,10 +1537,9 @@ const de_DescribeClientAuthenticationSettingsCommandError = async (output, conte
1559
1537
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1560
1538
  default:
1561
1539
  const parsedBody = parsedOutput.body;
1562
- (0, smithy_client_1.throwDefaultError)({
1540
+ return throwDefaultError({
1563
1541
  output,
1564
1542
  parsedBody,
1565
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1566
1543
  errorCode,
1567
1544
  });
1568
1545
  }
@@ -1573,12 +1550,12 @@ const de_DescribeConditionalForwardersCommand = async (output, context) => {
1573
1550
  }
1574
1551
  const data = await parseBody(output.body, context);
1575
1552
  let contents = {};
1576
- contents = de_DescribeConditionalForwardersResult(data, context);
1553
+ contents = (0, smithy_client_1._json)(data);
1577
1554
  const response = {
1578
1555
  $metadata: deserializeMetadata(output),
1579
1556
  ...contents,
1580
1557
  };
1581
- return Promise.resolve(response);
1558
+ return response;
1582
1559
  };
1583
1560
  exports.de_DescribeConditionalForwardersCommand = de_DescribeConditionalForwardersCommand;
1584
1561
  const de_DescribeConditionalForwardersCommandError = async (output, context) => {
@@ -1608,10 +1585,9 @@ const de_DescribeConditionalForwardersCommandError = async (output, context) =>
1608
1585
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1609
1586
  default:
1610
1587
  const parsedBody = parsedOutput.body;
1611
- (0, smithy_client_1.throwDefaultError)({
1588
+ return throwDefaultError({
1612
1589
  output,
1613
1590
  parsedBody,
1614
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1615
1591
  errorCode,
1616
1592
  });
1617
1593
  }
@@ -1627,7 +1603,7 @@ const de_DescribeDirectoriesCommand = async (output, context) => {
1627
1603
  $metadata: deserializeMetadata(output),
1628
1604
  ...contents,
1629
1605
  };
1630
- return Promise.resolve(response);
1606
+ return response;
1631
1607
  };
1632
1608
  exports.de_DescribeDirectoriesCommand = de_DescribeDirectoriesCommand;
1633
1609
  const de_DescribeDirectoriesCommandError = async (output, context) => {
@@ -1654,10 +1630,9 @@ const de_DescribeDirectoriesCommandError = async (output, context) => {
1654
1630
  throw await de_ServiceExceptionRes(parsedOutput, context);
1655
1631
  default:
1656
1632
  const parsedBody = parsedOutput.body;
1657
- (0, smithy_client_1.throwDefaultError)({
1633
+ return throwDefaultError({
1658
1634
  output,
1659
1635
  parsedBody,
1660
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1661
1636
  errorCode,
1662
1637
  });
1663
1638
  }
@@ -1673,7 +1648,7 @@ const de_DescribeDomainControllersCommand = async (output, context) => {
1673
1648
  $metadata: deserializeMetadata(output),
1674
1649
  ...contents,
1675
1650
  };
1676
- return Promise.resolve(response);
1651
+ return response;
1677
1652
  };
1678
1653
  exports.de_DescribeDomainControllersCommand = de_DescribeDomainControllersCommand;
1679
1654
  const de_DescribeDomainControllersCommandError = async (output, context) => {
@@ -1703,10 +1678,9 @@ const de_DescribeDomainControllersCommandError = async (output, context) => {
1703
1678
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1704
1679
  default:
1705
1680
  const parsedBody = parsedOutput.body;
1706
- (0, smithy_client_1.throwDefaultError)({
1681
+ return throwDefaultError({
1707
1682
  output,
1708
1683
  parsedBody,
1709
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1710
1684
  errorCode,
1711
1685
  });
1712
1686
  }
@@ -1722,7 +1696,7 @@ const de_DescribeEventTopicsCommand = async (output, context) => {
1722
1696
  $metadata: deserializeMetadata(output),
1723
1697
  ...contents,
1724
1698
  };
1725
- return Promise.resolve(response);
1699
+ return response;
1726
1700
  };
1727
1701
  exports.de_DescribeEventTopicsCommand = de_DescribeEventTopicsCommand;
1728
1702
  const de_DescribeEventTopicsCommandError = async (output, context) => {
@@ -1746,10 +1720,9 @@ const de_DescribeEventTopicsCommandError = async (output, context) => {
1746
1720
  throw await de_ServiceExceptionRes(parsedOutput, context);
1747
1721
  default:
1748
1722
  const parsedBody = parsedOutput.body;
1749
- (0, smithy_client_1.throwDefaultError)({
1723
+ return throwDefaultError({
1750
1724
  output,
1751
1725
  parsedBody,
1752
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1753
1726
  errorCode,
1754
1727
  });
1755
1728
  }
@@ -1765,7 +1738,7 @@ const de_DescribeLDAPSSettingsCommand = async (output, context) => {
1765
1738
  $metadata: deserializeMetadata(output),
1766
1739
  ...contents,
1767
1740
  };
1768
- return Promise.resolve(response);
1741
+ return response;
1769
1742
  };
1770
1743
  exports.de_DescribeLDAPSSettingsCommand = de_DescribeLDAPSSettingsCommand;
1771
1744
  const de_DescribeLDAPSSettingsCommandError = async (output, context) => {
@@ -1795,10 +1768,9 @@ const de_DescribeLDAPSSettingsCommandError = async (output, context) => {
1795
1768
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1796
1769
  default:
1797
1770
  const parsedBody = parsedOutput.body;
1798
- (0, smithy_client_1.throwDefaultError)({
1771
+ return throwDefaultError({
1799
1772
  output,
1800
1773
  parsedBody,
1801
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1802
1774
  errorCode,
1803
1775
  });
1804
1776
  }
@@ -1814,7 +1786,7 @@ const de_DescribeRegionsCommand = async (output, context) => {
1814
1786
  $metadata: deserializeMetadata(output),
1815
1787
  ...contents,
1816
1788
  };
1817
- return Promise.resolve(response);
1789
+ return response;
1818
1790
  };
1819
1791
  exports.de_DescribeRegionsCommand = de_DescribeRegionsCommand;
1820
1792
  const de_DescribeRegionsCommandError = async (output, context) => {
@@ -1847,10 +1819,9 @@ const de_DescribeRegionsCommandError = async (output, context) => {
1847
1819
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1848
1820
  default:
1849
1821
  const parsedBody = parsedOutput.body;
1850
- (0, smithy_client_1.throwDefaultError)({
1822
+ return throwDefaultError({
1851
1823
  output,
1852
1824
  parsedBody,
1853
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1854
1825
  errorCode,
1855
1826
  });
1856
1827
  }
@@ -1866,7 +1837,7 @@ const de_DescribeSettingsCommand = async (output, context) => {
1866
1837
  $metadata: deserializeMetadata(output),
1867
1838
  ...contents,
1868
1839
  };
1869
- return Promise.resolve(response);
1840
+ return response;
1870
1841
  };
1871
1842
  exports.de_DescribeSettingsCommand = de_DescribeSettingsCommand;
1872
1843
  const de_DescribeSettingsCommandError = async (output, context) => {
@@ -1896,10 +1867,9 @@ const de_DescribeSettingsCommandError = async (output, context) => {
1896
1867
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1897
1868
  default:
1898
1869
  const parsedBody = parsedOutput.body;
1899
- (0, smithy_client_1.throwDefaultError)({
1870
+ return throwDefaultError({
1900
1871
  output,
1901
1872
  parsedBody,
1902
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1903
1873
  errorCode,
1904
1874
  });
1905
1875
  }
@@ -1915,7 +1885,7 @@ const de_DescribeSharedDirectoriesCommand = async (output, context) => {
1915
1885
  $metadata: deserializeMetadata(output),
1916
1886
  ...contents,
1917
1887
  };
1918
- return Promise.resolve(response);
1888
+ return response;
1919
1889
  };
1920
1890
  exports.de_DescribeSharedDirectoriesCommand = de_DescribeSharedDirectoriesCommand;
1921
1891
  const de_DescribeSharedDirectoriesCommandError = async (output, context) => {
@@ -1945,10 +1915,9 @@ const de_DescribeSharedDirectoriesCommandError = async (output, context) => {
1945
1915
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1946
1916
  default:
1947
1917
  const parsedBody = parsedOutput.body;
1948
- (0, smithy_client_1.throwDefaultError)({
1918
+ return throwDefaultError({
1949
1919
  output,
1950
1920
  parsedBody,
1951
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1952
1921
  errorCode,
1953
1922
  });
1954
1923
  }
@@ -1964,7 +1933,7 @@ const de_DescribeSnapshotsCommand = async (output, context) => {
1964
1933
  $metadata: deserializeMetadata(output),
1965
1934
  ...contents,
1966
1935
  };
1967
- return Promise.resolve(response);
1936
+ return response;
1968
1937
  };
1969
1938
  exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
1970
1939
  const de_DescribeSnapshotsCommandError = async (output, context) => {
@@ -1991,10 +1960,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
1991
1960
  throw await de_ServiceExceptionRes(parsedOutput, context);
1992
1961
  default:
1993
1962
  const parsedBody = parsedOutput.body;
1994
- (0, smithy_client_1.throwDefaultError)({
1963
+ return throwDefaultError({
1995
1964
  output,
1996
1965
  parsedBody,
1997
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
1998
1966
  errorCode,
1999
1967
  });
2000
1968
  }
@@ -2010,7 +1978,7 @@ const de_DescribeTrustsCommand = async (output, context) => {
2010
1978
  $metadata: deserializeMetadata(output),
2011
1979
  ...contents,
2012
1980
  };
2013
- return Promise.resolve(response);
1981
+ return response;
2014
1982
  };
2015
1983
  exports.de_DescribeTrustsCommand = de_DescribeTrustsCommand;
2016
1984
  const de_DescribeTrustsCommandError = async (output, context) => {
@@ -2040,10 +2008,9 @@ const de_DescribeTrustsCommandError = async (output, context) => {
2040
2008
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2041
2009
  default:
2042
2010
  const parsedBody = parsedOutput.body;
2043
- (0, smithy_client_1.throwDefaultError)({
2011
+ return throwDefaultError({
2044
2012
  output,
2045
2013
  parsedBody,
2046
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2047
2014
  errorCode,
2048
2015
  });
2049
2016
  }
@@ -2059,7 +2026,7 @@ const de_DescribeUpdateDirectoryCommand = async (output, context) => {
2059
2026
  $metadata: deserializeMetadata(output),
2060
2027
  ...contents,
2061
2028
  };
2062
- return Promise.resolve(response);
2029
+ return response;
2063
2030
  };
2064
2031
  exports.de_DescribeUpdateDirectoryCommand = de_DescribeUpdateDirectoryCommand;
2065
2032
  const de_DescribeUpdateDirectoryCommandError = async (output, context) => {
@@ -2089,10 +2056,9 @@ const de_DescribeUpdateDirectoryCommandError = async (output, context) => {
2089
2056
  throw await de_ServiceExceptionRes(parsedOutput, context);
2090
2057
  default:
2091
2058
  const parsedBody = parsedOutput.body;
2092
- (0, smithy_client_1.throwDefaultError)({
2059
+ return throwDefaultError({
2093
2060
  output,
2094
2061
  parsedBody,
2095
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2096
2062
  errorCode,
2097
2063
  });
2098
2064
  }
@@ -2103,12 +2069,12 @@ const de_DisableClientAuthenticationCommand = async (output, context) => {
2103
2069
  }
2104
2070
  const data = await parseBody(output.body, context);
2105
2071
  let contents = {};
2106
- contents = de_DisableClientAuthenticationResult(data, context);
2072
+ contents = (0, smithy_client_1._json)(data);
2107
2073
  const response = {
2108
2074
  $metadata: deserializeMetadata(output),
2109
2075
  ...contents,
2110
2076
  };
2111
- return Promise.resolve(response);
2077
+ return response;
2112
2078
  };
2113
2079
  exports.de_DisableClientAuthenticationCommand = de_DisableClientAuthenticationCommand;
2114
2080
  const de_DisableClientAuthenticationCommandError = async (output, context) => {
@@ -2138,10 +2104,9 @@ const de_DisableClientAuthenticationCommandError = async (output, context) => {
2138
2104
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2139
2105
  default:
2140
2106
  const parsedBody = parsedOutput.body;
2141
- (0, smithy_client_1.throwDefaultError)({
2107
+ return throwDefaultError({
2142
2108
  output,
2143
2109
  parsedBody,
2144
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2145
2110
  errorCode,
2146
2111
  });
2147
2112
  }
@@ -2152,12 +2117,12 @@ const de_DisableLDAPSCommand = async (output, context) => {
2152
2117
  }
2153
2118
  const data = await parseBody(output.body, context);
2154
2119
  let contents = {};
2155
- contents = de_DisableLDAPSResult(data, context);
2120
+ contents = (0, smithy_client_1._json)(data);
2156
2121
  const response = {
2157
2122
  $metadata: deserializeMetadata(output),
2158
2123
  ...contents,
2159
2124
  };
2160
- return Promise.resolve(response);
2125
+ return response;
2161
2126
  };
2162
2127
  exports.de_DisableLDAPSCommand = de_DisableLDAPSCommand;
2163
2128
  const de_DisableLDAPSCommandError = async (output, context) => {
@@ -2190,10 +2155,9 @@ const de_DisableLDAPSCommandError = async (output, context) => {
2190
2155
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2191
2156
  default:
2192
2157
  const parsedBody = parsedOutput.body;
2193
- (0, smithy_client_1.throwDefaultError)({
2158
+ return throwDefaultError({
2194
2159
  output,
2195
2160
  parsedBody,
2196
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2197
2161
  errorCode,
2198
2162
  });
2199
2163
  }
@@ -2204,12 +2168,12 @@ const de_DisableRadiusCommand = async (output, context) => {
2204
2168
  }
2205
2169
  const data = await parseBody(output.body, context);
2206
2170
  let contents = {};
2207
- contents = de_DisableRadiusResult(data, context);
2171
+ contents = (0, smithy_client_1._json)(data);
2208
2172
  const response = {
2209
2173
  $metadata: deserializeMetadata(output),
2210
2174
  ...contents,
2211
2175
  };
2212
- return Promise.resolve(response);
2176
+ return response;
2213
2177
  };
2214
2178
  exports.de_DisableRadiusCommand = de_DisableRadiusCommand;
2215
2179
  const de_DisableRadiusCommandError = async (output, context) => {
@@ -2230,10 +2194,9 @@ const de_DisableRadiusCommandError = async (output, context) => {
2230
2194
  throw await de_ServiceExceptionRes(parsedOutput, context);
2231
2195
  default:
2232
2196
  const parsedBody = parsedOutput.body;
2233
- (0, smithy_client_1.throwDefaultError)({
2197
+ return throwDefaultError({
2234
2198
  output,
2235
2199
  parsedBody,
2236
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2237
2200
  errorCode,
2238
2201
  });
2239
2202
  }
@@ -2244,12 +2207,12 @@ const de_DisableSsoCommand = async (output, context) => {
2244
2207
  }
2245
2208
  const data = await parseBody(output.body, context);
2246
2209
  let contents = {};
2247
- contents = de_DisableSsoResult(data, context);
2210
+ contents = (0, smithy_client_1._json)(data);
2248
2211
  const response = {
2249
2212
  $metadata: deserializeMetadata(output),
2250
2213
  ...contents,
2251
2214
  };
2252
- return Promise.resolve(response);
2215
+ return response;
2253
2216
  };
2254
2217
  exports.de_DisableSsoCommand = de_DisableSsoCommand;
2255
2218
  const de_DisableSsoCommandError = async (output, context) => {
@@ -2276,10 +2239,9 @@ const de_DisableSsoCommandError = async (output, context) => {
2276
2239
  throw await de_ServiceExceptionRes(parsedOutput, context);
2277
2240
  default:
2278
2241
  const parsedBody = parsedOutput.body;
2279
- (0, smithy_client_1.throwDefaultError)({
2242
+ return throwDefaultError({
2280
2243
  output,
2281
2244
  parsedBody,
2282
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2283
2245
  errorCode,
2284
2246
  });
2285
2247
  }
@@ -2290,12 +2252,12 @@ const de_EnableClientAuthenticationCommand = async (output, context) => {
2290
2252
  }
2291
2253
  const data = await parseBody(output.body, context);
2292
2254
  let contents = {};
2293
- contents = de_EnableClientAuthenticationResult(data, context);
2255
+ contents = (0, smithy_client_1._json)(data);
2294
2256
  const response = {
2295
2257
  $metadata: deserializeMetadata(output),
2296
2258
  ...contents,
2297
2259
  };
2298
- return Promise.resolve(response);
2260
+ return response;
2299
2261
  };
2300
2262
  exports.de_EnableClientAuthenticationCommand = de_EnableClientAuthenticationCommand;
2301
2263
  const de_EnableClientAuthenticationCommandError = async (output, context) => {
@@ -2328,10 +2290,9 @@ const de_EnableClientAuthenticationCommandError = async (output, context) => {
2328
2290
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2329
2291
  default:
2330
2292
  const parsedBody = parsedOutput.body;
2331
- (0, smithy_client_1.throwDefaultError)({
2293
+ return throwDefaultError({
2332
2294
  output,
2333
2295
  parsedBody,
2334
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2335
2296
  errorCode,
2336
2297
  });
2337
2298
  }
@@ -2342,12 +2303,12 @@ const de_EnableLDAPSCommand = async (output, context) => {
2342
2303
  }
2343
2304
  const data = await parseBody(output.body, context);
2344
2305
  let contents = {};
2345
- contents = de_EnableLDAPSResult(data, context);
2306
+ contents = (0, smithy_client_1._json)(data);
2346
2307
  const response = {
2347
2308
  $metadata: deserializeMetadata(output),
2348
2309
  ...contents,
2349
2310
  };
2350
- return Promise.resolve(response);
2311
+ return response;
2351
2312
  };
2352
2313
  exports.de_EnableLDAPSCommand = de_EnableLDAPSCommand;
2353
2314
  const de_EnableLDAPSCommandError = async (output, context) => {
@@ -2383,10 +2344,9 @@ const de_EnableLDAPSCommandError = async (output, context) => {
2383
2344
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2384
2345
  default:
2385
2346
  const parsedBody = parsedOutput.body;
2386
- (0, smithy_client_1.throwDefaultError)({
2347
+ return throwDefaultError({
2387
2348
  output,
2388
2349
  parsedBody,
2389
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2390
2350
  errorCode,
2391
2351
  });
2392
2352
  }
@@ -2397,12 +2357,12 @@ const de_EnableRadiusCommand = async (output, context) => {
2397
2357
  }
2398
2358
  const data = await parseBody(output.body, context);
2399
2359
  let contents = {};
2400
- contents = de_EnableRadiusResult(data, context);
2360
+ contents = (0, smithy_client_1._json)(data);
2401
2361
  const response = {
2402
2362
  $metadata: deserializeMetadata(output),
2403
2363
  ...contents,
2404
2364
  };
2405
- return Promise.resolve(response);
2365
+ return response;
2406
2366
  };
2407
2367
  exports.de_EnableRadiusCommand = de_EnableRadiusCommand;
2408
2368
  const de_EnableRadiusCommandError = async (output, context) => {
@@ -2429,10 +2389,9 @@ const de_EnableRadiusCommandError = async (output, context) => {
2429
2389
  throw await de_ServiceExceptionRes(parsedOutput, context);
2430
2390
  default:
2431
2391
  const parsedBody = parsedOutput.body;
2432
- (0, smithy_client_1.throwDefaultError)({
2392
+ return throwDefaultError({
2433
2393
  output,
2434
2394
  parsedBody,
2435
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2436
2395
  errorCode,
2437
2396
  });
2438
2397
  }
@@ -2443,12 +2402,12 @@ const de_EnableSsoCommand = async (output, context) => {
2443
2402
  }
2444
2403
  const data = await parseBody(output.body, context);
2445
2404
  let contents = {};
2446
- contents = de_EnableSsoResult(data, context);
2405
+ contents = (0, smithy_client_1._json)(data);
2447
2406
  const response = {
2448
2407
  $metadata: deserializeMetadata(output),
2449
2408
  ...contents,
2450
2409
  };
2451
- return Promise.resolve(response);
2410
+ return response;
2452
2411
  };
2453
2412
  exports.de_EnableSsoCommand = de_EnableSsoCommand;
2454
2413
  const de_EnableSsoCommandError = async (output, context) => {
@@ -2475,10 +2434,9 @@ const de_EnableSsoCommandError = async (output, context) => {
2475
2434
  throw await de_ServiceExceptionRes(parsedOutput, context);
2476
2435
  default:
2477
2436
  const parsedBody = parsedOutput.body;
2478
- (0, smithy_client_1.throwDefaultError)({
2437
+ return throwDefaultError({
2479
2438
  output,
2480
2439
  parsedBody,
2481
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2482
2440
  errorCode,
2483
2441
  });
2484
2442
  }
@@ -2489,12 +2447,12 @@ const de_GetDirectoryLimitsCommand = async (output, context) => {
2489
2447
  }
2490
2448
  const data = await parseBody(output.body, context);
2491
2449
  let contents = {};
2492
- contents = de_GetDirectoryLimitsResult(data, context);
2450
+ contents = (0, smithy_client_1._json)(data);
2493
2451
  const response = {
2494
2452
  $metadata: deserializeMetadata(output),
2495
2453
  ...contents,
2496
2454
  };
2497
- return Promise.resolve(response);
2455
+ return response;
2498
2456
  };
2499
2457
  exports.de_GetDirectoryLimitsCommand = de_GetDirectoryLimitsCommand;
2500
2458
  const de_GetDirectoryLimitsCommandError = async (output, context) => {
@@ -2515,10 +2473,9 @@ const de_GetDirectoryLimitsCommandError = async (output, context) => {
2515
2473
  throw await de_ServiceExceptionRes(parsedOutput, context);
2516
2474
  default:
2517
2475
  const parsedBody = parsedOutput.body;
2518
- (0, smithy_client_1.throwDefaultError)({
2476
+ return throwDefaultError({
2519
2477
  output,
2520
2478
  parsedBody,
2521
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2522
2479
  errorCode,
2523
2480
  });
2524
2481
  }
@@ -2529,12 +2486,12 @@ const de_GetSnapshotLimitsCommand = async (output, context) => {
2529
2486
  }
2530
2487
  const data = await parseBody(output.body, context);
2531
2488
  let contents = {};
2532
- contents = de_GetSnapshotLimitsResult(data, context);
2489
+ contents = (0, smithy_client_1._json)(data);
2533
2490
  const response = {
2534
2491
  $metadata: deserializeMetadata(output),
2535
2492
  ...contents,
2536
2493
  };
2537
- return Promise.resolve(response);
2494
+ return response;
2538
2495
  };
2539
2496
  exports.de_GetSnapshotLimitsCommand = de_GetSnapshotLimitsCommand;
2540
2497
  const de_GetSnapshotLimitsCommandError = async (output, context) => {
@@ -2555,10 +2512,9 @@ const de_GetSnapshotLimitsCommandError = async (output, context) => {
2555
2512
  throw await de_ServiceExceptionRes(parsedOutput, context);
2556
2513
  default:
2557
2514
  const parsedBody = parsedOutput.body;
2558
- (0, smithy_client_1.throwDefaultError)({
2515
+ return throwDefaultError({
2559
2516
  output,
2560
2517
  parsedBody,
2561
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2562
2518
  errorCode,
2563
2519
  });
2564
2520
  }
@@ -2574,7 +2530,7 @@ const de_ListCertificatesCommand = async (output, context) => {
2574
2530
  $metadata: deserializeMetadata(output),
2575
2531
  ...contents,
2576
2532
  };
2577
- return Promise.resolve(response);
2533
+ return response;
2578
2534
  };
2579
2535
  exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
2580
2536
  const de_ListCertificatesCommandError = async (output, context) => {
@@ -2604,10 +2560,9 @@ const de_ListCertificatesCommandError = async (output, context) => {
2604
2560
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2605
2561
  default:
2606
2562
  const parsedBody = parsedOutput.body;
2607
- (0, smithy_client_1.throwDefaultError)({
2563
+ return throwDefaultError({
2608
2564
  output,
2609
2565
  parsedBody,
2610
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2611
2566
  errorCode,
2612
2567
  });
2613
2568
  }
@@ -2623,7 +2578,7 @@ const de_ListIpRoutesCommand = async (output, context) => {
2623
2578
  $metadata: deserializeMetadata(output),
2624
2579
  ...contents,
2625
2580
  };
2626
- return Promise.resolve(response);
2581
+ return response;
2627
2582
  };
2628
2583
  exports.de_ListIpRoutesCommand = de_ListIpRoutesCommand;
2629
2584
  const de_ListIpRoutesCommandError = async (output, context) => {
@@ -2650,10 +2605,9 @@ const de_ListIpRoutesCommandError = async (output, context) => {
2650
2605
  throw await de_ServiceExceptionRes(parsedOutput, context);
2651
2606
  default:
2652
2607
  const parsedBody = parsedOutput.body;
2653
- (0, smithy_client_1.throwDefaultError)({
2608
+ return throwDefaultError({
2654
2609
  output,
2655
2610
  parsedBody,
2656
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2657
2611
  errorCode,
2658
2612
  });
2659
2613
  }
@@ -2669,7 +2623,7 @@ const de_ListLogSubscriptionsCommand = async (output, context) => {
2669
2623
  $metadata: deserializeMetadata(output),
2670
2624
  ...contents,
2671
2625
  };
2672
- return Promise.resolve(response);
2626
+ return response;
2673
2627
  };
2674
2628
  exports.de_ListLogSubscriptionsCommand = de_ListLogSubscriptionsCommand;
2675
2629
  const de_ListLogSubscriptionsCommandError = async (output, context) => {
@@ -2693,10 +2647,9 @@ const de_ListLogSubscriptionsCommandError = async (output, context) => {
2693
2647
  throw await de_ServiceExceptionRes(parsedOutput, context);
2694
2648
  default:
2695
2649
  const parsedBody = parsedOutput.body;
2696
- (0, smithy_client_1.throwDefaultError)({
2650
+ return throwDefaultError({
2697
2651
  output,
2698
2652
  parsedBody,
2699
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2700
2653
  errorCode,
2701
2654
  });
2702
2655
  }
@@ -2712,7 +2665,7 @@ const de_ListSchemaExtensionsCommand = async (output, context) => {
2712
2665
  $metadata: deserializeMetadata(output),
2713
2666
  ...contents,
2714
2667
  };
2715
- return Promise.resolve(response);
2668
+ return response;
2716
2669
  };
2717
2670
  exports.de_ListSchemaExtensionsCommand = de_ListSchemaExtensionsCommand;
2718
2671
  const de_ListSchemaExtensionsCommandError = async (output, context) => {
@@ -2736,10 +2689,9 @@ const de_ListSchemaExtensionsCommandError = async (output, context) => {
2736
2689
  throw await de_ServiceExceptionRes(parsedOutput, context);
2737
2690
  default:
2738
2691
  const parsedBody = parsedOutput.body;
2739
- (0, smithy_client_1.throwDefaultError)({
2692
+ return throwDefaultError({
2740
2693
  output,
2741
2694
  parsedBody,
2742
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2743
2695
  errorCode,
2744
2696
  });
2745
2697
  }
@@ -2750,12 +2702,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2750
2702
  }
2751
2703
  const data = await parseBody(output.body, context);
2752
2704
  let contents = {};
2753
- contents = de_ListTagsForResourceResult(data, context);
2705
+ contents = (0, smithy_client_1._json)(data);
2754
2706
  const response = {
2755
2707
  $metadata: deserializeMetadata(output),
2756
2708
  ...contents,
2757
2709
  };
2758
- return Promise.resolve(response);
2710
+ return response;
2759
2711
  };
2760
2712
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2761
2713
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2782,10 +2734,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2782
2734
  throw await de_ServiceExceptionRes(parsedOutput, context);
2783
2735
  default:
2784
2736
  const parsedBody = parsedOutput.body;
2785
- (0, smithy_client_1.throwDefaultError)({
2737
+ return throwDefaultError({
2786
2738
  output,
2787
2739
  parsedBody,
2788
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2789
2740
  errorCode,
2790
2741
  });
2791
2742
  }
@@ -2796,12 +2747,12 @@ const de_RegisterCertificateCommand = async (output, context) => {
2796
2747
  }
2797
2748
  const data = await parseBody(output.body, context);
2798
2749
  let contents = {};
2799
- contents = de_RegisterCertificateResult(data, context);
2750
+ contents = (0, smithy_client_1._json)(data);
2800
2751
  const response = {
2801
2752
  $metadata: deserializeMetadata(output),
2802
2753
  ...contents,
2803
2754
  };
2804
- return Promise.resolve(response);
2755
+ return response;
2805
2756
  };
2806
2757
  exports.de_RegisterCertificateCommand = de_RegisterCertificateCommand;
2807
2758
  const de_RegisterCertificateCommandError = async (output, context) => {
@@ -2840,10 +2791,9 @@ const de_RegisterCertificateCommandError = async (output, context) => {
2840
2791
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2841
2792
  default:
2842
2793
  const parsedBody = parsedOutput.body;
2843
- (0, smithy_client_1.throwDefaultError)({
2794
+ return throwDefaultError({
2844
2795
  output,
2845
2796
  parsedBody,
2846
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2847
2797
  errorCode,
2848
2798
  });
2849
2799
  }
@@ -2854,12 +2804,12 @@ const de_RegisterEventTopicCommand = async (output, context) => {
2854
2804
  }
2855
2805
  const data = await parseBody(output.body, context);
2856
2806
  let contents = {};
2857
- contents = de_RegisterEventTopicResult(data, context);
2807
+ contents = (0, smithy_client_1._json)(data);
2858
2808
  const response = {
2859
2809
  $metadata: deserializeMetadata(output),
2860
2810
  ...contents,
2861
2811
  };
2862
- return Promise.resolve(response);
2812
+ return response;
2863
2813
  };
2864
2814
  exports.de_RegisterEventTopicCommand = de_RegisterEventTopicCommand;
2865
2815
  const de_RegisterEventTopicCommandError = async (output, context) => {
@@ -2883,10 +2833,9 @@ const de_RegisterEventTopicCommandError = async (output, context) => {
2883
2833
  throw await de_ServiceExceptionRes(parsedOutput, context);
2884
2834
  default:
2885
2835
  const parsedBody = parsedOutput.body;
2886
- (0, smithy_client_1.throwDefaultError)({
2836
+ return throwDefaultError({
2887
2837
  output,
2888
2838
  parsedBody,
2889
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2890
2839
  errorCode,
2891
2840
  });
2892
2841
  }
@@ -2897,12 +2846,12 @@ const de_RejectSharedDirectoryCommand = async (output, context) => {
2897
2846
  }
2898
2847
  const data = await parseBody(output.body, context);
2899
2848
  let contents = {};
2900
- contents = de_RejectSharedDirectoryResult(data, context);
2849
+ contents = (0, smithy_client_1._json)(data);
2901
2850
  const response = {
2902
2851
  $metadata: deserializeMetadata(output),
2903
2852
  ...contents,
2904
2853
  };
2905
- return Promise.resolve(response);
2854
+ return response;
2906
2855
  };
2907
2856
  exports.de_RejectSharedDirectoryCommand = de_RejectSharedDirectoryCommand;
2908
2857
  const de_RejectSharedDirectoryCommandError = async (output, context) => {
@@ -2929,10 +2878,9 @@ const de_RejectSharedDirectoryCommandError = async (output, context) => {
2929
2878
  throw await de_ServiceExceptionRes(parsedOutput, context);
2930
2879
  default:
2931
2880
  const parsedBody = parsedOutput.body;
2932
- (0, smithy_client_1.throwDefaultError)({
2881
+ return throwDefaultError({
2933
2882
  output,
2934
2883
  parsedBody,
2935
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2936
2884
  errorCode,
2937
2885
  });
2938
2886
  }
@@ -2943,12 +2891,12 @@ const de_RemoveIpRoutesCommand = async (output, context) => {
2943
2891
  }
2944
2892
  const data = await parseBody(output.body, context);
2945
2893
  let contents = {};
2946
- contents = de_RemoveIpRoutesResult(data, context);
2894
+ contents = (0, smithy_client_1._json)(data);
2947
2895
  const response = {
2948
2896
  $metadata: deserializeMetadata(output),
2949
2897
  ...contents,
2950
2898
  };
2951
- return Promise.resolve(response);
2899
+ return response;
2952
2900
  };
2953
2901
  exports.de_RemoveIpRoutesCommand = de_RemoveIpRoutesCommand;
2954
2902
  const de_RemoveIpRoutesCommandError = async (output, context) => {
@@ -2975,10 +2923,9 @@ const de_RemoveIpRoutesCommandError = async (output, context) => {
2975
2923
  throw await de_ServiceExceptionRes(parsedOutput, context);
2976
2924
  default:
2977
2925
  const parsedBody = parsedOutput.body;
2978
- (0, smithy_client_1.throwDefaultError)({
2926
+ return throwDefaultError({
2979
2927
  output,
2980
2928
  parsedBody,
2981
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
2982
2929
  errorCode,
2983
2930
  });
2984
2931
  }
@@ -2989,12 +2936,12 @@ const de_RemoveRegionCommand = async (output, context) => {
2989
2936
  }
2990
2937
  const data = await parseBody(output.body, context);
2991
2938
  let contents = {};
2992
- contents = de_RemoveRegionResult(data, context);
2939
+ contents = (0, smithy_client_1._json)(data);
2993
2940
  const response = {
2994
2941
  $metadata: deserializeMetadata(output),
2995
2942
  ...contents,
2996
2943
  };
2997
- return Promise.resolve(response);
2944
+ return response;
2998
2945
  };
2999
2946
  exports.de_RemoveRegionCommand = de_RemoveRegionCommand;
3000
2947
  const de_RemoveRegionCommandError = async (output, context) => {
@@ -3024,10 +2971,9 @@ const de_RemoveRegionCommandError = async (output, context) => {
3024
2971
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3025
2972
  default:
3026
2973
  const parsedBody = parsedOutput.body;
3027
- (0, smithy_client_1.throwDefaultError)({
2974
+ return throwDefaultError({
3028
2975
  output,
3029
2976
  parsedBody,
3030
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3031
2977
  errorCode,
3032
2978
  });
3033
2979
  }
@@ -3038,12 +2984,12 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
3038
2984
  }
3039
2985
  const data = await parseBody(output.body, context);
3040
2986
  let contents = {};
3041
- contents = de_RemoveTagsFromResourceResult(data, context);
2987
+ contents = (0, smithy_client_1._json)(data);
3042
2988
  const response = {
3043
2989
  $metadata: deserializeMetadata(output),
3044
2990
  ...contents,
3045
2991
  };
3046
- return Promise.resolve(response);
2992
+ return response;
3047
2993
  };
3048
2994
  exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
3049
2995
  const de_RemoveTagsFromResourceCommandError = async (output, context) => {
@@ -3067,10 +3013,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
3067
3013
  throw await de_ServiceExceptionRes(parsedOutput, context);
3068
3014
  default:
3069
3015
  const parsedBody = parsedOutput.body;
3070
- (0, smithy_client_1.throwDefaultError)({
3016
+ return throwDefaultError({
3071
3017
  output,
3072
3018
  parsedBody,
3073
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3074
3019
  errorCode,
3075
3020
  });
3076
3021
  }
@@ -3081,12 +3026,12 @@ const de_ResetUserPasswordCommand = async (output, context) => {
3081
3026
  }
3082
3027
  const data = await parseBody(output.body, context);
3083
3028
  let contents = {};
3084
- contents = de_ResetUserPasswordResult(data, context);
3029
+ contents = (0, smithy_client_1._json)(data);
3085
3030
  const response = {
3086
3031
  $metadata: deserializeMetadata(output),
3087
3032
  ...contents,
3088
3033
  };
3089
- return Promise.resolve(response);
3034
+ return response;
3090
3035
  };
3091
3036
  exports.de_ResetUserPasswordCommand = de_ResetUserPasswordCommand;
3092
3037
  const de_ResetUserPasswordCommandError = async (output, context) => {
@@ -3119,10 +3064,9 @@ const de_ResetUserPasswordCommandError = async (output, context) => {
3119
3064
  throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
3120
3065
  default:
3121
3066
  const parsedBody = parsedOutput.body;
3122
- (0, smithy_client_1.throwDefaultError)({
3067
+ return throwDefaultError({
3123
3068
  output,
3124
3069
  parsedBody,
3125
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3126
3070
  errorCode,
3127
3071
  });
3128
3072
  }
@@ -3133,12 +3077,12 @@ const de_RestoreFromSnapshotCommand = async (output, context) => {
3133
3077
  }
3134
3078
  const data = await parseBody(output.body, context);
3135
3079
  let contents = {};
3136
- contents = de_RestoreFromSnapshotResult(data, context);
3080
+ contents = (0, smithy_client_1._json)(data);
3137
3081
  const response = {
3138
3082
  $metadata: deserializeMetadata(output),
3139
3083
  ...contents,
3140
3084
  };
3141
- return Promise.resolve(response);
3085
+ return response;
3142
3086
  };
3143
3087
  exports.de_RestoreFromSnapshotCommand = de_RestoreFromSnapshotCommand;
3144
3088
  const de_RestoreFromSnapshotCommandError = async (output, context) => {
@@ -3162,10 +3106,9 @@ const de_RestoreFromSnapshotCommandError = async (output, context) => {
3162
3106
  throw await de_ServiceExceptionRes(parsedOutput, context);
3163
3107
  default:
3164
3108
  const parsedBody = parsedOutput.body;
3165
- (0, smithy_client_1.throwDefaultError)({
3109
+ return throwDefaultError({
3166
3110
  output,
3167
3111
  parsedBody,
3168
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3169
3112
  errorCode,
3170
3113
  });
3171
3114
  }
@@ -3176,12 +3119,12 @@ const de_ShareDirectoryCommand = async (output, context) => {
3176
3119
  }
3177
3120
  const data = await parseBody(output.body, context);
3178
3121
  let contents = {};
3179
- contents = de_ShareDirectoryResult(data, context);
3122
+ contents = (0, smithy_client_1._json)(data);
3180
3123
  const response = {
3181
3124
  $metadata: deserializeMetadata(output),
3182
3125
  ...contents,
3183
3126
  };
3184
- return Promise.resolve(response);
3127
+ return response;
3185
3128
  };
3186
3129
  exports.de_ShareDirectoryCommand = de_ShareDirectoryCommand;
3187
3130
  const de_ShareDirectoryCommandError = async (output, context) => {
@@ -3223,10 +3166,9 @@ const de_ShareDirectoryCommandError = async (output, context) => {
3223
3166
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3224
3167
  default:
3225
3168
  const parsedBody = parsedOutput.body;
3226
- (0, smithy_client_1.throwDefaultError)({
3169
+ return throwDefaultError({
3227
3170
  output,
3228
3171
  parsedBody,
3229
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3230
3172
  errorCode,
3231
3173
  });
3232
3174
  }
@@ -3237,12 +3179,12 @@ const de_StartSchemaExtensionCommand = async (output, context) => {
3237
3179
  }
3238
3180
  const data = await parseBody(output.body, context);
3239
3181
  let contents = {};
3240
- contents = de_StartSchemaExtensionResult(data, context);
3182
+ contents = (0, smithy_client_1._json)(data);
3241
3183
  const response = {
3242
3184
  $metadata: deserializeMetadata(output),
3243
3185
  ...contents,
3244
3186
  };
3245
- return Promise.resolve(response);
3187
+ return response;
3246
3188
  };
3247
3189
  exports.de_StartSchemaExtensionCommand = de_StartSchemaExtensionCommand;
3248
3190
  const de_StartSchemaExtensionCommandError = async (output, context) => {
@@ -3272,10 +3214,9 @@ const de_StartSchemaExtensionCommandError = async (output, context) => {
3272
3214
  throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
3273
3215
  default:
3274
3216
  const parsedBody = parsedOutput.body;
3275
- (0, smithy_client_1.throwDefaultError)({
3217
+ return throwDefaultError({
3276
3218
  output,
3277
3219
  parsedBody,
3278
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3279
3220
  errorCode,
3280
3221
  });
3281
3222
  }
@@ -3286,12 +3227,12 @@ const de_UnshareDirectoryCommand = async (output, context) => {
3286
3227
  }
3287
3228
  const data = await parseBody(output.body, context);
3288
3229
  let contents = {};
3289
- contents = de_UnshareDirectoryResult(data, context);
3230
+ contents = (0, smithy_client_1._json)(data);
3290
3231
  const response = {
3291
3232
  $metadata: deserializeMetadata(output),
3292
3233
  ...contents,
3293
3234
  };
3294
- return Promise.resolve(response);
3235
+ return response;
3295
3236
  };
3296
3237
  exports.de_UnshareDirectoryCommand = de_UnshareDirectoryCommand;
3297
3238
  const de_UnshareDirectoryCommandError = async (output, context) => {
@@ -3318,10 +3259,9 @@ const de_UnshareDirectoryCommandError = async (output, context) => {
3318
3259
  throw await de_ServiceExceptionRes(parsedOutput, context);
3319
3260
  default:
3320
3261
  const parsedBody = parsedOutput.body;
3321
- (0, smithy_client_1.throwDefaultError)({
3262
+ return throwDefaultError({
3322
3263
  output,
3323
3264
  parsedBody,
3324
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3325
3265
  errorCode,
3326
3266
  });
3327
3267
  }
@@ -3332,12 +3272,12 @@ const de_UpdateConditionalForwarderCommand = async (output, context) => {
3332
3272
  }
3333
3273
  const data = await parseBody(output.body, context);
3334
3274
  let contents = {};
3335
- contents = de_UpdateConditionalForwarderResult(data, context);
3275
+ contents = (0, smithy_client_1._json)(data);
3336
3276
  const response = {
3337
3277
  $metadata: deserializeMetadata(output),
3338
3278
  ...contents,
3339
3279
  };
3340
- return Promise.resolve(response);
3280
+ return response;
3341
3281
  };
3342
3282
  exports.de_UpdateConditionalForwarderCommand = de_UpdateConditionalForwarderCommand;
3343
3283
  const de_UpdateConditionalForwarderCommandError = async (output, context) => {
@@ -3367,10 +3307,9 @@ const de_UpdateConditionalForwarderCommandError = async (output, context) => {
3367
3307
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3368
3308
  default:
3369
3309
  const parsedBody = parsedOutput.body;
3370
- (0, smithy_client_1.throwDefaultError)({
3310
+ return throwDefaultError({
3371
3311
  output,
3372
3312
  parsedBody,
3373
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3374
3313
  errorCode,
3375
3314
  });
3376
3315
  }
@@ -3381,12 +3320,12 @@ const de_UpdateDirectorySetupCommand = async (output, context) => {
3381
3320
  }
3382
3321
  const data = await parseBody(output.body, context);
3383
3322
  let contents = {};
3384
- contents = de_UpdateDirectorySetupResult(data, context);
3323
+ contents = (0, smithy_client_1._json)(data);
3385
3324
  const response = {
3386
3325
  $metadata: deserializeMetadata(output),
3387
3326
  ...contents,
3388
3327
  };
3389
- return Promise.resolve(response);
3328
+ return response;
3390
3329
  };
3391
3330
  exports.de_UpdateDirectorySetupCommand = de_UpdateDirectorySetupCommand;
3392
3331
  const de_UpdateDirectorySetupCommandError = async (output, context) => {
@@ -3425,10 +3364,9 @@ const de_UpdateDirectorySetupCommandError = async (output, context) => {
3425
3364
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3426
3365
  default:
3427
3366
  const parsedBody = parsedOutput.body;
3428
- (0, smithy_client_1.throwDefaultError)({
3367
+ return throwDefaultError({
3429
3368
  output,
3430
3369
  parsedBody,
3431
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3432
3370
  errorCode,
3433
3371
  });
3434
3372
  }
@@ -3439,12 +3377,12 @@ const de_UpdateNumberOfDomainControllersCommand = async (output, context) => {
3439
3377
  }
3440
3378
  const data = await parseBody(output.body, context);
3441
3379
  let contents = {};
3442
- contents = de_UpdateNumberOfDomainControllersResult(data, context);
3380
+ contents = (0, smithy_client_1._json)(data);
3443
3381
  const response = {
3444
3382
  $metadata: deserializeMetadata(output),
3445
3383
  ...contents,
3446
3384
  };
3447
- return Promise.resolve(response);
3385
+ return response;
3448
3386
  };
3449
3387
  exports.de_UpdateNumberOfDomainControllersCommand = de_UpdateNumberOfDomainControllersCommand;
3450
3388
  const de_UpdateNumberOfDomainControllersCommandError = async (output, context) => {
@@ -3477,10 +3415,9 @@ const de_UpdateNumberOfDomainControllersCommandError = async (output, context) =
3477
3415
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3478
3416
  default:
3479
3417
  const parsedBody = parsedOutput.body;
3480
- (0, smithy_client_1.throwDefaultError)({
3418
+ return throwDefaultError({
3481
3419
  output,
3482
3420
  parsedBody,
3483
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3484
3421
  errorCode,
3485
3422
  });
3486
3423
  }
@@ -3491,12 +3428,12 @@ const de_UpdateRadiusCommand = async (output, context) => {
3491
3428
  }
3492
3429
  const data = await parseBody(output.body, context);
3493
3430
  let contents = {};
3494
- contents = de_UpdateRadiusResult(data, context);
3431
+ contents = (0, smithy_client_1._json)(data);
3495
3432
  const response = {
3496
3433
  $metadata: deserializeMetadata(output),
3497
3434
  ...contents,
3498
3435
  };
3499
- return Promise.resolve(response);
3436
+ return response;
3500
3437
  };
3501
3438
  exports.de_UpdateRadiusCommand = de_UpdateRadiusCommand;
3502
3439
  const de_UpdateRadiusCommandError = async (output, context) => {
@@ -3520,10 +3457,9 @@ const de_UpdateRadiusCommandError = async (output, context) => {
3520
3457
  throw await de_ServiceExceptionRes(parsedOutput, context);
3521
3458
  default:
3522
3459
  const parsedBody = parsedOutput.body;
3523
- (0, smithy_client_1.throwDefaultError)({
3460
+ return throwDefaultError({
3524
3461
  output,
3525
3462
  parsedBody,
3526
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3527
3463
  errorCode,
3528
3464
  });
3529
3465
  }
@@ -3534,12 +3470,12 @@ const de_UpdateSettingsCommand = async (output, context) => {
3534
3470
  }
3535
3471
  const data = await parseBody(output.body, context);
3536
3472
  let contents = {};
3537
- contents = de_UpdateSettingsResult(data, context);
3473
+ contents = (0, smithy_client_1._json)(data);
3538
3474
  const response = {
3539
3475
  $metadata: deserializeMetadata(output),
3540
3476
  ...contents,
3541
3477
  };
3542
- return Promise.resolve(response);
3478
+ return response;
3543
3479
  };
3544
3480
  exports.de_UpdateSettingsCommand = de_UpdateSettingsCommand;
3545
3481
  const de_UpdateSettingsCommandError = async (output, context) => {
@@ -3575,10 +3511,9 @@ const de_UpdateSettingsCommandError = async (output, context) => {
3575
3511
  throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
3576
3512
  default:
3577
3513
  const parsedBody = parsedOutput.body;
3578
- (0, smithy_client_1.throwDefaultError)({
3514
+ return throwDefaultError({
3579
3515
  output,
3580
3516
  parsedBody,
3581
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3582
3517
  errorCode,
3583
3518
  });
3584
3519
  }
@@ -3589,12 +3524,12 @@ const de_UpdateTrustCommand = async (output, context) => {
3589
3524
  }
3590
3525
  const data = await parseBody(output.body, context);
3591
3526
  let contents = {};
3592
- contents = de_UpdateTrustResult(data, context);
3527
+ contents = (0, smithy_client_1._json)(data);
3593
3528
  const response = {
3594
3529
  $metadata: deserializeMetadata(output),
3595
3530
  ...contents,
3596
3531
  };
3597
- return Promise.resolve(response);
3532
+ return response;
3598
3533
  };
3599
3534
  exports.de_UpdateTrustCommand = de_UpdateTrustCommand;
3600
3535
  const de_UpdateTrustCommandError = async (output, context) => {
@@ -3618,10 +3553,9 @@ const de_UpdateTrustCommandError = async (output, context) => {
3618
3553
  throw await de_ServiceExceptionRes(parsedOutput, context);
3619
3554
  default:
3620
3555
  const parsedBody = parsedOutput.body;
3621
- (0, smithy_client_1.throwDefaultError)({
3556
+ return throwDefaultError({
3622
3557
  output,
3623
3558
  parsedBody,
3624
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3625
3559
  errorCode,
3626
3560
  });
3627
3561
  }
@@ -3632,12 +3566,12 @@ const de_VerifyTrustCommand = async (output, context) => {
3632
3566
  }
3633
3567
  const data = await parseBody(output.body, context);
3634
3568
  let contents = {};
3635
- contents = de_VerifyTrustResult(data, context);
3569
+ contents = (0, smithy_client_1._json)(data);
3636
3570
  const response = {
3637
3571
  $metadata: deserializeMetadata(output),
3638
3572
  ...contents,
3639
3573
  };
3640
- return Promise.resolve(response);
3574
+ return response;
3641
3575
  };
3642
3576
  exports.de_VerifyTrustCommand = de_VerifyTrustCommand;
3643
3577
  const de_VerifyTrustCommandError = async (output, context) => {
@@ -3664,17 +3598,16 @@ const de_VerifyTrustCommandError = async (output, context) => {
3664
3598
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3665
3599
  default:
3666
3600
  const parsedBody = parsedOutput.body;
3667
- (0, smithy_client_1.throwDefaultError)({
3601
+ return throwDefaultError({
3668
3602
  output,
3669
3603
  parsedBody,
3670
- exceptionCtor: DirectoryServiceServiceException_1.DirectoryServiceServiceException,
3671
3604
  errorCode,
3672
3605
  });
3673
3606
  }
3674
3607
  };
3675
3608
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3676
3609
  const body = parsedOutput.body;
3677
- const deserialized = de_AccessDeniedException(body, context);
3610
+ const deserialized = (0, smithy_client_1._json)(body);
3678
3611
  const exception = new models_0_1.AccessDeniedException({
3679
3612
  $metadata: deserializeMetadata(parsedOutput),
3680
3613
  ...deserialized,
@@ -3683,7 +3616,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3683
3616
  };
3684
3617
  const de_AuthenticationFailedExceptionRes = async (parsedOutput, context) => {
3685
3618
  const body = parsedOutput.body;
3686
- const deserialized = de_AuthenticationFailedException(body, context);
3619
+ const deserialized = (0, smithy_client_1._json)(body);
3687
3620
  const exception = new models_0_1.AuthenticationFailedException({
3688
3621
  $metadata: deserializeMetadata(parsedOutput),
3689
3622
  ...deserialized,
@@ -3692,7 +3625,7 @@ const de_AuthenticationFailedExceptionRes = async (parsedOutput, context) => {
3692
3625
  };
3693
3626
  const de_CertificateAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3694
3627
  const body = parsedOutput.body;
3695
- const deserialized = de_CertificateAlreadyExistsException(body, context);
3628
+ const deserialized = (0, smithy_client_1._json)(body);
3696
3629
  const exception = new models_0_1.CertificateAlreadyExistsException({
3697
3630
  $metadata: deserializeMetadata(parsedOutput),
3698
3631
  ...deserialized,
@@ -3701,7 +3634,7 @@ const de_CertificateAlreadyExistsExceptionRes = async (parsedOutput, context) =>
3701
3634
  };
3702
3635
  const de_CertificateDoesNotExistExceptionRes = async (parsedOutput, context) => {
3703
3636
  const body = parsedOutput.body;
3704
- const deserialized = de_CertificateDoesNotExistException(body, context);
3637
+ const deserialized = (0, smithy_client_1._json)(body);
3705
3638
  const exception = new models_0_1.CertificateDoesNotExistException({
3706
3639
  $metadata: deserializeMetadata(parsedOutput),
3707
3640
  ...deserialized,
@@ -3710,7 +3643,7 @@ const de_CertificateDoesNotExistExceptionRes = async (parsedOutput, context) =>
3710
3643
  };
3711
3644
  const de_CertificateInUseExceptionRes = async (parsedOutput, context) => {
3712
3645
  const body = parsedOutput.body;
3713
- const deserialized = de_CertificateInUseException(body, context);
3646
+ const deserialized = (0, smithy_client_1._json)(body);
3714
3647
  const exception = new models_0_1.CertificateInUseException({
3715
3648
  $metadata: deserializeMetadata(parsedOutput),
3716
3649
  ...deserialized,
@@ -3719,7 +3652,7 @@ const de_CertificateInUseExceptionRes = async (parsedOutput, context) => {
3719
3652
  };
3720
3653
  const de_CertificateLimitExceededExceptionRes = async (parsedOutput, context) => {
3721
3654
  const body = parsedOutput.body;
3722
- const deserialized = de_CertificateLimitExceededException(body, context);
3655
+ const deserialized = (0, smithy_client_1._json)(body);
3723
3656
  const exception = new models_0_1.CertificateLimitExceededException({
3724
3657
  $metadata: deserializeMetadata(parsedOutput),
3725
3658
  ...deserialized,
@@ -3728,7 +3661,7 @@ const de_CertificateLimitExceededExceptionRes = async (parsedOutput, context) =>
3728
3661
  };
3729
3662
  const de_ClientExceptionRes = async (parsedOutput, context) => {
3730
3663
  const body = parsedOutput.body;
3731
- const deserialized = de_ClientException(body, context);
3664
+ const deserialized = (0, smithy_client_1._json)(body);
3732
3665
  const exception = new models_0_1.ClientException({
3733
3666
  $metadata: deserializeMetadata(parsedOutput),
3734
3667
  ...deserialized,
@@ -3737,7 +3670,7 @@ const de_ClientExceptionRes = async (parsedOutput, context) => {
3737
3670
  };
3738
3671
  const de_DirectoryAlreadyInRegionExceptionRes = async (parsedOutput, context) => {
3739
3672
  const body = parsedOutput.body;
3740
- const deserialized = de_DirectoryAlreadyInRegionException(body, context);
3673
+ const deserialized = (0, smithy_client_1._json)(body);
3741
3674
  const exception = new models_0_1.DirectoryAlreadyInRegionException({
3742
3675
  $metadata: deserializeMetadata(parsedOutput),
3743
3676
  ...deserialized,
@@ -3746,7 +3679,7 @@ const de_DirectoryAlreadyInRegionExceptionRes = async (parsedOutput, context) =>
3746
3679
  };
3747
3680
  const de_DirectoryAlreadySharedExceptionRes = async (parsedOutput, context) => {
3748
3681
  const body = parsedOutput.body;
3749
- const deserialized = de_DirectoryAlreadySharedException(body, context);
3682
+ const deserialized = (0, smithy_client_1._json)(body);
3750
3683
  const exception = new models_0_1.DirectoryAlreadySharedException({
3751
3684
  $metadata: deserializeMetadata(parsedOutput),
3752
3685
  ...deserialized,
@@ -3755,7 +3688,7 @@ const de_DirectoryAlreadySharedExceptionRes = async (parsedOutput, context) => {
3755
3688
  };
3756
3689
  const de_DirectoryDoesNotExistExceptionRes = async (parsedOutput, context) => {
3757
3690
  const body = parsedOutput.body;
3758
- const deserialized = de_DirectoryDoesNotExistException(body, context);
3691
+ const deserialized = (0, smithy_client_1._json)(body);
3759
3692
  const exception = new models_0_1.DirectoryDoesNotExistException({
3760
3693
  $metadata: deserializeMetadata(parsedOutput),
3761
3694
  ...deserialized,
@@ -3764,7 +3697,7 @@ const de_DirectoryDoesNotExistExceptionRes = async (parsedOutput, context) => {
3764
3697
  };
3765
3698
  const de_DirectoryInDesiredStateExceptionRes = async (parsedOutput, context) => {
3766
3699
  const body = parsedOutput.body;
3767
- const deserialized = de_DirectoryInDesiredStateException(body, context);
3700
+ const deserialized = (0, smithy_client_1._json)(body);
3768
3701
  const exception = new models_0_1.DirectoryInDesiredStateException({
3769
3702
  $metadata: deserializeMetadata(parsedOutput),
3770
3703
  ...deserialized,
@@ -3773,7 +3706,7 @@ const de_DirectoryInDesiredStateExceptionRes = async (parsedOutput, context) =>
3773
3706
  };
3774
3707
  const de_DirectoryLimitExceededExceptionRes = async (parsedOutput, context) => {
3775
3708
  const body = parsedOutput.body;
3776
- const deserialized = de_DirectoryLimitExceededException(body, context);
3709
+ const deserialized = (0, smithy_client_1._json)(body);
3777
3710
  const exception = new models_0_1.DirectoryLimitExceededException({
3778
3711
  $metadata: deserializeMetadata(parsedOutput),
3779
3712
  ...deserialized,
@@ -3782,7 +3715,7 @@ const de_DirectoryLimitExceededExceptionRes = async (parsedOutput, context) => {
3782
3715
  };
3783
3716
  const de_DirectoryNotSharedExceptionRes = async (parsedOutput, context) => {
3784
3717
  const body = parsedOutput.body;
3785
- const deserialized = de_DirectoryNotSharedException(body, context);
3718
+ const deserialized = (0, smithy_client_1._json)(body);
3786
3719
  const exception = new models_0_1.DirectoryNotSharedException({
3787
3720
  $metadata: deserializeMetadata(parsedOutput),
3788
3721
  ...deserialized,
@@ -3791,7 +3724,7 @@ const de_DirectoryNotSharedExceptionRes = async (parsedOutput, context) => {
3791
3724
  };
3792
3725
  const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
3793
3726
  const body = parsedOutput.body;
3794
- const deserialized = de_DirectoryUnavailableException(body, context);
3727
+ const deserialized = (0, smithy_client_1._json)(body);
3795
3728
  const exception = new models_0_1.DirectoryUnavailableException({
3796
3729
  $metadata: deserializeMetadata(parsedOutput),
3797
3730
  ...deserialized,
@@ -3800,7 +3733,7 @@ const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
3800
3733
  };
3801
3734
  const de_DomainControllerLimitExceededExceptionRes = async (parsedOutput, context) => {
3802
3735
  const body = parsedOutput.body;
3803
- const deserialized = de_DomainControllerLimitExceededException(body, context);
3736
+ const deserialized = (0, smithy_client_1._json)(body);
3804
3737
  const exception = new models_0_1.DomainControllerLimitExceededException({
3805
3738
  $metadata: deserializeMetadata(parsedOutput),
3806
3739
  ...deserialized,
@@ -3809,7 +3742,7 @@ const de_DomainControllerLimitExceededExceptionRes = async (parsedOutput, contex
3809
3742
  };
3810
3743
  const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3811
3744
  const body = parsedOutput.body;
3812
- const deserialized = de_EntityAlreadyExistsException(body, context);
3745
+ const deserialized = (0, smithy_client_1._json)(body);
3813
3746
  const exception = new models_0_1.EntityAlreadyExistsException({
3814
3747
  $metadata: deserializeMetadata(parsedOutput),
3815
3748
  ...deserialized,
@@ -3818,7 +3751,7 @@ const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3818
3751
  };
3819
3752
  const de_EntityDoesNotExistExceptionRes = async (parsedOutput, context) => {
3820
3753
  const body = parsedOutput.body;
3821
- const deserialized = de_EntityDoesNotExistException(body, context);
3754
+ const deserialized = (0, smithy_client_1._json)(body);
3822
3755
  const exception = new models_0_1.EntityDoesNotExistException({
3823
3756
  $metadata: deserializeMetadata(parsedOutput),
3824
3757
  ...deserialized,
@@ -3827,7 +3760,7 @@ const de_EntityDoesNotExistExceptionRes = async (parsedOutput, context) => {
3827
3760
  };
3828
3761
  const de_IncompatibleSettingsExceptionRes = async (parsedOutput, context) => {
3829
3762
  const body = parsedOutput.body;
3830
- const deserialized = de_IncompatibleSettingsException(body, context);
3763
+ const deserialized = (0, smithy_client_1._json)(body);
3831
3764
  const exception = new models_0_1.IncompatibleSettingsException({
3832
3765
  $metadata: deserializeMetadata(parsedOutput),
3833
3766
  ...deserialized,
@@ -3836,7 +3769,7 @@ const de_IncompatibleSettingsExceptionRes = async (parsedOutput, context) => {
3836
3769
  };
3837
3770
  const de_InsufficientPermissionsExceptionRes = async (parsedOutput, context) => {
3838
3771
  const body = parsedOutput.body;
3839
- const deserialized = de_InsufficientPermissionsException(body, context);
3772
+ const deserialized = (0, smithy_client_1._json)(body);
3840
3773
  const exception = new models_0_1.InsufficientPermissionsException({
3841
3774
  $metadata: deserializeMetadata(parsedOutput),
3842
3775
  ...deserialized,
@@ -3845,7 +3778,7 @@ const de_InsufficientPermissionsExceptionRes = async (parsedOutput, context) =>
3845
3778
  };
3846
3779
  const de_InvalidCertificateExceptionRes = async (parsedOutput, context) => {
3847
3780
  const body = parsedOutput.body;
3848
- const deserialized = de_InvalidCertificateException(body, context);
3781
+ const deserialized = (0, smithy_client_1._json)(body);
3849
3782
  const exception = new models_0_1.InvalidCertificateException({
3850
3783
  $metadata: deserializeMetadata(parsedOutput),
3851
3784
  ...deserialized,
@@ -3854,7 +3787,7 @@ const de_InvalidCertificateExceptionRes = async (parsedOutput, context) => {
3854
3787
  };
3855
3788
  const de_InvalidClientAuthStatusExceptionRes = async (parsedOutput, context) => {
3856
3789
  const body = parsedOutput.body;
3857
- const deserialized = de_InvalidClientAuthStatusException(body, context);
3790
+ const deserialized = (0, smithy_client_1._json)(body);
3858
3791
  const exception = new models_0_1.InvalidClientAuthStatusException({
3859
3792
  $metadata: deserializeMetadata(parsedOutput),
3860
3793
  ...deserialized,
@@ -3863,7 +3796,7 @@ const de_InvalidClientAuthStatusExceptionRes = async (parsedOutput, context) =>
3863
3796
  };
3864
3797
  const de_InvalidLDAPSStatusExceptionRes = async (parsedOutput, context) => {
3865
3798
  const body = parsedOutput.body;
3866
- const deserialized = de_InvalidLDAPSStatusException(body, context);
3799
+ const deserialized = (0, smithy_client_1._json)(body);
3867
3800
  const exception = new models_0_1.InvalidLDAPSStatusException({
3868
3801
  $metadata: deserializeMetadata(parsedOutput),
3869
3802
  ...deserialized,
@@ -3872,7 +3805,7 @@ const de_InvalidLDAPSStatusExceptionRes = async (parsedOutput, context) => {
3872
3805
  };
3873
3806
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3874
3807
  const body = parsedOutput.body;
3875
- const deserialized = de_InvalidNextTokenException(body, context);
3808
+ const deserialized = (0, smithy_client_1._json)(body);
3876
3809
  const exception = new models_0_1.InvalidNextTokenException({
3877
3810
  $metadata: deserializeMetadata(parsedOutput),
3878
3811
  ...deserialized,
@@ -3881,7 +3814,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3881
3814
  };
3882
3815
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3883
3816
  const body = parsedOutput.body;
3884
- const deserialized = de_InvalidParameterException(body, context);
3817
+ const deserialized = (0, smithy_client_1._json)(body);
3885
3818
  const exception = new models_0_1.InvalidParameterException({
3886
3819
  $metadata: deserializeMetadata(parsedOutput),
3887
3820
  ...deserialized,
@@ -3890,7 +3823,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3890
3823
  };
3891
3824
  const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
3892
3825
  const body = parsedOutput.body;
3893
- const deserialized = de_InvalidPasswordException(body, context);
3826
+ const deserialized = (0, smithy_client_1._json)(body);
3894
3827
  const exception = new models_0_1.InvalidPasswordException({
3895
3828
  $metadata: deserializeMetadata(parsedOutput),
3896
3829
  ...deserialized,
@@ -3899,7 +3832,7 @@ const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
3899
3832
  };
3900
3833
  const de_InvalidTargetExceptionRes = async (parsedOutput, context) => {
3901
3834
  const body = parsedOutput.body;
3902
- const deserialized = de_InvalidTargetException(body, context);
3835
+ const deserialized = (0, smithy_client_1._json)(body);
3903
3836
  const exception = new models_0_1.InvalidTargetException({
3904
3837
  $metadata: deserializeMetadata(parsedOutput),
3905
3838
  ...deserialized,
@@ -3908,7 +3841,7 @@ const de_InvalidTargetExceptionRes = async (parsedOutput, context) => {
3908
3841
  };
3909
3842
  const de_IpRouteLimitExceededExceptionRes = async (parsedOutput, context) => {
3910
3843
  const body = parsedOutput.body;
3911
- const deserialized = de_IpRouteLimitExceededException(body, context);
3844
+ const deserialized = (0, smithy_client_1._json)(body);
3912
3845
  const exception = new models_0_1.IpRouteLimitExceededException({
3913
3846
  $metadata: deserializeMetadata(parsedOutput),
3914
3847
  ...deserialized,
@@ -3917,7 +3850,7 @@ const de_IpRouteLimitExceededExceptionRes = async (parsedOutput, context) => {
3917
3850
  };
3918
3851
  const de_NoAvailableCertificateExceptionRes = async (parsedOutput, context) => {
3919
3852
  const body = parsedOutput.body;
3920
- const deserialized = de_NoAvailableCertificateException(body, context);
3853
+ const deserialized = (0, smithy_client_1._json)(body);
3921
3854
  const exception = new models_0_1.NoAvailableCertificateException({
3922
3855
  $metadata: deserializeMetadata(parsedOutput),
3923
3856
  ...deserialized,
@@ -3926,7 +3859,7 @@ const de_NoAvailableCertificateExceptionRes = async (parsedOutput, context) => {
3926
3859
  };
3927
3860
  const de_OrganizationsExceptionRes = async (parsedOutput, context) => {
3928
3861
  const body = parsedOutput.body;
3929
- const deserialized = de_OrganizationsException(body, context);
3862
+ const deserialized = (0, smithy_client_1._json)(body);
3930
3863
  const exception = new models_0_1.OrganizationsException({
3931
3864
  $metadata: deserializeMetadata(parsedOutput),
3932
3865
  ...deserialized,
@@ -3935,7 +3868,7 @@ const de_OrganizationsExceptionRes = async (parsedOutput, context) => {
3935
3868
  };
3936
3869
  const de_RegionLimitExceededExceptionRes = async (parsedOutput, context) => {
3937
3870
  const body = parsedOutput.body;
3938
- const deserialized = de_RegionLimitExceededException(body, context);
3871
+ const deserialized = (0, smithy_client_1._json)(body);
3939
3872
  const exception = new models_0_1.RegionLimitExceededException({
3940
3873
  $metadata: deserializeMetadata(parsedOutput),
3941
3874
  ...deserialized,
@@ -3944,7 +3877,7 @@ const de_RegionLimitExceededExceptionRes = async (parsedOutput, context) => {
3944
3877
  };
3945
3878
  const de_ServiceExceptionRes = async (parsedOutput, context) => {
3946
3879
  const body = parsedOutput.body;
3947
- const deserialized = de_ServiceException(body, context);
3880
+ const deserialized = (0, smithy_client_1._json)(body);
3948
3881
  const exception = new models_0_1.ServiceException({
3949
3882
  $metadata: deserializeMetadata(parsedOutput),
3950
3883
  ...deserialized,
@@ -3953,7 +3886,7 @@ const de_ServiceExceptionRes = async (parsedOutput, context) => {
3953
3886
  };
3954
3887
  const de_ShareLimitExceededExceptionRes = async (parsedOutput, context) => {
3955
3888
  const body = parsedOutput.body;
3956
- const deserialized = de_ShareLimitExceededException(body, context);
3889
+ const deserialized = (0, smithy_client_1._json)(body);
3957
3890
  const exception = new models_0_1.ShareLimitExceededException({
3958
3891
  $metadata: deserializeMetadata(parsedOutput),
3959
3892
  ...deserialized,
@@ -3962,7 +3895,7 @@ const de_ShareLimitExceededExceptionRes = async (parsedOutput, context) => {
3962
3895
  };
3963
3896
  const de_SnapshotLimitExceededExceptionRes = async (parsedOutput, context) => {
3964
3897
  const body = parsedOutput.body;
3965
- const deserialized = de_SnapshotLimitExceededException(body, context);
3898
+ const deserialized = (0, smithy_client_1._json)(body);
3966
3899
  const exception = new models_0_1.SnapshotLimitExceededException({
3967
3900
  $metadata: deserializeMetadata(parsedOutput),
3968
3901
  ...deserialized,
@@ -3971,7 +3904,7 @@ const de_SnapshotLimitExceededExceptionRes = async (parsedOutput, context) => {
3971
3904
  };
3972
3905
  const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
3973
3906
  const body = parsedOutput.body;
3974
- const deserialized = de_TagLimitExceededException(body, context);
3907
+ const deserialized = (0, smithy_client_1._json)(body);
3975
3908
  const exception = new models_0_1.TagLimitExceededException({
3976
3909
  $metadata: deserializeMetadata(parsedOutput),
3977
3910
  ...deserialized,
@@ -3980,7 +3913,7 @@ const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
3980
3913
  };
3981
3914
  const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
3982
3915
  const body = parsedOutput.body;
3983
- const deserialized = de_UnsupportedOperationException(body, context);
3916
+ const deserialized = (0, smithy_client_1._json)(body);
3984
3917
  const exception = new models_0_1.UnsupportedOperationException({
3985
3918
  $metadata: deserializeMetadata(parsedOutput),
3986
3919
  ...deserialized,
@@ -3989,7 +3922,7 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
3989
3922
  };
3990
3923
  const de_UnsupportedSettingsExceptionRes = async (parsedOutput, context) => {
3991
3924
  const body = parsedOutput.body;
3992
- const deserialized = de_UnsupportedSettingsException(body, context);
3925
+ const deserialized = (0, smithy_client_1._json)(body);
3993
3926
  const exception = new models_0_1.UnsupportedSettingsException({
3994
3927
  $metadata: deserializeMetadata(parsedOutput),
3995
3928
  ...deserialized,
@@ -3998,1812 +3931,425 @@ const de_UnsupportedSettingsExceptionRes = async (parsedOutput, context) => {
3998
3931
  };
3999
3932
  const de_UserDoesNotExistExceptionRes = async (parsedOutput, context) => {
4000
3933
  const body = parsedOutput.body;
4001
- const deserialized = de_UserDoesNotExistException(body, context);
3934
+ const deserialized = (0, smithy_client_1._json)(body);
4002
3935
  const exception = new models_0_1.UserDoesNotExistException({
4003
3936
  $metadata: deserializeMetadata(parsedOutput),
4004
3937
  ...deserialized,
4005
3938
  });
4006
3939
  return (0, smithy_client_1.decorateServiceException)(exception, body);
4007
3940
  };
4008
- const se_AcceptSharedDirectoryRequest = (input, context) => {
4009
- return {
4010
- ...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
4011
- };
4012
- };
4013
- const se_AddIpRoutesRequest = (input, context) => {
4014
- return {
4015
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4016
- ...(input.IpRoutes != null && { IpRoutes: se_IpRoutes(input.IpRoutes, context) }),
4017
- ...(input.UpdateSecurityGroupForDirectoryControllers != null && {
4018
- UpdateSecurityGroupForDirectoryControllers: input.UpdateSecurityGroupForDirectoryControllers,
4019
- }),
4020
- };
4021
- };
4022
- const se_AddRegionRequest = (input, context) => {
4023
- return {
4024
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4025
- ...(input.RegionName != null && { RegionName: input.RegionName }),
4026
- ...(input.VPCSettings != null && { VPCSettings: se_DirectoryVpcSettings(input.VPCSettings, context) }),
4027
- };
4028
- };
4029
- const se_AddTagsToResourceRequest = (input, context) => {
4030
- return {
4031
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4032
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
4033
- };
4034
- };
4035
- const se_Attribute = (input, context) => {
4036
- return {
4037
- ...(input.Name != null && { Name: input.Name }),
4038
- ...(input.Value != null && { Value: input.Value }),
4039
- };
4040
- };
4041
- const se_Attributes = (input, context) => {
4042
- return input
4043
- .filter((e) => e != null)
4044
- .map((entry) => {
4045
- return se_Attribute(entry, context);
4046
- });
4047
- };
4048
- const se_CancelSchemaExtensionRequest = (input, context) => {
4049
- return {
4050
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4051
- ...(input.SchemaExtensionId != null && { SchemaExtensionId: input.SchemaExtensionId }),
4052
- };
4053
- };
4054
- const se_CidrIps = (input, context) => {
4055
- return input
4056
- .filter((e) => e != null)
4057
- .map((entry) => {
4058
- return entry;
4059
- });
4060
- };
4061
- const se_ClientCertAuthSettings = (input, context) => {
4062
- return {
4063
- ...(input.OCSPUrl != null && { OCSPUrl: input.OCSPUrl }),
4064
- };
4065
- };
4066
- const se_ConnectDirectoryRequest = (input, context) => {
4067
- return {
4068
- ...(input.ConnectSettings != null && {
4069
- ConnectSettings: se_DirectoryConnectSettings(input.ConnectSettings, context),
4070
- }),
4071
- ...(input.Description != null && { Description: input.Description }),
4072
- ...(input.Name != null && { Name: input.Name }),
4073
- ...(input.Password != null && { Password: input.Password }),
4074
- ...(input.ShortName != null && { ShortName: input.ShortName }),
4075
- ...(input.Size != null && { Size: input.Size }),
4076
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
4077
- };
4078
- };
4079
- const se_CreateAliasRequest = (input, context) => {
4080
- return {
4081
- ...(input.Alias != null && { Alias: input.Alias }),
4082
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4083
- };
4084
- };
4085
- const se_CreateComputerRequest = (input, context) => {
4086
- return {
4087
- ...(input.ComputerAttributes != null && { ComputerAttributes: se_Attributes(input.ComputerAttributes, context) }),
4088
- ...(input.ComputerName != null && { ComputerName: input.ComputerName }),
4089
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4090
- ...(input.OrganizationalUnitDistinguishedName != null && {
4091
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
4092
- }),
4093
- ...(input.Password != null && { Password: input.Password }),
4094
- };
4095
- };
4096
- const se_CreateConditionalForwarderRequest = (input, context) => {
4097
- return {
4098
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4099
- ...(input.DnsIpAddrs != null && { DnsIpAddrs: se_DnsIpAddrs(input.DnsIpAddrs, context) }),
4100
- ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4101
- };
4102
- };
4103
- const se_CreateDirectoryRequest = (input, context) => {
4104
- return {
4105
- ...(input.Description != null && { Description: input.Description }),
4106
- ...(input.Name != null && { Name: input.Name }),
4107
- ...(input.Password != null && { Password: input.Password }),
4108
- ...(input.ShortName != null && { ShortName: input.ShortName }),
4109
- ...(input.Size != null && { Size: input.Size }),
4110
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
4111
- ...(input.VpcSettings != null && { VpcSettings: se_DirectoryVpcSettings(input.VpcSettings, context) }),
4112
- };
4113
- };
4114
- const se_CreateLogSubscriptionRequest = (input, context) => {
4115
- return {
4116
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4117
- ...(input.LogGroupName != null && { LogGroupName: input.LogGroupName }),
4118
- };
4119
- };
4120
- const se_CreateMicrosoftADRequest = (input, context) => {
4121
- return {
4122
- ...(input.Description != null && { Description: input.Description }),
4123
- ...(input.Edition != null && { Edition: input.Edition }),
4124
- ...(input.Name != null && { Name: input.Name }),
4125
- ...(input.Password != null && { Password: input.Password }),
4126
- ...(input.ShortName != null && { ShortName: input.ShortName }),
4127
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
4128
- ...(input.VpcSettings != null && { VpcSettings: se_DirectoryVpcSettings(input.VpcSettings, context) }),
4129
- };
4130
- };
4131
- const se_CreateSnapshotRequest = (input, context) => {
4132
- return {
4133
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4134
- ...(input.Name != null && { Name: input.Name }),
4135
- };
4136
- };
4137
- const se_CreateTrustRequest = (input, context) => {
4138
- return {
4139
- ...(input.ConditionalForwarderIpAddrs != null && {
4140
- ConditionalForwarderIpAddrs: se_DnsIpAddrs(input.ConditionalForwarderIpAddrs, context),
4141
- }),
4142
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4143
- ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4144
- ...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
4145
- ...(input.TrustDirection != null && { TrustDirection: input.TrustDirection }),
4146
- ...(input.TrustPassword != null && { TrustPassword: input.TrustPassword }),
4147
- ...(input.TrustType != null && { TrustType: input.TrustType }),
4148
- };
4149
- };
4150
- const se_DeleteConditionalForwarderRequest = (input, context) => {
4151
- return {
4152
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4153
- ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4154
- };
4155
- };
4156
- const se_DeleteDirectoryRequest = (input, context) => {
4157
- return {
4158
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4159
- };
4160
- };
4161
- const se_DeleteLogSubscriptionRequest = (input, context) => {
4162
- return {
4163
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4164
- };
4165
- };
4166
- const se_DeleteSnapshotRequest = (input, context) => {
4167
- return {
4168
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
4169
- };
4170
- };
4171
- const se_DeleteTrustRequest = (input, context) => {
4172
- return {
4173
- ...(input.DeleteAssociatedConditionalForwarder != null && {
4174
- DeleteAssociatedConditionalForwarder: input.DeleteAssociatedConditionalForwarder,
4175
- }),
4176
- ...(input.TrustId != null && { TrustId: input.TrustId }),
4177
- };
4178
- };
4179
- const se_DeregisterCertificateRequest = (input, context) => {
4180
- return {
4181
- ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
4182
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4183
- };
4184
- };
4185
- const se_DeregisterEventTopicRequest = (input, context) => {
4186
- return {
4187
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4188
- ...(input.TopicName != null && { TopicName: input.TopicName }),
4189
- };
4190
- };
4191
- const se_DescribeCertificateRequest = (input, context) => {
4192
- return {
4193
- ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
4194
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4195
- };
4196
- };
4197
- const se_DescribeClientAuthenticationSettingsRequest = (input, context) => {
4198
- return {
4199
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4200
- ...(input.Limit != null && { Limit: input.Limit }),
4201
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4202
- ...(input.Type != null && { Type: input.Type }),
4203
- };
4204
- };
4205
- const se_DescribeConditionalForwardersRequest = (input, context) => {
4206
- return {
4207
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4208
- ...(input.RemoteDomainNames != null && {
4209
- RemoteDomainNames: se_RemoteDomainNames(input.RemoteDomainNames, context),
4210
- }),
4211
- };
4212
- };
4213
- const se_DescribeDirectoriesRequest = (input, context) => {
4214
- return {
4215
- ...(input.DirectoryIds != null && { DirectoryIds: se_DirectoryIds(input.DirectoryIds, context) }),
4216
- ...(input.Limit != null && { Limit: input.Limit }),
4217
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4218
- };
4219
- };
4220
- const se_DescribeDomainControllersRequest = (input, context) => {
4221
- return {
4222
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4223
- ...(input.DomainControllerIds != null && {
4224
- DomainControllerIds: se_DomainControllerIds(input.DomainControllerIds, context),
4225
- }),
4226
- ...(input.Limit != null && { Limit: input.Limit }),
4227
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4228
- };
4229
- };
4230
- const se_DescribeEventTopicsRequest = (input, context) => {
4231
- return {
4232
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4233
- ...(input.TopicNames != null && { TopicNames: se_TopicNames(input.TopicNames, context) }),
4234
- };
4235
- };
4236
- const se_DescribeLDAPSSettingsRequest = (input, context) => {
4237
- return {
4238
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4239
- ...(input.Limit != null && { Limit: input.Limit }),
4240
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4241
- ...(input.Type != null && { Type: input.Type }),
4242
- };
4243
- };
4244
- const se_DescribeRegionsRequest = (input, context) => {
4245
- return {
4246
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4247
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4248
- ...(input.RegionName != null && { RegionName: input.RegionName }),
4249
- };
4250
- };
4251
- const se_DescribeSettingsRequest = (input, context) => {
4252
- return {
4253
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4254
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4255
- ...(input.Status != null && { Status: input.Status }),
4256
- };
4257
- };
4258
- const se_DescribeSharedDirectoriesRequest = (input, context) => {
4259
- return {
4260
- ...(input.Limit != null && { Limit: input.Limit }),
4261
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4262
- ...(input.OwnerDirectoryId != null && { OwnerDirectoryId: input.OwnerDirectoryId }),
4263
- ...(input.SharedDirectoryIds != null && { SharedDirectoryIds: se_DirectoryIds(input.SharedDirectoryIds, context) }),
4264
- };
4265
- };
4266
- const se_DescribeSnapshotsRequest = (input, context) => {
4267
- return {
4268
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4269
- ...(input.Limit != null && { Limit: input.Limit }),
4270
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4271
- ...(input.SnapshotIds != null && { SnapshotIds: se_SnapshotIds(input.SnapshotIds, context) }),
4272
- };
4273
- };
4274
- const se_DescribeTrustsRequest = (input, context) => {
4275
- return {
4276
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4277
- ...(input.Limit != null && { Limit: input.Limit }),
4278
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4279
- ...(input.TrustIds != null && { TrustIds: se_TrustIds(input.TrustIds, context) }),
4280
- };
4281
- };
4282
- const se_DescribeUpdateDirectoryRequest = (input, context) => {
4283
- return {
4284
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4285
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4286
- ...(input.RegionName != null && { RegionName: input.RegionName }),
4287
- ...(input.UpdateType != null && { UpdateType: input.UpdateType }),
4288
- };
4289
- };
4290
- const se_DirectoryConnectSettings = (input, context) => {
4291
- return {
4292
- ...(input.CustomerDnsIps != null && { CustomerDnsIps: se_DnsIpAddrs(input.CustomerDnsIps, context) }),
4293
- ...(input.CustomerUserName != null && { CustomerUserName: input.CustomerUserName }),
4294
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
4295
- ...(input.VpcId != null && { VpcId: input.VpcId }),
4296
- };
4297
- };
4298
- const se_DirectoryIds = (input, context) => {
4299
- return input
4300
- .filter((e) => e != null)
4301
- .map((entry) => {
4302
- return entry;
4303
- });
4304
- };
4305
- const se_DirectoryVpcSettings = (input, context) => {
4306
- return {
4307
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
4308
- ...(input.VpcId != null && { VpcId: input.VpcId }),
4309
- };
4310
- };
4311
- const se_DisableClientAuthenticationRequest = (input, context) => {
4312
- return {
4313
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4314
- ...(input.Type != null && { Type: input.Type }),
4315
- };
4316
- };
4317
- const se_DisableLDAPSRequest = (input, context) => {
4318
- return {
4319
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4320
- ...(input.Type != null && { Type: input.Type }),
4321
- };
4322
- };
4323
- const se_DisableRadiusRequest = (input, context) => {
4324
- return {
4325
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4326
- };
4327
- };
4328
- const se_DisableSsoRequest = (input, context) => {
4329
- return {
4330
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4331
- ...(input.Password != null && { Password: input.Password }),
4332
- ...(input.UserName != null && { UserName: input.UserName }),
4333
- };
4334
- };
4335
- const se_DnsIpAddrs = (input, context) => {
4336
- return input
4337
- .filter((e) => e != null)
4338
- .map((entry) => {
4339
- return entry;
4340
- });
4341
- };
4342
- const se_DomainControllerIds = (input, context) => {
4343
- return input
4344
- .filter((e) => e != null)
4345
- .map((entry) => {
4346
- return entry;
4347
- });
4348
- };
4349
- const se_EnableClientAuthenticationRequest = (input, context) => {
4350
- return {
4351
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4352
- ...(input.Type != null && { Type: input.Type }),
4353
- };
4354
- };
4355
- const se_EnableLDAPSRequest = (input, context) => {
4356
- return {
4357
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4358
- ...(input.Type != null && { Type: input.Type }),
4359
- };
4360
- };
4361
- const se_EnableRadiusRequest = (input, context) => {
4362
- return {
4363
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4364
- ...(input.RadiusSettings != null && { RadiusSettings: se_RadiusSettings(input.RadiusSettings, context) }),
4365
- };
4366
- };
4367
- const se_EnableSsoRequest = (input, context) => {
4368
- return {
4369
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4370
- ...(input.Password != null && { Password: input.Password }),
4371
- ...(input.UserName != null && { UserName: input.UserName }),
4372
- };
4373
- };
4374
- const se_GetDirectoryLimitsRequest = (input, context) => {
4375
- return {};
4376
- };
4377
- const se_GetSnapshotLimitsRequest = (input, context) => {
4378
- return {
4379
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4380
- };
4381
- };
4382
- const se_IpRoute = (input, context) => {
4383
- return {
4384
- ...(input.CidrIp != null && { CidrIp: input.CidrIp }),
4385
- ...(input.Description != null && { Description: input.Description }),
4386
- };
4387
- };
4388
- const se_IpRoutes = (input, context) => {
4389
- return input
4390
- .filter((e) => e != null)
4391
- .map((entry) => {
4392
- return se_IpRoute(entry, context);
4393
- });
4394
- };
4395
- const se_ListCertificatesRequest = (input, context) => {
4396
- return {
4397
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4398
- ...(input.Limit != null && { Limit: input.Limit }),
4399
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4400
- };
4401
- };
4402
- const se_ListIpRoutesRequest = (input, context) => {
4403
- return {
4404
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4405
- ...(input.Limit != null && { Limit: input.Limit }),
4406
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4407
- };
4408
- };
4409
- const se_ListLogSubscriptionsRequest = (input, context) => {
4410
- return {
4411
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4412
- ...(input.Limit != null && { Limit: input.Limit }),
4413
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4414
- };
4415
- };
4416
- const se_ListSchemaExtensionsRequest = (input, context) => {
4417
- return {
4418
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4419
- ...(input.Limit != null && { Limit: input.Limit }),
4420
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4421
- };
4422
- };
4423
- const se_ListTagsForResourceRequest = (input, context) => {
4424
- return {
4425
- ...(input.Limit != null && { Limit: input.Limit }),
4426
- ...(input.NextToken != null && { NextToken: input.NextToken }),
4427
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4428
- };
4429
- };
4430
- const se_OSUpdateSettings = (input, context) => {
4431
- return {
4432
- ...(input.OSVersion != null && { OSVersion: input.OSVersion }),
4433
- };
4434
- };
4435
- const se_RadiusSettings = (input, context) => {
4436
- return {
4437
- ...(input.AuthenticationProtocol != null && { AuthenticationProtocol: input.AuthenticationProtocol }),
4438
- ...(input.DisplayLabel != null && { DisplayLabel: input.DisplayLabel }),
4439
- ...(input.RadiusPort != null && { RadiusPort: input.RadiusPort }),
4440
- ...(input.RadiusRetries != null && { RadiusRetries: input.RadiusRetries }),
4441
- ...(input.RadiusServers != null && { RadiusServers: se_Servers(input.RadiusServers, context) }),
4442
- ...(input.RadiusTimeout != null && { RadiusTimeout: input.RadiusTimeout }),
4443
- ...(input.SharedSecret != null && { SharedSecret: input.SharedSecret }),
4444
- ...(input.UseSameUsername != null && { UseSameUsername: input.UseSameUsername }),
4445
- };
4446
- };
4447
- const se_RegisterCertificateRequest = (input, context) => {
4448
- return {
4449
- ...(input.CertificateData != null && { CertificateData: input.CertificateData }),
4450
- ...(input.ClientCertAuthSettings != null && {
4451
- ClientCertAuthSettings: se_ClientCertAuthSettings(input.ClientCertAuthSettings, context),
4452
- }),
4453
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4454
- ...(input.Type != null && { Type: input.Type }),
4455
- };
4456
- };
4457
- const se_RegisterEventTopicRequest = (input, context) => {
4458
- return {
4459
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4460
- ...(input.TopicName != null && { TopicName: input.TopicName }),
4461
- };
4462
- };
4463
- const se_RejectSharedDirectoryRequest = (input, context) => {
4464
- return {
4465
- ...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
4466
- };
4467
- };
4468
- const se_RemoteDomainNames = (input, context) => {
4469
- return input
4470
- .filter((e) => e != null)
4471
- .map((entry) => {
4472
- return entry;
4473
- });
4474
- };
4475
- const se_RemoveIpRoutesRequest = (input, context) => {
4476
- return {
4477
- ...(input.CidrIps != null && { CidrIps: se_CidrIps(input.CidrIps, context) }),
4478
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4479
- };
4480
- };
4481
- const se_RemoveRegionRequest = (input, context) => {
4482
- return {
4483
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4484
- };
4485
- };
4486
- const se_RemoveTagsFromResourceRequest = (input, context) => {
4487
- return {
4488
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4489
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
4490
- };
4491
- };
4492
- const se_ResetUserPasswordRequest = (input, context) => {
4493
- return {
4494
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4495
- ...(input.NewPassword != null && { NewPassword: input.NewPassword }),
4496
- ...(input.UserName != null && { UserName: input.UserName }),
4497
- };
4498
- };
4499
- const se_RestoreFromSnapshotRequest = (input, context) => {
4500
- return {
4501
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
4502
- };
4503
- };
4504
- const se_Servers = (input, context) => {
4505
- return input
4506
- .filter((e) => e != null)
4507
- .map((entry) => {
4508
- return entry;
4509
- });
4510
- };
4511
- const se_Setting = (input, context) => {
4512
- return {
4513
- ...(input.Name != null && { Name: input.Name }),
4514
- ...(input.Value != null && { Value: input.Value }),
4515
- };
4516
- };
4517
- const se_Settings = (input, context) => {
4518
- return input
4519
- .filter((e) => e != null)
4520
- .map((entry) => {
4521
- return se_Setting(entry, context);
4522
- });
4523
- };
4524
- const se_ShareDirectoryRequest = (input, context) => {
4525
- return {
4526
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4527
- ...(input.ShareMethod != null && { ShareMethod: input.ShareMethod }),
4528
- ...(input.ShareNotes != null && { ShareNotes: input.ShareNotes }),
4529
- ...(input.ShareTarget != null && { ShareTarget: se_ShareTarget(input.ShareTarget, context) }),
4530
- };
4531
- };
4532
- const se_ShareTarget = (input, context) => {
4533
- return {
4534
- ...(input.Id != null && { Id: input.Id }),
4535
- ...(input.Type != null && { Type: input.Type }),
4536
- };
4537
- };
4538
- const se_SnapshotIds = (input, context) => {
4539
- return input
4540
- .filter((e) => e != null)
4541
- .map((entry) => {
4542
- return entry;
4543
- });
4544
- };
4545
- const se_StartSchemaExtensionRequest = (input, context) => {
4546
- return {
4547
- ...(input.CreateSnapshotBeforeSchemaExtension != null && {
4548
- CreateSnapshotBeforeSchemaExtension: input.CreateSnapshotBeforeSchemaExtension,
4549
- }),
4550
- ...(input.Description != null && { Description: input.Description }),
4551
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4552
- ...(input.LdifContent != null && { LdifContent: input.LdifContent }),
4553
- };
4554
- };
4555
- const se_SubnetIds = (input, context) => {
4556
- return input
4557
- .filter((e) => e != null)
4558
- .map((entry) => {
4559
- return entry;
4560
- });
4561
- };
4562
- const se_Tag = (input, context) => {
4563
- return {
4564
- ...(input.Key != null && { Key: input.Key }),
4565
- ...(input.Value != null && { Value: input.Value }),
4566
- };
4567
- };
4568
- const se_TagKeys = (input, context) => {
4569
- return input
4570
- .filter((e) => e != null)
4571
- .map((entry) => {
4572
- return entry;
4573
- });
4574
- };
4575
- const se_Tags = (input, context) => {
4576
- return input
4577
- .filter((e) => e != null)
4578
- .map((entry) => {
4579
- return se_Tag(entry, context);
4580
- });
4581
- };
4582
- const se_TopicNames = (input, context) => {
4583
- return input
4584
- .filter((e) => e != null)
4585
- .map((entry) => {
4586
- return entry;
4587
- });
4588
- };
4589
- const se_TrustIds = (input, context) => {
4590
- return input
4591
- .filter((e) => e != null)
4592
- .map((entry) => {
4593
- return entry;
4594
- });
4595
- };
4596
- const se_UnshareDirectoryRequest = (input, context) => {
4597
- return {
4598
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4599
- ...(input.UnshareTarget != null && { UnshareTarget: se_UnshareTarget(input.UnshareTarget, context) }),
4600
- };
4601
- };
4602
- const se_UnshareTarget = (input, context) => {
4603
- return {
4604
- ...(input.Id != null && { Id: input.Id }),
4605
- ...(input.Type != null && { Type: input.Type }),
4606
- };
4607
- };
4608
- const se_UpdateConditionalForwarderRequest = (input, context) => {
4609
- return {
4610
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4611
- ...(input.DnsIpAddrs != null && { DnsIpAddrs: se_DnsIpAddrs(input.DnsIpAddrs, context) }),
4612
- ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4613
- };
4614
- };
4615
- const se_UpdateDirectorySetupRequest = (input, context) => {
4616
- return {
4617
- ...(input.CreateSnapshotBeforeUpdate != null && { CreateSnapshotBeforeUpdate: input.CreateSnapshotBeforeUpdate }),
4618
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4619
- ...(input.OSUpdateSettings != null && { OSUpdateSettings: se_OSUpdateSettings(input.OSUpdateSettings, context) }),
4620
- ...(input.UpdateType != null && { UpdateType: input.UpdateType }),
4621
- };
4622
- };
4623
- const se_UpdateNumberOfDomainControllersRequest = (input, context) => {
4624
- return {
4625
- ...(input.DesiredNumber != null && { DesiredNumber: input.DesiredNumber }),
4626
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4627
- };
4628
- };
4629
- const se_UpdateRadiusRequest = (input, context) => {
4630
- return {
4631
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4632
- ...(input.RadiusSettings != null && { RadiusSettings: se_RadiusSettings(input.RadiusSettings, context) }),
4633
- };
4634
- };
4635
- const se_UpdateSettingsRequest = (input, context) => {
4636
- return {
4637
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4638
- ...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
4639
- };
4640
- };
4641
- const se_UpdateTrustRequest = (input, context) => {
4642
- return {
4643
- ...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
4644
- ...(input.TrustId != null && { TrustId: input.TrustId }),
4645
- };
4646
- };
4647
- const se_VerifyTrustRequest = (input, context) => {
4648
- return {
4649
- ...(input.TrustId != null && { TrustId: input.TrustId }),
4650
- };
4651
- };
4652
3941
  const de_AcceptSharedDirectoryResult = (output, context) => {
4653
- return {
4654
- SharedDirectory: output.SharedDirectory != null ? de_SharedDirectory(output.SharedDirectory, context) : undefined,
4655
- };
4656
- };
4657
- const de_AccessDeniedException = (output, context) => {
4658
- return {
4659
- Message: (0, smithy_client_1.expectString)(output.Message),
4660
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4661
- };
4662
- };
4663
- const de_AddIpRoutesResult = (output, context) => {
4664
- return {};
4665
- };
4666
- const de_AdditionalRegions = (output, context) => {
4667
- const retVal = (output || [])
4668
- .filter((e) => e != null)
4669
- .map((entry) => {
4670
- if (entry === null) {
4671
- return null;
4672
- }
4673
- return (0, smithy_client_1.expectString)(entry);
3942
+ return (0, smithy_client_1.take)(output, {
3943
+ SharedDirectory: (_) => de_SharedDirectory(_, context),
4674
3944
  });
4675
- return retVal;
4676
- };
4677
- const de_AddRegionResult = (output, context) => {
4678
- return {};
4679
- };
4680
- const de_AddTagsToResourceResult = (output, context) => {
4681
- return {};
4682
- };
4683
- const de_Attribute = (output, context) => {
4684
- return {
4685
- Name: (0, smithy_client_1.expectString)(output.Name),
4686
- Value: (0, smithy_client_1.expectString)(output.Value),
4687
- };
4688
- };
4689
- const de_Attributes = (output, context) => {
4690
- const retVal = (output || [])
4691
- .filter((e) => e != null)
4692
- .map((entry) => {
4693
- if (entry === null) {
4694
- return null;
4695
- }
4696
- return de_Attribute(entry, context);
4697
- });
4698
- return retVal;
4699
- };
4700
- const de_AuthenticationFailedException = (output, context) => {
4701
- return {
4702
- Message: (0, smithy_client_1.expectString)(output.Message),
4703
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4704
- };
4705
- };
4706
- const de_AvailabilityZones = (output, context) => {
4707
- const retVal = (output || [])
4708
- .filter((e) => e != null)
4709
- .map((entry) => {
4710
- if (entry === null) {
4711
- return null;
4712
- }
4713
- return (0, smithy_client_1.expectString)(entry);
4714
- });
4715
- return retVal;
4716
- };
4717
- const de_CancelSchemaExtensionResult = (output, context) => {
4718
- return {};
4719
3945
  };
4720
3946
  const de_Certificate = (output, context) => {
4721
- return {
4722
- CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4723
- ClientCertAuthSettings: output.ClientCertAuthSettings != null
4724
- ? de_ClientCertAuthSettings(output.ClientCertAuthSettings, context)
4725
- : undefined,
4726
- CommonName: (0, smithy_client_1.expectString)(output.CommonName),
4727
- ExpiryDateTime: output.ExpiryDateTime != null
4728
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
4729
- : undefined,
4730
- RegisteredDateTime: output.RegisteredDateTime != null
4731
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RegisteredDateTime)))
4732
- : undefined,
4733
- State: (0, smithy_client_1.expectString)(output.State),
4734
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4735
- Type: (0, smithy_client_1.expectString)(output.Type),
4736
- };
4737
- };
4738
- const de_CertificateAlreadyExistsException = (output, context) => {
4739
- return {
4740
- Message: (0, smithy_client_1.expectString)(output.Message),
4741
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4742
- };
4743
- };
4744
- const de_CertificateDoesNotExistException = (output, context) => {
4745
- return {
4746
- Message: (0, smithy_client_1.expectString)(output.Message),
4747
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4748
- };
3947
+ return (0, smithy_client_1.take)(output, {
3948
+ CertificateId: smithy_client_1.expectString,
3949
+ ClientCertAuthSettings: smithy_client_1._json,
3950
+ CommonName: smithy_client_1.expectString,
3951
+ ExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3952
+ RegisteredDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3953
+ State: smithy_client_1.expectString,
3954
+ StateReason: smithy_client_1.expectString,
3955
+ Type: smithy_client_1.expectString,
3956
+ });
4749
3957
  };
4750
3958
  const de_CertificateInfo = (output, context) => {
4751
- return {
4752
- CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4753
- CommonName: (0, smithy_client_1.expectString)(output.CommonName),
4754
- ExpiryDateTime: output.ExpiryDateTime != null
4755
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
4756
- : undefined,
4757
- State: (0, smithy_client_1.expectString)(output.State),
4758
- Type: (0, smithy_client_1.expectString)(output.Type),
4759
- };
4760
- };
4761
- const de_CertificateInUseException = (output, context) => {
4762
- return {
4763
- Message: (0, smithy_client_1.expectString)(output.Message),
4764
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4765
- };
4766
- };
4767
- const de_CertificateLimitExceededException = (output, context) => {
4768
- return {
4769
- Message: (0, smithy_client_1.expectString)(output.Message),
4770
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4771
- };
3959
+ return (0, smithy_client_1.take)(output, {
3960
+ CertificateId: smithy_client_1.expectString,
3961
+ CommonName: smithy_client_1.expectString,
3962
+ ExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3963
+ State: smithy_client_1.expectString,
3964
+ Type: smithy_client_1.expectString,
3965
+ });
4772
3966
  };
4773
3967
  const de_CertificatesInfo = (output, context) => {
4774
3968
  const retVal = (output || [])
4775
3969
  .filter((e) => e != null)
4776
3970
  .map((entry) => {
4777
- if (entry === null) {
4778
- return null;
4779
- }
4780
3971
  return de_CertificateInfo(entry, context);
4781
3972
  });
4782
3973
  return retVal;
4783
3974
  };
4784
3975
  const de_ClientAuthenticationSettingInfo = (output, context) => {
4785
- return {
4786
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
4787
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
4788
- : undefined,
4789
- Status: (0, smithy_client_1.expectString)(output.Status),
4790
- Type: (0, smithy_client_1.expectString)(output.Type),
4791
- };
3976
+ return (0, smithy_client_1.take)(output, {
3977
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3978
+ Status: smithy_client_1.expectString,
3979
+ Type: smithy_client_1.expectString,
3980
+ });
4792
3981
  };
4793
3982
  const de_ClientAuthenticationSettingsInfo = (output, context) => {
4794
3983
  const retVal = (output || [])
4795
3984
  .filter((e) => e != null)
4796
3985
  .map((entry) => {
4797
- if (entry === null) {
4798
- return null;
4799
- }
4800
3986
  return de_ClientAuthenticationSettingInfo(entry, context);
4801
3987
  });
4802
3988
  return retVal;
4803
3989
  };
4804
- const de_ClientCertAuthSettings = (output, context) => {
4805
- return {
4806
- OCSPUrl: (0, smithy_client_1.expectString)(output.OCSPUrl),
4807
- };
4808
- };
4809
- const de_ClientException = (output, context) => {
4810
- return {
4811
- Message: (0, smithy_client_1.expectString)(output.Message),
4812
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4813
- };
4814
- };
4815
- const de_Computer = (output, context) => {
4816
- return {
4817
- ComputerAttributes: output.ComputerAttributes != null ? de_Attributes(output.ComputerAttributes, context) : undefined,
4818
- ComputerId: (0, smithy_client_1.expectString)(output.ComputerId),
4819
- ComputerName: (0, smithy_client_1.expectString)(output.ComputerName),
4820
- };
4821
- };
4822
- const de_ConditionalForwarder = (output, context) => {
4823
- return {
4824
- DnsIpAddrs: output.DnsIpAddrs != null ? de_DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
4825
- RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
4826
- ReplicationScope: (0, smithy_client_1.expectString)(output.ReplicationScope),
4827
- };
4828
- };
4829
- const de_ConditionalForwarders = (output, context) => {
4830
- const retVal = (output || [])
4831
- .filter((e) => e != null)
4832
- .map((entry) => {
4833
- if (entry === null) {
4834
- return null;
4835
- }
4836
- return de_ConditionalForwarder(entry, context);
4837
- });
4838
- return retVal;
4839
- };
4840
- const de_ConnectDirectoryResult = (output, context) => {
4841
- return {
4842
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4843
- };
4844
- };
4845
- const de_CreateAliasResult = (output, context) => {
4846
- return {
4847
- Alias: (0, smithy_client_1.expectString)(output.Alias),
4848
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4849
- };
4850
- };
4851
- const de_CreateComputerResult = (output, context) => {
4852
- return {
4853
- Computer: output.Computer != null ? de_Computer(output.Computer, context) : undefined,
4854
- };
4855
- };
4856
- const de_CreateConditionalForwarderResult = (output, context) => {
4857
- return {};
4858
- };
4859
- const de_CreateDirectoryResult = (output, context) => {
4860
- return {
4861
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4862
- };
4863
- };
4864
- const de_CreateLogSubscriptionResult = (output, context) => {
4865
- return {};
4866
- };
4867
- const de_CreateMicrosoftADResult = (output, context) => {
4868
- return {
4869
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4870
- };
4871
- };
4872
- const de_CreateSnapshotResult = (output, context) => {
4873
- return {
4874
- SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
4875
- };
4876
- };
4877
- const de_CreateTrustResult = (output, context) => {
4878
- return {
4879
- TrustId: (0, smithy_client_1.expectString)(output.TrustId),
4880
- };
4881
- };
4882
- const de_DeleteConditionalForwarderResult = (output, context) => {
4883
- return {};
4884
- };
4885
- const de_DeleteDirectoryResult = (output, context) => {
4886
- return {
4887
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4888
- };
4889
- };
4890
- const de_DeleteLogSubscriptionResult = (output, context) => {
4891
- return {};
4892
- };
4893
- const de_DeleteSnapshotResult = (output, context) => {
4894
- return {
4895
- SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
4896
- };
4897
- };
4898
- const de_DeleteTrustResult = (output, context) => {
4899
- return {
4900
- TrustId: (0, smithy_client_1.expectString)(output.TrustId),
4901
- };
4902
- };
4903
- const de_DeregisterCertificateResult = (output, context) => {
4904
- return {};
4905
- };
4906
- const de_DeregisterEventTopicResult = (output, context) => {
4907
- return {};
4908
- };
4909
3990
  const de_DescribeCertificateResult = (output, context) => {
4910
- return {
4911
- Certificate: output.Certificate != null ? de_Certificate(output.Certificate, context) : undefined,
4912
- };
3991
+ return (0, smithy_client_1.take)(output, {
3992
+ Certificate: (_) => de_Certificate(_, context),
3993
+ });
4913
3994
  };
4914
3995
  const de_DescribeClientAuthenticationSettingsResult = (output, context) => {
4915
- return {
4916
- ClientAuthenticationSettingsInfo: output.ClientAuthenticationSettingsInfo != null
4917
- ? de_ClientAuthenticationSettingsInfo(output.ClientAuthenticationSettingsInfo, context)
4918
- : undefined,
4919
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4920
- };
4921
- };
4922
- const de_DescribeConditionalForwardersResult = (output, context) => {
4923
- return {
4924
- ConditionalForwarders: output.ConditionalForwarders != null
4925
- ? de_ConditionalForwarders(output.ConditionalForwarders, context)
4926
- : undefined,
4927
- };
3996
+ return (0, smithy_client_1.take)(output, {
3997
+ ClientAuthenticationSettingsInfo: (_) => de_ClientAuthenticationSettingsInfo(_, context),
3998
+ NextToken: smithy_client_1.expectString,
3999
+ });
4928
4000
  };
4929
4001
  const de_DescribeDirectoriesResult = (output, context) => {
4930
- return {
4931
- DirectoryDescriptions: output.DirectoryDescriptions != null
4932
- ? de_DirectoryDescriptions(output.DirectoryDescriptions, context)
4933
- : undefined,
4934
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4935
- };
4002
+ return (0, smithy_client_1.take)(output, {
4003
+ DirectoryDescriptions: (_) => de_DirectoryDescriptions(_, context),
4004
+ NextToken: smithy_client_1.expectString,
4005
+ });
4936
4006
  };
4937
4007
  const de_DescribeDomainControllersResult = (output, context) => {
4938
- return {
4939
- DomainControllers: output.DomainControllers != null ? de_DomainControllers(output.DomainControllers, context) : undefined,
4940
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4941
- };
4008
+ return (0, smithy_client_1.take)(output, {
4009
+ DomainControllers: (_) => de_DomainControllers(_, context),
4010
+ NextToken: smithy_client_1.expectString,
4011
+ });
4942
4012
  };
4943
4013
  const de_DescribeEventTopicsResult = (output, context) => {
4944
- return {
4945
- EventTopics: output.EventTopics != null ? de_EventTopics(output.EventTopics, context) : undefined,
4946
- };
4014
+ return (0, smithy_client_1.take)(output, {
4015
+ EventTopics: (_) => de_EventTopics(_, context),
4016
+ });
4947
4017
  };
4948
4018
  const de_DescribeLDAPSSettingsResult = (output, context) => {
4949
- return {
4950
- LDAPSSettingsInfo: output.LDAPSSettingsInfo != null ? de_LDAPSSettingsInfo(output.LDAPSSettingsInfo, context) : undefined,
4951
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4952
- };
4953
- };
4954
- const de_DescribeRegionsResult = (output, context) => {
4955
- return {
4956
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4957
- RegionsDescription: output.RegionsDescription != null ? de_RegionsDescription(output.RegionsDescription, context) : undefined,
4958
- };
4959
- };
4960
- const de_DescribeSettingsResult = (output, context) => {
4961
- return {
4962
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4963
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4964
- SettingEntries: output.SettingEntries != null ? de_SettingEntries(output.SettingEntries, context) : undefined,
4965
- };
4966
- };
4967
- const de_DescribeSharedDirectoriesResult = (output, context) => {
4968
- return {
4969
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4970
- SharedDirectories: output.SharedDirectories != null ? de_SharedDirectories(output.SharedDirectories, context) : undefined,
4971
- };
4972
- };
4973
- const de_DescribeSnapshotsResult = (output, context) => {
4974
- return {
4975
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4976
- Snapshots: output.Snapshots != null ? de_Snapshots(output.Snapshots, context) : undefined,
4977
- };
4978
- };
4979
- const de_DescribeTrustsResult = (output, context) => {
4980
- return {
4981
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4982
- Trusts: output.Trusts != null ? de_Trusts(output.Trusts, context) : undefined,
4983
- };
4984
- };
4985
- const de_DescribeUpdateDirectoryResult = (output, context) => {
4986
- return {
4987
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4988
- UpdateActivities: output.UpdateActivities != null ? de_UpdateActivities(output.UpdateActivities, context) : undefined,
4989
- };
4990
- };
4991
- const de_DirectoryAlreadyInRegionException = (output, context) => {
4992
- return {
4993
- Message: (0, smithy_client_1.expectString)(output.Message),
4994
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
4995
- };
4996
- };
4997
- const de_DirectoryAlreadySharedException = (output, context) => {
4998
- return {
4999
- Message: (0, smithy_client_1.expectString)(output.Message),
5000
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5001
- };
5002
- };
5003
- const de_DirectoryConfigurationSettingRequestDetailedStatus = (output, context) => {
5004
- return Object.entries(output).reduce((acc, [key, value]) => {
5005
- if (value === null) {
5006
- return acc;
5007
- }
5008
- acc[key] = (0, smithy_client_1.expectString)(value);
5009
- return acc;
5010
- }, {});
5011
- };
5012
- const de_DirectoryConnectSettingsDescription = (output, context) => {
5013
- return {
5014
- AvailabilityZones: output.AvailabilityZones != null ? de_AvailabilityZones(output.AvailabilityZones, context) : undefined,
5015
- ConnectIps: output.ConnectIps != null ? de_IpAddrs(output.ConnectIps, context) : undefined,
5016
- CustomerUserName: (0, smithy_client_1.expectString)(output.CustomerUserName),
5017
- SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
5018
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
5019
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5020
- };
5021
- };
5022
- const de_DirectoryDescription = (output, context) => {
5023
- return {
5024
- AccessUrl: (0, smithy_client_1.expectString)(output.AccessUrl),
5025
- Alias: (0, smithy_client_1.expectString)(output.Alias),
5026
- ConnectSettings: output.ConnectSettings != null
5027
- ? de_DirectoryConnectSettingsDescription(output.ConnectSettings, context)
5028
- : undefined,
5029
- Description: (0, smithy_client_1.expectString)(output.Description),
5030
- DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
5031
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5032
- DnsIpAddrs: output.DnsIpAddrs != null ? de_DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
5033
- Edition: (0, smithy_client_1.expectString)(output.Edition),
5034
- LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5035
- Name: (0, smithy_client_1.expectString)(output.Name),
5036
- OsVersion: (0, smithy_client_1.expectString)(output.OsVersion),
5037
- OwnerDirectoryDescription: output.OwnerDirectoryDescription != null
5038
- ? de_OwnerDirectoryDescription(output.OwnerDirectoryDescription, context)
5039
- : undefined,
5040
- RadiusSettings: output.RadiusSettings != null ? de_RadiusSettings(output.RadiusSettings, context) : undefined,
5041
- RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
5042
- RegionsInfo: output.RegionsInfo != null ? de_RegionsInfo(output.RegionsInfo, context) : undefined,
5043
- ShareMethod: (0, smithy_client_1.expectString)(output.ShareMethod),
5044
- ShareNotes: (0, smithy_client_1.expectString)(output.ShareNotes),
5045
- ShareStatus: (0, smithy_client_1.expectString)(output.ShareStatus),
5046
- ShortName: (0, smithy_client_1.expectString)(output.ShortName),
5047
- Size: (0, smithy_client_1.expectString)(output.Size),
5048
- SsoEnabled: (0, smithy_client_1.expectBoolean)(output.SsoEnabled),
5049
- Stage: (0, smithy_client_1.expectString)(output.Stage),
5050
- StageLastUpdatedDateTime: output.StageLastUpdatedDateTime != null
5051
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StageLastUpdatedDateTime)))
5052
- : undefined,
5053
- StageReason: (0, smithy_client_1.expectString)(output.StageReason),
5054
- Type: (0, smithy_client_1.expectString)(output.Type),
5055
- VpcSettings: output.VpcSettings != null ? de_DirectoryVpcSettingsDescription(output.VpcSettings, context) : undefined,
5056
- };
5057
- };
5058
- const de_DirectoryDescriptions = (output, context) => {
5059
- const retVal = (output || [])
5060
- .filter((e) => e != null)
5061
- .map((entry) => {
5062
- if (entry === null) {
5063
- return null;
5064
- }
5065
- return de_DirectoryDescription(entry, context);
4019
+ return (0, smithy_client_1.take)(output, {
4020
+ LDAPSSettingsInfo: (_) => de_LDAPSSettingsInfo(_, context),
4021
+ NextToken: smithy_client_1.expectString,
5066
4022
  });
5067
- return retVal;
5068
4023
  };
5069
- const de_DirectoryDoesNotExistException = (output, context) => {
5070
- return {
5071
- Message: (0, smithy_client_1.expectString)(output.Message),
5072
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5073
- };
5074
- };
5075
- const de_DirectoryInDesiredStateException = (output, context) => {
5076
- return {
5077
- Message: (0, smithy_client_1.expectString)(output.Message),
5078
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5079
- };
5080
- };
5081
- const de_DirectoryLimitExceededException = (output, context) => {
5082
- return {
5083
- Message: (0, smithy_client_1.expectString)(output.Message),
5084
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5085
- };
5086
- };
5087
- const de_DirectoryLimits = (output, context) => {
5088
- return {
5089
- CloudOnlyDirectoriesCurrentCount: (0, smithy_client_1.expectInt32)(output.CloudOnlyDirectoriesCurrentCount),
5090
- CloudOnlyDirectoriesLimit: (0, smithy_client_1.expectInt32)(output.CloudOnlyDirectoriesLimit),
5091
- CloudOnlyDirectoriesLimitReached: (0, smithy_client_1.expectBoolean)(output.CloudOnlyDirectoriesLimitReached),
5092
- CloudOnlyMicrosoftADCurrentCount: (0, smithy_client_1.expectInt32)(output.CloudOnlyMicrosoftADCurrentCount),
5093
- CloudOnlyMicrosoftADLimit: (0, smithy_client_1.expectInt32)(output.CloudOnlyMicrosoftADLimit),
5094
- CloudOnlyMicrosoftADLimitReached: (0, smithy_client_1.expectBoolean)(output.CloudOnlyMicrosoftADLimitReached),
5095
- ConnectedDirectoriesCurrentCount: (0, smithy_client_1.expectInt32)(output.ConnectedDirectoriesCurrentCount),
5096
- ConnectedDirectoriesLimit: (0, smithy_client_1.expectInt32)(output.ConnectedDirectoriesLimit),
5097
- ConnectedDirectoriesLimitReached: (0, smithy_client_1.expectBoolean)(output.ConnectedDirectoriesLimitReached),
5098
- };
5099
- };
5100
- const de_DirectoryNotSharedException = (output, context) => {
5101
- return {
5102
- Message: (0, smithy_client_1.expectString)(output.Message),
5103
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5104
- };
5105
- };
5106
- const de_DirectoryUnavailableException = (output, context) => {
5107
- return {
5108
- Message: (0, smithy_client_1.expectString)(output.Message),
5109
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5110
- };
4024
+ const de_DescribeRegionsResult = (output, context) => {
4025
+ return (0, smithy_client_1.take)(output, {
4026
+ NextToken: smithy_client_1.expectString,
4027
+ RegionsDescription: (_) => de_RegionsDescription(_, context),
4028
+ });
5111
4029
  };
5112
- const de_DirectoryVpcSettings = (output, context) => {
5113
- return {
5114
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
5115
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5116
- };
4030
+ const de_DescribeSettingsResult = (output, context) => {
4031
+ return (0, smithy_client_1.take)(output, {
4032
+ DirectoryId: smithy_client_1.expectString,
4033
+ NextToken: smithy_client_1.expectString,
4034
+ SettingEntries: (_) => de_SettingEntries(_, context),
4035
+ });
5117
4036
  };
5118
- const de_DirectoryVpcSettingsDescription = (output, context) => {
5119
- return {
5120
- AvailabilityZones: output.AvailabilityZones != null ? de_AvailabilityZones(output.AvailabilityZones, context) : undefined,
5121
- SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
5122
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
5123
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5124
- };
4037
+ const de_DescribeSharedDirectoriesResult = (output, context) => {
4038
+ return (0, smithy_client_1.take)(output, {
4039
+ NextToken: smithy_client_1.expectString,
4040
+ SharedDirectories: (_) => de_SharedDirectories(_, context),
4041
+ });
5125
4042
  };
5126
- const de_DisableClientAuthenticationResult = (output, context) => {
5127
- return {};
4043
+ const de_DescribeSnapshotsResult = (output, context) => {
4044
+ return (0, smithy_client_1.take)(output, {
4045
+ NextToken: smithy_client_1.expectString,
4046
+ Snapshots: (_) => de_Snapshots(_, context),
4047
+ });
5128
4048
  };
5129
- const de_DisableLDAPSResult = (output, context) => {
5130
- return {};
4049
+ const de_DescribeTrustsResult = (output, context) => {
4050
+ return (0, smithy_client_1.take)(output, {
4051
+ NextToken: smithy_client_1.expectString,
4052
+ Trusts: (_) => de_Trusts(_, context),
4053
+ });
5131
4054
  };
5132
- const de_DisableRadiusResult = (output, context) => {
5133
- return {};
4055
+ const de_DescribeUpdateDirectoryResult = (output, context) => {
4056
+ return (0, smithy_client_1.take)(output, {
4057
+ NextToken: smithy_client_1.expectString,
4058
+ UpdateActivities: (_) => de_UpdateActivities(_, context),
4059
+ });
5134
4060
  };
5135
- const de_DisableSsoResult = (output, context) => {
5136
- return {};
4061
+ const de_DirectoryDescription = (output, context) => {
4062
+ return (0, smithy_client_1.take)(output, {
4063
+ AccessUrl: smithy_client_1.expectString,
4064
+ Alias: smithy_client_1.expectString,
4065
+ ConnectSettings: smithy_client_1._json,
4066
+ Description: smithy_client_1.expectString,
4067
+ DesiredNumberOfDomainControllers: smithy_client_1.expectInt32,
4068
+ DirectoryId: smithy_client_1.expectString,
4069
+ DnsIpAddrs: smithy_client_1._json,
4070
+ Edition: smithy_client_1.expectString,
4071
+ LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4072
+ Name: smithy_client_1.expectString,
4073
+ OsVersion: smithy_client_1.expectString,
4074
+ OwnerDirectoryDescription: smithy_client_1._json,
4075
+ RadiusSettings: smithy_client_1._json,
4076
+ RadiusStatus: smithy_client_1.expectString,
4077
+ RegionsInfo: smithy_client_1._json,
4078
+ ShareMethod: smithy_client_1.expectString,
4079
+ ShareNotes: smithy_client_1.expectString,
4080
+ ShareStatus: smithy_client_1.expectString,
4081
+ ShortName: smithy_client_1.expectString,
4082
+ Size: smithy_client_1.expectString,
4083
+ SsoEnabled: smithy_client_1.expectBoolean,
4084
+ Stage: smithy_client_1.expectString,
4085
+ StageLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4086
+ StageReason: smithy_client_1.expectString,
4087
+ Type: smithy_client_1.expectString,
4088
+ VpcSettings: smithy_client_1._json,
4089
+ });
5137
4090
  };
5138
- const de_DnsIpAddrs = (output, context) => {
4091
+ const de_DirectoryDescriptions = (output, context) => {
5139
4092
  const retVal = (output || [])
5140
4093
  .filter((e) => e != null)
5141
4094
  .map((entry) => {
5142
- if (entry === null) {
5143
- return null;
5144
- }
5145
- return (0, smithy_client_1.expectString)(entry);
4095
+ return de_DirectoryDescription(entry, context);
5146
4096
  });
5147
4097
  return retVal;
5148
4098
  };
5149
4099
  const de_DomainController = (output, context) => {
5150
- return {
5151
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
5152
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5153
- DnsIpAddr: (0, smithy_client_1.expectString)(output.DnsIpAddr),
5154
- DomainControllerId: (0, smithy_client_1.expectString)(output.DomainControllerId),
5155
- LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5156
- Status: (0, smithy_client_1.expectString)(output.Status),
5157
- StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
5158
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
5159
- : undefined,
5160
- StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
5161
- SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
5162
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5163
- };
5164
- };
5165
- const de_DomainControllerLimitExceededException = (output, context) => {
5166
- return {
5167
- Message: (0, smithy_client_1.expectString)(output.Message),
5168
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5169
- };
4100
+ return (0, smithy_client_1.take)(output, {
4101
+ AvailabilityZone: smithy_client_1.expectString,
4102
+ DirectoryId: smithy_client_1.expectString,
4103
+ DnsIpAddr: smithy_client_1.expectString,
4104
+ DomainControllerId: smithy_client_1.expectString,
4105
+ LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4106
+ Status: smithy_client_1.expectString,
4107
+ StatusLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4108
+ StatusReason: smithy_client_1.expectString,
4109
+ SubnetId: smithy_client_1.expectString,
4110
+ VpcId: smithy_client_1.expectString,
4111
+ });
5170
4112
  };
5171
4113
  const de_DomainControllers = (output, context) => {
5172
4114
  const retVal = (output || [])
5173
4115
  .filter((e) => e != null)
5174
4116
  .map((entry) => {
5175
- if (entry === null) {
5176
- return null;
5177
- }
5178
4117
  return de_DomainController(entry, context);
5179
4118
  });
5180
4119
  return retVal;
5181
4120
  };
5182
- const de_EnableClientAuthenticationResult = (output, context) => {
5183
- return {};
5184
- };
5185
- const de_EnableLDAPSResult = (output, context) => {
5186
- return {};
5187
- };
5188
- const de_EnableRadiusResult = (output, context) => {
5189
- return {};
5190
- };
5191
- const de_EnableSsoResult = (output, context) => {
5192
- return {};
5193
- };
5194
- const de_EntityAlreadyExistsException = (output, context) => {
5195
- return {
5196
- Message: (0, smithy_client_1.expectString)(output.Message),
5197
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5198
- };
5199
- };
5200
- const de_EntityDoesNotExistException = (output, context) => {
5201
- return {
5202
- Message: (0, smithy_client_1.expectString)(output.Message),
5203
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5204
- };
5205
- };
5206
4121
  const de_EventTopic = (output, context) => {
5207
- return {
5208
- CreatedDateTime: output.CreatedDateTime != null
5209
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
5210
- : undefined,
5211
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5212
- Status: (0, smithy_client_1.expectString)(output.Status),
5213
- TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
5214
- TopicName: (0, smithy_client_1.expectString)(output.TopicName),
5215
- };
4122
+ return (0, smithy_client_1.take)(output, {
4123
+ CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4124
+ DirectoryId: smithy_client_1.expectString,
4125
+ Status: smithy_client_1.expectString,
4126
+ TopicArn: smithy_client_1.expectString,
4127
+ TopicName: smithy_client_1.expectString,
4128
+ });
5216
4129
  };
5217
4130
  const de_EventTopics = (output, context) => {
5218
4131
  const retVal = (output || [])
5219
4132
  .filter((e) => e != null)
5220
4133
  .map((entry) => {
5221
- if (entry === null) {
5222
- return null;
5223
- }
5224
4134
  return de_EventTopic(entry, context);
5225
4135
  });
5226
4136
  return retVal;
5227
4137
  };
5228
- const de_GetDirectoryLimitsResult = (output, context) => {
5229
- return {
5230
- DirectoryLimits: output.DirectoryLimits != null ? de_DirectoryLimits(output.DirectoryLimits, context) : undefined,
5231
- };
5232
- };
5233
- const de_GetSnapshotLimitsResult = (output, context) => {
5234
- return {
5235
- SnapshotLimits: output.SnapshotLimits != null ? de_SnapshotLimits(output.SnapshotLimits, context) : undefined,
5236
- };
5237
- };
5238
- const de_IncompatibleSettingsException = (output, context) => {
5239
- return {
5240
- Message: (0, smithy_client_1.expectString)(output.Message),
5241
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5242
- };
5243
- };
5244
- const de_InsufficientPermissionsException = (output, context) => {
5245
- return {
5246
- Message: (0, smithy_client_1.expectString)(output.Message),
5247
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5248
- };
5249
- };
5250
- const de_InvalidCertificateException = (output, context) => {
5251
- return {
5252
- Message: (0, smithy_client_1.expectString)(output.Message),
5253
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5254
- };
5255
- };
5256
- const de_InvalidClientAuthStatusException = (output, context) => {
5257
- return {
5258
- Message: (0, smithy_client_1.expectString)(output.Message),
5259
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5260
- };
5261
- };
5262
- const de_InvalidLDAPSStatusException = (output, context) => {
5263
- return {
5264
- Message: (0, smithy_client_1.expectString)(output.Message),
5265
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5266
- };
5267
- };
5268
- const de_InvalidNextTokenException = (output, context) => {
5269
- return {
5270
- Message: (0, smithy_client_1.expectString)(output.Message),
5271
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5272
- };
5273
- };
5274
- const de_InvalidParameterException = (output, context) => {
5275
- return {
5276
- Message: (0, smithy_client_1.expectString)(output.Message),
5277
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5278
- };
5279
- };
5280
- const de_InvalidPasswordException = (output, context) => {
5281
- return {
5282
- Message: (0, smithy_client_1.expectString)(output.Message),
5283
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5284
- };
5285
- };
5286
- const de_InvalidTargetException = (output, context) => {
5287
- return {
5288
- Message: (0, smithy_client_1.expectString)(output.Message),
5289
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5290
- };
5291
- };
5292
- const de_IpAddrs = (output, context) => {
5293
- const retVal = (output || [])
5294
- .filter((e) => e != null)
5295
- .map((entry) => {
5296
- if (entry === null) {
5297
- return null;
5298
- }
5299
- return (0, smithy_client_1.expectString)(entry);
5300
- });
5301
- return retVal;
5302
- };
5303
4138
  const de_IpRouteInfo = (output, context) => {
5304
- return {
5305
- AddedDateTime: output.AddedDateTime != null
5306
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AddedDateTime)))
5307
- : undefined,
5308
- CidrIp: (0, smithy_client_1.expectString)(output.CidrIp),
5309
- Description: (0, smithy_client_1.expectString)(output.Description),
5310
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5311
- IpRouteStatusMsg: (0, smithy_client_1.expectString)(output.IpRouteStatusMsg),
5312
- IpRouteStatusReason: (0, smithy_client_1.expectString)(output.IpRouteStatusReason),
5313
- };
5314
- };
5315
- const de_IpRouteLimitExceededException = (output, context) => {
5316
- return {
5317
- Message: (0, smithy_client_1.expectString)(output.Message),
5318
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5319
- };
4139
+ return (0, smithy_client_1.take)(output, {
4140
+ AddedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4141
+ CidrIp: smithy_client_1.expectString,
4142
+ Description: smithy_client_1.expectString,
4143
+ DirectoryId: smithy_client_1.expectString,
4144
+ IpRouteStatusMsg: smithy_client_1.expectString,
4145
+ IpRouteStatusReason: smithy_client_1.expectString,
4146
+ });
5320
4147
  };
5321
4148
  const de_IpRoutesInfo = (output, context) => {
5322
4149
  const retVal = (output || [])
5323
4150
  .filter((e) => e != null)
5324
4151
  .map((entry) => {
5325
- if (entry === null) {
5326
- return null;
5327
- }
5328
4152
  return de_IpRouteInfo(entry, context);
5329
4153
  });
5330
4154
  return retVal;
5331
4155
  };
5332
4156
  const de_LDAPSSettingInfo = (output, context) => {
5333
- return {
5334
- LDAPSStatus: (0, smithy_client_1.expectString)(output.LDAPSStatus),
5335
- LDAPSStatusReason: (0, smithy_client_1.expectString)(output.LDAPSStatusReason),
5336
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5337
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5338
- : undefined,
5339
- };
4157
+ return (0, smithy_client_1.take)(output, {
4158
+ LDAPSStatus: smithy_client_1.expectString,
4159
+ LDAPSStatusReason: smithy_client_1.expectString,
4160
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4161
+ });
5340
4162
  };
5341
4163
  const de_LDAPSSettingsInfo = (output, context) => {
5342
4164
  const retVal = (output || [])
5343
4165
  .filter((e) => e != null)
5344
4166
  .map((entry) => {
5345
- if (entry === null) {
5346
- return null;
5347
- }
5348
4167
  return de_LDAPSSettingInfo(entry, context);
5349
4168
  });
5350
4169
  return retVal;
5351
4170
  };
5352
4171
  const de_ListCertificatesResult = (output, context) => {
5353
- return {
5354
- CertificatesInfo: output.CertificatesInfo != null ? de_CertificatesInfo(output.CertificatesInfo, context) : undefined,
5355
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5356
- };
4172
+ return (0, smithy_client_1.take)(output, {
4173
+ CertificatesInfo: (_) => de_CertificatesInfo(_, context),
4174
+ NextToken: smithy_client_1.expectString,
4175
+ });
5357
4176
  };
5358
4177
  const de_ListIpRoutesResult = (output, context) => {
5359
- return {
5360
- IpRoutesInfo: output.IpRoutesInfo != null ? de_IpRoutesInfo(output.IpRoutesInfo, context) : undefined,
5361
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5362
- };
4178
+ return (0, smithy_client_1.take)(output, {
4179
+ IpRoutesInfo: (_) => de_IpRoutesInfo(_, context),
4180
+ NextToken: smithy_client_1.expectString,
4181
+ });
5363
4182
  };
5364
4183
  const de_ListLogSubscriptionsResult = (output, context) => {
5365
- return {
5366
- LogSubscriptions: output.LogSubscriptions != null ? de_LogSubscriptions(output.LogSubscriptions, context) : undefined,
5367
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5368
- };
4184
+ return (0, smithy_client_1.take)(output, {
4185
+ LogSubscriptions: (_) => de_LogSubscriptions(_, context),
4186
+ NextToken: smithy_client_1.expectString,
4187
+ });
5369
4188
  };
5370
4189
  const de_ListSchemaExtensionsResult = (output, context) => {
5371
- return {
5372
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5373
- SchemaExtensionsInfo: output.SchemaExtensionsInfo != null ? de_SchemaExtensionsInfo(output.SchemaExtensionsInfo, context) : undefined,
5374
- };
5375
- };
5376
- const de_ListTagsForResourceResult = (output, context) => {
5377
- return {
5378
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5379
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
5380
- };
4190
+ return (0, smithy_client_1.take)(output, {
4191
+ NextToken: smithy_client_1.expectString,
4192
+ SchemaExtensionsInfo: (_) => de_SchemaExtensionsInfo(_, context),
4193
+ });
5381
4194
  };
5382
4195
  const de_LogSubscription = (output, context) => {
5383
- return {
5384
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5385
- LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
5386
- SubscriptionCreatedDateTime: output.SubscriptionCreatedDateTime != null
5387
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionCreatedDateTime)))
5388
- : undefined,
5389
- };
4196
+ return (0, smithy_client_1.take)(output, {
4197
+ DirectoryId: smithy_client_1.expectString,
4198
+ LogGroupName: smithy_client_1.expectString,
4199
+ SubscriptionCreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4200
+ });
5390
4201
  };
5391
4202
  const de_LogSubscriptions = (output, context) => {
5392
4203
  const retVal = (output || [])
5393
4204
  .filter((e) => e != null)
5394
4205
  .map((entry) => {
5395
- if (entry === null) {
5396
- return null;
5397
- }
5398
4206
  return de_LogSubscription(entry, context);
5399
4207
  });
5400
4208
  return retVal;
5401
4209
  };
5402
- const de_NoAvailableCertificateException = (output, context) => {
5403
- return {
5404
- Message: (0, smithy_client_1.expectString)(output.Message),
5405
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5406
- };
5407
- };
5408
- const de_OrganizationsException = (output, context) => {
5409
- return {
5410
- Message: (0, smithy_client_1.expectString)(output.Message),
5411
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5412
- };
5413
- };
5414
- const de_OSUpdateSettings = (output, context) => {
5415
- return {
5416
- OSVersion: (0, smithy_client_1.expectString)(output.OSVersion),
5417
- };
5418
- };
5419
- const de_OwnerDirectoryDescription = (output, context) => {
5420
- return {
5421
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
5422
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5423
- DnsIpAddrs: output.DnsIpAddrs != null ? de_DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
5424
- RadiusSettings: output.RadiusSettings != null ? de_RadiusSettings(output.RadiusSettings, context) : undefined,
5425
- RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
5426
- VpcSettings: output.VpcSettings != null ? de_DirectoryVpcSettingsDescription(output.VpcSettings, context) : undefined,
5427
- };
5428
- };
5429
- const de_RadiusSettings = (output, context) => {
5430
- return {
5431
- AuthenticationProtocol: (0, smithy_client_1.expectString)(output.AuthenticationProtocol),
5432
- DisplayLabel: (0, smithy_client_1.expectString)(output.DisplayLabel),
5433
- RadiusPort: (0, smithy_client_1.expectInt32)(output.RadiusPort),
5434
- RadiusRetries: (0, smithy_client_1.expectInt32)(output.RadiusRetries),
5435
- RadiusServers: output.RadiusServers != null ? de_Servers(output.RadiusServers, context) : undefined,
5436
- RadiusTimeout: (0, smithy_client_1.expectInt32)(output.RadiusTimeout),
5437
- SharedSecret: (0, smithy_client_1.expectString)(output.SharedSecret),
5438
- UseSameUsername: (0, smithy_client_1.expectBoolean)(output.UseSameUsername),
5439
- };
5440
- };
5441
4210
  const de_RegionDescription = (output, context) => {
5442
- return {
5443
- DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
5444
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5445
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5446
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5447
- : undefined,
5448
- LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5449
- RegionName: (0, smithy_client_1.expectString)(output.RegionName),
5450
- RegionType: (0, smithy_client_1.expectString)(output.RegionType),
5451
- Status: (0, smithy_client_1.expectString)(output.Status),
5452
- StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
5453
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
5454
- : undefined,
5455
- VpcSettings: output.VpcSettings != null ? de_DirectoryVpcSettings(output.VpcSettings, context) : undefined,
5456
- };
5457
- };
5458
- const de_RegionLimitExceededException = (output, context) => {
5459
- return {
5460
- Message: (0, smithy_client_1.expectString)(output.Message),
5461
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5462
- };
4211
+ return (0, smithy_client_1.take)(output, {
4212
+ DesiredNumberOfDomainControllers: smithy_client_1.expectInt32,
4213
+ DirectoryId: smithy_client_1.expectString,
4214
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4215
+ LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4216
+ RegionName: smithy_client_1.expectString,
4217
+ RegionType: smithy_client_1.expectString,
4218
+ Status: smithy_client_1.expectString,
4219
+ StatusLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4220
+ VpcSettings: smithy_client_1._json,
4221
+ });
5463
4222
  };
5464
4223
  const de_RegionsDescription = (output, context) => {
5465
4224
  const retVal = (output || [])
5466
4225
  .filter((e) => e != null)
5467
4226
  .map((entry) => {
5468
- if (entry === null) {
5469
- return null;
5470
- }
5471
4227
  return de_RegionDescription(entry, context);
5472
4228
  });
5473
4229
  return retVal;
5474
4230
  };
5475
- const de_RegionsInfo = (output, context) => {
5476
- return {
5477
- AdditionalRegions: output.AdditionalRegions != null ? de_AdditionalRegions(output.AdditionalRegions, context) : undefined,
5478
- PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
5479
- };
5480
- };
5481
- const de_RegisterCertificateResult = (output, context) => {
5482
- return {
5483
- CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
5484
- };
5485
- };
5486
- const de_RegisterEventTopicResult = (output, context) => {
5487
- return {};
5488
- };
5489
- const de_RejectSharedDirectoryResult = (output, context) => {
5490
- return {
5491
- SharedDirectoryId: (0, smithy_client_1.expectString)(output.SharedDirectoryId),
5492
- };
5493
- };
5494
- const de_RemoveIpRoutesResult = (output, context) => {
5495
- return {};
5496
- };
5497
- const de_RemoveRegionResult = (output, context) => {
5498
- return {};
5499
- };
5500
- const de_RemoveTagsFromResourceResult = (output, context) => {
5501
- return {};
5502
- };
5503
- const de_ResetUserPasswordResult = (output, context) => {
5504
- return {};
5505
- };
5506
- const de_RestoreFromSnapshotResult = (output, context) => {
5507
- return {};
5508
- };
5509
4231
  const de_SchemaExtensionInfo = (output, context) => {
5510
- return {
5511
- Description: (0, smithy_client_1.expectString)(output.Description),
5512
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5513
- EndDateTime: output.EndDateTime != null
5514
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
5515
- : undefined,
5516
- SchemaExtensionId: (0, smithy_client_1.expectString)(output.SchemaExtensionId),
5517
- SchemaExtensionStatus: (0, smithy_client_1.expectString)(output.SchemaExtensionStatus),
5518
- SchemaExtensionStatusReason: (0, smithy_client_1.expectString)(output.SchemaExtensionStatusReason),
5519
- StartDateTime: output.StartDateTime != null
5520
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
5521
- : undefined,
5522
- };
4232
+ return (0, smithy_client_1.take)(output, {
4233
+ Description: smithy_client_1.expectString,
4234
+ DirectoryId: smithy_client_1.expectString,
4235
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4236
+ SchemaExtensionId: smithy_client_1.expectString,
4237
+ SchemaExtensionStatus: smithy_client_1.expectString,
4238
+ SchemaExtensionStatusReason: smithy_client_1.expectString,
4239
+ StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4240
+ });
5523
4241
  };
5524
4242
  const de_SchemaExtensionsInfo = (output, context) => {
5525
4243
  const retVal = (output || [])
5526
4244
  .filter((e) => e != null)
5527
4245
  .map((entry) => {
5528
- if (entry === null) {
5529
- return null;
5530
- }
5531
4246
  return de_SchemaExtensionInfo(entry, context);
5532
4247
  });
5533
4248
  return retVal;
5534
4249
  };
5535
- const de_Servers = (output, context) => {
5536
- const retVal = (output || [])
5537
- .filter((e) => e != null)
5538
- .map((entry) => {
5539
- if (entry === null) {
5540
- return null;
5541
- }
5542
- return (0, smithy_client_1.expectString)(entry);
5543
- });
5544
- return retVal;
5545
- };
5546
- const de_ServiceException = (output, context) => {
5547
- return {
5548
- Message: (0, smithy_client_1.expectString)(output.Message),
5549
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5550
- };
5551
- };
5552
4250
  const de_SettingEntries = (output, context) => {
5553
4251
  const retVal = (output || [])
5554
4252
  .filter((e) => e != null)
5555
4253
  .map((entry) => {
5556
- if (entry === null) {
5557
- return null;
5558
- }
5559
4254
  return de_SettingEntry(entry, context);
5560
4255
  });
5561
4256
  return retVal;
5562
4257
  };
5563
4258
  const de_SettingEntry = (output, context) => {
5564
- return {
5565
- AllowedValues: (0, smithy_client_1.expectString)(output.AllowedValues),
5566
- AppliedValue: (0, smithy_client_1.expectString)(output.AppliedValue),
5567
- LastRequestedDateTime: output.LastRequestedDateTime != null
5568
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRequestedDateTime)))
5569
- : undefined,
5570
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5571
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5572
- : undefined,
5573
- Name: (0, smithy_client_1.expectString)(output.Name),
5574
- RequestDetailedStatus: output.RequestDetailedStatus != null
5575
- ? de_DirectoryConfigurationSettingRequestDetailedStatus(output.RequestDetailedStatus, context)
5576
- : undefined,
5577
- RequestStatus: (0, smithy_client_1.expectString)(output.RequestStatus),
5578
- RequestStatusMessage: (0, smithy_client_1.expectString)(output.RequestStatusMessage),
5579
- RequestedValue: (0, smithy_client_1.expectString)(output.RequestedValue),
5580
- Type: (0, smithy_client_1.expectString)(output.Type),
5581
- };
4259
+ return (0, smithy_client_1.take)(output, {
4260
+ AllowedValues: smithy_client_1.expectString,
4261
+ AppliedValue: smithy_client_1.expectString,
4262
+ LastRequestedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4263
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4264
+ Name: smithy_client_1.expectString,
4265
+ RequestDetailedStatus: smithy_client_1._json,
4266
+ RequestStatus: smithy_client_1.expectString,
4267
+ RequestStatusMessage: smithy_client_1.expectString,
4268
+ RequestedValue: smithy_client_1.expectString,
4269
+ Type: smithy_client_1.expectString,
4270
+ });
5582
4271
  };
5583
4272
  const de_SharedDirectories = (output, context) => {
5584
4273
  const retVal = (output || [])
5585
4274
  .filter((e) => e != null)
5586
4275
  .map((entry) => {
5587
- if (entry === null) {
5588
- return null;
5589
- }
5590
4276
  return de_SharedDirectory(entry, context);
5591
4277
  });
5592
4278
  return retVal;
5593
4279
  };
5594
4280
  const de_SharedDirectory = (output, context) => {
5595
- return {
5596
- CreatedDateTime: output.CreatedDateTime != null
5597
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
5598
- : undefined,
5599
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5600
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5601
- : undefined,
5602
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
5603
- OwnerDirectoryId: (0, smithy_client_1.expectString)(output.OwnerDirectoryId),
5604
- ShareMethod: (0, smithy_client_1.expectString)(output.ShareMethod),
5605
- ShareNotes: (0, smithy_client_1.expectString)(output.ShareNotes),
5606
- ShareStatus: (0, smithy_client_1.expectString)(output.ShareStatus),
5607
- SharedAccountId: (0, smithy_client_1.expectString)(output.SharedAccountId),
5608
- SharedDirectoryId: (0, smithy_client_1.expectString)(output.SharedDirectoryId),
5609
- };
5610
- };
5611
- const de_ShareDirectoryResult = (output, context) => {
5612
- return {
5613
- SharedDirectoryId: (0, smithy_client_1.expectString)(output.SharedDirectoryId),
5614
- };
5615
- };
5616
- const de_ShareLimitExceededException = (output, context) => {
5617
- return {
5618
- Message: (0, smithy_client_1.expectString)(output.Message),
5619
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5620
- };
4281
+ return (0, smithy_client_1.take)(output, {
4282
+ CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4283
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4284
+ OwnerAccountId: smithy_client_1.expectString,
4285
+ OwnerDirectoryId: smithy_client_1.expectString,
4286
+ ShareMethod: smithy_client_1.expectString,
4287
+ ShareNotes: smithy_client_1.expectString,
4288
+ ShareStatus: smithy_client_1.expectString,
4289
+ SharedAccountId: smithy_client_1.expectString,
4290
+ SharedDirectoryId: smithy_client_1.expectString,
4291
+ });
5621
4292
  };
5622
4293
  const de_Snapshot = (output, context) => {
5623
- return {
5624
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5625
- Name: (0, smithy_client_1.expectString)(output.Name),
5626
- SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
5627
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5628
- Status: (0, smithy_client_1.expectString)(output.Status),
5629
- Type: (0, smithy_client_1.expectString)(output.Type),
5630
- };
5631
- };
5632
- const de_SnapshotLimitExceededException = (output, context) => {
5633
- return {
5634
- Message: (0, smithy_client_1.expectString)(output.Message),
5635
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5636
- };
5637
- };
5638
- const de_SnapshotLimits = (output, context) => {
5639
- return {
5640
- ManualSnapshotsCurrentCount: (0, smithy_client_1.expectInt32)(output.ManualSnapshotsCurrentCount),
5641
- ManualSnapshotsLimit: (0, smithy_client_1.expectInt32)(output.ManualSnapshotsLimit),
5642
- ManualSnapshotsLimitReached: (0, smithy_client_1.expectBoolean)(output.ManualSnapshotsLimitReached),
5643
- };
4294
+ return (0, smithy_client_1.take)(output, {
4295
+ DirectoryId: smithy_client_1.expectString,
4296
+ Name: smithy_client_1.expectString,
4297
+ SnapshotId: smithy_client_1.expectString,
4298
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4299
+ Status: smithy_client_1.expectString,
4300
+ Type: smithy_client_1.expectString,
4301
+ });
5644
4302
  };
5645
4303
  const de_Snapshots = (output, context) => {
5646
4304
  const retVal = (output || [])
5647
4305
  .filter((e) => e != null)
5648
4306
  .map((entry) => {
5649
- if (entry === null) {
5650
- return null;
5651
- }
5652
4307
  return de_Snapshot(entry, context);
5653
4308
  });
5654
4309
  return retVal;
5655
4310
  };
5656
- const de_StartSchemaExtensionResult = (output, context) => {
5657
- return {
5658
- SchemaExtensionId: (0, smithy_client_1.expectString)(output.SchemaExtensionId),
5659
- };
5660
- };
5661
- const de_SubnetIds = (output, context) => {
5662
- const retVal = (output || [])
5663
- .filter((e) => e != null)
5664
- .map((entry) => {
5665
- if (entry === null) {
5666
- return null;
5667
- }
5668
- return (0, smithy_client_1.expectString)(entry);
5669
- });
5670
- return retVal;
5671
- };
5672
- const de_Tag = (output, context) => {
5673
- return {
5674
- Key: (0, smithy_client_1.expectString)(output.Key),
5675
- Value: (0, smithy_client_1.expectString)(output.Value),
5676
- };
5677
- };
5678
- const de_TagLimitExceededException = (output, context) => {
5679
- return {
5680
- Message: (0, smithy_client_1.expectString)(output.Message),
5681
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5682
- };
5683
- };
5684
- const de_Tags = (output, context) => {
5685
- const retVal = (output || [])
5686
- .filter((e) => e != null)
5687
- .map((entry) => {
5688
- if (entry === null) {
5689
- return null;
5690
- }
5691
- return de_Tag(entry, context);
5692
- });
5693
- return retVal;
5694
- };
5695
4311
  const de_Trust = (output, context) => {
5696
- return {
5697
- CreatedDateTime: output.CreatedDateTime != null
5698
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
5699
- : undefined,
5700
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5701
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5702
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5703
- : undefined,
5704
- RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
5705
- SelectiveAuth: (0, smithy_client_1.expectString)(output.SelectiveAuth),
5706
- StateLastUpdatedDateTime: output.StateLastUpdatedDateTime != null
5707
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateLastUpdatedDateTime)))
5708
- : undefined,
5709
- TrustDirection: (0, smithy_client_1.expectString)(output.TrustDirection),
5710
- TrustId: (0, smithy_client_1.expectString)(output.TrustId),
5711
- TrustState: (0, smithy_client_1.expectString)(output.TrustState),
5712
- TrustStateReason: (0, smithy_client_1.expectString)(output.TrustStateReason),
5713
- TrustType: (0, smithy_client_1.expectString)(output.TrustType),
5714
- };
4312
+ return (0, smithy_client_1.take)(output, {
4313
+ CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4314
+ DirectoryId: smithy_client_1.expectString,
4315
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4316
+ RemoteDomainName: smithy_client_1.expectString,
4317
+ SelectiveAuth: smithy_client_1.expectString,
4318
+ StateLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4319
+ TrustDirection: smithy_client_1.expectString,
4320
+ TrustId: smithy_client_1.expectString,
4321
+ TrustState: smithy_client_1.expectString,
4322
+ TrustStateReason: smithy_client_1.expectString,
4323
+ TrustType: smithy_client_1.expectString,
4324
+ });
5715
4325
  };
5716
4326
  const de_Trusts = (output, context) => {
5717
4327
  const retVal = (output || [])
5718
4328
  .filter((e) => e != null)
5719
4329
  .map((entry) => {
5720
- if (entry === null) {
5721
- return null;
5722
- }
5723
4330
  return de_Trust(entry, context);
5724
4331
  });
5725
4332
  return retVal;
5726
4333
  };
5727
- const de_UnshareDirectoryResult = (output, context) => {
5728
- return {
5729
- SharedDirectoryId: (0, smithy_client_1.expectString)(output.SharedDirectoryId),
5730
- };
5731
- };
5732
- const de_UnsupportedOperationException = (output, context) => {
5733
- return {
5734
- Message: (0, smithy_client_1.expectString)(output.Message),
5735
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5736
- };
5737
- };
5738
- const de_UnsupportedSettingsException = (output, context) => {
5739
- return {
5740
- Message: (0, smithy_client_1.expectString)(output.Message),
5741
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5742
- };
5743
- };
5744
4334
  const de_UpdateActivities = (output, context) => {
5745
4335
  const retVal = (output || [])
5746
4336
  .filter((e) => e != null)
5747
4337
  .map((entry) => {
5748
- if (entry === null) {
5749
- return null;
5750
- }
5751
4338
  return de_UpdateInfoEntry(entry, context);
5752
4339
  });
5753
4340
  return retVal;
5754
4341
  };
5755
- const de_UpdateConditionalForwarderResult = (output, context) => {
5756
- return {};
5757
- };
5758
- const de_UpdateDirectorySetupResult = (output, context) => {
5759
- return {};
5760
- };
5761
4342
  const de_UpdateInfoEntry = (output, context) => {
5762
- return {
5763
- InitiatedBy: (0, smithy_client_1.expectString)(output.InitiatedBy),
5764
- LastUpdatedDateTime: output.LastUpdatedDateTime != null
5765
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5766
- : undefined,
5767
- NewValue: output.NewValue != null ? de_UpdateValue(output.NewValue, context) : undefined,
5768
- PreviousValue: output.PreviousValue != null ? de_UpdateValue(output.PreviousValue, context) : undefined,
5769
- Region: (0, smithy_client_1.expectString)(output.Region),
5770
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5771
- Status: (0, smithy_client_1.expectString)(output.Status),
5772
- StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
5773
- };
5774
- };
5775
- const de_UpdateNumberOfDomainControllersResult = (output, context) => {
5776
- return {};
5777
- };
5778
- const de_UpdateRadiusResult = (output, context) => {
5779
- return {};
5780
- };
5781
- const de_UpdateSettingsResult = (output, context) => {
5782
- return {
5783
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5784
- };
5785
- };
5786
- const de_UpdateTrustResult = (output, context) => {
5787
- return {
5788
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5789
- TrustId: (0, smithy_client_1.expectString)(output.TrustId),
5790
- };
5791
- };
5792
- const de_UpdateValue = (output, context) => {
5793
- return {
5794
- OSUpdateSettings: output.OSUpdateSettings != null ? de_OSUpdateSettings(output.OSUpdateSettings, context) : undefined,
5795
- };
5796
- };
5797
- const de_UserDoesNotExistException = (output, context) => {
5798
- return {
5799
- Message: (0, smithy_client_1.expectString)(output.Message),
5800
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
5801
- };
5802
- };
5803
- const de_VerifyTrustResult = (output, context) => {
5804
- return {
5805
- TrustId: (0, smithy_client_1.expectString)(output.TrustId),
5806
- };
4343
+ return (0, smithy_client_1.take)(output, {
4344
+ InitiatedBy: smithy_client_1.expectString,
4345
+ LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4346
+ NewValue: smithy_client_1._json,
4347
+ PreviousValue: smithy_client_1._json,
4348
+ Region: smithy_client_1.expectString,
4349
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4350
+ Status: smithy_client_1.expectString,
4351
+ StatusReason: smithy_client_1.expectString,
4352
+ });
5807
4353
  };
5808
4354
  const deserializeMetadata = (output) => ({
5809
4355
  httpStatusCode: output.statusCode,
@@ -5818,6 +4364,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5818
4364
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5819
4365
  };
5820
4366
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4367
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DirectoryServiceServiceException_1.DirectoryServiceServiceException);
5821
4368
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5822
4369
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5823
4370
  const contents = {