@aws-sdk/client-directory-service-data 3.654.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 (179) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +391 -0
  3. package/dist-cjs/DirectoryServiceData.js +45 -0
  4. package/dist-cjs/DirectoryServiceDataClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AddGroupMemberCommand.js +26 -0
  8. package/dist-cjs/commands/CreateGroupCommand.js +27 -0
  9. package/dist-cjs/commands/CreateUserCommand.js +27 -0
  10. package/dist-cjs/commands/DeleteGroupCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteUserCommand.js +26 -0
  12. package/dist-cjs/commands/DescribeGroupCommand.js +27 -0
  13. package/dist-cjs/commands/DescribeUserCommand.js +27 -0
  14. package/dist-cjs/commands/DisableUserCommand.js +26 -0
  15. package/dist-cjs/commands/ListGroupMembersCommand.js +27 -0
  16. package/dist-cjs/commands/ListGroupsCommand.js +27 -0
  17. package/dist-cjs/commands/ListGroupsForMemberCommand.js +27 -0
  18. package/dist-cjs/commands/ListUsersCommand.js +27 -0
  19. package/dist-cjs/commands/RemoveGroupMemberCommand.js +26 -0
  20. package/dist-cjs/commands/SearchGroupsCommand.js +27 -0
  21. package/dist-cjs/commands/SearchUsersCommand.js +27 -0
  22. package/dist-cjs/commands/UpdateGroupCommand.js +27 -0
  23. package/dist-cjs/commands/UpdateUserCommand.js +27 -0
  24. package/dist-cjs/commands/index.js +20 -0
  25. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  26. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  27. package/dist-cjs/endpoint/ruleset.js +7 -0
  28. package/dist-cjs/extensionConfiguration.js +2 -0
  29. package/dist-cjs/index.js +11 -0
  30. package/dist-cjs/models/DirectoryServiceDataServiceException.js +12 -0
  31. package/dist-cjs/models/index.js +4 -0
  32. package/dist-cjs/models/models_0.js +333 -0
  33. package/dist-cjs/pagination/Interfaces.js +2 -0
  34. package/dist-cjs/pagination/ListGroupMembersPaginator.js +7 -0
  35. package/dist-cjs/pagination/ListGroupsForMemberPaginator.js +7 -0
  36. package/dist-cjs/pagination/ListGroupsPaginator.js +7 -0
  37. package/dist-cjs/pagination/ListUsersPaginator.js +7 -0
  38. package/dist-cjs/pagination/SearchGroupsPaginator.js +7 -0
  39. package/dist-cjs/pagination/SearchUsersPaginator.js +7 -0
  40. package/dist-cjs/pagination/index.js +10 -0
  41. package/dist-cjs/protocols/Aws_restJson1.js +768 -0
  42. package/dist-cjs/runtimeConfig.browser.js +39 -0
  43. package/dist-cjs/runtimeConfig.js +49 -0
  44. package/dist-cjs/runtimeConfig.native.js +15 -0
  45. package/dist-cjs/runtimeConfig.shared.js +34 -0
  46. package/dist-cjs/runtimeExtensions.js +25 -0
  47. package/dist-es/DirectoryServiceData.js +41 -0
  48. package/dist-es/DirectoryServiceDataClient.js +46 -0
  49. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  50. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  51. package/dist-es/commands/AddGroupMemberCommand.js +22 -0
  52. package/dist-es/commands/CreateGroupCommand.js +23 -0
  53. package/dist-es/commands/CreateUserCommand.js +23 -0
  54. package/dist-es/commands/DeleteGroupCommand.js +22 -0
  55. package/dist-es/commands/DeleteUserCommand.js +22 -0
  56. package/dist-es/commands/DescribeGroupCommand.js +23 -0
  57. package/dist-es/commands/DescribeUserCommand.js +23 -0
  58. package/dist-es/commands/DisableUserCommand.js +22 -0
  59. package/dist-es/commands/ListGroupMembersCommand.js +23 -0
  60. package/dist-es/commands/ListGroupsCommand.js +23 -0
  61. package/dist-es/commands/ListGroupsForMemberCommand.js +23 -0
  62. package/dist-es/commands/ListUsersCommand.js +23 -0
  63. package/dist-es/commands/RemoveGroupMemberCommand.js +22 -0
  64. package/dist-es/commands/SearchGroupsCommand.js +23 -0
  65. package/dist-es/commands/SearchUsersCommand.js +23 -0
  66. package/dist-es/commands/UpdateGroupCommand.js +23 -0
  67. package/dist-es/commands/UpdateUserCommand.js +23 -0
  68. package/dist-es/commands/index.js +17 -0
  69. package/dist-es/endpoint/EndpointParameters.js +14 -0
  70. package/dist-es/endpoint/endpointResolver.js +14 -0
  71. package/dist-es/endpoint/ruleset.js +4 -0
  72. package/dist-es/extensionConfiguration.js +1 -0
  73. package/dist-es/index.js +6 -0
  74. package/dist-es/models/DirectoryServiceDataServiceException.js +8 -0
  75. package/dist-es/models/index.js +1 -0
  76. package/dist-es/models/models_0.js +301 -0
  77. package/dist-es/pagination/Interfaces.js +1 -0
  78. package/dist-es/pagination/ListGroupMembersPaginator.js +4 -0
  79. package/dist-es/pagination/ListGroupsForMemberPaginator.js +4 -0
  80. package/dist-es/pagination/ListGroupsPaginator.js +4 -0
  81. package/dist-es/pagination/ListUsersPaginator.js +4 -0
  82. package/dist-es/pagination/SearchGroupsPaginator.js +4 -0
  83. package/dist-es/pagination/SearchUsersPaginator.js +4 -0
  84. package/dist-es/pagination/index.js +7 -0
  85. package/dist-es/protocols/Aws_restJson1.js +731 -0
  86. package/dist-es/runtimeConfig.browser.js +34 -0
  87. package/dist-es/runtimeConfig.js +44 -0
  88. package/dist-es/runtimeConfig.native.js +11 -0
  89. package/dist-es/runtimeConfig.shared.js +30 -0
  90. package/dist-es/runtimeExtensions.js +21 -0
  91. package/dist-types/DirectoryServiceData.d.ts +179 -0
  92. package/dist-types/DirectoryServiceDataClient.d.ts +236 -0
  93. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  94. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  95. package/dist-types/commands/AddGroupMemberCommand.d.ts +107 -0
  96. package/dist-types/commands/CreateGroupCommand.d.ts +118 -0
  97. package/dist-types/commands/CreateUserCommand.d.ts +119 -0
  98. package/dist-types/commands/DeleteGroupCommand.d.ts +105 -0
  99. package/dist-types/commands/DeleteUserCommand.d.ts +105 -0
  100. package/dist-types/commands/DescribeGroupCommand.d.ts +117 -0
  101. package/dist-types/commands/DescribeUserCommand.d.ts +120 -0
  102. package/dist-types/commands/DisableUserCommand.d.ts +107 -0
  103. package/dist-types/commands/ListGroupMembersCommand.d.ts +117 -0
  104. package/dist-types/commands/ListGroupsCommand.d.ts +112 -0
  105. package/dist-types/commands/ListGroupsForMemberCommand.d.ts +118 -0
  106. package/dist-types/commands/ListUsersCommand.d.ts +113 -0
  107. package/dist-types/commands/RemoveGroupMemberCommand.d.ts +107 -0
  108. package/dist-types/commands/SearchGroupsCommand.d.ts +129 -0
  109. package/dist-types/commands/SearchUsersCommand.d.ts +132 -0
  110. package/dist-types/commands/UpdateGroupCommand.d.ts +118 -0
  111. package/dist-types/commands/UpdateUserCommand.d.ts +119 -0
  112. package/dist-types/commands/index.d.ts +17 -0
  113. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  114. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  115. package/dist-types/endpoint/ruleset.d.ts +2 -0
  116. package/dist-types/extensionConfiguration.d.ts +9 -0
  117. package/dist-types/index.d.ts +64 -0
  118. package/dist-types/models/DirectoryServiceDataServiceException.d.ts +14 -0
  119. package/dist-types/models/index.d.ts +1 -0
  120. package/dist-types/models/models_0.d.ts +1639 -0
  121. package/dist-types/pagination/Interfaces.d.ts +8 -0
  122. package/dist-types/pagination/ListGroupMembersPaginator.d.ts +7 -0
  123. package/dist-types/pagination/ListGroupsForMemberPaginator.d.ts +7 -0
  124. package/dist-types/pagination/ListGroupsPaginator.d.ts +7 -0
  125. package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
  126. package/dist-types/pagination/SearchGroupsPaginator.d.ts +7 -0
  127. package/dist-types/pagination/SearchUsersPaginator.d.ts +7 -0
  128. package/dist-types/pagination/index.d.ts +7 -0
  129. package/dist-types/protocols/Aws_restJson1.d.ts +155 -0
  130. package/dist-types/runtimeConfig.browser.d.ts +47 -0
  131. package/dist-types/runtimeConfig.d.ts +47 -0
  132. package/dist-types/runtimeConfig.native.d.ts +46 -0
  133. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  134. package/dist-types/runtimeExtensions.d.ts +17 -0
  135. package/dist-types/ts3.4/DirectoryServiceData.d.ts +296 -0
  136. package/dist-types/ts3.4/DirectoryServiceDataClient.d.ts +223 -0
  137. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  138. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  139. package/dist-types/ts3.4/commands/AddGroupMemberCommand.d.ts +50 -0
  140. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +47 -0
  141. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +47 -0
  142. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +47 -0
  143. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +47 -0
  144. package/dist-types/ts3.4/commands/DescribeGroupCommand.d.ts +47 -0
  145. package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +47 -0
  146. package/dist-types/ts3.4/commands/DisableUserCommand.d.ts +47 -0
  147. package/dist-types/ts3.4/commands/ListGroupMembersCommand.d.ts +50 -0
  148. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +47 -0
  149. package/dist-types/ts3.4/commands/ListGroupsForMemberCommand.d.ts +51 -0
  150. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +47 -0
  151. package/dist-types/ts3.4/commands/RemoveGroupMemberCommand.d.ts +51 -0
  152. package/dist-types/ts3.4/commands/SearchGroupsCommand.d.ts +47 -0
  153. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +47 -0
  154. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +47 -0
  155. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +47 -0
  156. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  157. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  158. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  159. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  160. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  161. package/dist-types/ts3.4/index.d.ts +9 -0
  162. package/dist-types/ts3.4/models/DirectoryServiceDataServiceException.d.ts +9 -0
  163. package/dist-types/ts3.4/models/index.d.ts +1 -0
  164. package/dist-types/ts3.4/models/models_0.d.ts +471 -0
  165. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  166. package/dist-types/ts3.4/pagination/ListGroupMembersPaginator.d.ts +11 -0
  167. package/dist-types/ts3.4/pagination/ListGroupsForMemberPaginator.d.ts +11 -0
  168. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +11 -0
  169. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
  170. package/dist-types/ts3.4/pagination/SearchGroupsPaginator.d.ts +11 -0
  171. package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +11 -0
  172. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  173. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +209 -0
  174. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +89 -0
  175. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  176. package/dist-types/ts3.4/runtimeConfig.native.d.ts +83 -0
  177. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  178. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  179. package/package.json +103 -0
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { SearchGroupsRequestFilterSensitiveLog, SearchGroupsResultFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_SearchGroupsCommand, se_SearchGroupsCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class SearchGroupsCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("DirectoryServiceData", "SearchGroups", {})
18
+ .n("DirectoryServiceDataClient", "SearchGroupsCommand")
19
+ .f(SearchGroupsRequestFilterSensitiveLog, SearchGroupsResultFilterSensitiveLog)
20
+ .ser(se_SearchGroupsCommand)
21
+ .de(de_SearchGroupsCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { SearchUsersRequestFilterSensitiveLog, SearchUsersResultFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_SearchUsersCommand, se_SearchUsersCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class SearchUsersCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("DirectoryServiceData", "SearchUsers", {})
18
+ .n("DirectoryServiceDataClient", "SearchUsersCommand")
19
+ .f(SearchUsersRequestFilterSensitiveLog, SearchUsersResultFilterSensitiveLog)
20
+ .ser(se_SearchUsersCommand)
21
+ .de(de_SearchUsersCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdateGroupRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { de_UpdateGroupCommand, se_UpdateGroupCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateGroupCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("DirectoryServiceData", "UpdateGroup", {})
18
+ .n("DirectoryServiceDataClient", "UpdateGroupCommand")
19
+ .f(UpdateGroupRequestFilterSensitiveLog, void 0)
20
+ .ser(se_UpdateGroupCommand)
21
+ .de(de_UpdateGroupCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdateUserRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { de_UpdateUserCommand, se_UpdateUserCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateUserCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("DirectoryServiceData", "UpdateUser", {})
18
+ .n("DirectoryServiceDataClient", "UpdateUserCommand")
19
+ .f(UpdateUserRequestFilterSensitiveLog, void 0)
20
+ .ser(se_UpdateUserCommand)
21
+ .de(de_UpdateUserCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,17 @@
1
+ export * from "./AddGroupMemberCommand";
2
+ export * from "./CreateGroupCommand";
3
+ export * from "./CreateUserCommand";
4
+ export * from "./DeleteGroupCommand";
5
+ export * from "./DeleteUserCommand";
6
+ export * from "./DescribeGroupCommand";
7
+ export * from "./DescribeUserCommand";
8
+ export * from "./DisableUserCommand";
9
+ export * from "./ListGroupMembersCommand";
10
+ export * from "./ListGroupsCommand";
11
+ export * from "./ListGroupsForMemberCommand";
12
+ export * from "./ListUsersCommand";
13
+ export * from "./RemoveGroupMemberCommand";
14
+ export * from "./SearchGroupsCommand";
15
+ export * from "./SearchUsersCommand";
16
+ export * from "./UpdateGroupCommand";
17
+ export * from "./UpdateUserCommand";
@@ -0,0 +1,14 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "ds-data",
7
+ };
8
+ };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://ds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://ds-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://ds-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://ds-data.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from "./DirectoryServiceDataClient";
2
+ export * from "./DirectoryServiceData";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { DirectoryServiceDataServiceException } from "./models/DirectoryServiceDataServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class DirectoryServiceDataServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, DirectoryServiceDataServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,301 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { DirectoryServiceDataServiceException as __BaseException } from "./DirectoryServiceDataServiceException";
3
+ export const AccessDeniedReason = {
4
+ DATA_DISABLED: "DATA_DISABLED",
5
+ DIRECTORY_AUTH: "DIRECTORY_AUTH",
6
+ IAM_AUTH: "IAM_AUTH",
7
+ };
8
+ export class AccessDeniedException extends __BaseException {
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ this.name = "AccessDeniedException";
16
+ this.$fault = "client";
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ this.Message = opts.Message;
19
+ this.Reason = opts.Reason;
20
+ }
21
+ }
22
+ export class ConflictException extends __BaseException {
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ this.name = "ConflictException";
30
+ this.$fault = "client";
31
+ Object.setPrototypeOf(this, ConflictException.prototype);
32
+ this.Message = opts.Message;
33
+ }
34
+ }
35
+ export const DirectoryUnavailableReason = {
36
+ DIRECTORY_RESOURCES_EXCEEDED: "DIRECTORY_RESOURCES_EXCEEDED",
37
+ DIRECTORY_TIMEOUT: "DIRECTORY_TIMEOUT",
38
+ INVALID_DIRECTORY_STATE: "INVALID_DIRECTORY_STATE",
39
+ NO_DISK_SPACE: "NO_DISK_SPACE",
40
+ TRUST_AUTH_FAILURE: "TRUST_AUTH_FAILURE",
41
+ };
42
+ export class DirectoryUnavailableException extends __BaseException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "DirectoryUnavailableException",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ this.name = "DirectoryUnavailableException";
50
+ this.$fault = "client";
51
+ this.$retryable = {};
52
+ Object.setPrototypeOf(this, DirectoryUnavailableException.prototype);
53
+ this.Message = opts.Message;
54
+ this.Reason = opts.Reason;
55
+ }
56
+ }
57
+ export class InternalServerException extends __BaseException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "InternalServerException",
61
+ $fault: "server",
62
+ ...opts,
63
+ });
64
+ this.name = "InternalServerException";
65
+ this.$fault = "server";
66
+ this.$retryable = {};
67
+ Object.setPrototypeOf(this, InternalServerException.prototype);
68
+ this.Message = opts.Message;
69
+ }
70
+ }
71
+ export class ResourceNotFoundException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ResourceNotFoundException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ResourceNotFoundException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
81
+ this.Message = opts.Message;
82
+ }
83
+ }
84
+ export class ThrottlingException extends __BaseException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "ThrottlingException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ this.name = "ThrottlingException";
92
+ this.$fault = "client";
93
+ this.$retryable = {
94
+ throttling: true,
95
+ };
96
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
97
+ this.Message = opts.Message;
98
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
99
+ }
100
+ }
101
+ export const ValidationExceptionReason = {
102
+ ATTRIBUTE_EXISTS: "ATTRIBUTE_EXISTS",
103
+ DUPLICATE_ATTRIBUTE: "DUPLICATE_ATTRIBUTE",
104
+ INVALID_ATTRIBUTE_FOR_GROUP: "INVALID_ATTRIBUTE_FOR_GROUP",
105
+ INVALID_ATTRIBUTE_FOR_MODIFY: "INVALID_ATTRIBUTE_FOR_MODIFY",
106
+ INVALID_ATTRIBUTE_FOR_SEARCH: "INVALID_ATTRIBUTE_FOR_SEARCH",
107
+ INVALID_ATTRIBUTE_FOR_USER: "INVALID_ATTRIBUTE_FOR_USER",
108
+ INVALID_ATTRIBUTE_NAME: "INVALID_ATTRIBUTE_NAME",
109
+ INVALID_ATTRIBUTE_VALUE: "INVALID_ATTRIBUTE_VALUE",
110
+ INVALID_DIRECTORY_TYPE: "INVALID_DIRECTORY_TYPE",
111
+ INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN",
112
+ INVALID_REALM: "INVALID_REALM",
113
+ INVALID_SECONDARY_REGION: "INVALID_SECONDARY_REGION",
114
+ LDAP_SIZE_LIMIT_EXCEEDED: "LDAP_SIZE_LIMIT_EXCEEDED",
115
+ LDAP_UNSUPPORTED_OPERATION: "LDAP_UNSUPPORTED_OPERATION",
116
+ MISSING_ATTRIBUTE: "MISSING_ATTRIBUTE",
117
+ };
118
+ export class ValidationException extends __BaseException {
119
+ constructor(opts) {
120
+ super({
121
+ name: "ValidationException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ this.name = "ValidationException";
126
+ this.$fault = "client";
127
+ Object.setPrototypeOf(this, ValidationException.prototype);
128
+ this.Message = opts.Message;
129
+ this.Reason = opts.Reason;
130
+ }
131
+ }
132
+ export var AttributeValue;
133
+ (function (AttributeValue) {
134
+ AttributeValue.visit = (value, visitor) => {
135
+ if (value.S !== undefined)
136
+ return visitor.S(value.S);
137
+ if (value.N !== undefined)
138
+ return visitor.N(value.N);
139
+ if (value.BOOL !== undefined)
140
+ return visitor.BOOL(value.BOOL);
141
+ if (value.SS !== undefined)
142
+ return visitor.SS(value.SS);
143
+ return visitor._(value.$unknown[0], value.$unknown[1]);
144
+ };
145
+ })(AttributeValue || (AttributeValue = {}));
146
+ export const GroupScope = {
147
+ BUILTIN_LOCAL: "BuiltinLocal",
148
+ DOMAIN_LOCAL: "DomainLocal",
149
+ GLOBAL: "Global",
150
+ UNIVERSAL: "Universal",
151
+ };
152
+ export const GroupType = {
153
+ DISTRIBUTION: "Distribution",
154
+ SECURITY: "Security",
155
+ };
156
+ export const MemberType = {
157
+ COMPUTER: "COMPUTER",
158
+ GROUP: "GROUP",
159
+ USER: "USER",
160
+ };
161
+ export const UpdateType = {
162
+ ADD: "ADD",
163
+ REMOVE: "REMOVE",
164
+ REPLACE: "REPLACE",
165
+ };
166
+ export const AttributeValueFilterSensitiveLog = (obj) => {
167
+ if (obj.S !== undefined)
168
+ return { S: SENSITIVE_STRING };
169
+ if (obj.N !== undefined)
170
+ return { N: SENSITIVE_STRING };
171
+ if (obj.BOOL !== undefined)
172
+ return { BOOL: SENSITIVE_STRING };
173
+ if (obj.SS !== undefined)
174
+ return { SS: SENSITIVE_STRING };
175
+ if (obj.$unknown !== undefined)
176
+ return { [obj.$unknown[0]]: "UNKNOWN" };
177
+ };
178
+ export const CreateGroupRequestFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ ...(obj.OtherAttributes && {
181
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
182
+ }),
183
+ });
184
+ export const CreateUserRequestFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
187
+ ...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
188
+ ...(obj.Surname && { Surname: SENSITIVE_STRING }),
189
+ ...(obj.OtherAttributes && {
190
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
191
+ }),
192
+ });
193
+ export const DescribeGroupResultFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ ...(obj.DistinguishedName && { DistinguishedName: SENSITIVE_STRING }),
196
+ ...(obj.OtherAttributes && {
197
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
198
+ }),
199
+ });
200
+ export const DescribeUserResultFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ ...(obj.DistinguishedName && { DistinguishedName: SENSITIVE_STRING }),
203
+ ...(obj.UserPrincipalName && { UserPrincipalName: SENSITIVE_STRING }),
204
+ ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
205
+ ...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
206
+ ...(obj.Surname && { Surname: SENSITIVE_STRING }),
207
+ ...(obj.OtherAttributes && {
208
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
209
+ }),
210
+ });
211
+ export const ListGroupMembersRequestFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
214
+ });
215
+ export const ListGroupMembersResultFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
218
+ });
219
+ export const ListGroupsRequestFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
222
+ });
223
+ export const ListGroupsResultFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
226
+ });
227
+ export const ListGroupsForMemberRequestFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
230
+ });
231
+ export const ListGroupsForMemberResultFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
234
+ });
235
+ export const ListUsersRequestFilterSensitiveLog = (obj) => ({
236
+ ...obj,
237
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
238
+ });
239
+ export const UserSummaryFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ ...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
242
+ ...(obj.Surname && { Surname: SENSITIVE_STRING }),
243
+ });
244
+ export const ListUsersResultFilterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ ...(obj.Users && { Users: obj.Users.map((item) => UserSummaryFilterSensitiveLog(item)) }),
247
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
248
+ });
249
+ export const SearchGroupsRequestFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ ...(obj.SearchString && { SearchString: SENSITIVE_STRING }),
252
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
253
+ });
254
+ export const GroupFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ ...(obj.DistinguishedName && { DistinguishedName: SENSITIVE_STRING }),
257
+ ...(obj.OtherAttributes && {
258
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
259
+ }),
260
+ });
261
+ export const SearchGroupsResultFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ ...(obj.Groups && { Groups: obj.Groups.map((item) => GroupFilterSensitiveLog(item)) }),
264
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
265
+ });
266
+ export const SearchUsersRequestFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ ...(obj.SearchString && { SearchString: SENSITIVE_STRING }),
269
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
270
+ });
271
+ export const UserFilterSensitiveLog = (obj) => ({
272
+ ...obj,
273
+ ...(obj.DistinguishedName && { DistinguishedName: SENSITIVE_STRING }),
274
+ ...(obj.UserPrincipalName && { UserPrincipalName: SENSITIVE_STRING }),
275
+ ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
276
+ ...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
277
+ ...(obj.Surname && { Surname: SENSITIVE_STRING }),
278
+ ...(obj.OtherAttributes && {
279
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
280
+ }),
281
+ });
282
+ export const SearchUsersResultFilterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ ...(obj.Users && { Users: obj.Users.map((item) => UserFilterSensitiveLog(item)) }),
285
+ ...(obj.NextToken && { NextToken: SENSITIVE_STRING }),
286
+ });
287
+ export const UpdateGroupRequestFilterSensitiveLog = (obj) => ({
288
+ ...obj,
289
+ ...(obj.OtherAttributes && {
290
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
291
+ }),
292
+ });
293
+ export const UpdateUserRequestFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ ...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
296
+ ...(obj.GivenName && { GivenName: SENSITIVE_STRING }),
297
+ ...(obj.Surname && { Surname: SENSITIVE_STRING }),
298
+ ...(obj.OtherAttributes && {
299
+ OtherAttributes: Object.entries(obj.OtherAttributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
300
+ }),
301
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListGroupMembersCommand, } from "../commands/ListGroupMembersCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateListGroupMembers = createPaginator(DirectoryServiceDataClient, ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListGroupsForMemberCommand, } from "../commands/ListGroupsForMemberCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateListGroupsForMember = createPaginator(DirectoryServiceDataClient, ListGroupsForMemberCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListGroupsCommand } from "../commands/ListGroupsCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateListGroups = createPaginator(DirectoryServiceDataClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListUsersCommand } from "../commands/ListUsersCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateListUsers = createPaginator(DirectoryServiceDataClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchGroupsCommand, } from "../commands/SearchGroupsCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateSearchGroups = createPaginator(DirectoryServiceDataClient, SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchUsersCommand } from "../commands/SearchUsersCommand";
3
+ import { DirectoryServiceDataClient } from "../DirectoryServiceDataClient";
4
+ export const paginateSearchUsers = createPaginator(DirectoryServiceDataClient, SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,7 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListGroupMembersPaginator";
3
+ export * from "./ListGroupsForMemberPaginator";
4
+ export * from "./ListGroupsPaginator";
5
+ export * from "./ListUsersPaginator";
6
+ export * from "./SearchGroupsPaginator";
7
+ export * from "./SearchUsersPaginator";