@aws-sdk/client-directory-service 3.856.0 → 3.858.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 (54) hide show
  1. package/README.md +63 -7
  2. package/dist-cjs/index.js +489 -7
  3. package/dist-es/DirectoryService.js +14 -0
  4. package/dist-es/commands/CreateHybridADCommand.js +22 -0
  5. package/dist-es/commands/DeleteADAssessmentCommand.js +22 -0
  6. package/dist-es/commands/DescribeADAssessmentCommand.js +22 -0
  7. package/dist-es/commands/DescribeHybridADUpdateCommand.js +22 -0
  8. package/dist-es/commands/ListADAssessmentsCommand.js +22 -0
  9. package/dist-es/commands/StartADAssessmentCommand.js +22 -0
  10. package/dist-es/commands/UpdateHybridADCommand.js +22 -0
  11. package/dist-es/commands/index.js +7 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/models_0.js +25 -5
  14. package/dist-es/pagination/ListADAssessmentsPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +1 -0
  16. package/dist-es/protocols/Aws_json1_1.js +263 -1
  17. package/dist-es/waiters/index.js +1 -0
  18. package/dist-es/waiters/waitForHybridADUpdated.js +54 -0
  19. package/dist-types/DirectoryService.d.ts +51 -0
  20. package/dist-types/DirectoryServiceClient.d.ts +9 -2
  21. package/dist-types/commands/CreateHybridADCommand.d.ts +115 -0
  22. package/dist-types/commands/DeleteADAssessmentCommand.d.ts +91 -0
  23. package/dist-types/commands/DescribeADAssessmentCommand.d.ts +129 -0
  24. package/dist-types/commands/DescribeDirectoriesCommand.d.ts +8 -0
  25. package/dist-types/commands/DescribeHybridADUpdateCommand.d.ts +148 -0
  26. package/dist-types/commands/ListADAssessmentsCommand.d.ts +105 -0
  27. package/dist-types/commands/StartADAssessmentCommand.d.ts +132 -0
  28. package/dist-types/commands/UpdateHybridADCommand.d.ts +122 -0
  29. package/dist-types/commands/index.d.ts +7 -0
  30. package/dist-types/index.d.ts +1 -0
  31. package/dist-types/models/models_0.d.ts +689 -16
  32. package/dist-types/pagination/ListADAssessmentsPaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  35. package/dist-types/ts3.4/DirectoryService.d.ts +121 -0
  36. package/dist-types/ts3.4/DirectoryServiceClient.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/CreateHybridADCommand.d.ts +50 -0
  38. package/dist-types/ts3.4/commands/DeleteADAssessmentCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/DescribeADAssessmentCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/DescribeHybridADUpdateCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/ListADAssessmentsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/StartADAssessmentCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/UpdateHybridADCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +158 -6
  47. package/dist-types/ts3.4/pagination/ListADAssessmentsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  50. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  51. package/dist-types/ts3.4/waiters/waitForHybridADUpdated.d.ts +11 -0
  52. package/dist-types/waiters/index.d.ts +1 -0
  53. package/dist-types/waiters/waitForHybridADUpdated.d.ts +14 -0
  54. package/package.json +12 -11
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
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
4
  import { DirectoryServiceServiceException as __BaseException } from "../models/DirectoryServiceServiceException";
5
- import { AccessDeniedException, AuthenticationFailedException, CertificateAlreadyExistsException, CertificateDoesNotExistException, CertificateInUseException, CertificateLimitExceededException, ClientException, DirectoryAlreadyInRegionException, DirectoryAlreadySharedException, DirectoryDoesNotExistException, DirectoryInDesiredStateException, DirectoryLimitExceededException, DirectoryNotSharedException, DirectoryUnavailableException, DomainControllerLimitExceededException, 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";
5
+ import { AccessDeniedException, ADAssessmentLimitExceededException, AuthenticationFailedException, CertificateAlreadyExistsException, CertificateDoesNotExistException, CertificateInUseException, CertificateLimitExceededException, ClientException, DirectoryAlreadyInRegionException, DirectoryAlreadySharedException, DirectoryDoesNotExistException, DirectoryInDesiredStateException, DirectoryLimitExceededException, DirectoryNotSharedException, DirectoryUnavailableException, DomainControllerLimitExceededException, 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
6
  export const se_AcceptSharedDirectoryCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("AcceptSharedDirectory");
8
8
  let body;
@@ -63,6 +63,12 @@ export const se_CreateDirectoryCommand = async (input, context) => {
63
63
  body = JSON.stringify(_json(input));
64
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
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
+ };
66
72
  export const se_CreateLogSubscriptionCommand = async (input, context) => {
67
73
  const headers = sharedHeaders("CreateLogSubscription");
68
74
  let body;
@@ -87,6 +93,12 @@ export const se_CreateTrustCommand = async (input, context) => {
87
93
  body = JSON.stringify(_json(input));
88
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
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
+ };
90
102
  export const se_DeleteConditionalForwarderCommand = async (input, context) => {
91
103
  const headers = sharedHeaders("DeleteConditionalForwarder");
92
104
  let body;
@@ -129,6 +141,12 @@ export const se_DeregisterEventTopicCommand = async (input, context) => {
129
141
  body = JSON.stringify(_json(input));
130
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
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
+ };
132
150
  export const se_DescribeCertificateCommand = async (input, context) => {
133
151
  const headers = sharedHeaders("DescribeCertificate");
134
152
  let body;
@@ -171,6 +189,12 @@ export const se_DescribeEventTopicsCommand = async (input, context) => {
171
189
  body = JSON.stringify(_json(input));
172
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
191
  };
192
+ export const se_DescribeHybridADUpdateCommand = async (input, context) => {
193
+ const headers = sharedHeaders("DescribeHybridADUpdate");
194
+ let body;
195
+ body = JSON.stringify(_json(input));
196
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
+ };
174
198
  export const se_DescribeLDAPSSettingsCommand = async (input, context) => {
175
199
  const headers = sharedHeaders("DescribeLDAPSSettings");
176
200
  let body;
@@ -285,6 +309,12 @@ export const se_GetSnapshotLimitsCommand = async (input, context) => {
285
309
  body = JSON.stringify(_json(input));
286
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
311
  };
312
+ export const se_ListADAssessmentsCommand = async (input, context) => {
313
+ const headers = sharedHeaders("ListADAssessments");
314
+ let body;
315
+ body = JSON.stringify(_json(input));
316
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
+ };
288
318
  export const se_ListCertificatesCommand = async (input, context) => {
289
319
  const headers = sharedHeaders("ListCertificates");
290
320
  let body;
@@ -369,6 +399,12 @@ export const se_ShareDirectoryCommand = async (input, context) => {
369
399
  body = JSON.stringify(_json(input));
370
400
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
401
  };
402
+ export const se_StartADAssessmentCommand = async (input, context) => {
403
+ const headers = sharedHeaders("StartADAssessment");
404
+ let body;
405
+ body = JSON.stringify(_json(input));
406
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
+ };
372
408
  export const se_StartSchemaExtensionCommand = async (input, context) => {
373
409
  const headers = sharedHeaders("StartSchemaExtension");
374
410
  let body;
@@ -393,6 +429,12 @@ export const se_UpdateDirectorySetupCommand = async (input, context) => {
393
429
  body = JSON.stringify(_json(input));
394
430
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
431
  };
432
+ export const se_UpdateHybridADCommand = async (input, context) => {
433
+ const headers = sharedHeaders("UpdateHybridAD");
434
+ let body;
435
+ body = JSON.stringify(_json(input));
436
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
+ };
396
438
  export const se_UpdateNumberOfDomainControllersCommand = async (input, context) => {
397
439
  const headers = sharedHeaders("UpdateNumberOfDomainControllers");
398
440
  let body;
@@ -553,6 +595,19 @@ export const de_CreateDirectoryCommand = async (output, context) => {
553
595
  };
554
596
  return response;
555
597
  };
598
+ export const de_CreateHybridADCommand = async (output, context) => {
599
+ if (output.statusCode >= 300) {
600
+ return de_CommandError(output, context);
601
+ }
602
+ const data = await parseBody(output.body, context);
603
+ let contents = {};
604
+ contents = _json(data);
605
+ const response = {
606
+ $metadata: deserializeMetadata(output),
607
+ ...contents,
608
+ };
609
+ return response;
610
+ };
556
611
  export const de_CreateLogSubscriptionCommand = async (output, context) => {
557
612
  if (output.statusCode >= 300) {
558
613
  return de_CommandError(output, context);
@@ -605,6 +660,19 @@ export const de_CreateTrustCommand = async (output, context) => {
605
660
  };
606
661
  return response;
607
662
  };
663
+ export const de_DeleteADAssessmentCommand = async (output, context) => {
664
+ if (output.statusCode >= 300) {
665
+ return de_CommandError(output, context);
666
+ }
667
+ const data = await parseBody(output.body, context);
668
+ let contents = {};
669
+ contents = _json(data);
670
+ const response = {
671
+ $metadata: deserializeMetadata(output),
672
+ ...contents,
673
+ };
674
+ return response;
675
+ };
608
676
  export const de_DeleteConditionalForwarderCommand = async (output, context) => {
609
677
  if (output.statusCode >= 300) {
610
678
  return de_CommandError(output, context);
@@ -696,6 +764,19 @@ export const de_DeregisterEventTopicCommand = async (output, context) => {
696
764
  };
697
765
  return response;
698
766
  };
767
+ export const de_DescribeADAssessmentCommand = async (output, context) => {
768
+ if (output.statusCode >= 300) {
769
+ return de_CommandError(output, context);
770
+ }
771
+ const data = await parseBody(output.body, context);
772
+ let contents = {};
773
+ contents = de_DescribeADAssessmentResult(data, context);
774
+ const response = {
775
+ $metadata: deserializeMetadata(output),
776
+ ...contents,
777
+ };
778
+ return response;
779
+ };
699
780
  export const de_DescribeCertificateCommand = async (output, context) => {
700
781
  if (output.statusCode >= 300) {
701
782
  return de_CommandError(output, context);
@@ -787,6 +868,19 @@ export const de_DescribeEventTopicsCommand = async (output, context) => {
787
868
  };
788
869
  return response;
789
870
  };
871
+ export const de_DescribeHybridADUpdateCommand = async (output, context) => {
872
+ if (output.statusCode >= 300) {
873
+ return de_CommandError(output, context);
874
+ }
875
+ const data = await parseBody(output.body, context);
876
+ let contents = {};
877
+ contents = de_DescribeHybridADUpdateResult(data, context);
878
+ const response = {
879
+ $metadata: deserializeMetadata(output),
880
+ ...contents,
881
+ };
882
+ return response;
883
+ };
790
884
  export const de_DescribeLDAPSSettingsCommand = async (output, context) => {
791
885
  if (output.statusCode >= 300) {
792
886
  return de_CommandError(output, context);
@@ -1034,6 +1128,19 @@ export const de_GetSnapshotLimitsCommand = async (output, context) => {
1034
1128
  };
1035
1129
  return response;
1036
1130
  };
1131
+ export const de_ListADAssessmentsCommand = async (output, context) => {
1132
+ if (output.statusCode >= 300) {
1133
+ return de_CommandError(output, context);
1134
+ }
1135
+ const data = await parseBody(output.body, context);
1136
+ let contents = {};
1137
+ contents = de_ListADAssessmentsResult(data, context);
1138
+ const response = {
1139
+ $metadata: deserializeMetadata(output),
1140
+ ...contents,
1141
+ };
1142
+ return response;
1143
+ };
1037
1144
  export const de_ListCertificatesCommand = async (output, context) => {
1038
1145
  if (output.statusCode >= 300) {
1039
1146
  return de_CommandError(output, context);
@@ -1216,6 +1323,19 @@ export const de_ShareDirectoryCommand = async (output, context) => {
1216
1323
  };
1217
1324
  return response;
1218
1325
  };
1326
+ export const de_StartADAssessmentCommand = async (output, context) => {
1327
+ if (output.statusCode >= 300) {
1328
+ return de_CommandError(output, context);
1329
+ }
1330
+ const data = await parseBody(output.body, context);
1331
+ let contents = {};
1332
+ contents = _json(data);
1333
+ const response = {
1334
+ $metadata: deserializeMetadata(output),
1335
+ ...contents,
1336
+ };
1337
+ return response;
1338
+ };
1219
1339
  export const de_StartSchemaExtensionCommand = async (output, context) => {
1220
1340
  if (output.statusCode >= 300) {
1221
1341
  return de_CommandError(output, context);
@@ -1268,6 +1388,19 @@ export const de_UpdateDirectorySetupCommand = async (output, context) => {
1268
1388
  };
1269
1389
  return response;
1270
1390
  };
1391
+ export const de_UpdateHybridADCommand = async (output, context) => {
1392
+ if (output.statusCode >= 300) {
1393
+ return de_CommandError(output, context);
1394
+ }
1395
+ const data = await parseBody(output.body, context);
1396
+ let contents = {};
1397
+ contents = _json(data);
1398
+ const response = {
1399
+ $metadata: deserializeMetadata(output),
1400
+ ...contents,
1401
+ };
1402
+ return response;
1403
+ };
1271
1404
  export const de_UpdateNumberOfDomainControllersCommand = async (output, context) => {
1272
1405
  if (output.statusCode >= 300) {
1273
1406
  return de_CommandError(output, context);
@@ -1388,6 +1521,9 @@ const de_CommandError = async (output, context) => {
1388
1521
  case "AuthenticationFailedException":
1389
1522
  case "com.amazonaws.directoryservice#AuthenticationFailedException":
1390
1523
  throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
1524
+ case "ADAssessmentLimitExceededException":
1525
+ case "com.amazonaws.directoryservice#ADAssessmentLimitExceededException":
1526
+ throw await de_ADAssessmentLimitExceededExceptionRes(parsedOutput, context);
1391
1527
  case "InsufficientPermissionsException":
1392
1528
  case "com.amazonaws.directoryservice#InsufficientPermissionsException":
1393
1529
  throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
@@ -1469,6 +1605,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1469
1605
  });
1470
1606
  return __decorateServiceException(exception, body);
1471
1607
  };
1608
+ const de_ADAssessmentLimitExceededExceptionRes = async (parsedOutput, context) => {
1609
+ const body = parsedOutput.body;
1610
+ const deserialized = _json(body);
1611
+ const exception = new ADAssessmentLimitExceededException({
1612
+ $metadata: deserializeMetadata(parsedOutput),
1613
+ ...deserialized,
1614
+ });
1615
+ return __decorateServiceException(exception, body);
1616
+ };
1472
1617
  const de_AuthenticationFailedExceptionRes = async (parsedOutput, context) => {
1473
1618
  const body = parsedOutput.body;
1474
1619
  const deserialized = _json(body);
@@ -1798,6 +1943,78 @@ const de_AcceptSharedDirectoryResult = (output, context) => {
1798
1943
  SharedDirectory: (_) => de_SharedDirectory(_, context),
1799
1944
  });
1800
1945
  };
1946
+ const de_Assessment = (output, context) => {
1947
+ return take(output, {
1948
+ AssessmentId: __expectString,
1949
+ CustomerDnsIps: _json,
1950
+ DirectoryId: __expectString,
1951
+ DnsName: __expectString,
1952
+ LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1953
+ ReportType: __expectString,
1954
+ SecurityGroupIds: _json,
1955
+ SelfManagedInstanceIds: _json,
1956
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1957
+ Status: __expectString,
1958
+ StatusCode: __expectString,
1959
+ StatusReason: __expectString,
1960
+ SubnetIds: _json,
1961
+ Version: __expectString,
1962
+ VpcId: __expectString,
1963
+ });
1964
+ };
1965
+ const de_AssessmentReport = (output, context) => {
1966
+ return take(output, {
1967
+ DomainControllerIp: __expectString,
1968
+ Validations: (_) => de_AssessmentValidations(_, context),
1969
+ });
1970
+ };
1971
+ const de_AssessmentReports = (output, context) => {
1972
+ const retVal = (output || [])
1973
+ .filter((e) => e != null)
1974
+ .map((entry) => {
1975
+ return de_AssessmentReport(entry, context);
1976
+ });
1977
+ return retVal;
1978
+ };
1979
+ const de_Assessments = (output, context) => {
1980
+ const retVal = (output || [])
1981
+ .filter((e) => e != null)
1982
+ .map((entry) => {
1983
+ return de_AssessmentSummary(entry, context);
1984
+ });
1985
+ return retVal;
1986
+ };
1987
+ const de_AssessmentSummary = (output, context) => {
1988
+ return take(output, {
1989
+ AssessmentId: __expectString,
1990
+ CustomerDnsIps: _json,
1991
+ DirectoryId: __expectString,
1992
+ DnsName: __expectString,
1993
+ LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1994
+ ReportType: __expectString,
1995
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1996
+ Status: __expectString,
1997
+ });
1998
+ };
1999
+ const de_AssessmentValidation = (output, context) => {
2000
+ return take(output, {
2001
+ Category: __expectString,
2002
+ LastUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2003
+ Name: __expectString,
2004
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2005
+ Status: __expectString,
2006
+ StatusCode: __expectString,
2007
+ StatusReason: __expectString,
2008
+ });
2009
+ };
2010
+ const de_AssessmentValidations = (output, context) => {
2011
+ const retVal = (output || [])
2012
+ .filter((e) => e != null)
2013
+ .map((entry) => {
2014
+ return de_AssessmentValidation(entry, context);
2015
+ });
2016
+ return retVal;
2017
+ };
1801
2018
  const de_Certificate = (output, context) => {
1802
2019
  return take(output, {
1803
2020
  CertificateId: __expectString,
@@ -1842,6 +2059,12 @@ const de_ClientAuthenticationSettingsInfo = (output, context) => {
1842
2059
  });
1843
2060
  return retVal;
1844
2061
  };
2062
+ const de_DescribeADAssessmentResult = (output, context) => {
2063
+ return take(output, {
2064
+ Assessment: (_) => de_Assessment(_, context),
2065
+ AssessmentReports: (_) => de_AssessmentReports(_, context),
2066
+ });
2067
+ };
1845
2068
  const de_DescribeCertificateResult = (output, context) => {
1846
2069
  return take(output, {
1847
2070
  Certificate: (_) => de_Certificate(_, context),
@@ -1870,6 +2093,12 @@ const de_DescribeEventTopicsResult = (output, context) => {
1870
2093
  EventTopics: (_) => de_EventTopics(_, context),
1871
2094
  });
1872
2095
  };
2096
+ const de_DescribeHybridADUpdateResult = (output, context) => {
2097
+ return take(output, {
2098
+ NextToken: __expectString,
2099
+ UpdateActivities: (_) => de_HybridUpdateActivities(_, context),
2100
+ });
2101
+ };
1873
2102
  const de_DescribeLDAPSSettingsResult = (output, context) => {
1874
2103
  return take(output, {
1875
2104
  LDAPSSettingsInfo: (_) => de_LDAPSSettingsInfo(_, context),
@@ -1923,6 +2152,7 @@ const de_DirectoryDescription = (output, context) => {
1923
2152
  DirectoryId: __expectString,
1924
2153
  DnsIpAddrs: _json,
1925
2154
  Edition: __expectString,
2155
+ HybridSettings: _json,
1926
2156
  LaunchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1927
2157
  Name: __expectString,
1928
2158
  OsVersion: __expectString,
@@ -1990,6 +2220,32 @@ const de_EventTopics = (output, context) => {
1990
2220
  });
1991
2221
  return retVal;
1992
2222
  };
2223
+ const de_HybridUpdateActivities = (output, context) => {
2224
+ return take(output, {
2225
+ HybridAdministratorAccount: (_) => de_HybridUpdateInfoEntries(_, context),
2226
+ SelfManagedInstances: (_) => de_HybridUpdateInfoEntries(_, context),
2227
+ });
2228
+ };
2229
+ const de_HybridUpdateInfoEntries = (output, context) => {
2230
+ const retVal = (output || [])
2231
+ .filter((e) => e != null)
2232
+ .map((entry) => {
2233
+ return de_HybridUpdateInfoEntry(entry, context);
2234
+ });
2235
+ return retVal;
2236
+ };
2237
+ const de_HybridUpdateInfoEntry = (output, context) => {
2238
+ return take(output, {
2239
+ AssessmentId: __expectString,
2240
+ InitiatedBy: __expectString,
2241
+ LastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2242
+ NewValue: _json,
2243
+ PreviousValue: _json,
2244
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2245
+ Status: __expectString,
2246
+ StatusReason: __expectString,
2247
+ });
2248
+ };
1993
2249
  const de_IpRouteInfo = (output, context) => {
1994
2250
  return take(output, {
1995
2251
  AddedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2023,6 +2279,12 @@ const de_LDAPSSettingsInfo = (output, context) => {
2023
2279
  });
2024
2280
  return retVal;
2025
2281
  };
2282
+ const de_ListADAssessmentsResult = (output, context) => {
2283
+ return take(output, {
2284
+ Assessments: (_) => de_Assessments(_, context),
2285
+ NextToken: __expectString,
2286
+ });
2287
+ };
2026
2288
  const de_ListCertificatesResult = (output, context) => {
2027
2289
  return take(output, {
2028
2290
  CertificatesInfo: (_) => de_CertificatesInfo(_, context),
@@ -0,0 +1 @@
1
+ export * from "./waitForHybridADUpdated";
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { DescribeHybridADUpdateCommand, } from "../commands/DescribeHybridADUpdateCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeHybridADUpdateCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ const flat_1 = [].concat(...result.UpdateActivities.SelfManagedInstances);
11
+ const projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = returnComparator().length > 0;
17
+ for (const element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && element_4 == "Updated";
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ const flat_1 = [].concat(...result.UpdateActivities.SelfManagedInstances);
28
+ const projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (const anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "UpdateFailed") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForHybridADUpdated = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 120, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilHybridADUpdated = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 120, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -9,10 +9,12 @@ import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/Cr
9
9
  import { CreateComputerCommandInput, CreateComputerCommandOutput } from "./commands/CreateComputerCommand";
10
10
  import { CreateConditionalForwarderCommandInput, CreateConditionalForwarderCommandOutput } from "./commands/CreateConditionalForwarderCommand";
11
11
  import { CreateDirectoryCommandInput, CreateDirectoryCommandOutput } from "./commands/CreateDirectoryCommand";
12
+ import { CreateHybridADCommandInput, CreateHybridADCommandOutput } from "./commands/CreateHybridADCommand";
12
13
  import { CreateLogSubscriptionCommandInput, CreateLogSubscriptionCommandOutput } from "./commands/CreateLogSubscriptionCommand";
13
14
  import { CreateMicrosoftADCommandInput, CreateMicrosoftADCommandOutput } from "./commands/CreateMicrosoftADCommand";
14
15
  import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
15
16
  import { CreateTrustCommandInput, CreateTrustCommandOutput } from "./commands/CreateTrustCommand";
17
+ import { DeleteADAssessmentCommandInput, DeleteADAssessmentCommandOutput } from "./commands/DeleteADAssessmentCommand";
16
18
  import { DeleteConditionalForwarderCommandInput, DeleteConditionalForwarderCommandOutput } from "./commands/DeleteConditionalForwarderCommand";
17
19
  import { DeleteDirectoryCommandInput, DeleteDirectoryCommandOutput } from "./commands/DeleteDirectoryCommand";
18
20
  import { DeleteLogSubscriptionCommandInput, DeleteLogSubscriptionCommandOutput } from "./commands/DeleteLogSubscriptionCommand";
@@ -20,6 +22,7 @@ import { DeleteSnapshotCommandInput, DeleteSnapshotCommandOutput } from "./comma
20
22
  import { DeleteTrustCommandInput, DeleteTrustCommandOutput } from "./commands/DeleteTrustCommand";
21
23
  import { DeregisterCertificateCommandInput, DeregisterCertificateCommandOutput } from "./commands/DeregisterCertificateCommand";
22
24
  import { DeregisterEventTopicCommandInput, DeregisterEventTopicCommandOutput } from "./commands/DeregisterEventTopicCommand";
25
+ import { DescribeADAssessmentCommandInput, DescribeADAssessmentCommandOutput } from "./commands/DescribeADAssessmentCommand";
23
26
  import { DescribeCertificateCommandInput, DescribeCertificateCommandOutput } from "./commands/DescribeCertificateCommand";
24
27
  import { DescribeClientAuthenticationSettingsCommandInput, DescribeClientAuthenticationSettingsCommandOutput } from "./commands/DescribeClientAuthenticationSettingsCommand";
25
28
  import { DescribeConditionalForwardersCommandInput, DescribeConditionalForwardersCommandOutput } from "./commands/DescribeConditionalForwardersCommand";
@@ -27,6 +30,7 @@ import { DescribeDirectoriesCommandInput, DescribeDirectoriesCommandOutput } fro
27
30
  import { DescribeDirectoryDataAccessCommandInput, DescribeDirectoryDataAccessCommandOutput } from "./commands/DescribeDirectoryDataAccessCommand";
28
31
  import { DescribeDomainControllersCommandInput, DescribeDomainControllersCommandOutput } from "./commands/DescribeDomainControllersCommand";
29
32
  import { DescribeEventTopicsCommandInput, DescribeEventTopicsCommandOutput } from "./commands/DescribeEventTopicsCommand";
33
+ import { DescribeHybridADUpdateCommandInput, DescribeHybridADUpdateCommandOutput } from "./commands/DescribeHybridADUpdateCommand";
30
34
  import { DescribeLDAPSSettingsCommandInput, DescribeLDAPSSettingsCommandOutput } from "./commands/DescribeLDAPSSettingsCommand";
31
35
  import { DescribeRegionsCommandInput, DescribeRegionsCommandOutput } from "./commands/DescribeRegionsCommand";
32
36
  import { DescribeSettingsCommandInput, DescribeSettingsCommandOutput } from "./commands/DescribeSettingsCommand";
@@ -46,6 +50,7 @@ import { EnableRadiusCommandInput, EnableRadiusCommandOutput } from "./commands/
46
50
  import { EnableSsoCommandInput, EnableSsoCommandOutput } from "./commands/EnableSsoCommand";
47
51
  import { GetDirectoryLimitsCommandInput, GetDirectoryLimitsCommandOutput } from "./commands/GetDirectoryLimitsCommand";
48
52
  import { GetSnapshotLimitsCommandInput, GetSnapshotLimitsCommandOutput } from "./commands/GetSnapshotLimitsCommand";
53
+ import { ListADAssessmentsCommandInput, ListADAssessmentsCommandOutput } from "./commands/ListADAssessmentsCommand";
49
54
  import { ListCertificatesCommandInput, ListCertificatesCommandOutput } from "./commands/ListCertificatesCommand";
50
55
  import { ListIpRoutesCommandInput, ListIpRoutesCommandOutput } from "./commands/ListIpRoutesCommand";
51
56
  import { ListLogSubscriptionsCommandInput, ListLogSubscriptionsCommandOutput } from "./commands/ListLogSubscriptionsCommand";
@@ -60,10 +65,12 @@ import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput
60
65
  import { ResetUserPasswordCommandInput, ResetUserPasswordCommandOutput } from "./commands/ResetUserPasswordCommand";
61
66
  import { RestoreFromSnapshotCommandInput, RestoreFromSnapshotCommandOutput } from "./commands/RestoreFromSnapshotCommand";
62
67
  import { ShareDirectoryCommandInput, ShareDirectoryCommandOutput } from "./commands/ShareDirectoryCommand";
68
+ import { StartADAssessmentCommandInput, StartADAssessmentCommandOutput } from "./commands/StartADAssessmentCommand";
63
69
  import { StartSchemaExtensionCommandInput, StartSchemaExtensionCommandOutput } from "./commands/StartSchemaExtensionCommand";
64
70
  import { UnshareDirectoryCommandInput, UnshareDirectoryCommandOutput } from "./commands/UnshareDirectoryCommand";
65
71
  import { UpdateConditionalForwarderCommandInput, UpdateConditionalForwarderCommandOutput } from "./commands/UpdateConditionalForwarderCommand";
66
72
  import { UpdateDirectorySetupCommandInput, UpdateDirectorySetupCommandOutput } from "./commands/UpdateDirectorySetupCommand";
73
+ import { UpdateHybridADCommandInput, UpdateHybridADCommandOutput } from "./commands/UpdateHybridADCommand";
67
74
  import { UpdateNumberOfDomainControllersCommandInput, UpdateNumberOfDomainControllersCommandOutput } from "./commands/UpdateNumberOfDomainControllersCommand";
68
75
  import { UpdateRadiusCommandInput, UpdateRadiusCommandOutput } from "./commands/UpdateRadiusCommand";
69
76
  import { UpdateSettingsCommandInput, UpdateSettingsCommandOutput } from "./commands/UpdateSettingsCommand";
@@ -131,6 +138,12 @@ export interface DirectoryService {
131
138
  createDirectory(args: CreateDirectoryCommandInput, options?: __HttpHandlerOptions): Promise<CreateDirectoryCommandOutput>;
132
139
  createDirectory(args: CreateDirectoryCommandInput, cb: (err: any, data?: CreateDirectoryCommandOutput) => void): void;
133
140
  createDirectory(args: CreateDirectoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDirectoryCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link CreateHybridADCommand}
143
+ */
144
+ createHybridAD(args: CreateHybridADCommandInput, options?: __HttpHandlerOptions): Promise<CreateHybridADCommandOutput>;
145
+ createHybridAD(args: CreateHybridADCommandInput, cb: (err: any, data?: CreateHybridADCommandOutput) => void): void;
146
+ createHybridAD(args: CreateHybridADCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHybridADCommandOutput) => void): void;
134
147
  /**
135
148
  * @see {@link CreateLogSubscriptionCommand}
136
149
  */
@@ -155,6 +168,12 @@ export interface DirectoryService {
155
168
  createTrust(args: CreateTrustCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrustCommandOutput>;
156
169
  createTrust(args: CreateTrustCommandInput, cb: (err: any, data?: CreateTrustCommandOutput) => void): void;
157
170
  createTrust(args: CreateTrustCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrustCommandOutput) => void): void;
171
+ /**
172
+ * @see {@link DeleteADAssessmentCommand}
173
+ */
174
+ deleteADAssessment(args: DeleteADAssessmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteADAssessmentCommandOutput>;
175
+ deleteADAssessment(args: DeleteADAssessmentCommandInput, cb: (err: any, data?: DeleteADAssessmentCommandOutput) => void): void;
176
+ deleteADAssessment(args: DeleteADAssessmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteADAssessmentCommandOutput) => void): void;
158
177
  /**
159
178
  * @see {@link DeleteConditionalForwarderCommand}
160
179
  */
@@ -197,6 +216,12 @@ export interface DirectoryService {
197
216
  deregisterEventTopic(args: DeregisterEventTopicCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterEventTopicCommandOutput>;
198
217
  deregisterEventTopic(args: DeregisterEventTopicCommandInput, cb: (err: any, data?: DeregisterEventTopicCommandOutput) => void): void;
199
218
  deregisterEventTopic(args: DeregisterEventTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterEventTopicCommandOutput) => void): void;
219
+ /**
220
+ * @see {@link DescribeADAssessmentCommand}
221
+ */
222
+ describeADAssessment(args: DescribeADAssessmentCommandInput, options?: __HttpHandlerOptions): Promise<DescribeADAssessmentCommandOutput>;
223
+ describeADAssessment(args: DescribeADAssessmentCommandInput, cb: (err: any, data?: DescribeADAssessmentCommandOutput) => void): void;
224
+ describeADAssessment(args: DescribeADAssessmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeADAssessmentCommandOutput) => void): void;
200
225
  /**
201
226
  * @see {@link DescribeCertificateCommand}
202
227
  */
@@ -241,6 +266,12 @@ export interface DirectoryService {
241
266
  describeEventTopics(args: DescribeEventTopicsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventTopicsCommandOutput>;
242
267
  describeEventTopics(args: DescribeEventTopicsCommandInput, cb: (err: any, data?: DescribeEventTopicsCommandOutput) => void): void;
243
268
  describeEventTopics(args: DescribeEventTopicsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventTopicsCommandOutput) => void): void;
269
+ /**
270
+ * @see {@link DescribeHybridADUpdateCommand}
271
+ */
272
+ describeHybridADUpdate(args: DescribeHybridADUpdateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHybridADUpdateCommandOutput>;
273
+ describeHybridADUpdate(args: DescribeHybridADUpdateCommandInput, cb: (err: any, data?: DescribeHybridADUpdateCommandOutput) => void): void;
274
+ describeHybridADUpdate(args: DescribeHybridADUpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHybridADUpdateCommandOutput) => void): void;
244
275
  /**
245
276
  * @see {@link DescribeLDAPSSettingsCommand}
246
277
  */
@@ -358,6 +389,13 @@ export interface DirectoryService {
358
389
  getSnapshotLimits(args: GetSnapshotLimitsCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotLimitsCommandOutput>;
359
390
  getSnapshotLimits(args: GetSnapshotLimitsCommandInput, cb: (err: any, data?: GetSnapshotLimitsCommandOutput) => void): void;
360
391
  getSnapshotLimits(args: GetSnapshotLimitsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSnapshotLimitsCommandOutput) => void): void;
392
+ /**
393
+ * @see {@link ListADAssessmentsCommand}
394
+ */
395
+ listADAssessments(): Promise<ListADAssessmentsCommandOutput>;
396
+ listADAssessments(args: ListADAssessmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListADAssessmentsCommandOutput>;
397
+ listADAssessments(args: ListADAssessmentsCommandInput, cb: (err: any, data?: ListADAssessmentsCommandOutput) => void): void;
398
+ listADAssessments(args: ListADAssessmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListADAssessmentsCommandOutput) => void): void;
361
399
  /**
362
400
  * @see {@link ListCertificatesCommand}
363
401
  */
@@ -443,6 +481,13 @@ export interface DirectoryService {
443
481
  shareDirectory(args: ShareDirectoryCommandInput, options?: __HttpHandlerOptions): Promise<ShareDirectoryCommandOutput>;
444
482
  shareDirectory(args: ShareDirectoryCommandInput, cb: (err: any, data?: ShareDirectoryCommandOutput) => void): void;
445
483
  shareDirectory(args: ShareDirectoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ShareDirectoryCommandOutput) => void): void;
484
+ /**
485
+ * @see {@link StartADAssessmentCommand}
486
+ */
487
+ startADAssessment(): Promise<StartADAssessmentCommandOutput>;
488
+ startADAssessment(args: StartADAssessmentCommandInput, options?: __HttpHandlerOptions): Promise<StartADAssessmentCommandOutput>;
489
+ startADAssessment(args: StartADAssessmentCommandInput, cb: (err: any, data?: StartADAssessmentCommandOutput) => void): void;
490
+ startADAssessment(args: StartADAssessmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartADAssessmentCommandOutput) => void): void;
446
491
  /**
447
492
  * @see {@link StartSchemaExtensionCommand}
448
493
  */
@@ -467,6 +512,12 @@ export interface DirectoryService {
467
512
  updateDirectorySetup(args: UpdateDirectorySetupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDirectorySetupCommandOutput>;
468
513
  updateDirectorySetup(args: UpdateDirectorySetupCommandInput, cb: (err: any, data?: UpdateDirectorySetupCommandOutput) => void): void;
469
514
  updateDirectorySetup(args: UpdateDirectorySetupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDirectorySetupCommandOutput) => void): void;
515
+ /**
516
+ * @see {@link UpdateHybridADCommand}
517
+ */
518
+ updateHybridAD(args: UpdateHybridADCommandInput, options?: __HttpHandlerOptions): Promise<UpdateHybridADCommandOutput>;
519
+ updateHybridAD(args: UpdateHybridADCommandInput, cb: (err: any, data?: UpdateHybridADCommandOutput) => void): void;
520
+ updateHybridAD(args: UpdateHybridADCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateHybridADCommandOutput) => void): void;
470
521
  /**
471
522
  * @see {@link UpdateNumberOfDomainControllersCommand}
472
523
  */