@aws-sdk/client-directory-service 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist-cjs/index.js +2547 -3371
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/DirectoryServiceClient.js +2 -0
  4. package/dist-es/commands/AcceptSharedDirectoryCommand.js +3 -10
  5. package/dist-es/commands/AddIpRoutesCommand.js +3 -9
  6. package/dist-es/commands/AddRegionCommand.js +3 -9
  7. package/dist-es/commands/AddTagsToResourceCommand.js +3 -9
  8. package/dist-es/commands/CancelSchemaExtensionCommand.js +3 -9
  9. package/dist-es/commands/ConnectDirectoryCommand.js +3 -10
  10. package/dist-es/commands/CreateAliasCommand.js +3 -9
  11. package/dist-es/commands/CreateComputerCommand.js +3 -10
  12. package/dist-es/commands/CreateConditionalForwarderCommand.js +3 -9
  13. package/dist-es/commands/CreateDirectoryCommand.js +3 -10
  14. package/dist-es/commands/CreateHybridADCommand.js +3 -9
  15. package/dist-es/commands/CreateLogSubscriptionCommand.js +3 -9
  16. package/dist-es/commands/CreateMicrosoftADCommand.js +3 -10
  17. package/dist-es/commands/CreateSnapshotCommand.js +3 -9
  18. package/dist-es/commands/CreateTrustCommand.js +3 -10
  19. package/dist-es/commands/DeleteADAssessmentCommand.js +3 -9
  20. package/dist-es/commands/DeleteConditionalForwarderCommand.js +3 -9
  21. package/dist-es/commands/DeleteDirectoryCommand.js +3 -9
  22. package/dist-es/commands/DeleteLogSubscriptionCommand.js +3 -9
  23. package/dist-es/commands/DeleteSnapshotCommand.js +3 -9
  24. package/dist-es/commands/DeleteTrustCommand.js +3 -9
  25. package/dist-es/commands/DeregisterCertificateCommand.js +3 -9
  26. package/dist-es/commands/DeregisterEventTopicCommand.js +3 -9
  27. package/dist-es/commands/DescribeADAssessmentCommand.js +3 -9
  28. package/dist-es/commands/DescribeCAEnrollmentPolicyCommand.js +3 -9
  29. package/dist-es/commands/DescribeCertificateCommand.js +3 -9
  30. package/dist-es/commands/DescribeClientAuthenticationSettingsCommand.js +3 -9
  31. package/dist-es/commands/DescribeConditionalForwardersCommand.js +3 -9
  32. package/dist-es/commands/DescribeDirectoriesCommand.js +3 -10
  33. package/dist-es/commands/DescribeDirectoryDataAccessCommand.js +3 -9
  34. package/dist-es/commands/DescribeDomainControllersCommand.js +3 -9
  35. package/dist-es/commands/DescribeEventTopicsCommand.js +3 -9
  36. package/dist-es/commands/DescribeHybridADUpdateCommand.js +3 -9
  37. package/dist-es/commands/DescribeLDAPSSettingsCommand.js +3 -9
  38. package/dist-es/commands/DescribeRegionsCommand.js +3 -9
  39. package/dist-es/commands/DescribeSettingsCommand.js +3 -9
  40. package/dist-es/commands/DescribeSharedDirectoriesCommand.js +3 -10
  41. package/dist-es/commands/DescribeSnapshotsCommand.js +3 -9
  42. package/dist-es/commands/DescribeTrustsCommand.js +3 -9
  43. package/dist-es/commands/DescribeUpdateDirectoryCommand.js +3 -9
  44. package/dist-es/commands/DisableCAEnrollmentPolicyCommand.js +3 -9
  45. package/dist-es/commands/DisableClientAuthenticationCommand.js +3 -9
  46. package/dist-es/commands/DisableDirectoryDataAccessCommand.js +3 -9
  47. package/dist-es/commands/DisableLDAPSCommand.js +3 -9
  48. package/dist-es/commands/DisableRadiusCommand.js +3 -9
  49. package/dist-es/commands/DisableSsoCommand.js +3 -10
  50. package/dist-es/commands/EnableCAEnrollmentPolicyCommand.js +3 -9
  51. package/dist-es/commands/EnableClientAuthenticationCommand.js +3 -9
  52. package/dist-es/commands/EnableDirectoryDataAccessCommand.js +3 -9
  53. package/dist-es/commands/EnableLDAPSCommand.js +3 -9
  54. package/dist-es/commands/EnableRadiusCommand.js +3 -10
  55. package/dist-es/commands/EnableSsoCommand.js +3 -10
  56. package/dist-es/commands/GetDirectoryLimitsCommand.js +3 -9
  57. package/dist-es/commands/GetSnapshotLimitsCommand.js +3 -9
  58. package/dist-es/commands/ListADAssessmentsCommand.js +3 -9
  59. package/dist-es/commands/ListCertificatesCommand.js +3 -9
  60. package/dist-es/commands/ListIpRoutesCommand.js +3 -9
  61. package/dist-es/commands/ListLogSubscriptionsCommand.js +3 -9
  62. package/dist-es/commands/ListSchemaExtensionsCommand.js +3 -9
  63. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  64. package/dist-es/commands/RegisterCertificateCommand.js +3 -9
  65. package/dist-es/commands/RegisterEventTopicCommand.js +3 -9
  66. package/dist-es/commands/RejectSharedDirectoryCommand.js +3 -9
  67. package/dist-es/commands/RemoveIpRoutesCommand.js +3 -9
  68. package/dist-es/commands/RemoveRegionCommand.js +3 -9
  69. package/dist-es/commands/RemoveTagsFromResourceCommand.js +3 -9
  70. package/dist-es/commands/ResetUserPasswordCommand.js +3 -10
  71. package/dist-es/commands/RestoreFromSnapshotCommand.js +3 -9
  72. package/dist-es/commands/ShareDirectoryCommand.js +3 -10
  73. package/dist-es/commands/StartADAssessmentCommand.js +3 -9
  74. package/dist-es/commands/StartSchemaExtensionCommand.js +3 -9
  75. package/dist-es/commands/UnshareDirectoryCommand.js +3 -9
  76. package/dist-es/commands/UpdateConditionalForwarderCommand.js +3 -9
  77. package/dist-es/commands/UpdateDirectorySetupCommand.js +3 -9
  78. package/dist-es/commands/UpdateHybridADCommand.js +3 -9
  79. package/dist-es/commands/UpdateNumberOfDomainControllersCommand.js +3 -9
  80. package/dist-es/commands/UpdateRadiusCommand.js +3 -10
  81. package/dist-es/commands/UpdateSettingsCommand.js +3 -9
  82. package/dist-es/commands/UpdateTrustCommand.js +3 -9
  83. package/dist-es/commands/VerifyTrustCommand.js +3 -9
  84. package/dist-es/models/models_0.js +0 -81
  85. package/dist-es/runtimeConfig.shared.js +7 -0
  86. package/dist-es/schemas/schemas_0.js +2287 -0
  87. package/dist-types/DirectoryServiceClient.d.ts +10 -1
  88. package/dist-types/models/models_0.d.ts +0 -72
  89. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  90. package/dist-types/runtimeConfig.d.ts +1 -0
  91. package/dist-types/runtimeConfig.native.d.ts +1 -0
  92. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  93. package/dist-types/schemas/schemas_0.d.ts +384 -0
  94. package/dist-types/ts3.4/DirectoryServiceClient.d.ts +4 -0
  95. package/dist-types/ts3.4/models/models_0.d.ts +0 -54
  96. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  97. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  98. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  99. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  100. package/dist-types/ts3.4/schemas/schemas_0.d.ts +390 -0
  101. package/package.json +5 -5
  102. package/dist-es/protocols/Aws_json1_1.js +0 -2597
  103. package/dist-types/protocols/Aws_json1_1.d.ts +0 -722
  104. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -965
@@ -1,2597 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { DirectoryServiceServiceException as __BaseException } from "../models/DirectoryServiceServiceException";
5
- import { AccessDeniedException, ADAssessmentLimitExceededException, AuthenticationFailedException, CertificateAlreadyExistsException, CertificateDoesNotExistException, CertificateInUseException, CertificateLimitExceededException, ClientException, DirectoryAlreadyInRegionException, DirectoryAlreadySharedException, DirectoryDoesNotExistException, DirectoryInDesiredStateException, DirectoryLimitExceededException, DirectoryNotSharedException, DirectoryUnavailableException, DisableAlreadyInProgressException, DomainControllerLimitExceededException, EnableAlreadyInProgressException, EntityAlreadyExistsException, EntityDoesNotExistException, IncompatibleSettingsException, InsufficientPermissionsException, InvalidCertificateException, InvalidClientAuthStatusException, InvalidLDAPSStatusException, InvalidNextTokenException, InvalidParameterException, InvalidPasswordException, InvalidTargetException, IpRouteLimitExceededException, NoAvailableCertificateException, OrganizationsException, RegionLimitExceededException, ServiceException, ShareLimitExceededException, SnapshotLimitExceededException, TagLimitExceededException, UnsupportedOperationException, UnsupportedSettingsException, UserDoesNotExistException, } from "../models/models_0";
6
- export const se_AcceptSharedDirectoryCommand = async (input, context) => {
7
- const headers = sharedHeaders("AcceptSharedDirectory");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_AddIpRoutesCommand = async (input, context) => {
13
- const headers = sharedHeaders("AddIpRoutes");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_AddRegionCommand = async (input, context) => {
19
- const headers = sharedHeaders("AddRegion");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_AddTagsToResourceCommand = async (input, context) => {
25
- const headers = sharedHeaders("AddTagsToResource");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CancelSchemaExtensionCommand = async (input, context) => {
31
- const headers = sharedHeaders("CancelSchemaExtension");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_ConnectDirectoryCommand = async (input, context) => {
37
- const headers = sharedHeaders("ConnectDirectory");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateAliasCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateAlias");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateComputerCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateComputer");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateConditionalForwarderCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateConditionalForwarder");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_CreateDirectoryCommand = async (input, context) => {
61
- const headers = sharedHeaders("CreateDirectory");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_CreateHybridADCommand = async (input, context) => {
67
- const headers = sharedHeaders("CreateHybridAD");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_CreateLogSubscriptionCommand = async (input, context) => {
73
- const headers = sharedHeaders("CreateLogSubscription");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_CreateMicrosoftADCommand = async (input, context) => {
79
- const headers = sharedHeaders("CreateMicrosoftAD");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_CreateSnapshotCommand = async (input, context) => {
85
- const headers = sharedHeaders("CreateSnapshot");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_CreateTrustCommand = async (input, context) => {
91
- const headers = sharedHeaders("CreateTrust");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteADAssessmentCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteADAssessment");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DeleteConditionalForwarderCommand = async (input, context) => {
103
- const headers = sharedHeaders("DeleteConditionalForwarder");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DeleteDirectoryCommand = async (input, context) => {
109
- const headers = sharedHeaders("DeleteDirectory");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_DeleteLogSubscriptionCommand = async (input, context) => {
115
- const headers = sharedHeaders("DeleteLogSubscription");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_DeleteSnapshotCommand = async (input, context) => {
121
- const headers = sharedHeaders("DeleteSnapshot");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_DeleteTrustCommand = async (input, context) => {
127
- const headers = sharedHeaders("DeleteTrust");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_DeregisterCertificateCommand = async (input, context) => {
133
- const headers = sharedHeaders("DeregisterCertificate");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_DeregisterEventTopicCommand = async (input, context) => {
139
- const headers = sharedHeaders("DeregisterEventTopic");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_DescribeADAssessmentCommand = async (input, context) => {
145
- const headers = sharedHeaders("DescribeADAssessment");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_DescribeCAEnrollmentPolicyCommand = async (input, context) => {
151
- const headers = sharedHeaders("DescribeCAEnrollmentPolicy");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_DescribeCertificateCommand = async (input, context) => {
157
- const headers = sharedHeaders("DescribeCertificate");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_DescribeClientAuthenticationSettingsCommand = async (input, context) => {
163
- const headers = sharedHeaders("DescribeClientAuthenticationSettings");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_DescribeConditionalForwardersCommand = async (input, context) => {
169
- const headers = sharedHeaders("DescribeConditionalForwarders");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_DescribeDirectoriesCommand = async (input, context) => {
175
- const headers = sharedHeaders("DescribeDirectories");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_DescribeDirectoryDataAccessCommand = async (input, context) => {
181
- const headers = sharedHeaders("DescribeDirectoryDataAccess");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_DescribeDomainControllersCommand = async (input, context) => {
187
- const headers = sharedHeaders("DescribeDomainControllers");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_DescribeEventTopicsCommand = async (input, context) => {
193
- const headers = sharedHeaders("DescribeEventTopics");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_DescribeHybridADUpdateCommand = async (input, context) => {
199
- const headers = sharedHeaders("DescribeHybridADUpdate");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_DescribeLDAPSSettingsCommand = async (input, context) => {
205
- const headers = sharedHeaders("DescribeLDAPSSettings");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_DescribeRegionsCommand = async (input, context) => {
211
- const headers = sharedHeaders("DescribeRegions");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_DescribeSettingsCommand = async (input, context) => {
217
- const headers = sharedHeaders("DescribeSettings");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_DescribeSharedDirectoriesCommand = async (input, context) => {
223
- const headers = sharedHeaders("DescribeSharedDirectories");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_DescribeSnapshotsCommand = async (input, context) => {
229
- const headers = sharedHeaders("DescribeSnapshots");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_DescribeTrustsCommand = async (input, context) => {
235
- const headers = sharedHeaders("DescribeTrusts");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_DescribeUpdateDirectoryCommand = async (input, context) => {
241
- const headers = sharedHeaders("DescribeUpdateDirectory");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_DisableCAEnrollmentPolicyCommand = async (input, context) => {
247
- const headers = sharedHeaders("DisableCAEnrollmentPolicy");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_DisableClientAuthenticationCommand = async (input, context) => {
253
- const headers = sharedHeaders("DisableClientAuthentication");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_DisableDirectoryDataAccessCommand = async (input, context) => {
259
- const headers = sharedHeaders("DisableDirectoryDataAccess");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_DisableLDAPSCommand = async (input, context) => {
265
- const headers = sharedHeaders("DisableLDAPS");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_DisableRadiusCommand = async (input, context) => {
271
- const headers = sharedHeaders("DisableRadius");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_DisableSsoCommand = async (input, context) => {
277
- const headers = sharedHeaders("DisableSso");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_EnableCAEnrollmentPolicyCommand = async (input, context) => {
283
- const headers = sharedHeaders("EnableCAEnrollmentPolicy");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_EnableClientAuthenticationCommand = async (input, context) => {
289
- const headers = sharedHeaders("EnableClientAuthentication");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_EnableDirectoryDataAccessCommand = async (input, context) => {
295
- const headers = sharedHeaders("EnableDirectoryDataAccess");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_EnableLDAPSCommand = async (input, context) => {
301
- const headers = sharedHeaders("EnableLDAPS");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_EnableRadiusCommand = async (input, context) => {
307
- const headers = sharedHeaders("EnableRadius");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_EnableSsoCommand = async (input, context) => {
313
- const headers = sharedHeaders("EnableSso");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_GetDirectoryLimitsCommand = async (input, context) => {
319
- const headers = sharedHeaders("GetDirectoryLimits");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_GetSnapshotLimitsCommand = async (input, context) => {
325
- const headers = sharedHeaders("GetSnapshotLimits");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_ListADAssessmentsCommand = async (input, context) => {
331
- const headers = sharedHeaders("ListADAssessments");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_ListCertificatesCommand = async (input, context) => {
337
- const headers = sharedHeaders("ListCertificates");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_ListIpRoutesCommand = async (input, context) => {
343
- const headers = sharedHeaders("ListIpRoutes");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_ListLogSubscriptionsCommand = async (input, context) => {
349
- const headers = sharedHeaders("ListLogSubscriptions");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_ListSchemaExtensionsCommand = async (input, context) => {
355
- const headers = sharedHeaders("ListSchemaExtensions");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_ListTagsForResourceCommand = async (input, context) => {
361
- const headers = sharedHeaders("ListTagsForResource");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const se_RegisterCertificateCommand = async (input, context) => {
367
- const headers = sharedHeaders("RegisterCertificate");
368
- let body;
369
- body = JSON.stringify(_json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- export const se_RegisterEventTopicCommand = async (input, context) => {
373
- const headers = sharedHeaders("RegisterEventTopic");
374
- let body;
375
- body = JSON.stringify(_json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- export const se_RejectSharedDirectoryCommand = async (input, context) => {
379
- const headers = sharedHeaders("RejectSharedDirectory");
380
- let body;
381
- body = JSON.stringify(_json(input));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- export const se_RemoveIpRoutesCommand = async (input, context) => {
385
- const headers = sharedHeaders("RemoveIpRoutes");
386
- let body;
387
- body = JSON.stringify(_json(input));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- export const se_RemoveRegionCommand = async (input, context) => {
391
- const headers = sharedHeaders("RemoveRegion");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- export const se_RemoveTagsFromResourceCommand = async (input, context) => {
397
- const headers = sharedHeaders("RemoveTagsFromResource");
398
- let body;
399
- body = JSON.stringify(_json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- export const se_ResetUserPasswordCommand = async (input, context) => {
403
- const headers = sharedHeaders("ResetUserPassword");
404
- let body;
405
- body = JSON.stringify(_json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- export const se_RestoreFromSnapshotCommand = async (input, context) => {
409
- const headers = sharedHeaders("RestoreFromSnapshot");
410
- let body;
411
- body = JSON.stringify(_json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- export const se_ShareDirectoryCommand = async (input, context) => {
415
- const headers = sharedHeaders("ShareDirectory");
416
- let body;
417
- body = JSON.stringify(_json(input));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- export const se_StartADAssessmentCommand = async (input, context) => {
421
- const headers = sharedHeaders("StartADAssessment");
422
- let body;
423
- body = JSON.stringify(_json(input));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- export const se_StartSchemaExtensionCommand = async (input, context) => {
427
- const headers = sharedHeaders("StartSchemaExtension");
428
- let body;
429
- body = JSON.stringify(_json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- export const se_UnshareDirectoryCommand = async (input, context) => {
433
- const headers = sharedHeaders("UnshareDirectory");
434
- let body;
435
- body = JSON.stringify(_json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- export const se_UpdateConditionalForwarderCommand = async (input, context) => {
439
- const headers = sharedHeaders("UpdateConditionalForwarder");
440
- let body;
441
- body = JSON.stringify(_json(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- export const se_UpdateDirectorySetupCommand = async (input, context) => {
445
- const headers = sharedHeaders("UpdateDirectorySetup");
446
- let body;
447
- body = JSON.stringify(_json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- export const se_UpdateHybridADCommand = async (input, context) => {
451
- const headers = sharedHeaders("UpdateHybridAD");
452
- let body;
453
- body = JSON.stringify(_json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
- };
456
- export const se_UpdateNumberOfDomainControllersCommand = async (input, context) => {
457
- const headers = sharedHeaders("UpdateNumberOfDomainControllers");
458
- let body;
459
- body = JSON.stringify(_json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- export const se_UpdateRadiusCommand = async (input, context) => {
463
- const headers = sharedHeaders("UpdateRadius");
464
- let body;
465
- body = JSON.stringify(_json(input));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- export const se_UpdateSettingsCommand = async (input, context) => {
469
- const headers = sharedHeaders("UpdateSettings");
470
- let body;
471
- body = JSON.stringify(_json(input));
472
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
- };
474
- export const se_UpdateTrustCommand = async (input, context) => {
475
- const headers = sharedHeaders("UpdateTrust");
476
- let body;
477
- body = JSON.stringify(_json(input));
478
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
- };
480
- export const se_VerifyTrustCommand = async (input, context) => {
481
- const headers = sharedHeaders("VerifyTrust");
482
- let body;
483
- body = JSON.stringify(_json(input));
484
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
- };
486
- export const de_AcceptSharedDirectoryCommand = async (output, context) => {
487
- if (output.statusCode >= 300) {
488
- return de_CommandError(output, context);
489
- }
490
- const data = await parseBody(output.body, context);
491
- let contents = {};
492
- contents = de_AcceptSharedDirectoryResult(data, context);
493
- const response = {
494
- $metadata: deserializeMetadata(output),
495
- ...contents,
496
- };
497
- return response;
498
- };
499
- export const de_AddIpRoutesCommand = async (output, context) => {
500
- if (output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const data = await parseBody(output.body, context);
504
- let contents = {};
505
- contents = _json(data);
506
- const response = {
507
- $metadata: deserializeMetadata(output),
508
- ...contents,
509
- };
510
- return response;
511
- };
512
- export const de_AddRegionCommand = async (output, context) => {
513
- if (output.statusCode >= 300) {
514
- return de_CommandError(output, context);
515
- }
516
- const data = await parseBody(output.body, context);
517
- let contents = {};
518
- contents = _json(data);
519
- const response = {
520
- $metadata: deserializeMetadata(output),
521
- ...contents,
522
- };
523
- return response;
524
- };
525
- export const de_AddTagsToResourceCommand = async (output, context) => {
526
- if (output.statusCode >= 300) {
527
- return de_CommandError(output, context);
528
- }
529
- const data = await parseBody(output.body, context);
530
- let contents = {};
531
- contents = _json(data);
532
- const response = {
533
- $metadata: deserializeMetadata(output),
534
- ...contents,
535
- };
536
- return response;
537
- };
538
- export const de_CancelSchemaExtensionCommand = async (output, context) => {
539
- if (output.statusCode >= 300) {
540
- return de_CommandError(output, context);
541
- }
542
- const data = await parseBody(output.body, context);
543
- let contents = {};
544
- contents = _json(data);
545
- const response = {
546
- $metadata: deserializeMetadata(output),
547
- ...contents,
548
- };
549
- return response;
550
- };
551
- export const de_ConnectDirectoryCommand = async (output, context) => {
552
- if (output.statusCode >= 300) {
553
- return de_CommandError(output, context);
554
- }
555
- const data = await parseBody(output.body, context);
556
- let contents = {};
557
- contents = _json(data);
558
- const response = {
559
- $metadata: deserializeMetadata(output),
560
- ...contents,
561
- };
562
- return response;
563
- };
564
- export const de_CreateAliasCommand = async (output, context) => {
565
- if (output.statusCode >= 300) {
566
- return de_CommandError(output, context);
567
- }
568
- const data = await parseBody(output.body, context);
569
- let contents = {};
570
- contents = _json(data);
571
- const response = {
572
- $metadata: deserializeMetadata(output),
573
- ...contents,
574
- };
575
- return response;
576
- };
577
- export const de_CreateComputerCommand = async (output, context) => {
578
- if (output.statusCode >= 300) {
579
- return de_CommandError(output, context);
580
- }
581
- const data = await parseBody(output.body, context);
582
- let contents = {};
583
- contents = _json(data);
584
- const response = {
585
- $metadata: deserializeMetadata(output),
586
- ...contents,
587
- };
588
- return response;
589
- };
590
- export const de_CreateConditionalForwarderCommand = async (output, context) => {
591
- if (output.statusCode >= 300) {
592
- return de_CommandError(output, context);
593
- }
594
- const data = await parseBody(output.body, context);
595
- let contents = {};
596
- contents = _json(data);
597
- const response = {
598
- $metadata: deserializeMetadata(output),
599
- ...contents,
600
- };
601
- return response;
602
- };
603
- export const de_CreateDirectoryCommand = async (output, context) => {
604
- if (output.statusCode >= 300) {
605
- return de_CommandError(output, context);
606
- }
607
- const data = await parseBody(output.body, context);
608
- let contents = {};
609
- contents = _json(data);
610
- const response = {
611
- $metadata: deserializeMetadata(output),
612
- ...contents,
613
- };
614
- return response;
615
- };
616
- export const de_CreateHybridADCommand = async (output, context) => {
617
- if (output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const data = await parseBody(output.body, context);
621
- let contents = {};
622
- contents = _json(data);
623
- const response = {
624
- $metadata: deserializeMetadata(output),
625
- ...contents,
626
- };
627
- return response;
628
- };
629
- export const de_CreateLogSubscriptionCommand = async (output, context) => {
630
- if (output.statusCode >= 300) {
631
- return de_CommandError(output, context);
632
- }
633
- const data = await parseBody(output.body, context);
634
- let contents = {};
635
- contents = _json(data);
636
- const response = {
637
- $metadata: deserializeMetadata(output),
638
- ...contents,
639
- };
640
- return response;
641
- };
642
- export const de_CreateMicrosoftADCommand = async (output, context) => {
643
- if (output.statusCode >= 300) {
644
- return de_CommandError(output, context);
645
- }
646
- const data = await parseBody(output.body, context);
647
- let contents = {};
648
- contents = _json(data);
649
- const response = {
650
- $metadata: deserializeMetadata(output),
651
- ...contents,
652
- };
653
- return response;
654
- };
655
- export const de_CreateSnapshotCommand = async (output, context) => {
656
- if (output.statusCode >= 300) {
657
- return de_CommandError(output, context);
658
- }
659
- const data = await parseBody(output.body, context);
660
- let contents = {};
661
- contents = _json(data);
662
- const response = {
663
- $metadata: deserializeMetadata(output),
664
- ...contents,
665
- };
666
- return response;
667
- };
668
- export const de_CreateTrustCommand = async (output, context) => {
669
- if (output.statusCode >= 300) {
670
- return de_CommandError(output, context);
671
- }
672
- const data = await parseBody(output.body, context);
673
- let contents = {};
674
- contents = _json(data);
675
- const response = {
676
- $metadata: deserializeMetadata(output),
677
- ...contents,
678
- };
679
- return response;
680
- };
681
- export const de_DeleteADAssessmentCommand = async (output, context) => {
682
- if (output.statusCode >= 300) {
683
- return de_CommandError(output, context);
684
- }
685
- const data = await parseBody(output.body, context);
686
- let contents = {};
687
- contents = _json(data);
688
- const response = {
689
- $metadata: deserializeMetadata(output),
690
- ...contents,
691
- };
692
- return response;
693
- };
694
- export const de_DeleteConditionalForwarderCommand = async (output, context) => {
695
- if (output.statusCode >= 300) {
696
- return de_CommandError(output, context);
697
- }
698
- const data = await parseBody(output.body, context);
699
- let contents = {};
700
- contents = _json(data);
701
- const response = {
702
- $metadata: deserializeMetadata(output),
703
- ...contents,
704
- };
705
- return response;
706
- };
707
- export const de_DeleteDirectoryCommand = async (output, context) => {
708
- if (output.statusCode >= 300) {
709
- return de_CommandError(output, context);
710
- }
711
- const data = await parseBody(output.body, context);
712
- let contents = {};
713
- contents = _json(data);
714
- const response = {
715
- $metadata: deserializeMetadata(output),
716
- ...contents,
717
- };
718
- return response;
719
- };
720
- export const de_DeleteLogSubscriptionCommand = async (output, context) => {
721
- if (output.statusCode >= 300) {
722
- return de_CommandError(output, context);
723
- }
724
- const data = await parseBody(output.body, context);
725
- let contents = {};
726
- contents = _json(data);
727
- const response = {
728
- $metadata: deserializeMetadata(output),
729
- ...contents,
730
- };
731
- return response;
732
- };
733
- export const de_DeleteSnapshotCommand = async (output, context) => {
734
- if (output.statusCode >= 300) {
735
- return de_CommandError(output, context);
736
- }
737
- const data = await parseBody(output.body, context);
738
- let contents = {};
739
- contents = _json(data);
740
- const response = {
741
- $metadata: deserializeMetadata(output),
742
- ...contents,
743
- };
744
- return response;
745
- };
746
- export const de_DeleteTrustCommand = async (output, context) => {
747
- if (output.statusCode >= 300) {
748
- return de_CommandError(output, context);
749
- }
750
- const data = await parseBody(output.body, context);
751
- let contents = {};
752
- contents = _json(data);
753
- const response = {
754
- $metadata: deserializeMetadata(output),
755
- ...contents,
756
- };
757
- return response;
758
- };
759
- export const de_DeregisterCertificateCommand = async (output, context) => {
760
- if (output.statusCode >= 300) {
761
- return de_CommandError(output, context);
762
- }
763
- const data = await parseBody(output.body, context);
764
- let contents = {};
765
- contents = _json(data);
766
- const response = {
767
- $metadata: deserializeMetadata(output),
768
- ...contents,
769
- };
770
- return response;
771
- };
772
- export const de_DeregisterEventTopicCommand = async (output, context) => {
773
- if (output.statusCode >= 300) {
774
- return de_CommandError(output, context);
775
- }
776
- const data = await parseBody(output.body, context);
777
- let contents = {};
778
- contents = _json(data);
779
- const response = {
780
- $metadata: deserializeMetadata(output),
781
- ...contents,
782
- };
783
- return response;
784
- };
785
- export const de_DescribeADAssessmentCommand = async (output, context) => {
786
- if (output.statusCode >= 300) {
787
- return de_CommandError(output, context);
788
- }
789
- const data = await parseBody(output.body, context);
790
- let contents = {};
791
- contents = de_DescribeADAssessmentResult(data, context);
792
- const response = {
793
- $metadata: deserializeMetadata(output),
794
- ...contents,
795
- };
796
- return response;
797
- };
798
- export const de_DescribeCAEnrollmentPolicyCommand = async (output, context) => {
799
- if (output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const data = await parseBody(output.body, context);
803
- let contents = {};
804
- contents = de_DescribeCAEnrollmentPolicyResult(data, context);
805
- const response = {
806
- $metadata: deserializeMetadata(output),
807
- ...contents,
808
- };
809
- return response;
810
- };
811
- export const de_DescribeCertificateCommand = async (output, context) => {
812
- if (output.statusCode >= 300) {
813
- return de_CommandError(output, context);
814
- }
815
- const data = await parseBody(output.body, context);
816
- let contents = {};
817
- contents = de_DescribeCertificateResult(data, context);
818
- const response = {
819
- $metadata: deserializeMetadata(output),
820
- ...contents,
821
- };
822
- return response;
823
- };
824
- export const de_DescribeClientAuthenticationSettingsCommand = async (output, context) => {
825
- if (output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const data = await parseBody(output.body, context);
829
- let contents = {};
830
- contents = de_DescribeClientAuthenticationSettingsResult(data, context);
831
- const response = {
832
- $metadata: deserializeMetadata(output),
833
- ...contents,
834
- };
835
- return response;
836
- };
837
- export const de_DescribeConditionalForwardersCommand = async (output, context) => {
838
- if (output.statusCode >= 300) {
839
- return de_CommandError(output, context);
840
- }
841
- const data = await parseBody(output.body, context);
842
- let contents = {};
843
- contents = _json(data);
844
- const response = {
845
- $metadata: deserializeMetadata(output),
846
- ...contents,
847
- };
848
- return response;
849
- };
850
- export const de_DescribeDirectoriesCommand = async (output, context) => {
851
- if (output.statusCode >= 300) {
852
- return de_CommandError(output, context);
853
- }
854
- const data = await parseBody(output.body, context);
855
- let contents = {};
856
- contents = de_DescribeDirectoriesResult(data, context);
857
- const response = {
858
- $metadata: deserializeMetadata(output),
859
- ...contents,
860
- };
861
- return response;
862
- };
863
- export const de_DescribeDirectoryDataAccessCommand = async (output, context) => {
864
- if (output.statusCode >= 300) {
865
- return de_CommandError(output, context);
866
- }
867
- const data = await parseBody(output.body, context);
868
- let contents = {};
869
- contents = _json(data);
870
- const response = {
871
- $metadata: deserializeMetadata(output),
872
- ...contents,
873
- };
874
- return response;
875
- };
876
- export const de_DescribeDomainControllersCommand = async (output, context) => {
877
- if (output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const data = await parseBody(output.body, context);
881
- let contents = {};
882
- contents = de_DescribeDomainControllersResult(data, context);
883
- const response = {
884
- $metadata: deserializeMetadata(output),
885
- ...contents,
886
- };
887
- return response;
888
- };
889
- export const de_DescribeEventTopicsCommand = async (output, context) => {
890
- if (output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const data = await parseBody(output.body, context);
894
- let contents = {};
895
- contents = de_DescribeEventTopicsResult(data, context);
896
- const response = {
897
- $metadata: deserializeMetadata(output),
898
- ...contents,
899
- };
900
- return response;
901
- };
902
- export const de_DescribeHybridADUpdateCommand = async (output, context) => {
903
- if (output.statusCode >= 300) {
904
- return de_CommandError(output, context);
905
- }
906
- const data = await parseBody(output.body, context);
907
- let contents = {};
908
- contents = de_DescribeHybridADUpdateResult(data, context);
909
- const response = {
910
- $metadata: deserializeMetadata(output),
911
- ...contents,
912
- };
913
- return response;
914
- };
915
- export const de_DescribeLDAPSSettingsCommand = async (output, context) => {
916
- if (output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const data = await parseBody(output.body, context);
920
- let contents = {};
921
- contents = de_DescribeLDAPSSettingsResult(data, context);
922
- const response = {
923
- $metadata: deserializeMetadata(output),
924
- ...contents,
925
- };
926
- return response;
927
- };
928
- export const de_DescribeRegionsCommand = async (output, context) => {
929
- if (output.statusCode >= 300) {
930
- return de_CommandError(output, context);
931
- }
932
- const data = await parseBody(output.body, context);
933
- let contents = {};
934
- contents = de_DescribeRegionsResult(data, context);
935
- const response = {
936
- $metadata: deserializeMetadata(output),
937
- ...contents,
938
- };
939
- return response;
940
- };
941
- export const de_DescribeSettingsCommand = async (output, context) => {
942
- if (output.statusCode >= 300) {
943
- return de_CommandError(output, context);
944
- }
945
- const data = await parseBody(output.body, context);
946
- let contents = {};
947
- contents = de_DescribeSettingsResult(data, context);
948
- const response = {
949
- $metadata: deserializeMetadata(output),
950
- ...contents,
951
- };
952
- return response;
953
- };
954
- export const de_DescribeSharedDirectoriesCommand = async (output, context) => {
955
- if (output.statusCode >= 300) {
956
- return de_CommandError(output, context);
957
- }
958
- const data = await parseBody(output.body, context);
959
- let contents = {};
960
- contents = de_DescribeSharedDirectoriesResult(data, context);
961
- const response = {
962
- $metadata: deserializeMetadata(output),
963
- ...contents,
964
- };
965
- return response;
966
- };
967
- export const de_DescribeSnapshotsCommand = async (output, context) => {
968
- if (output.statusCode >= 300) {
969
- return de_CommandError(output, context);
970
- }
971
- const data = await parseBody(output.body, context);
972
- let contents = {};
973
- contents = de_DescribeSnapshotsResult(data, context);
974
- const response = {
975
- $metadata: deserializeMetadata(output),
976
- ...contents,
977
- };
978
- return response;
979
- };
980
- export const de_DescribeTrustsCommand = async (output, context) => {
981
- if (output.statusCode >= 300) {
982
- return de_CommandError(output, context);
983
- }
984
- const data = await parseBody(output.body, context);
985
- let contents = {};
986
- contents = de_DescribeTrustsResult(data, context);
987
- const response = {
988
- $metadata: deserializeMetadata(output),
989
- ...contents,
990
- };
991
- return response;
992
- };
993
- export const de_DescribeUpdateDirectoryCommand = async (output, context) => {
994
- if (output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const data = await parseBody(output.body, context);
998
- let contents = {};
999
- contents = de_DescribeUpdateDirectoryResult(data, context);
1000
- const response = {
1001
- $metadata: deserializeMetadata(output),
1002
- ...contents,
1003
- };
1004
- return response;
1005
- };
1006
- export const de_DisableCAEnrollmentPolicyCommand = async (output, context) => {
1007
- if (output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const data = await parseBody(output.body, context);
1011
- let contents = {};
1012
- contents = _json(data);
1013
- const response = {
1014
- $metadata: deserializeMetadata(output),
1015
- ...contents,
1016
- };
1017
- return response;
1018
- };
1019
- export const de_DisableClientAuthenticationCommand = async (output, context) => {
1020
- if (output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const data = await parseBody(output.body, context);
1024
- let contents = {};
1025
- contents = _json(data);
1026
- const response = {
1027
- $metadata: deserializeMetadata(output),
1028
- ...contents,
1029
- };
1030
- return response;
1031
- };
1032
- export const de_DisableDirectoryDataAccessCommand = async (output, context) => {
1033
- if (output.statusCode >= 300) {
1034
- return de_CommandError(output, context);
1035
- }
1036
- const data = await parseBody(output.body, context);
1037
- let contents = {};
1038
- contents = _json(data);
1039
- const response = {
1040
- $metadata: deserializeMetadata(output),
1041
- ...contents,
1042
- };
1043
- return response;
1044
- };
1045
- export const de_DisableLDAPSCommand = async (output, context) => {
1046
- if (output.statusCode >= 300) {
1047
- return de_CommandError(output, context);
1048
- }
1049
- const data = await parseBody(output.body, context);
1050
- let contents = {};
1051
- contents = _json(data);
1052
- const response = {
1053
- $metadata: deserializeMetadata(output),
1054
- ...contents,
1055
- };
1056
- return response;
1057
- };
1058
- export const de_DisableRadiusCommand = async (output, context) => {
1059
- if (output.statusCode >= 300) {
1060
- return de_CommandError(output, context);
1061
- }
1062
- const data = await parseBody(output.body, context);
1063
- let contents = {};
1064
- contents = _json(data);
1065
- const response = {
1066
- $metadata: deserializeMetadata(output),
1067
- ...contents,
1068
- };
1069
- return response;
1070
- };
1071
- export const de_DisableSsoCommand = async (output, context) => {
1072
- if (output.statusCode >= 300) {
1073
- return de_CommandError(output, context);
1074
- }
1075
- const data = await parseBody(output.body, context);
1076
- let contents = {};
1077
- contents = _json(data);
1078
- const response = {
1079
- $metadata: deserializeMetadata(output),
1080
- ...contents,
1081
- };
1082
- return response;
1083
- };
1084
- export const de_EnableCAEnrollmentPolicyCommand = async (output, context) => {
1085
- if (output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const data = await parseBody(output.body, context);
1089
- let contents = {};
1090
- contents = _json(data);
1091
- const response = {
1092
- $metadata: deserializeMetadata(output),
1093
- ...contents,
1094
- };
1095
- return response;
1096
- };
1097
- export const de_EnableClientAuthenticationCommand = async (output, context) => {
1098
- if (output.statusCode >= 300) {
1099
- return de_CommandError(output, context);
1100
- }
1101
- const data = await parseBody(output.body, context);
1102
- let contents = {};
1103
- contents = _json(data);
1104
- const response = {
1105
- $metadata: deserializeMetadata(output),
1106
- ...contents,
1107
- };
1108
- return response;
1109
- };
1110
- export const de_EnableDirectoryDataAccessCommand = async (output, context) => {
1111
- if (output.statusCode >= 300) {
1112
- return de_CommandError(output, context);
1113
- }
1114
- const data = await parseBody(output.body, context);
1115
- let contents = {};
1116
- contents = _json(data);
1117
- const response = {
1118
- $metadata: deserializeMetadata(output),
1119
- ...contents,
1120
- };
1121
- return response;
1122
- };
1123
- export const de_EnableLDAPSCommand = async (output, context) => {
1124
- if (output.statusCode >= 300) {
1125
- return de_CommandError(output, context);
1126
- }
1127
- const data = await parseBody(output.body, context);
1128
- let contents = {};
1129
- contents = _json(data);
1130
- const response = {
1131
- $metadata: deserializeMetadata(output),
1132
- ...contents,
1133
- };
1134
- return response;
1135
- };
1136
- export const de_EnableRadiusCommand = async (output, context) => {
1137
- if (output.statusCode >= 300) {
1138
- return de_CommandError(output, context);
1139
- }
1140
- const data = await parseBody(output.body, context);
1141
- let contents = {};
1142
- contents = _json(data);
1143
- const response = {
1144
- $metadata: deserializeMetadata(output),
1145
- ...contents,
1146
- };
1147
- return response;
1148
- };
1149
- export const de_EnableSsoCommand = async (output, context) => {
1150
- if (output.statusCode >= 300) {
1151
- return de_CommandError(output, context);
1152
- }
1153
- const data = await parseBody(output.body, context);
1154
- let contents = {};
1155
- contents = _json(data);
1156
- const response = {
1157
- $metadata: deserializeMetadata(output),
1158
- ...contents,
1159
- };
1160
- return response;
1161
- };
1162
- export const de_GetDirectoryLimitsCommand = async (output, context) => {
1163
- if (output.statusCode >= 300) {
1164
- return de_CommandError(output, context);
1165
- }
1166
- const data = await parseBody(output.body, context);
1167
- let contents = {};
1168
- contents = _json(data);
1169
- const response = {
1170
- $metadata: deserializeMetadata(output),
1171
- ...contents,
1172
- };
1173
- return response;
1174
- };
1175
- export const de_GetSnapshotLimitsCommand = async (output, context) => {
1176
- if (output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const data = await parseBody(output.body, context);
1180
- let contents = {};
1181
- contents = _json(data);
1182
- const response = {
1183
- $metadata: deserializeMetadata(output),
1184
- ...contents,
1185
- };
1186
- return response;
1187
- };
1188
- export const de_ListADAssessmentsCommand = async (output, context) => {
1189
- if (output.statusCode >= 300) {
1190
- return de_CommandError(output, context);
1191
- }
1192
- const data = await parseBody(output.body, context);
1193
- let contents = {};
1194
- contents = de_ListADAssessmentsResult(data, context);
1195
- const response = {
1196
- $metadata: deserializeMetadata(output),
1197
- ...contents,
1198
- };
1199
- return response;
1200
- };
1201
- export const de_ListCertificatesCommand = async (output, context) => {
1202
- if (output.statusCode >= 300) {
1203
- return de_CommandError(output, context);
1204
- }
1205
- const data = await parseBody(output.body, context);
1206
- let contents = {};
1207
- contents = de_ListCertificatesResult(data, context);
1208
- const response = {
1209
- $metadata: deserializeMetadata(output),
1210
- ...contents,
1211
- };
1212
- return response;
1213
- };
1214
- export const de_ListIpRoutesCommand = async (output, context) => {
1215
- if (output.statusCode >= 300) {
1216
- return de_CommandError(output, context);
1217
- }
1218
- const data = await parseBody(output.body, context);
1219
- let contents = {};
1220
- contents = de_ListIpRoutesResult(data, context);
1221
- const response = {
1222
- $metadata: deserializeMetadata(output),
1223
- ...contents,
1224
- };
1225
- return response;
1226
- };
1227
- export const de_ListLogSubscriptionsCommand = async (output, context) => {
1228
- if (output.statusCode >= 300) {
1229
- return de_CommandError(output, context);
1230
- }
1231
- const data = await parseBody(output.body, context);
1232
- let contents = {};
1233
- contents = de_ListLogSubscriptionsResult(data, context);
1234
- const response = {
1235
- $metadata: deserializeMetadata(output),
1236
- ...contents,
1237
- };
1238
- return response;
1239
- };
1240
- export const de_ListSchemaExtensionsCommand = async (output, context) => {
1241
- if (output.statusCode >= 300) {
1242
- return de_CommandError(output, context);
1243
- }
1244
- const data = await parseBody(output.body, context);
1245
- let contents = {};
1246
- contents = de_ListSchemaExtensionsResult(data, context);
1247
- const response = {
1248
- $metadata: deserializeMetadata(output),
1249
- ...contents,
1250
- };
1251
- return response;
1252
- };
1253
- export const de_ListTagsForResourceCommand = async (output, context) => {
1254
- if (output.statusCode >= 300) {
1255
- return de_CommandError(output, context);
1256
- }
1257
- const data = await parseBody(output.body, context);
1258
- let contents = {};
1259
- contents = _json(data);
1260
- const response = {
1261
- $metadata: deserializeMetadata(output),
1262
- ...contents,
1263
- };
1264
- return response;
1265
- };
1266
- export const de_RegisterCertificateCommand = async (output, context) => {
1267
- if (output.statusCode >= 300) {
1268
- return de_CommandError(output, context);
1269
- }
1270
- const data = await parseBody(output.body, context);
1271
- let contents = {};
1272
- contents = _json(data);
1273
- const response = {
1274
- $metadata: deserializeMetadata(output),
1275
- ...contents,
1276
- };
1277
- return response;
1278
- };
1279
- export const de_RegisterEventTopicCommand = async (output, context) => {
1280
- if (output.statusCode >= 300) {
1281
- return de_CommandError(output, context);
1282
- }
1283
- const data = await parseBody(output.body, context);
1284
- let contents = {};
1285
- contents = _json(data);
1286
- const response = {
1287
- $metadata: deserializeMetadata(output),
1288
- ...contents,
1289
- };
1290
- return response;
1291
- };
1292
- export const de_RejectSharedDirectoryCommand = async (output, context) => {
1293
- if (output.statusCode >= 300) {
1294
- return de_CommandError(output, context);
1295
- }
1296
- const data = await parseBody(output.body, context);
1297
- let contents = {};
1298
- contents = _json(data);
1299
- const response = {
1300
- $metadata: deserializeMetadata(output),
1301
- ...contents,
1302
- };
1303
- return response;
1304
- };
1305
- export const de_RemoveIpRoutesCommand = async (output, context) => {
1306
- if (output.statusCode >= 300) {
1307
- return de_CommandError(output, context);
1308
- }
1309
- const data = await parseBody(output.body, context);
1310
- let contents = {};
1311
- contents = _json(data);
1312
- const response = {
1313
- $metadata: deserializeMetadata(output),
1314
- ...contents,
1315
- };
1316
- return response;
1317
- };
1318
- export const de_RemoveRegionCommand = async (output, context) => {
1319
- if (output.statusCode >= 300) {
1320
- return de_CommandError(output, context);
1321
- }
1322
- const data = await parseBody(output.body, context);
1323
- let contents = {};
1324
- contents = _json(data);
1325
- const response = {
1326
- $metadata: deserializeMetadata(output),
1327
- ...contents,
1328
- };
1329
- return response;
1330
- };
1331
- export const de_RemoveTagsFromResourceCommand = async (output, context) => {
1332
- if (output.statusCode >= 300) {
1333
- return de_CommandError(output, context);
1334
- }
1335
- const data = await parseBody(output.body, context);
1336
- let contents = {};
1337
- contents = _json(data);
1338
- const response = {
1339
- $metadata: deserializeMetadata(output),
1340
- ...contents,
1341
- };
1342
- return response;
1343
- };
1344
- export const de_ResetUserPasswordCommand = async (output, context) => {
1345
- if (output.statusCode >= 300) {
1346
- return de_CommandError(output, context);
1347
- }
1348
- const data = await parseBody(output.body, context);
1349
- let contents = {};
1350
- contents = _json(data);
1351
- const response = {
1352
- $metadata: deserializeMetadata(output),
1353
- ...contents,
1354
- };
1355
- return response;
1356
- };
1357
- export const de_RestoreFromSnapshotCommand = async (output, context) => {
1358
- if (output.statusCode >= 300) {
1359
- return de_CommandError(output, context);
1360
- }
1361
- const data = await parseBody(output.body, context);
1362
- let contents = {};
1363
- contents = _json(data);
1364
- const response = {
1365
- $metadata: deserializeMetadata(output),
1366
- ...contents,
1367
- };
1368
- return response;
1369
- };
1370
- export const de_ShareDirectoryCommand = async (output, context) => {
1371
- if (output.statusCode >= 300) {
1372
- return de_CommandError(output, context);
1373
- }
1374
- const data = await parseBody(output.body, context);
1375
- let contents = {};
1376
- contents = _json(data);
1377
- const response = {
1378
- $metadata: deserializeMetadata(output),
1379
- ...contents,
1380
- };
1381
- return response;
1382
- };
1383
- export const de_StartADAssessmentCommand = async (output, context) => {
1384
- if (output.statusCode >= 300) {
1385
- return de_CommandError(output, context);
1386
- }
1387
- const data = await parseBody(output.body, context);
1388
- let contents = {};
1389
- contents = _json(data);
1390
- const response = {
1391
- $metadata: deserializeMetadata(output),
1392
- ...contents,
1393
- };
1394
- return response;
1395
- };
1396
- export const de_StartSchemaExtensionCommand = async (output, context) => {
1397
- if (output.statusCode >= 300) {
1398
- return de_CommandError(output, context);
1399
- }
1400
- const data = await parseBody(output.body, context);
1401
- let contents = {};
1402
- contents = _json(data);
1403
- const response = {
1404
- $metadata: deserializeMetadata(output),
1405
- ...contents,
1406
- };
1407
- return response;
1408
- };
1409
- export const de_UnshareDirectoryCommand = async (output, context) => {
1410
- if (output.statusCode >= 300) {
1411
- return de_CommandError(output, context);
1412
- }
1413
- const data = await parseBody(output.body, context);
1414
- let contents = {};
1415
- contents = _json(data);
1416
- const response = {
1417
- $metadata: deserializeMetadata(output),
1418
- ...contents,
1419
- };
1420
- return response;
1421
- };
1422
- export const de_UpdateConditionalForwarderCommand = async (output, context) => {
1423
- if (output.statusCode >= 300) {
1424
- return de_CommandError(output, context);
1425
- }
1426
- const data = await parseBody(output.body, context);
1427
- let contents = {};
1428
- contents = _json(data);
1429
- const response = {
1430
- $metadata: deserializeMetadata(output),
1431
- ...contents,
1432
- };
1433
- return response;
1434
- };
1435
- export const de_UpdateDirectorySetupCommand = async (output, context) => {
1436
- if (output.statusCode >= 300) {
1437
- return de_CommandError(output, context);
1438
- }
1439
- const data = await parseBody(output.body, context);
1440
- let contents = {};
1441
- contents = _json(data);
1442
- const response = {
1443
- $metadata: deserializeMetadata(output),
1444
- ...contents,
1445
- };
1446
- return response;
1447
- };
1448
- export const de_UpdateHybridADCommand = async (output, context) => {
1449
- if (output.statusCode >= 300) {
1450
- return de_CommandError(output, context);
1451
- }
1452
- const data = await parseBody(output.body, context);
1453
- let contents = {};
1454
- contents = _json(data);
1455
- const response = {
1456
- $metadata: deserializeMetadata(output),
1457
- ...contents,
1458
- };
1459
- return response;
1460
- };
1461
- export const de_UpdateNumberOfDomainControllersCommand = async (output, context) => {
1462
- if (output.statusCode >= 300) {
1463
- return de_CommandError(output, context);
1464
- }
1465
- const data = await parseBody(output.body, context);
1466
- let contents = {};
1467
- contents = _json(data);
1468
- const response = {
1469
- $metadata: deserializeMetadata(output),
1470
- ...contents,
1471
- };
1472
- return response;
1473
- };
1474
- export const de_UpdateRadiusCommand = async (output, context) => {
1475
- if (output.statusCode >= 300) {
1476
- return de_CommandError(output, context);
1477
- }
1478
- const data = await parseBody(output.body, context);
1479
- let contents = {};
1480
- contents = _json(data);
1481
- const response = {
1482
- $metadata: deserializeMetadata(output),
1483
- ...contents,
1484
- };
1485
- return response;
1486
- };
1487
- export const de_UpdateSettingsCommand = async (output, context) => {
1488
- if (output.statusCode >= 300) {
1489
- return de_CommandError(output, context);
1490
- }
1491
- const data = await parseBody(output.body, context);
1492
- let contents = {};
1493
- contents = _json(data);
1494
- const response = {
1495
- $metadata: deserializeMetadata(output),
1496
- ...contents,
1497
- };
1498
- return response;
1499
- };
1500
- export const de_UpdateTrustCommand = async (output, context) => {
1501
- if (output.statusCode >= 300) {
1502
- return de_CommandError(output, context);
1503
- }
1504
- const data = await parseBody(output.body, context);
1505
- let contents = {};
1506
- contents = _json(data);
1507
- const response = {
1508
- $metadata: deserializeMetadata(output),
1509
- ...contents,
1510
- };
1511
- return response;
1512
- };
1513
- export const de_VerifyTrustCommand = async (output, context) => {
1514
- if (output.statusCode >= 300) {
1515
- return de_CommandError(output, context);
1516
- }
1517
- const data = await parseBody(output.body, context);
1518
- let contents = {};
1519
- contents = _json(data);
1520
- const response = {
1521
- $metadata: deserializeMetadata(output),
1522
- ...contents,
1523
- };
1524
- return response;
1525
- };
1526
- const de_CommandError = async (output, context) => {
1527
- const parsedOutput = {
1528
- ...output,
1529
- body: await parseErrorBody(output.body, context),
1530
- };
1531
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1532
- switch (errorCode) {
1533
- case "ClientException":
1534
- case "com.amazonaws.directoryservice#ClientException":
1535
- throw await de_ClientExceptionRes(parsedOutput, context);
1536
- case "DirectoryAlreadySharedException":
1537
- case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
1538
- throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
1539
- case "EntityDoesNotExistException":
1540
- case "com.amazonaws.directoryservice#EntityDoesNotExistException":
1541
- throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
1542
- case "InvalidParameterException":
1543
- case "com.amazonaws.directoryservice#InvalidParameterException":
1544
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1545
- case "ServiceException":
1546
- case "com.amazonaws.directoryservice#ServiceException":
1547
- throw await de_ServiceExceptionRes(parsedOutput, context);
1548
- case "DirectoryUnavailableException":
1549
- case "com.amazonaws.directoryservice#DirectoryUnavailableException":
1550
- throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
1551
- case "EntityAlreadyExistsException":
1552
- case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
1553
- throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
1554
- case "IpRouteLimitExceededException":
1555
- case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
1556
- throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
1557
- case "AccessDeniedException":
1558
- case "com.amazonaws.directoryservice#AccessDeniedException":
1559
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1560
- case "DirectoryAlreadyInRegionException":
1561
- case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
1562
- throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
1563
- case "DirectoryDoesNotExistException":
1564
- case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
1565
- throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
1566
- case "RegionLimitExceededException":
1567
- case "com.amazonaws.directoryservice#RegionLimitExceededException":
1568
- throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
1569
- case "UnsupportedOperationException":
1570
- case "com.amazonaws.directoryservice#UnsupportedOperationException":
1571
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1572
- case "TagLimitExceededException":
1573
- case "com.amazonaws.directoryservice#TagLimitExceededException":
1574
- throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1575
- case "DirectoryLimitExceededException":
1576
- case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
1577
- throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
1578
- case "AuthenticationFailedException":
1579
- case "com.amazonaws.directoryservice#AuthenticationFailedException":
1580
- throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
1581
- case "ADAssessmentLimitExceededException":
1582
- case "com.amazonaws.directoryservice#ADAssessmentLimitExceededException":
1583
- throw await de_ADAssessmentLimitExceededExceptionRes(parsedOutput, context);
1584
- case "InsufficientPermissionsException":
1585
- case "com.amazonaws.directoryservice#InsufficientPermissionsException":
1586
- throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
1587
- case "SnapshotLimitExceededException":
1588
- case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
1589
- throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
1590
- case "CertificateDoesNotExistException":
1591
- case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
1592
- throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
1593
- case "CertificateInUseException":
1594
- case "com.amazonaws.directoryservice#CertificateInUseException":
1595
- throw await de_CertificateInUseExceptionRes(parsedOutput, context);
1596
- case "InvalidNextTokenException":
1597
- case "com.amazonaws.directoryservice#InvalidNextTokenException":
1598
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1599
- case "DisableAlreadyInProgressException":
1600
- case "com.amazonaws.directoryservice#DisableAlreadyInProgressException":
1601
- throw await de_DisableAlreadyInProgressExceptionRes(parsedOutput, context);
1602
- case "InvalidClientAuthStatusException":
1603
- case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
1604
- throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
1605
- case "DirectoryInDesiredStateException":
1606
- case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
1607
- throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
1608
- case "InvalidLDAPSStatusException":
1609
- case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
1610
- throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
1611
- case "EnableAlreadyInProgressException":
1612
- case "com.amazonaws.directoryservice#EnableAlreadyInProgressException":
1613
- throw await de_EnableAlreadyInProgressExceptionRes(parsedOutput, context);
1614
- case "NoAvailableCertificateException":
1615
- case "com.amazonaws.directoryservice#NoAvailableCertificateException":
1616
- throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
1617
- case "CertificateAlreadyExistsException":
1618
- case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
1619
- throw await de_CertificateAlreadyExistsExceptionRes(parsedOutput, context);
1620
- case "CertificateLimitExceededException":
1621
- case "com.amazonaws.directoryservice#CertificateLimitExceededException":
1622
- throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
1623
- case "InvalidCertificateException":
1624
- case "com.amazonaws.directoryservice#InvalidCertificateException":
1625
- throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
1626
- case "InvalidPasswordException":
1627
- case "com.amazonaws.directoryservice#InvalidPasswordException":
1628
- throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
1629
- case "UserDoesNotExistException":
1630
- case "com.amazonaws.directoryservice#UserDoesNotExistException":
1631
- throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
1632
- case "InvalidTargetException":
1633
- case "com.amazonaws.directoryservice#InvalidTargetException":
1634
- throw await de_InvalidTargetExceptionRes(parsedOutput, context);
1635
- case "OrganizationsException":
1636
- case "com.amazonaws.directoryservice#OrganizationsException":
1637
- throw await de_OrganizationsExceptionRes(parsedOutput, context);
1638
- case "ShareLimitExceededException":
1639
- case "com.amazonaws.directoryservice#ShareLimitExceededException":
1640
- throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
1641
- case "DirectoryNotSharedException":
1642
- case "com.amazonaws.directoryservice#DirectoryNotSharedException":
1643
- throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
1644
- case "DomainControllerLimitExceededException":
1645
- case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
1646
- throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
1647
- case "IncompatibleSettingsException":
1648
- case "com.amazonaws.directoryservice#IncompatibleSettingsException":
1649
- throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
1650
- case "UnsupportedSettingsException":
1651
- case "com.amazonaws.directoryservice#UnsupportedSettingsException":
1652
- throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
1653
- default:
1654
- const parsedBody = parsedOutput.body;
1655
- return throwDefaultError({
1656
- output,
1657
- parsedBody,
1658
- errorCode,
1659
- });
1660
- }
1661
- };
1662
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1663
- const body = parsedOutput.body;
1664
- const deserialized = _json(body);
1665
- const exception = new AccessDeniedException({
1666
- $metadata: deserializeMetadata(parsedOutput),
1667
- ...deserialized,
1668
- });
1669
- return __decorateServiceException(exception, body);
1670
- };
1671
- const de_ADAssessmentLimitExceededExceptionRes = async (parsedOutput, context) => {
1672
- const body = parsedOutput.body;
1673
- const deserialized = _json(body);
1674
- const exception = new ADAssessmentLimitExceededException({
1675
- $metadata: deserializeMetadata(parsedOutput),
1676
- ...deserialized,
1677
- });
1678
- return __decorateServiceException(exception, body);
1679
- };
1680
- const de_AuthenticationFailedExceptionRes = async (parsedOutput, context) => {
1681
- const body = parsedOutput.body;
1682
- const deserialized = _json(body);
1683
- const exception = new AuthenticationFailedException({
1684
- $metadata: deserializeMetadata(parsedOutput),
1685
- ...deserialized,
1686
- });
1687
- return __decorateServiceException(exception, body);
1688
- };
1689
- const de_CertificateAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1690
- const body = parsedOutput.body;
1691
- const deserialized = _json(body);
1692
- const exception = new CertificateAlreadyExistsException({
1693
- $metadata: deserializeMetadata(parsedOutput),
1694
- ...deserialized,
1695
- });
1696
- return __decorateServiceException(exception, body);
1697
- };
1698
- const de_CertificateDoesNotExistExceptionRes = async (parsedOutput, context) => {
1699
- const body = parsedOutput.body;
1700
- const deserialized = _json(body);
1701
- const exception = new CertificateDoesNotExistException({
1702
- $metadata: deserializeMetadata(parsedOutput),
1703
- ...deserialized,
1704
- });
1705
- return __decorateServiceException(exception, body);
1706
- };
1707
- const de_CertificateInUseExceptionRes = async (parsedOutput, context) => {
1708
- const body = parsedOutput.body;
1709
- const deserialized = _json(body);
1710
- const exception = new CertificateInUseException({
1711
- $metadata: deserializeMetadata(parsedOutput),
1712
- ...deserialized,
1713
- });
1714
- return __decorateServiceException(exception, body);
1715
- };
1716
- const de_CertificateLimitExceededExceptionRes = async (parsedOutput, context) => {
1717
- const body = parsedOutput.body;
1718
- const deserialized = _json(body);
1719
- const exception = new CertificateLimitExceededException({
1720
- $metadata: deserializeMetadata(parsedOutput),
1721
- ...deserialized,
1722
- });
1723
- return __decorateServiceException(exception, body);
1724
- };
1725
- const de_ClientExceptionRes = async (parsedOutput, context) => {
1726
- const body = parsedOutput.body;
1727
- const deserialized = _json(body);
1728
- const exception = new ClientException({
1729
- $metadata: deserializeMetadata(parsedOutput),
1730
- ...deserialized,
1731
- });
1732
- return __decorateServiceException(exception, body);
1733
- };
1734
- const de_DirectoryAlreadyInRegionExceptionRes = async (parsedOutput, context) => {
1735
- const body = parsedOutput.body;
1736
- const deserialized = _json(body);
1737
- const exception = new DirectoryAlreadyInRegionException({
1738
- $metadata: deserializeMetadata(parsedOutput),
1739
- ...deserialized,
1740
- });
1741
- return __decorateServiceException(exception, body);
1742
- };
1743
- const de_DirectoryAlreadySharedExceptionRes = async (parsedOutput, context) => {
1744
- const body = parsedOutput.body;
1745
- const deserialized = _json(body);
1746
- const exception = new DirectoryAlreadySharedException({
1747
- $metadata: deserializeMetadata(parsedOutput),
1748
- ...deserialized,
1749
- });
1750
- return __decorateServiceException(exception, body);
1751
- };
1752
- const de_DirectoryDoesNotExistExceptionRes = async (parsedOutput, context) => {
1753
- const body = parsedOutput.body;
1754
- const deserialized = _json(body);
1755
- const exception = new DirectoryDoesNotExistException({
1756
- $metadata: deserializeMetadata(parsedOutput),
1757
- ...deserialized,
1758
- });
1759
- return __decorateServiceException(exception, body);
1760
- };
1761
- const de_DirectoryInDesiredStateExceptionRes = async (parsedOutput, context) => {
1762
- const body = parsedOutput.body;
1763
- const deserialized = _json(body);
1764
- const exception = new DirectoryInDesiredStateException({
1765
- $metadata: deserializeMetadata(parsedOutput),
1766
- ...deserialized,
1767
- });
1768
- return __decorateServiceException(exception, body);
1769
- };
1770
- const de_DirectoryLimitExceededExceptionRes = async (parsedOutput, context) => {
1771
- const body = parsedOutput.body;
1772
- const deserialized = _json(body);
1773
- const exception = new DirectoryLimitExceededException({
1774
- $metadata: deserializeMetadata(parsedOutput),
1775
- ...deserialized,
1776
- });
1777
- return __decorateServiceException(exception, body);
1778
- };
1779
- const de_DirectoryNotSharedExceptionRes = async (parsedOutput, context) => {
1780
- const body = parsedOutput.body;
1781
- const deserialized = _json(body);
1782
- const exception = new DirectoryNotSharedException({
1783
- $metadata: deserializeMetadata(parsedOutput),
1784
- ...deserialized,
1785
- });
1786
- return __decorateServiceException(exception, body);
1787
- };
1788
- const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
1789
- const body = parsedOutput.body;
1790
- const deserialized = _json(body);
1791
- const exception = new DirectoryUnavailableException({
1792
- $metadata: deserializeMetadata(parsedOutput),
1793
- ...deserialized,
1794
- });
1795
- return __decorateServiceException(exception, body);
1796
- };
1797
- const de_DisableAlreadyInProgressExceptionRes = async (parsedOutput, context) => {
1798
- const body = parsedOutput.body;
1799
- const deserialized = _json(body);
1800
- const exception = new DisableAlreadyInProgressException({
1801
- $metadata: deserializeMetadata(parsedOutput),
1802
- ...deserialized,
1803
- });
1804
- return __decorateServiceException(exception, body);
1805
- };
1806
- const de_DomainControllerLimitExceededExceptionRes = async (parsedOutput, context) => {
1807
- const body = parsedOutput.body;
1808
- const deserialized = _json(body);
1809
- const exception = new DomainControllerLimitExceededException({
1810
- $metadata: deserializeMetadata(parsedOutput),
1811
- ...deserialized,
1812
- });
1813
- return __decorateServiceException(exception, body);
1814
- };
1815
- const de_EnableAlreadyInProgressExceptionRes = async (parsedOutput, context) => {
1816
- const body = parsedOutput.body;
1817
- const deserialized = _json(body);
1818
- const exception = new EnableAlreadyInProgressException({
1819
- $metadata: deserializeMetadata(parsedOutput),
1820
- ...deserialized,
1821
- });
1822
- return __decorateServiceException(exception, body);
1823
- };
1824
- const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1825
- const body = parsedOutput.body;
1826
- const deserialized = _json(body);
1827
- const exception = new EntityAlreadyExistsException({
1828
- $metadata: deserializeMetadata(parsedOutput),
1829
- ...deserialized,
1830
- });
1831
- return __decorateServiceException(exception, body);
1832
- };
1833
- const de_EntityDoesNotExistExceptionRes = async (parsedOutput, context) => {
1834
- const body = parsedOutput.body;
1835
- const deserialized = _json(body);
1836
- const exception = new EntityDoesNotExistException({
1837
- $metadata: deserializeMetadata(parsedOutput),
1838
- ...deserialized,
1839
- });
1840
- return __decorateServiceException(exception, body);
1841
- };
1842
- const de_IncompatibleSettingsExceptionRes = async (parsedOutput, context) => {
1843
- const body = parsedOutput.body;
1844
- const deserialized = _json(body);
1845
- const exception = new IncompatibleSettingsException({
1846
- $metadata: deserializeMetadata(parsedOutput),
1847
- ...deserialized,
1848
- });
1849
- return __decorateServiceException(exception, body);
1850
- };
1851
- const de_InsufficientPermissionsExceptionRes = async (parsedOutput, context) => {
1852
- const body = parsedOutput.body;
1853
- const deserialized = _json(body);
1854
- const exception = new InsufficientPermissionsException({
1855
- $metadata: deserializeMetadata(parsedOutput),
1856
- ...deserialized,
1857
- });
1858
- return __decorateServiceException(exception, body);
1859
- };
1860
- const de_InvalidCertificateExceptionRes = async (parsedOutput, context) => {
1861
- const body = parsedOutput.body;
1862
- const deserialized = _json(body);
1863
- const exception = new InvalidCertificateException({
1864
- $metadata: deserializeMetadata(parsedOutput),
1865
- ...deserialized,
1866
- });
1867
- return __decorateServiceException(exception, body);
1868
- };
1869
- const de_InvalidClientAuthStatusExceptionRes = async (parsedOutput, context) => {
1870
- const body = parsedOutput.body;
1871
- const deserialized = _json(body);
1872
- const exception = new InvalidClientAuthStatusException({
1873
- $metadata: deserializeMetadata(parsedOutput),
1874
- ...deserialized,
1875
- });
1876
- return __decorateServiceException(exception, body);
1877
- };
1878
- const de_InvalidLDAPSStatusExceptionRes = async (parsedOutput, context) => {
1879
- const body = parsedOutput.body;
1880
- const deserialized = _json(body);
1881
- const exception = new InvalidLDAPSStatusException({
1882
- $metadata: deserializeMetadata(parsedOutput),
1883
- ...deserialized,
1884
- });
1885
- return __decorateServiceException(exception, body);
1886
- };
1887
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1888
- const body = parsedOutput.body;
1889
- const deserialized = _json(body);
1890
- const exception = new InvalidNextTokenException({
1891
- $metadata: deserializeMetadata(parsedOutput),
1892
- ...deserialized,
1893
- });
1894
- return __decorateServiceException(exception, body);
1895
- };
1896
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1897
- const body = parsedOutput.body;
1898
- const deserialized = _json(body);
1899
- const exception = new InvalidParameterException({
1900
- $metadata: deserializeMetadata(parsedOutput),
1901
- ...deserialized,
1902
- });
1903
- return __decorateServiceException(exception, body);
1904
- };
1905
- const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
1906
- const body = parsedOutput.body;
1907
- const deserialized = _json(body);
1908
- const exception = new InvalidPasswordException({
1909
- $metadata: deserializeMetadata(parsedOutput),
1910
- ...deserialized,
1911
- });
1912
- return __decorateServiceException(exception, body);
1913
- };
1914
- const de_InvalidTargetExceptionRes = async (parsedOutput, context) => {
1915
- const body = parsedOutput.body;
1916
- const deserialized = _json(body);
1917
- const exception = new InvalidTargetException({
1918
- $metadata: deserializeMetadata(parsedOutput),
1919
- ...deserialized,
1920
- });
1921
- return __decorateServiceException(exception, body);
1922
- };
1923
- const de_IpRouteLimitExceededExceptionRes = async (parsedOutput, context) => {
1924
- const body = parsedOutput.body;
1925
- const deserialized = _json(body);
1926
- const exception = new IpRouteLimitExceededException({
1927
- $metadata: deserializeMetadata(parsedOutput),
1928
- ...deserialized,
1929
- });
1930
- return __decorateServiceException(exception, body);
1931
- };
1932
- const de_NoAvailableCertificateExceptionRes = async (parsedOutput, context) => {
1933
- const body = parsedOutput.body;
1934
- const deserialized = _json(body);
1935
- const exception = new NoAvailableCertificateException({
1936
- $metadata: deserializeMetadata(parsedOutput),
1937
- ...deserialized,
1938
- });
1939
- return __decorateServiceException(exception, body);
1940
- };
1941
- const de_OrganizationsExceptionRes = async (parsedOutput, context) => {
1942
- const body = parsedOutput.body;
1943
- const deserialized = _json(body);
1944
- const exception = new OrganizationsException({
1945
- $metadata: deserializeMetadata(parsedOutput),
1946
- ...deserialized,
1947
- });
1948
- return __decorateServiceException(exception, body);
1949
- };
1950
- const de_RegionLimitExceededExceptionRes = async (parsedOutput, context) => {
1951
- const body = parsedOutput.body;
1952
- const deserialized = _json(body);
1953
- const exception = new RegionLimitExceededException({
1954
- $metadata: deserializeMetadata(parsedOutput),
1955
- ...deserialized,
1956
- });
1957
- return __decorateServiceException(exception, body);
1958
- };
1959
- const de_ServiceExceptionRes = async (parsedOutput, context) => {
1960
- const body = parsedOutput.body;
1961
- const deserialized = _json(body);
1962
- const exception = new ServiceException({
1963
- $metadata: deserializeMetadata(parsedOutput),
1964
- ...deserialized,
1965
- });
1966
- return __decorateServiceException(exception, body);
1967
- };
1968
- const de_ShareLimitExceededExceptionRes = async (parsedOutput, context) => {
1969
- const body = parsedOutput.body;
1970
- const deserialized = _json(body);
1971
- const exception = new ShareLimitExceededException({
1972
- $metadata: deserializeMetadata(parsedOutput),
1973
- ...deserialized,
1974
- });
1975
- return __decorateServiceException(exception, body);
1976
- };
1977
- const de_SnapshotLimitExceededExceptionRes = async (parsedOutput, context) => {
1978
- const body = parsedOutput.body;
1979
- const deserialized = _json(body);
1980
- const exception = new SnapshotLimitExceededException({
1981
- $metadata: deserializeMetadata(parsedOutput),
1982
- ...deserialized,
1983
- });
1984
- return __decorateServiceException(exception, body);
1985
- };
1986
- const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
1987
- const body = parsedOutput.body;
1988
- const deserialized = _json(body);
1989
- const exception = new TagLimitExceededException({
1990
- $metadata: deserializeMetadata(parsedOutput),
1991
- ...deserialized,
1992
- });
1993
- return __decorateServiceException(exception, body);
1994
- };
1995
- const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1996
- const body = parsedOutput.body;
1997
- const deserialized = _json(body);
1998
- const exception = new UnsupportedOperationException({
1999
- $metadata: deserializeMetadata(parsedOutput),
2000
- ...deserialized,
2001
- });
2002
- return __decorateServiceException(exception, body);
2003
- };
2004
- const de_UnsupportedSettingsExceptionRes = async (parsedOutput, context) => {
2005
- const body = parsedOutput.body;
2006
- const deserialized = _json(body);
2007
- const exception = new UnsupportedSettingsException({
2008
- $metadata: deserializeMetadata(parsedOutput),
2009
- ...deserialized,
2010
- });
2011
- return __decorateServiceException(exception, body);
2012
- };
2013
- const de_UserDoesNotExistExceptionRes = async (parsedOutput, context) => {
2014
- const body = parsedOutput.body;
2015
- const deserialized = _json(body);
2016
- const exception = new UserDoesNotExistException({
2017
- $metadata: deserializeMetadata(parsedOutput),
2018
- ...deserialized,
2019
- });
2020
- return __decorateServiceException(exception, body);
2021
- };
2022
- const de_AcceptSharedDirectoryResult = (output, context) => {
2023
- return take(output, {
2024
- SharedDirectory: (_) => de_SharedDirectory(_, context),
2025
- });
2026
- };
2027
- const de_Assessment = (output, context) => {
2028
- return take(output, {
2029
- AssessmentId: __expectString,
2030
- CustomerDnsIps: _json,
2031
- DirectoryId: __expectString,
2032
- DnsName: __expectString,
2033
- LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2034
- ReportType: __expectString,
2035
- SecurityGroupIds: _json,
2036
- SelfManagedInstanceIds: _json,
2037
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2038
- Status: __expectString,
2039
- StatusCode: __expectString,
2040
- StatusReason: __expectString,
2041
- SubnetIds: _json,
2042
- Version: __expectString,
2043
- VpcId: __expectString,
2044
- });
2045
- };
2046
- const de_AssessmentReport = (output, context) => {
2047
- return take(output, {
2048
- DomainControllerIp: __expectString,
2049
- Validations: (_) => de_AssessmentValidations(_, context),
2050
- });
2051
- };
2052
- const de_AssessmentReports = (output, context) => {
2053
- const retVal = (output || [])
2054
- .filter((e) => e != null)
2055
- .map((entry) => {
2056
- return de_AssessmentReport(entry, context);
2057
- });
2058
- return retVal;
2059
- };
2060
- const de_Assessments = (output, context) => {
2061
- const retVal = (output || [])
2062
- .filter((e) => e != null)
2063
- .map((entry) => {
2064
- return de_AssessmentSummary(entry, context);
2065
- });
2066
- return retVal;
2067
- };
2068
- const de_AssessmentSummary = (output, context) => {
2069
- return take(output, {
2070
- AssessmentId: __expectString,
2071
- CustomerDnsIps: _json,
2072
- DirectoryId: __expectString,
2073
- DnsName: __expectString,
2074
- LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2075
- ReportType: __expectString,
2076
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2077
- Status: __expectString,
2078
- });
2079
- };
2080
- const de_AssessmentValidation = (output, context) => {
2081
- return take(output, {
2082
- Category: __expectString,
2083
- LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2084
- Name: __expectString,
2085
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2086
- Status: __expectString,
2087
- StatusCode: __expectString,
2088
- StatusReason: __expectString,
2089
- });
2090
- };
2091
- const de_AssessmentValidations = (output, context) => {
2092
- const retVal = (output || [])
2093
- .filter((e) => e != null)
2094
- .map((entry) => {
2095
- return de_AssessmentValidation(entry, context);
2096
- });
2097
- return retVal;
2098
- };
2099
- const de_Certificate = (output, context) => {
2100
- return take(output, {
2101
- CertificateId: __expectString,
2102
- ClientCertAuthSettings: _json,
2103
- CommonName: __expectString,
2104
- ExpiryDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2105
- RegisteredDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2106
- State: __expectString,
2107
- StateReason: __expectString,
2108
- Type: __expectString,
2109
- });
2110
- };
2111
- const de_CertificateInfo = (output, context) => {
2112
- return take(output, {
2113
- CertificateId: __expectString,
2114
- CommonName: __expectString,
2115
- ExpiryDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2116
- State: __expectString,
2117
- Type: __expectString,
2118
- });
2119
- };
2120
- const de_CertificatesInfo = (output, context) => {
2121
- const retVal = (output || [])
2122
- .filter((e) => e != null)
2123
- .map((entry) => {
2124
- return de_CertificateInfo(entry, context);
2125
- });
2126
- return retVal;
2127
- };
2128
- const de_ClientAuthenticationSettingInfo = (output, context) => {
2129
- return take(output, {
2130
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2131
- Status: __expectString,
2132
- Type: __expectString,
2133
- });
2134
- };
2135
- const de_ClientAuthenticationSettingsInfo = (output, context) => {
2136
- const retVal = (output || [])
2137
- .filter((e) => e != null)
2138
- .map((entry) => {
2139
- return de_ClientAuthenticationSettingInfo(entry, context);
2140
- });
2141
- return retVal;
2142
- };
2143
- const de_DescribeADAssessmentResult = (output, context) => {
2144
- return take(output, {
2145
- Assessment: (_) => de_Assessment(_, context),
2146
- AssessmentReports: (_) => de_AssessmentReports(_, context),
2147
- });
2148
- };
2149
- const de_DescribeCAEnrollmentPolicyResult = (output, context) => {
2150
- return take(output, {
2151
- CaEnrollmentPolicyStatus: __expectString,
2152
- CaEnrollmentPolicyStatusReason: __expectString,
2153
- DirectoryId: __expectString,
2154
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2155
- PcaConnectorArn: __expectString,
2156
- });
2157
- };
2158
- const de_DescribeCertificateResult = (output, context) => {
2159
- return take(output, {
2160
- Certificate: (_) => de_Certificate(_, context),
2161
- });
2162
- };
2163
- const de_DescribeClientAuthenticationSettingsResult = (output, context) => {
2164
- return take(output, {
2165
- ClientAuthenticationSettingsInfo: (_) => de_ClientAuthenticationSettingsInfo(_, context),
2166
- NextToken: __expectString,
2167
- });
2168
- };
2169
- const de_DescribeDirectoriesResult = (output, context) => {
2170
- return take(output, {
2171
- DirectoryDescriptions: (_) => de_DirectoryDescriptions(_, context),
2172
- NextToken: __expectString,
2173
- });
2174
- };
2175
- const de_DescribeDomainControllersResult = (output, context) => {
2176
- return take(output, {
2177
- DomainControllers: (_) => de_DomainControllers(_, context),
2178
- NextToken: __expectString,
2179
- });
2180
- };
2181
- const de_DescribeEventTopicsResult = (output, context) => {
2182
- return take(output, {
2183
- EventTopics: (_) => de_EventTopics(_, context),
2184
- });
2185
- };
2186
- const de_DescribeHybridADUpdateResult = (output, context) => {
2187
- return take(output, {
2188
- NextToken: __expectString,
2189
- UpdateActivities: (_) => de_HybridUpdateActivities(_, context),
2190
- });
2191
- };
2192
- const de_DescribeLDAPSSettingsResult = (output, context) => {
2193
- return take(output, {
2194
- LDAPSSettingsInfo: (_) => de_LDAPSSettingsInfo(_, context),
2195
- NextToken: __expectString,
2196
- });
2197
- };
2198
- const de_DescribeRegionsResult = (output, context) => {
2199
- return take(output, {
2200
- NextToken: __expectString,
2201
- RegionsDescription: (_) => de_RegionsDescription(_, context),
2202
- });
2203
- };
2204
- const de_DescribeSettingsResult = (output, context) => {
2205
- return take(output, {
2206
- DirectoryId: __expectString,
2207
- NextToken: __expectString,
2208
- SettingEntries: (_) => de_SettingEntries(_, context),
2209
- });
2210
- };
2211
- const de_DescribeSharedDirectoriesResult = (output, context) => {
2212
- return take(output, {
2213
- NextToken: __expectString,
2214
- SharedDirectories: (_) => de_SharedDirectories(_, context),
2215
- });
2216
- };
2217
- const de_DescribeSnapshotsResult = (output, context) => {
2218
- return take(output, {
2219
- NextToken: __expectString,
2220
- Snapshots: (_) => de_Snapshots(_, context),
2221
- });
2222
- };
2223
- const de_DescribeTrustsResult = (output, context) => {
2224
- return take(output, {
2225
- NextToken: __expectString,
2226
- Trusts: (_) => de_Trusts(_, context),
2227
- });
2228
- };
2229
- const de_DescribeUpdateDirectoryResult = (output, context) => {
2230
- return take(output, {
2231
- NextToken: __expectString,
2232
- UpdateActivities: (_) => de_UpdateActivities(_, context),
2233
- });
2234
- };
2235
- const de_DirectoryDescription = (output, context) => {
2236
- return take(output, {
2237
- AccessUrl: __expectString,
2238
- Alias: __expectString,
2239
- ConnectSettings: _json,
2240
- Description: __expectString,
2241
- DesiredNumberOfDomainControllers: __expectInt32,
2242
- DirectoryId: __expectString,
2243
- DnsIpAddrs: _json,
2244
- DnsIpv6Addrs: _json,
2245
- Edition: __expectString,
2246
- HybridSettings: _json,
2247
- LaunchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2248
- Name: __expectString,
2249
- NetworkType: __expectString,
2250
- OsVersion: __expectString,
2251
- OwnerDirectoryDescription: _json,
2252
- RadiusSettings: _json,
2253
- RadiusStatus: __expectString,
2254
- RegionsInfo: _json,
2255
- ShareMethod: __expectString,
2256
- ShareNotes: __expectString,
2257
- ShareStatus: __expectString,
2258
- ShortName: __expectString,
2259
- Size: __expectString,
2260
- SsoEnabled: __expectBoolean,
2261
- Stage: __expectString,
2262
- StageLastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2263
- StageReason: __expectString,
2264
- Type: __expectString,
2265
- VpcSettings: _json,
2266
- });
2267
- };
2268
- const de_DirectoryDescriptions = (output, context) => {
2269
- const retVal = (output || [])
2270
- .filter((e) => e != null)
2271
- .map((entry) => {
2272
- return de_DirectoryDescription(entry, context);
2273
- });
2274
- return retVal;
2275
- };
2276
- const de_DomainController = (output, context) => {
2277
- return take(output, {
2278
- AvailabilityZone: __expectString,
2279
- DirectoryId: __expectString,
2280
- DnsIpAddr: __expectString,
2281
- DnsIpv6Addr: __expectString,
2282
- DomainControllerId: __expectString,
2283
- LaunchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2284
- Status: __expectString,
2285
- StatusLastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2286
- StatusReason: __expectString,
2287
- SubnetId: __expectString,
2288
- VpcId: __expectString,
2289
- });
2290
- };
2291
- const de_DomainControllers = (output, context) => {
2292
- const retVal = (output || [])
2293
- .filter((e) => e != null)
2294
- .map((entry) => {
2295
- return de_DomainController(entry, context);
2296
- });
2297
- return retVal;
2298
- };
2299
- const de_EventTopic = (output, context) => {
2300
- return take(output, {
2301
- CreatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2302
- DirectoryId: __expectString,
2303
- Status: __expectString,
2304
- TopicArn: __expectString,
2305
- TopicName: __expectString,
2306
- });
2307
- };
2308
- const de_EventTopics = (output, context) => {
2309
- const retVal = (output || [])
2310
- .filter((e) => e != null)
2311
- .map((entry) => {
2312
- return de_EventTopic(entry, context);
2313
- });
2314
- return retVal;
2315
- };
2316
- const de_HybridUpdateActivities = (output, context) => {
2317
- return take(output, {
2318
- HybridAdministratorAccount: (_) => de_HybridUpdateInfoEntries(_, context),
2319
- SelfManagedInstances: (_) => de_HybridUpdateInfoEntries(_, context),
2320
- });
2321
- };
2322
- const de_HybridUpdateInfoEntries = (output, context) => {
2323
- const retVal = (output || [])
2324
- .filter((e) => e != null)
2325
- .map((entry) => {
2326
- return de_HybridUpdateInfoEntry(entry, context);
2327
- });
2328
- return retVal;
2329
- };
2330
- const de_HybridUpdateInfoEntry = (output, context) => {
2331
- return take(output, {
2332
- AssessmentId: __expectString,
2333
- InitiatedBy: __expectString,
2334
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2335
- NewValue: _json,
2336
- PreviousValue: _json,
2337
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2338
- Status: __expectString,
2339
- StatusReason: __expectString,
2340
- });
2341
- };
2342
- const de_IpRouteInfo = (output, context) => {
2343
- return take(output, {
2344
- AddedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2345
- CidrIp: __expectString,
2346
- CidrIpv6: __expectString,
2347
- Description: __expectString,
2348
- DirectoryId: __expectString,
2349
- IpRouteStatusMsg: __expectString,
2350
- IpRouteStatusReason: __expectString,
2351
- });
2352
- };
2353
- const de_IpRoutesInfo = (output, context) => {
2354
- const retVal = (output || [])
2355
- .filter((e) => e != null)
2356
- .map((entry) => {
2357
- return de_IpRouteInfo(entry, context);
2358
- });
2359
- return retVal;
2360
- };
2361
- const de_LDAPSSettingInfo = (output, context) => {
2362
- return take(output, {
2363
- LDAPSStatus: __expectString,
2364
- LDAPSStatusReason: __expectString,
2365
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2366
- });
2367
- };
2368
- const de_LDAPSSettingsInfo = (output, context) => {
2369
- const retVal = (output || [])
2370
- .filter((e) => e != null)
2371
- .map((entry) => {
2372
- return de_LDAPSSettingInfo(entry, context);
2373
- });
2374
- return retVal;
2375
- };
2376
- const de_ListADAssessmentsResult = (output, context) => {
2377
- return take(output, {
2378
- Assessments: (_) => de_Assessments(_, context),
2379
- NextToken: __expectString,
2380
- });
2381
- };
2382
- const de_ListCertificatesResult = (output, context) => {
2383
- return take(output, {
2384
- CertificatesInfo: (_) => de_CertificatesInfo(_, context),
2385
- NextToken: __expectString,
2386
- });
2387
- };
2388
- const de_ListIpRoutesResult = (output, context) => {
2389
- return take(output, {
2390
- IpRoutesInfo: (_) => de_IpRoutesInfo(_, context),
2391
- NextToken: __expectString,
2392
- });
2393
- };
2394
- const de_ListLogSubscriptionsResult = (output, context) => {
2395
- return take(output, {
2396
- LogSubscriptions: (_) => de_LogSubscriptions(_, context),
2397
- NextToken: __expectString,
2398
- });
2399
- };
2400
- const de_ListSchemaExtensionsResult = (output, context) => {
2401
- return take(output, {
2402
- NextToken: __expectString,
2403
- SchemaExtensionsInfo: (_) => de_SchemaExtensionsInfo(_, context),
2404
- });
2405
- };
2406
- const de_LogSubscription = (output, context) => {
2407
- return take(output, {
2408
- DirectoryId: __expectString,
2409
- LogGroupName: __expectString,
2410
- SubscriptionCreatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2411
- });
2412
- };
2413
- const de_LogSubscriptions = (output, context) => {
2414
- const retVal = (output || [])
2415
- .filter((e) => e != null)
2416
- .map((entry) => {
2417
- return de_LogSubscription(entry, context);
2418
- });
2419
- return retVal;
2420
- };
2421
- const de_RegionDescription = (output, context) => {
2422
- return take(output, {
2423
- DesiredNumberOfDomainControllers: __expectInt32,
2424
- DirectoryId: __expectString,
2425
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2426
- LaunchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2427
- RegionName: __expectString,
2428
- RegionType: __expectString,
2429
- Status: __expectString,
2430
- StatusLastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2431
- VpcSettings: _json,
2432
- });
2433
- };
2434
- const de_RegionsDescription = (output, context) => {
2435
- const retVal = (output || [])
2436
- .filter((e) => e != null)
2437
- .map((entry) => {
2438
- return de_RegionDescription(entry, context);
2439
- });
2440
- return retVal;
2441
- };
2442
- const de_SchemaExtensionInfo = (output, context) => {
2443
- return take(output, {
2444
- Description: __expectString,
2445
- DirectoryId: __expectString,
2446
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2447
- SchemaExtensionId: __expectString,
2448
- SchemaExtensionStatus: __expectString,
2449
- SchemaExtensionStatusReason: __expectString,
2450
- StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2451
- });
2452
- };
2453
- const de_SchemaExtensionsInfo = (output, context) => {
2454
- const retVal = (output || [])
2455
- .filter((e) => e != null)
2456
- .map((entry) => {
2457
- return de_SchemaExtensionInfo(entry, context);
2458
- });
2459
- return retVal;
2460
- };
2461
- const de_SettingEntries = (output, context) => {
2462
- const retVal = (output || [])
2463
- .filter((e) => e != null)
2464
- .map((entry) => {
2465
- return de_SettingEntry(entry, context);
2466
- });
2467
- return retVal;
2468
- };
2469
- const de_SettingEntry = (output, context) => {
2470
- return take(output, {
2471
- AllowedValues: __expectString,
2472
- AppliedValue: __expectString,
2473
- DataType: __expectString,
2474
- LastRequestedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2475
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2476
- Name: __expectString,
2477
- RequestDetailedStatus: _json,
2478
- RequestStatus: __expectString,
2479
- RequestStatusMessage: __expectString,
2480
- RequestedValue: __expectString,
2481
- Type: __expectString,
2482
- });
2483
- };
2484
- const de_SharedDirectories = (output, context) => {
2485
- const retVal = (output || [])
2486
- .filter((e) => e != null)
2487
- .map((entry) => {
2488
- return de_SharedDirectory(entry, context);
2489
- });
2490
- return retVal;
2491
- };
2492
- const de_SharedDirectory = (output, context) => {
2493
- return take(output, {
2494
- CreatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2495
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2496
- OwnerAccountId: __expectString,
2497
- OwnerDirectoryId: __expectString,
2498
- ShareMethod: __expectString,
2499
- ShareNotes: __expectString,
2500
- ShareStatus: __expectString,
2501
- SharedAccountId: __expectString,
2502
- SharedDirectoryId: __expectString,
2503
- });
2504
- };
2505
- const de_Snapshot = (output, context) => {
2506
- return take(output, {
2507
- DirectoryId: __expectString,
2508
- Name: __expectString,
2509
- SnapshotId: __expectString,
2510
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2511
- Status: __expectString,
2512
- Type: __expectString,
2513
- });
2514
- };
2515
- const de_Snapshots = (output, context) => {
2516
- const retVal = (output || [])
2517
- .filter((e) => e != null)
2518
- .map((entry) => {
2519
- return de_Snapshot(entry, context);
2520
- });
2521
- return retVal;
2522
- };
2523
- const de_Trust = (output, context) => {
2524
- return take(output, {
2525
- CreatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2526
- DirectoryId: __expectString,
2527
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2528
- RemoteDomainName: __expectString,
2529
- SelectiveAuth: __expectString,
2530
- StateLastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2531
- TrustDirection: __expectString,
2532
- TrustId: __expectString,
2533
- TrustState: __expectString,
2534
- TrustStateReason: __expectString,
2535
- TrustType: __expectString,
2536
- });
2537
- };
2538
- const de_Trusts = (output, context) => {
2539
- const retVal = (output || [])
2540
- .filter((e) => e != null)
2541
- .map((entry) => {
2542
- return de_Trust(entry, context);
2543
- });
2544
- return retVal;
2545
- };
2546
- const de_UpdateActivities = (output, context) => {
2547
- const retVal = (output || [])
2548
- .filter((e) => e != null)
2549
- .map((entry) => {
2550
- return de_UpdateInfoEntry(entry, context);
2551
- });
2552
- return retVal;
2553
- };
2554
- const de_UpdateInfoEntry = (output, context) => {
2555
- return take(output, {
2556
- InitiatedBy: __expectString,
2557
- LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2558
- NewValue: _json,
2559
- PreviousValue: _json,
2560
- Region: __expectString,
2561
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2562
- Status: __expectString,
2563
- StatusReason: __expectString,
2564
- });
2565
- };
2566
- const deserializeMetadata = (output) => ({
2567
- httpStatusCode: output.statusCode,
2568
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2569
- extendedRequestId: output.headers["x-amz-id-2"],
2570
- cfId: output.headers["x-amz-cf-id"],
2571
- });
2572
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2573
- const throwDefaultError = withBaseException(__BaseException);
2574
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2575
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2576
- const contents = {
2577
- protocol,
2578
- hostname,
2579
- port,
2580
- method: "POST",
2581
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2582
- headers,
2583
- };
2584
- if (resolvedHostname !== undefined) {
2585
- contents.hostname = resolvedHostname;
2586
- }
2587
- if (body !== undefined) {
2588
- contents.body = body;
2589
- }
2590
- return new __HttpRequest(contents);
2591
- };
2592
- function sharedHeaders(operation) {
2593
- return {
2594
- "content-type": "application/x-amz-json-1.1",
2595
- "x-amz-target": `DirectoryService_20150416.${operation}`,
2596
- };
2597
- }