@aws-sdk/client-directory-service 3.185.0 → 3.188.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 (157) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/DirectoryService.js +30 -0
  3. package/dist-cjs/commands/DescribeUpdateDirectoryCommand.js +36 -0
  4. package/dist-cjs/commands/UpdateDirectorySetupCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +63 -5
  7. package/dist-cjs/pagination/DescribeClientAuthenticationSettingsPaginator.js +36 -0
  8. package/dist-cjs/pagination/DescribeDirectoriesPaginator.js +36 -0
  9. package/dist-cjs/pagination/DescribeLDAPSSettingsPaginator.js +36 -0
  10. package/dist-cjs/pagination/DescribeRegionsPaginator.js +35 -0
  11. package/dist-cjs/pagination/DescribeSharedDirectoriesPaginator.js +36 -0
  12. package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
  13. package/dist-cjs/pagination/DescribeTrustsPaginator.js +36 -0
  14. package/dist-cjs/pagination/DescribeUpdateDirectoryPaginator.js +35 -0
  15. package/dist-cjs/pagination/ListCertificatesPaginator.js +36 -0
  16. package/dist-cjs/pagination/ListIpRoutesPaginator.js +36 -0
  17. package/dist-cjs/pagination/ListLogSubscriptionsPaginator.js +36 -0
  18. package/dist-cjs/pagination/ListSchemaExtensionsPaginator.js +36 -0
  19. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +36 -0
  20. package/dist-cjs/pagination/index.js +13 -0
  21. package/dist-cjs/protocols/Aws_json1_1.js +217 -3
  22. package/dist-es/DirectoryService.js +291 -268
  23. package/dist-es/DirectoryServiceClient.js +22 -28
  24. package/dist-es/commands/AcceptSharedDirectoryCommand.js +21 -28
  25. package/dist-es/commands/AddIpRoutesCommand.js +21 -28
  26. package/dist-es/commands/AddRegionCommand.js +21 -28
  27. package/dist-es/commands/AddTagsToResourceCommand.js +21 -28
  28. package/dist-es/commands/CancelSchemaExtensionCommand.js +21 -28
  29. package/dist-es/commands/ConnectDirectoryCommand.js +21 -28
  30. package/dist-es/commands/CreateAliasCommand.js +21 -28
  31. package/dist-es/commands/CreateComputerCommand.js +21 -28
  32. package/dist-es/commands/CreateConditionalForwarderCommand.js +21 -28
  33. package/dist-es/commands/CreateDirectoryCommand.js +21 -28
  34. package/dist-es/commands/CreateLogSubscriptionCommand.js +21 -28
  35. package/dist-es/commands/CreateMicrosoftADCommand.js +21 -28
  36. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  37. package/dist-es/commands/CreateTrustCommand.js +21 -28
  38. package/dist-es/commands/DeleteConditionalForwarderCommand.js +21 -28
  39. package/dist-es/commands/DeleteDirectoryCommand.js +21 -28
  40. package/dist-es/commands/DeleteLogSubscriptionCommand.js +21 -28
  41. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  42. package/dist-es/commands/DeleteTrustCommand.js +21 -28
  43. package/dist-es/commands/DeregisterCertificateCommand.js +21 -28
  44. package/dist-es/commands/DeregisterEventTopicCommand.js +21 -28
  45. package/dist-es/commands/DescribeCertificateCommand.js +21 -28
  46. package/dist-es/commands/DescribeClientAuthenticationSettingsCommand.js +21 -28
  47. package/dist-es/commands/DescribeConditionalForwardersCommand.js +21 -28
  48. package/dist-es/commands/DescribeDirectoriesCommand.js +21 -28
  49. package/dist-es/commands/DescribeDomainControllersCommand.js +21 -28
  50. package/dist-es/commands/DescribeEventTopicsCommand.js +21 -28
  51. package/dist-es/commands/DescribeLDAPSSettingsCommand.js +21 -28
  52. package/dist-es/commands/DescribeRegionsCommand.js +21 -28
  53. package/dist-es/commands/DescribeSettingsCommand.js +21 -28
  54. package/dist-es/commands/DescribeSharedDirectoriesCommand.js +21 -28
  55. package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
  56. package/dist-es/commands/DescribeTrustsCommand.js +21 -28
  57. package/dist-es/commands/DescribeUpdateDirectoryCommand.js +32 -0
  58. package/dist-es/commands/DisableClientAuthenticationCommand.js +21 -28
  59. package/dist-es/commands/DisableLDAPSCommand.js +21 -28
  60. package/dist-es/commands/DisableRadiusCommand.js +21 -28
  61. package/dist-es/commands/DisableSsoCommand.js +21 -28
  62. package/dist-es/commands/EnableClientAuthenticationCommand.js +21 -28
  63. package/dist-es/commands/EnableLDAPSCommand.js +21 -28
  64. package/dist-es/commands/EnableRadiusCommand.js +21 -28
  65. package/dist-es/commands/EnableSsoCommand.js +21 -28
  66. package/dist-es/commands/GetDirectoryLimitsCommand.js +21 -28
  67. package/dist-es/commands/GetSnapshotLimitsCommand.js +21 -28
  68. package/dist-es/commands/ListCertificatesCommand.js +21 -28
  69. package/dist-es/commands/ListIpRoutesCommand.js +21 -28
  70. package/dist-es/commands/ListLogSubscriptionsCommand.js +21 -28
  71. package/dist-es/commands/ListSchemaExtensionsCommand.js +21 -28
  72. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  73. package/dist-es/commands/RegisterCertificateCommand.js +21 -28
  74. package/dist-es/commands/RegisterEventTopicCommand.js +21 -28
  75. package/dist-es/commands/RejectSharedDirectoryCommand.js +21 -28
  76. package/dist-es/commands/RemoveIpRoutesCommand.js +21 -28
  77. package/dist-es/commands/RemoveRegionCommand.js +21 -28
  78. package/dist-es/commands/RemoveTagsFromResourceCommand.js +21 -28
  79. package/dist-es/commands/ResetUserPasswordCommand.js +21 -28
  80. package/dist-es/commands/RestoreFromSnapshotCommand.js +21 -28
  81. package/dist-es/commands/ShareDirectoryCommand.js +21 -28
  82. package/dist-es/commands/StartSchemaExtensionCommand.js +21 -28
  83. package/dist-es/commands/UnshareDirectoryCommand.js +21 -28
  84. package/dist-es/commands/UpdateConditionalForwarderCommand.js +21 -28
  85. package/dist-es/commands/UpdateDirectorySetupCommand.js +32 -0
  86. package/dist-es/commands/UpdateNumberOfDomainControllersCommand.js +21 -28
  87. package/dist-es/commands/UpdateRadiusCommand.js +21 -28
  88. package/dist-es/commands/UpdateSettingsCommand.js +21 -28
  89. package/dist-es/commands/UpdateTrustCommand.js +21 -28
  90. package/dist-es/commands/VerifyTrustCommand.js +21 -28
  91. package/dist-es/commands/index.js +2 -0
  92. package/dist-es/endpoints.js +8 -8
  93. package/dist-es/models/DirectoryServiceServiceException.js +5 -10
  94. package/dist-es/models/models_0.js +1069 -674
  95. package/dist-es/pagination/DescribeClientAuthenticationSettingsPaginator.js +32 -0
  96. package/dist-es/pagination/DescribeDirectoriesPaginator.js +32 -0
  97. package/dist-es/pagination/DescribeDomainControllersPaginator.js +25 -68
  98. package/dist-es/pagination/DescribeLDAPSSettingsPaginator.js +32 -0
  99. package/dist-es/pagination/DescribeRegionsPaginator.js +31 -0
  100. package/dist-es/pagination/DescribeSharedDirectoriesPaginator.js +32 -0
  101. package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
  102. package/dist-es/pagination/DescribeTrustsPaginator.js +32 -0
  103. package/dist-es/pagination/DescribeUpdateDirectoryPaginator.js +31 -0
  104. package/dist-es/pagination/ListCertificatesPaginator.js +32 -0
  105. package/dist-es/pagination/ListIpRoutesPaginator.js +32 -0
  106. package/dist-es/pagination/ListLogSubscriptionsPaginator.js +32 -0
  107. package/dist-es/pagination/ListSchemaExtensionsPaginator.js +32 -0
  108. package/dist-es/pagination/ListTagsForResourcePaginator.js +32 -0
  109. package/dist-es/pagination/index.js +13 -0
  110. package/dist-es/protocols/Aws_json1_1.js +4917 -6048
  111. package/dist-es/runtimeConfig.browser.js +26 -12
  112. package/dist-es/runtimeConfig.js +30 -12
  113. package/dist-es/runtimeConfig.native.js +8 -5
  114. package/dist-es/runtimeConfig.shared.js +8 -11
  115. package/dist-types/DirectoryService.d.ts +18 -0
  116. package/dist-types/DirectoryServiceClient.d.ts +4 -2
  117. package/dist-types/commands/DescribeUpdateDirectoryCommand.d.ts +37 -0
  118. package/dist-types/commands/UpdateDirectorySetupCommand.d.ts +37 -0
  119. package/dist-types/commands/index.d.ts +2 -0
  120. package/dist-types/models/models_0.d.ts +214 -0
  121. package/dist-types/pagination/DescribeClientAuthenticationSettingsPaginator.d.ts +4 -0
  122. package/dist-types/pagination/DescribeDirectoriesPaginator.d.ts +4 -0
  123. package/dist-types/pagination/DescribeLDAPSSettingsPaginator.d.ts +4 -0
  124. package/dist-types/pagination/DescribeRegionsPaginator.d.ts +4 -0
  125. package/dist-types/pagination/DescribeSharedDirectoriesPaginator.d.ts +4 -0
  126. package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  127. package/dist-types/pagination/DescribeTrustsPaginator.d.ts +4 -0
  128. package/dist-types/pagination/DescribeUpdateDirectoryPaginator.d.ts +4 -0
  129. package/dist-types/pagination/ListCertificatesPaginator.d.ts +4 -0
  130. package/dist-types/pagination/ListIpRoutesPaginator.d.ts +4 -0
  131. package/dist-types/pagination/ListLogSubscriptionsPaginator.d.ts +4 -0
  132. package/dist-types/pagination/ListSchemaExtensionsPaginator.d.ts +4 -0
  133. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +4 -0
  134. package/dist-types/pagination/index.d.ts +13 -0
  135. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  136. package/dist-types/ts3.4/DirectoryService.d.ts +34 -0
  137. package/dist-types/ts3.4/DirectoryServiceClient.d.ts +12 -0
  138. package/dist-types/ts3.4/commands/DescribeUpdateDirectoryCommand.d.ts +39 -0
  139. package/dist-types/ts3.4/commands/UpdateDirectorySetupCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  141. package/dist-types/ts3.4/models/models_0.d.ts +77 -0
  142. package/dist-types/ts3.4/pagination/DescribeClientAuthenticationSettingsPaginator.d.ts +11 -0
  143. package/dist-types/ts3.4/pagination/DescribeDirectoriesPaginator.d.ts +11 -0
  144. package/dist-types/ts3.4/pagination/DescribeLDAPSSettingsPaginator.d.ts +11 -0
  145. package/dist-types/ts3.4/pagination/DescribeRegionsPaginator.d.ts +11 -0
  146. package/dist-types/ts3.4/pagination/DescribeSharedDirectoriesPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/DescribeTrustsPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/DescribeUpdateDirectoryPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +11 -0
  151. package/dist-types/ts3.4/pagination/ListIpRoutesPaginator.d.ts +11 -0
  152. package/dist-types/ts3.4/pagination/ListLogSubscriptionsPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/ListSchemaExtensionsPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  156. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  157. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2015-04-16",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Directory Service",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2015-04-16",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "Directory Service",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -32,6 +32,7 @@ import { DescribeSettingsCommandInput, DescribeSettingsCommandOutput } from "./c
32
32
  import { DescribeSharedDirectoriesCommandInput, DescribeSharedDirectoriesCommandOutput } from "./commands/DescribeSharedDirectoriesCommand";
33
33
  import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "./commands/DescribeSnapshotsCommand";
34
34
  import { DescribeTrustsCommandInput, DescribeTrustsCommandOutput } from "./commands/DescribeTrustsCommand";
35
+ import { DescribeUpdateDirectoryCommandInput, DescribeUpdateDirectoryCommandOutput } from "./commands/DescribeUpdateDirectoryCommand";
35
36
  import { DisableClientAuthenticationCommandInput, DisableClientAuthenticationCommandOutput } from "./commands/DisableClientAuthenticationCommand";
36
37
  import { DisableLDAPSCommandInput, DisableLDAPSCommandOutput } from "./commands/DisableLDAPSCommand";
37
38
  import { DisableRadiusCommandInput, DisableRadiusCommandOutput } from "./commands/DisableRadiusCommand";
@@ -59,6 +60,7 @@ import { ShareDirectoryCommandInput, ShareDirectoryCommandOutput } from "./comma
59
60
  import { StartSchemaExtensionCommandInput, StartSchemaExtensionCommandOutput } from "./commands/StartSchemaExtensionCommand";
60
61
  import { UnshareDirectoryCommandInput, UnshareDirectoryCommandOutput } from "./commands/UnshareDirectoryCommand";
61
62
  import { UpdateConditionalForwarderCommandInput, UpdateConditionalForwarderCommandOutput } from "./commands/UpdateConditionalForwarderCommand";
63
+ import { UpdateDirectorySetupCommandInput, UpdateDirectorySetupCommandOutput } from "./commands/UpdateDirectorySetupCommand";
62
64
  import { UpdateNumberOfDomainControllersCommandInput, UpdateNumberOfDomainControllersCommandOutput } from "./commands/UpdateNumberOfDomainControllersCommand";
63
65
  import { UpdateRadiusCommandInput, UpdateRadiusCommandOutput } from "./commands/UpdateRadiusCommand";
64
66
  import { UpdateSettingsCommandInput, UpdateSettingsCommandOutput } from "./commands/UpdateSettingsCommand";
@@ -353,6 +355,14 @@ export declare class DirectoryService extends DirectoryServiceClient {
353
355
  describeTrusts(args: DescribeTrustsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTrustsCommandOutput>;
354
356
  describeTrusts(args: DescribeTrustsCommandInput, cb: (err: any, data?: DescribeTrustsCommandOutput) => void): void;
355
357
  describeTrusts(args: DescribeTrustsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTrustsCommandOutput) => void): void;
358
+ /**
359
+ * <p>
360
+ * Describes the updates of a directory for a particular update type.
361
+ * </p>
362
+ */
363
+ describeUpdateDirectory(args: DescribeUpdateDirectoryCommandInput, options?: __HttpHandlerOptions): Promise<DescribeUpdateDirectoryCommandOutput>;
364
+ describeUpdateDirectory(args: DescribeUpdateDirectoryCommandInput, cb: (err: any, data?: DescribeUpdateDirectoryCommandOutput) => void): void;
365
+ describeUpdateDirectory(args: DescribeUpdateDirectoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeUpdateDirectoryCommandOutput) => void): void;
356
366
  /**
357
367
  * <p>Disables alternative client authentication methods for the specified directory. </p>
358
368
  */
@@ -560,6 +570,14 @@ export declare class DirectoryService extends DirectoryServiceClient {
560
570
  updateConditionalForwarder(args: UpdateConditionalForwarderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConditionalForwarderCommandOutput>;
561
571
  updateConditionalForwarder(args: UpdateConditionalForwarderCommandInput, cb: (err: any, data?: UpdateConditionalForwarderCommandOutput) => void): void;
562
572
  updateConditionalForwarder(args: UpdateConditionalForwarderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConditionalForwarderCommandOutput) => void): void;
573
+ /**
574
+ * <p>
575
+ * Updates the directory for a particular update type.
576
+ * </p>
577
+ */
578
+ updateDirectorySetup(args: UpdateDirectorySetupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDirectorySetupCommandOutput>;
579
+ updateDirectorySetup(args: UpdateDirectorySetupCommandInput, cb: (err: any, data?: UpdateDirectorySetupCommandOutput) => void): void;
580
+ updateDirectorySetup(args: UpdateDirectorySetupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDirectorySetupCommandOutput) => void): void;
563
581
  /**
564
582
  * <p>Adds or removes domain controllers to or from the directory. Based on the difference
565
583
  * between current value and new value (provided through this API call), domain controllers will
@@ -39,6 +39,7 @@ import { DescribeSettingsCommandInput, DescribeSettingsCommandOutput } from "./c
39
39
  import { DescribeSharedDirectoriesCommandInput, DescribeSharedDirectoriesCommandOutput } from "./commands/DescribeSharedDirectoriesCommand";
40
40
  import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "./commands/DescribeSnapshotsCommand";
41
41
  import { DescribeTrustsCommandInput, DescribeTrustsCommandOutput } from "./commands/DescribeTrustsCommand";
42
+ import { DescribeUpdateDirectoryCommandInput, DescribeUpdateDirectoryCommandOutput } from "./commands/DescribeUpdateDirectoryCommand";
42
43
  import { DisableClientAuthenticationCommandInput, DisableClientAuthenticationCommandOutput } from "./commands/DisableClientAuthenticationCommand";
43
44
  import { DisableLDAPSCommandInput, DisableLDAPSCommandOutput } from "./commands/DisableLDAPSCommand";
44
45
  import { DisableRadiusCommandInput, DisableRadiusCommandOutput } from "./commands/DisableRadiusCommand";
@@ -66,13 +67,14 @@ import { ShareDirectoryCommandInput, ShareDirectoryCommandOutput } from "./comma
66
67
  import { StartSchemaExtensionCommandInput, StartSchemaExtensionCommandOutput } from "./commands/StartSchemaExtensionCommand";
67
68
  import { UnshareDirectoryCommandInput, UnshareDirectoryCommandOutput } from "./commands/UnshareDirectoryCommand";
68
69
  import { UpdateConditionalForwarderCommandInput, UpdateConditionalForwarderCommandOutput } from "./commands/UpdateConditionalForwarderCommand";
70
+ import { UpdateDirectorySetupCommandInput, UpdateDirectorySetupCommandOutput } from "./commands/UpdateDirectorySetupCommand";
69
71
  import { UpdateNumberOfDomainControllersCommandInput, UpdateNumberOfDomainControllersCommandOutput } from "./commands/UpdateNumberOfDomainControllersCommand";
70
72
  import { UpdateRadiusCommandInput, UpdateRadiusCommandOutput } from "./commands/UpdateRadiusCommand";
71
73
  import { UpdateSettingsCommandInput, UpdateSettingsCommandOutput } from "./commands/UpdateSettingsCommand";
72
74
  import { UpdateTrustCommandInput, UpdateTrustCommandOutput } from "./commands/UpdateTrustCommand";
73
75
  import { VerifyTrustCommandInput, VerifyTrustCommandOutput } from "./commands/VerifyTrustCommand";
74
- export declare type ServiceInputTypes = AcceptSharedDirectoryCommandInput | AddIpRoutesCommandInput | AddRegionCommandInput | AddTagsToResourceCommandInput | CancelSchemaExtensionCommandInput | ConnectDirectoryCommandInput | CreateAliasCommandInput | CreateComputerCommandInput | CreateConditionalForwarderCommandInput | CreateDirectoryCommandInput | CreateLogSubscriptionCommandInput | CreateMicrosoftADCommandInput | CreateSnapshotCommandInput | CreateTrustCommandInput | DeleteConditionalForwarderCommandInput | DeleteDirectoryCommandInput | DeleteLogSubscriptionCommandInput | DeleteSnapshotCommandInput | DeleteTrustCommandInput | DeregisterCertificateCommandInput | DeregisterEventTopicCommandInput | DescribeCertificateCommandInput | DescribeClientAuthenticationSettingsCommandInput | DescribeConditionalForwardersCommandInput | DescribeDirectoriesCommandInput | DescribeDomainControllersCommandInput | DescribeEventTopicsCommandInput | DescribeLDAPSSettingsCommandInput | DescribeRegionsCommandInput | DescribeSettingsCommandInput | DescribeSharedDirectoriesCommandInput | DescribeSnapshotsCommandInput | DescribeTrustsCommandInput | DisableClientAuthenticationCommandInput | DisableLDAPSCommandInput | DisableRadiusCommandInput | DisableSsoCommandInput | EnableClientAuthenticationCommandInput | EnableLDAPSCommandInput | EnableRadiusCommandInput | EnableSsoCommandInput | GetDirectoryLimitsCommandInput | GetSnapshotLimitsCommandInput | ListCertificatesCommandInput | ListIpRoutesCommandInput | ListLogSubscriptionsCommandInput | ListSchemaExtensionsCommandInput | ListTagsForResourceCommandInput | RegisterCertificateCommandInput | RegisterEventTopicCommandInput | RejectSharedDirectoryCommandInput | RemoveIpRoutesCommandInput | RemoveRegionCommandInput | RemoveTagsFromResourceCommandInput | ResetUserPasswordCommandInput | RestoreFromSnapshotCommandInput | ShareDirectoryCommandInput | StartSchemaExtensionCommandInput | UnshareDirectoryCommandInput | UpdateConditionalForwarderCommandInput | UpdateNumberOfDomainControllersCommandInput | UpdateRadiusCommandInput | UpdateSettingsCommandInput | UpdateTrustCommandInput | VerifyTrustCommandInput;
75
- export declare type ServiceOutputTypes = AcceptSharedDirectoryCommandOutput | AddIpRoutesCommandOutput | AddRegionCommandOutput | AddTagsToResourceCommandOutput | CancelSchemaExtensionCommandOutput | ConnectDirectoryCommandOutput | CreateAliasCommandOutput | CreateComputerCommandOutput | CreateConditionalForwarderCommandOutput | CreateDirectoryCommandOutput | CreateLogSubscriptionCommandOutput | CreateMicrosoftADCommandOutput | CreateSnapshotCommandOutput | CreateTrustCommandOutput | DeleteConditionalForwarderCommandOutput | DeleteDirectoryCommandOutput | DeleteLogSubscriptionCommandOutput | DeleteSnapshotCommandOutput | DeleteTrustCommandOutput | DeregisterCertificateCommandOutput | DeregisterEventTopicCommandOutput | DescribeCertificateCommandOutput | DescribeClientAuthenticationSettingsCommandOutput | DescribeConditionalForwardersCommandOutput | DescribeDirectoriesCommandOutput | DescribeDomainControllersCommandOutput | DescribeEventTopicsCommandOutput | DescribeLDAPSSettingsCommandOutput | DescribeRegionsCommandOutput | DescribeSettingsCommandOutput | DescribeSharedDirectoriesCommandOutput | DescribeSnapshotsCommandOutput | DescribeTrustsCommandOutput | DisableClientAuthenticationCommandOutput | DisableLDAPSCommandOutput | DisableRadiusCommandOutput | DisableSsoCommandOutput | EnableClientAuthenticationCommandOutput | EnableLDAPSCommandOutput | EnableRadiusCommandOutput | EnableSsoCommandOutput | GetDirectoryLimitsCommandOutput | GetSnapshotLimitsCommandOutput | ListCertificatesCommandOutput | ListIpRoutesCommandOutput | ListLogSubscriptionsCommandOutput | ListSchemaExtensionsCommandOutput | ListTagsForResourceCommandOutput | RegisterCertificateCommandOutput | RegisterEventTopicCommandOutput | RejectSharedDirectoryCommandOutput | RemoveIpRoutesCommandOutput | RemoveRegionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetUserPasswordCommandOutput | RestoreFromSnapshotCommandOutput | ShareDirectoryCommandOutput | StartSchemaExtensionCommandOutput | UnshareDirectoryCommandOutput | UpdateConditionalForwarderCommandOutput | UpdateNumberOfDomainControllersCommandOutput | UpdateRadiusCommandOutput | UpdateSettingsCommandOutput | UpdateTrustCommandOutput | VerifyTrustCommandOutput;
76
+ export declare type ServiceInputTypes = AcceptSharedDirectoryCommandInput | AddIpRoutesCommandInput | AddRegionCommandInput | AddTagsToResourceCommandInput | CancelSchemaExtensionCommandInput | ConnectDirectoryCommandInput | CreateAliasCommandInput | CreateComputerCommandInput | CreateConditionalForwarderCommandInput | CreateDirectoryCommandInput | CreateLogSubscriptionCommandInput | CreateMicrosoftADCommandInput | CreateSnapshotCommandInput | CreateTrustCommandInput | DeleteConditionalForwarderCommandInput | DeleteDirectoryCommandInput | DeleteLogSubscriptionCommandInput | DeleteSnapshotCommandInput | DeleteTrustCommandInput | DeregisterCertificateCommandInput | DeregisterEventTopicCommandInput | DescribeCertificateCommandInput | DescribeClientAuthenticationSettingsCommandInput | DescribeConditionalForwardersCommandInput | DescribeDirectoriesCommandInput | DescribeDomainControllersCommandInput | DescribeEventTopicsCommandInput | DescribeLDAPSSettingsCommandInput | DescribeRegionsCommandInput | DescribeSettingsCommandInput | DescribeSharedDirectoriesCommandInput | DescribeSnapshotsCommandInput | DescribeTrustsCommandInput | DescribeUpdateDirectoryCommandInput | DisableClientAuthenticationCommandInput | DisableLDAPSCommandInput | DisableRadiusCommandInput | DisableSsoCommandInput | EnableClientAuthenticationCommandInput | EnableLDAPSCommandInput | EnableRadiusCommandInput | EnableSsoCommandInput | GetDirectoryLimitsCommandInput | GetSnapshotLimitsCommandInput | ListCertificatesCommandInput | ListIpRoutesCommandInput | ListLogSubscriptionsCommandInput | ListSchemaExtensionsCommandInput | ListTagsForResourceCommandInput | RegisterCertificateCommandInput | RegisterEventTopicCommandInput | RejectSharedDirectoryCommandInput | RemoveIpRoutesCommandInput | RemoveRegionCommandInput | RemoveTagsFromResourceCommandInput | ResetUserPasswordCommandInput | RestoreFromSnapshotCommandInput | ShareDirectoryCommandInput | StartSchemaExtensionCommandInput | UnshareDirectoryCommandInput | UpdateConditionalForwarderCommandInput | UpdateDirectorySetupCommandInput | UpdateNumberOfDomainControllersCommandInput | UpdateRadiusCommandInput | UpdateSettingsCommandInput | UpdateTrustCommandInput | VerifyTrustCommandInput;
77
+ export declare type ServiceOutputTypes = AcceptSharedDirectoryCommandOutput | AddIpRoutesCommandOutput | AddRegionCommandOutput | AddTagsToResourceCommandOutput | CancelSchemaExtensionCommandOutput | ConnectDirectoryCommandOutput | CreateAliasCommandOutput | CreateComputerCommandOutput | CreateConditionalForwarderCommandOutput | CreateDirectoryCommandOutput | CreateLogSubscriptionCommandOutput | CreateMicrosoftADCommandOutput | CreateSnapshotCommandOutput | CreateTrustCommandOutput | DeleteConditionalForwarderCommandOutput | DeleteDirectoryCommandOutput | DeleteLogSubscriptionCommandOutput | DeleteSnapshotCommandOutput | DeleteTrustCommandOutput | DeregisterCertificateCommandOutput | DeregisterEventTopicCommandOutput | DescribeCertificateCommandOutput | DescribeClientAuthenticationSettingsCommandOutput | DescribeConditionalForwardersCommandOutput | DescribeDirectoriesCommandOutput | DescribeDomainControllersCommandOutput | DescribeEventTopicsCommandOutput | DescribeLDAPSSettingsCommandOutput | DescribeRegionsCommandOutput | DescribeSettingsCommandOutput | DescribeSharedDirectoriesCommandOutput | DescribeSnapshotsCommandOutput | DescribeTrustsCommandOutput | DescribeUpdateDirectoryCommandOutput | DisableClientAuthenticationCommandOutput | DisableLDAPSCommandOutput | DisableRadiusCommandOutput | DisableSsoCommandOutput | EnableClientAuthenticationCommandOutput | EnableLDAPSCommandOutput | EnableRadiusCommandOutput | EnableSsoCommandOutput | GetDirectoryLimitsCommandOutput | GetSnapshotLimitsCommandOutput | ListCertificatesCommandOutput | ListIpRoutesCommandOutput | ListLogSubscriptionsCommandOutput | ListSchemaExtensionsCommandOutput | ListTagsForResourceCommandOutput | RegisterCertificateCommandOutput | RegisterEventTopicCommandOutput | RejectSharedDirectoryCommandOutput | RemoveIpRoutesCommandOutput | RemoveRegionCommandOutput | RemoveTagsFromResourceCommandOutput | ResetUserPasswordCommandOutput | RestoreFromSnapshotCommandOutput | ShareDirectoryCommandOutput | StartSchemaExtensionCommandOutput | UnshareDirectoryCommandOutput | UpdateConditionalForwarderCommandOutput | UpdateDirectorySetupCommandOutput | UpdateNumberOfDomainControllersCommandOutput | UpdateRadiusCommandOutput | UpdateSettingsCommandOutput | UpdateTrustCommandOutput | VerifyTrustCommandOutput;
76
78
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
77
79
  /**
78
80
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DirectoryServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceClient";
4
+ import { DescribeUpdateDirectoryRequest, DescribeUpdateDirectoryResult } from "../models/models_0";
5
+ export interface DescribeUpdateDirectoryCommandInput extends DescribeUpdateDirectoryRequest {
6
+ }
7
+ export interface DescribeUpdateDirectoryCommandOutput extends DescribeUpdateDirectoryResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>
11
+ * Describes the updates of a directory for a particular update type.
12
+ * </p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { DirectoryServiceClient, DescribeUpdateDirectoryCommand } from "@aws-sdk/client-directory-service"; // ES Modules import
17
+ * // const { DirectoryServiceClient, DescribeUpdateDirectoryCommand } = require("@aws-sdk/client-directory-service"); // CommonJS import
18
+ * const client = new DirectoryServiceClient(config);
19
+ * const command = new DescribeUpdateDirectoryCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link DescribeUpdateDirectoryCommandInput} for command's `input` shape.
24
+ * @see {@link DescribeUpdateDirectoryCommandOutput} for command's `response` shape.
25
+ * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class DescribeUpdateDirectoryCommand extends $Command<DescribeUpdateDirectoryCommandInput, DescribeUpdateDirectoryCommandOutput, DirectoryServiceClientResolvedConfig> {
29
+ readonly input: DescribeUpdateDirectoryCommandInput;
30
+ constructor(input: DescribeUpdateDirectoryCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeUpdateDirectoryCommandInput, DescribeUpdateDirectoryCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DirectoryServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceClient";
4
+ import { UpdateDirectorySetupRequest, UpdateDirectorySetupResult } from "../models/models_0";
5
+ export interface UpdateDirectorySetupCommandInput extends UpdateDirectorySetupRequest {
6
+ }
7
+ export interface UpdateDirectorySetupCommandOutput extends UpdateDirectorySetupResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>
11
+ * Updates the directory for a particular update type.
12
+ * </p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { DirectoryServiceClient, UpdateDirectorySetupCommand } from "@aws-sdk/client-directory-service"; // ES Modules import
17
+ * // const { DirectoryServiceClient, UpdateDirectorySetupCommand } = require("@aws-sdk/client-directory-service"); // CommonJS import
18
+ * const client = new DirectoryServiceClient(config);
19
+ * const command = new UpdateDirectorySetupCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link UpdateDirectorySetupCommandInput} for command's `input` shape.
24
+ * @see {@link UpdateDirectorySetupCommandOutput} for command's `response` shape.
25
+ * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class UpdateDirectorySetupCommand extends $Command<UpdateDirectorySetupCommandInput, UpdateDirectorySetupCommandOutput, DirectoryServiceClientResolvedConfig> {
29
+ readonly input: UpdateDirectorySetupCommandInput;
30
+ constructor(input: UpdateDirectorySetupCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DirectoryServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateDirectorySetupCommandInput, UpdateDirectorySetupCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -31,6 +31,7 @@ export * from "./DescribeSettingsCommand";
31
31
  export * from "./DescribeSharedDirectoriesCommand";
32
32
  export * from "./DescribeSnapshotsCommand";
33
33
  export * from "./DescribeTrustsCommand";
34
+ export * from "./DescribeUpdateDirectoryCommand";
34
35
  export * from "./DisableClientAuthenticationCommand";
35
36
  export * from "./DisableLDAPSCommand";
36
37
  export * from "./DisableRadiusCommand";
@@ -58,6 +59,7 @@ export * from "./ShareDirectoryCommand";
58
59
  export * from "./StartSchemaExtensionCommand";
59
60
  export * from "./UnshareDirectoryCommand";
60
61
  export * from "./UpdateConditionalForwarderCommand";
62
+ export * from "./UpdateDirectorySetupCommand";
61
63
  export * from "./UpdateNumberOfDomainControllersCommand";
62
64
  export * from "./UpdateRadiusCommand";
63
65
  export * from "./UpdateSettingsCommand";
@@ -1476,6 +1476,10 @@ export interface DirectoryConnectSettingsDescription {
1476
1476
  */
1477
1477
  ConnectIps?: string[];
1478
1478
  }
1479
+ export declare enum OSVersion {
1480
+ VERSION_2012 = "SERVER_2012",
1481
+ VERSION_2019 = "SERVER_2019"
1482
+ }
1479
1483
  export declare enum RadiusAuthenticationProtocol {
1480
1484
  CHAP = "CHAP",
1481
1485
  MSCHAPV1 = "MS-CHAPv1",
@@ -1737,6 +1741,10 @@ export interface DirectoryDescription {
1737
1741
  * <p>Lists the Regions where the directory has replicated.</p>
1738
1742
  */
1739
1743
  RegionsInfo?: RegionsInfo;
1744
+ /**
1745
+ * <p>The operating system (OS) version of the directory.</p>
1746
+ */
1747
+ OsVersion?: OSVersion | string;
1740
1748
  }
1741
1749
  /**
1742
1750
  * <p>Contains the results of the <a>DescribeDirectories</a> operation.</p>
@@ -2359,6 +2367,156 @@ export interface DescribeTrustsResult {
2359
2367
  */
2360
2368
  NextToken?: string;
2361
2369
  }
2370
+ export declare enum UpdateType {
2371
+ OS = "OS"
2372
+ }
2373
+ export interface DescribeUpdateDirectoryRequest {
2374
+ /**
2375
+ * <p>
2376
+ * The unique identifier of the directory.
2377
+ * </p>
2378
+ */
2379
+ DirectoryId: string | undefined;
2380
+ /**
2381
+ * <p>
2382
+ * The type of updates you want to describe for the directory.
2383
+ * </p>
2384
+ */
2385
+ UpdateType: UpdateType | string | undefined;
2386
+ /**
2387
+ * <p>
2388
+ * The name of the Region.
2389
+ * </p>
2390
+ */
2391
+ RegionName?: string;
2392
+ /**
2393
+ * <p>
2394
+ * The <code>DescribeUpdateDirectoryResult</code>. NextToken value from a previous call to <a>DescribeUpdateDirectory</a>. Pass null if this is the first call.
2395
+ * </p>
2396
+ */
2397
+ NextToken?: string;
2398
+ }
2399
+ /**
2400
+ * <p>
2401
+ * OS version that the directory needs to be updated to.
2402
+ * </p>
2403
+ */
2404
+ export interface OSUpdateSettings {
2405
+ /**
2406
+ * <p>
2407
+ * OS version that the directory needs to be updated to.
2408
+ * </p>
2409
+ */
2410
+ OSVersion?: OSVersion | string;
2411
+ }
2412
+ /**
2413
+ * <p>
2414
+ * The value for a given type of <code>UpdateSettings</code>.
2415
+ * </p>
2416
+ */
2417
+ export interface UpdateValue {
2418
+ /**
2419
+ * <p>
2420
+ * The OS update related settings.
2421
+ * </p>
2422
+ */
2423
+ OSUpdateSettings?: OSUpdateSettings;
2424
+ }
2425
+ export declare enum UpdateStatus {
2426
+ UPDATED = "Updated",
2427
+ UPDATE_FAILED = "UpdateFailed",
2428
+ UPDATING = "Updating"
2429
+ }
2430
+ /**
2431
+ * <p>
2432
+ * An entry of update information related to a requested update type.
2433
+ * </p>
2434
+ */
2435
+ export interface UpdateInfoEntry {
2436
+ /**
2437
+ * <p>
2438
+ * The name of the Region.
2439
+ * </p>
2440
+ */
2441
+ Region?: string;
2442
+ /**
2443
+ * <p>
2444
+ * The status of the update performed on the directory.
2445
+ * </p>
2446
+ */
2447
+ Status?: UpdateStatus | string;
2448
+ /**
2449
+ * <p>
2450
+ * The reason for the current status of the update type activity.
2451
+ * </p>
2452
+ */
2453
+ StatusReason?: string;
2454
+ /**
2455
+ * <p>
2456
+ * This specifies if the update was initiated by the customer or by the service team.
2457
+ * </p>
2458
+ */
2459
+ InitiatedBy?: string;
2460
+ /**
2461
+ * <p>
2462
+ * The new value of the target setting.
2463
+ * </p>
2464
+ */
2465
+ NewValue?: UpdateValue;
2466
+ /**
2467
+ * <p>
2468
+ * The old value of the target setting.
2469
+ * </p>
2470
+ */
2471
+ PreviousValue?: UpdateValue;
2472
+ /**
2473
+ * <p>
2474
+ * The start time of the <code>UpdateDirectorySetup</code> for the particular type.
2475
+ * </p>
2476
+ */
2477
+ StartTime?: Date;
2478
+ /**
2479
+ * <p>
2480
+ * The last updated date and time of a particular directory setting.
2481
+ * </p>
2482
+ */
2483
+ LastUpdatedDateTime?: Date;
2484
+ }
2485
+ export interface DescribeUpdateDirectoryResult {
2486
+ /**
2487
+ * <p>
2488
+ * The list of update activities on a directory for the requested update type.
2489
+ * </p>
2490
+ */
2491
+ UpdateActivities?: UpdateInfoEntry[];
2492
+ /**
2493
+ * <p>
2494
+ * If not null, more results are available. Pass this value for the <code>NextToken</code> parameter.
2495
+ * </p>
2496
+ */
2497
+ NextToken?: string;
2498
+ }
2499
+ /**
2500
+ * <p>
2501
+ * The directory is already updated to desired update type settings.
2502
+ * </p>
2503
+ */
2504
+ export declare class DirectoryInDesiredStateException extends __BaseException {
2505
+ readonly name: "DirectoryInDesiredStateException";
2506
+ readonly $fault: "client";
2507
+ /**
2508
+ * <p>The descriptive message for the exception.</p>
2509
+ */
2510
+ Message?: string;
2511
+ /**
2512
+ * <p>The Amazon Web Services request identifier.</p>
2513
+ */
2514
+ RequestId?: string;
2515
+ /**
2516
+ * @internal
2517
+ */
2518
+ constructor(opts: __ExceptionOptionType<DirectoryInDesiredStateException, __BaseException>);
2519
+ }
2362
2520
  /**
2363
2521
  * <p>Contains directory limit information for a Region.</p>
2364
2522
  */
@@ -3281,6 +3439,34 @@ export interface UpdateConditionalForwarderRequest {
3281
3439
  */
3282
3440
  export interface UpdateConditionalForwarderResult {
3283
3441
  }
3442
+ export interface UpdateDirectorySetupRequest {
3443
+ /**
3444
+ * <p>
3445
+ * The identifier of the directory on which you want to perform the update.
3446
+ * </p>
3447
+ */
3448
+ DirectoryId: string | undefined;
3449
+ /**
3450
+ * <p>
3451
+ * The type of update that needs to be performed on the directory. For example, OS.
3452
+ * </p>
3453
+ */
3454
+ UpdateType: UpdateType | string | undefined;
3455
+ /**
3456
+ * <p>
3457
+ * The settings for the OS update that needs to be performed on the directory.
3458
+ * </p>
3459
+ */
3460
+ OSUpdateSettings?: OSUpdateSettings;
3461
+ /**
3462
+ * <p>
3463
+ * The boolean that specifies if a snapshot for the directory needs to be taken before updating the directory.
3464
+ * </p>
3465
+ */
3466
+ CreateSnapshotBeforeUpdate?: boolean;
3467
+ }
3468
+ export interface UpdateDirectorySetupResult {
3469
+ }
3284
3470
  /**
3285
3471
  * <p>The maximum allowed number of domain controllers per directory was exceeded. The
3286
3472
  * default limit per directory is 20 domain controllers.</p>
@@ -3807,6 +3993,26 @@ export declare const TrustFilterSensitiveLog: (obj: Trust) => any;
3807
3993
  * @internal
3808
3994
  */
3809
3995
  export declare const DescribeTrustsResultFilterSensitiveLog: (obj: DescribeTrustsResult) => any;
3996
+ /**
3997
+ * @internal
3998
+ */
3999
+ export declare const DescribeUpdateDirectoryRequestFilterSensitiveLog: (obj: DescribeUpdateDirectoryRequest) => any;
4000
+ /**
4001
+ * @internal
4002
+ */
4003
+ export declare const OSUpdateSettingsFilterSensitiveLog: (obj: OSUpdateSettings) => any;
4004
+ /**
4005
+ * @internal
4006
+ */
4007
+ export declare const UpdateValueFilterSensitiveLog: (obj: UpdateValue) => any;
4008
+ /**
4009
+ * @internal
4010
+ */
4011
+ export declare const UpdateInfoEntryFilterSensitiveLog: (obj: UpdateInfoEntry) => any;
4012
+ /**
4013
+ * @internal
4014
+ */
4015
+ export declare const DescribeUpdateDirectoryResultFilterSensitiveLog: (obj: DescribeUpdateDirectoryResult) => any;
3810
4016
  /**
3811
4017
  * @internal
3812
4018
  */
@@ -4051,6 +4257,14 @@ export declare const UpdateConditionalForwarderRequestFilterSensitiveLog: (obj:
4051
4257
  * @internal
4052
4258
  */
4053
4259
  export declare const UpdateConditionalForwarderResultFilterSensitiveLog: (obj: UpdateConditionalForwarderResult) => any;
4260
+ /**
4261
+ * @internal
4262
+ */
4263
+ export declare const UpdateDirectorySetupRequestFilterSensitiveLog: (obj: UpdateDirectorySetupRequest) => any;
4264
+ /**
4265
+ * @internal
4266
+ */
4267
+ export declare const UpdateDirectorySetupResultFilterSensitiveLog: (obj: UpdateDirectorySetupResult) => any;
4054
4268
  /**
4055
4269
  * @internal
4056
4270
  */
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeClientAuthenticationSettingsCommandInput, DescribeClientAuthenticationSettingsCommandOutput } from "../commands/DescribeClientAuthenticationSettingsCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeClientAuthenticationSettings(config: DirectoryServicePaginationConfiguration, input: DescribeClientAuthenticationSettingsCommandInput, ...additionalArguments: any): Paginator<DescribeClientAuthenticationSettingsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeDirectoriesCommandInput, DescribeDirectoriesCommandOutput } from "../commands/DescribeDirectoriesCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeDirectories(config: DirectoryServicePaginationConfiguration, input: DescribeDirectoriesCommandInput, ...additionalArguments: any): Paginator<DescribeDirectoriesCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeLDAPSSettingsCommandInput, DescribeLDAPSSettingsCommandOutput } from "../commands/DescribeLDAPSSettingsCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeLDAPSSettings(config: DirectoryServicePaginationConfiguration, input: DescribeLDAPSSettingsCommandInput, ...additionalArguments: any): Paginator<DescribeLDAPSSettingsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeRegionsCommandInput, DescribeRegionsCommandOutput } from "../commands/DescribeRegionsCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeRegions(config: DirectoryServicePaginationConfiguration, input: DescribeRegionsCommandInput, ...additionalArguments: any): Paginator<DescribeRegionsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeSharedDirectoriesCommandInput, DescribeSharedDirectoriesCommandOutput } from "../commands/DescribeSharedDirectoriesCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeSharedDirectories(config: DirectoryServicePaginationConfiguration, input: DescribeSharedDirectoriesCommandInput, ...additionalArguments: any): Paginator<DescribeSharedDirectoriesCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "../commands/DescribeSnapshotsCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeSnapshots(config: DirectoryServicePaginationConfiguration, input: DescribeSnapshotsCommandInput, ...additionalArguments: any): Paginator<DescribeSnapshotsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeTrustsCommandInput, DescribeTrustsCommandOutput } from "../commands/DescribeTrustsCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeTrusts(config: DirectoryServicePaginationConfiguration, input: DescribeTrustsCommandInput, ...additionalArguments: any): Paginator<DescribeTrustsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeUpdateDirectoryCommandInput, DescribeUpdateDirectoryCommandOutput } from "../commands/DescribeUpdateDirectoryCommand";
3
+ import { DirectoryServicePaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeUpdateDirectory(config: DirectoryServicePaginationConfiguration, input: DescribeUpdateDirectoryCommandInput, ...additionalArguments: any): Paginator<DescribeUpdateDirectoryCommandOutput>;