@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,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
4
+ import { DescribeGroupRequest, DescribeGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeGroupCommand}.
14
+ */
15
+ export interface DescribeGroupCommandInput extends DescribeGroupRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeGroupCommand}.
21
+ */
22
+ export interface DescribeGroupCommandOutput extends DescribeGroupResult, __MetadataBearer {
23
+ }
24
+ declare const DescribeGroupCommand_base: {
25
+ new (input: DescribeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeGroupCommandInput, DescribeGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DescribeGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeGroupCommandInput, DescribeGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns information about a specific group.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DirectoryServiceDataClient, DescribeGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
35
+ * // const { DirectoryServiceDataClient, DescribeGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
36
+ * const client = new DirectoryServiceDataClient(config);
37
+ * const input = { // DescribeGroupRequest
38
+ * DirectoryId: "STRING_VALUE", // required
39
+ * Realm: "STRING_VALUE",
40
+ * SAMAccountName: "STRING_VALUE", // required
41
+ * OtherAttributes: [ // LdapDisplayNameList
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * };
45
+ * const command = new DescribeGroupCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // DescribeGroupResult
48
+ * // DirectoryId: "STRING_VALUE",
49
+ * // Realm: "STRING_VALUE",
50
+ * // SID: "STRING_VALUE",
51
+ * // SAMAccountName: "STRING_VALUE",
52
+ * // DistinguishedName: "STRING_VALUE",
53
+ * // GroupType: "Distribution" || "Security",
54
+ * // GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal",
55
+ * // OtherAttributes: { // Attributes
56
+ * // "<keys>": { // AttributeValue Union: only one key present
57
+ * // S: "STRING_VALUE",
58
+ * // N: Number("long"),
59
+ * // BOOL: true || false,
60
+ * // SS: [ // StringSetAttributeValue
61
+ * // "STRING_VALUE",
62
+ * // ],
63
+ * // },
64
+ * // },
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param DescribeGroupCommandInput - {@link DescribeGroupCommandInput}
70
+ * @returns {@link DescribeGroupCommandOutput}
71
+ * @see {@link DescribeGroupCommandInput} for command's `input` shape.
72
+ * @see {@link DescribeGroupCommandOutput} for command's `response` shape.
73
+ * @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p> You don't have permission to perform the request or access the directory. It can also
77
+ * occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
78
+ * outside of your organizational unit (OU). </p>
79
+ * <p> Make sure that you have the authentication and authorization to perform the action.
80
+ * Review the directory information in the request, and make sure that the object isn't outside
81
+ * of your OU. </p>
82
+ *
83
+ * @throws {@link DirectoryUnavailableException} (client fault)
84
+ * <p> The request could not be completed due to a problem in the configuration or current state
85
+ * of the specified directory. </p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p> The resource couldn't be found. </p>
92
+ *
93
+ * @throws {@link ThrottlingException} (client fault)
94
+ * <p> The limit on the number of requests per second has been exceeded. </p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <p> The request isn't valid. Review the details in the error message to update the invalid
98
+ * parameters or values in your request. </p>
99
+ *
100
+ * @throws {@link DirectoryServiceDataServiceException}
101
+ * <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
102
+ *
103
+ * @public
104
+ */
105
+ export declare class DescribeGroupCommand extends DescribeGroupCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: DescribeGroupRequest;
110
+ output: DescribeGroupResult;
111
+ };
112
+ sdk: {
113
+ input: DescribeGroupCommandInput;
114
+ output: DescribeGroupCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
4
+ import { DescribeUserRequest, DescribeUserResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeUserCommand}.
14
+ */
15
+ export interface DescribeUserCommandInput extends DescribeUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeUserCommand}.
21
+ */
22
+ export interface DescribeUserCommandOutput extends DescribeUserResult, __MetadataBearer {
23
+ }
24
+ declare const DescribeUserCommand_base: {
25
+ new (input: DescribeUserCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeUserCommandInput, DescribeUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DescribeUserCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeUserCommandInput, DescribeUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns information about a specific user.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DirectoryServiceDataClient, DescribeUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
35
+ * // const { DirectoryServiceDataClient, DescribeUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
36
+ * const client = new DirectoryServiceDataClient(config);
37
+ * const input = { // DescribeUserRequest
38
+ * DirectoryId: "STRING_VALUE", // required
39
+ * SAMAccountName: "STRING_VALUE", // required
40
+ * OtherAttributes: [ // LdapDisplayNameList
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * Realm: "STRING_VALUE",
44
+ * };
45
+ * const command = new DescribeUserCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // DescribeUserResult
48
+ * // DirectoryId: "STRING_VALUE",
49
+ * // Realm: "STRING_VALUE",
50
+ * // SID: "STRING_VALUE",
51
+ * // SAMAccountName: "STRING_VALUE",
52
+ * // DistinguishedName: "STRING_VALUE",
53
+ * // UserPrincipalName: "STRING_VALUE",
54
+ * // EmailAddress: "STRING_VALUE",
55
+ * // GivenName: "STRING_VALUE",
56
+ * // Surname: "STRING_VALUE",
57
+ * // Enabled: true || false,
58
+ * // OtherAttributes: { // Attributes
59
+ * // "<keys>": { // AttributeValue Union: only one key present
60
+ * // S: "STRING_VALUE",
61
+ * // N: Number("long"),
62
+ * // BOOL: true || false,
63
+ * // SS: [ // StringSetAttributeValue
64
+ * // "STRING_VALUE",
65
+ * // ],
66
+ * // },
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param DescribeUserCommandInput - {@link DescribeUserCommandInput}
73
+ * @returns {@link DescribeUserCommandOutput}
74
+ * @see {@link DescribeUserCommandInput} for command's `input` shape.
75
+ * @see {@link DescribeUserCommandOutput} for command's `response` shape.
76
+ * @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p> You don't have permission to perform the request or access the directory. It can also
80
+ * occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
81
+ * outside of your organizational unit (OU). </p>
82
+ * <p> Make sure that you have the authentication and authorization to perform the action.
83
+ * Review the directory information in the request, and make sure that the object isn't outside
84
+ * of your OU. </p>
85
+ *
86
+ * @throws {@link DirectoryUnavailableException} (client fault)
87
+ * <p> The request could not be completed due to a problem in the configuration or current state
88
+ * of the specified directory. </p>
89
+ *
90
+ * @throws {@link InternalServerException} (server fault)
91
+ * <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
92
+ *
93
+ * @throws {@link ResourceNotFoundException} (client fault)
94
+ * <p> The resource couldn't be found. </p>
95
+ *
96
+ * @throws {@link ThrottlingException} (client fault)
97
+ * <p> The limit on the number of requests per second has been exceeded. </p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p> The request isn't valid. Review the details in the error message to update the invalid
101
+ * parameters or values in your request. </p>
102
+ *
103
+ * @throws {@link DirectoryServiceDataServiceException}
104
+ * <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
105
+ *
106
+ * @public
107
+ */
108
+ export declare class DescribeUserCommand extends DescribeUserCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: DescribeUserRequest;
113
+ output: DescribeUserResult;
114
+ };
115
+ sdk: {
116
+ input: DescribeUserCommandInput;
117
+ output: DescribeUserCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1,107 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
4
+ import { DisableUserRequest, DisableUserResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DisableUserCommand}.
14
+ */
15
+ export interface DisableUserCommandInput extends DisableUserRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DisableUserCommand}.
21
+ */
22
+ export interface DisableUserCommandOutput extends DisableUserResult, __MetadataBearer {
23
+ }
24
+ declare const DisableUserCommand_base: {
25
+ new (input: DisableUserCommandInput): import("@smithy/smithy-client").CommandImpl<DisableUserCommandInput, DisableUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DisableUserCommandInput): import("@smithy/smithy-client").CommandImpl<DisableUserCommandInput, DisableUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p> Deactivates an active user account. For information about how to enable an inactive user
31
+ * account, see <a href="https://docs.aws.amazon.com/directoryservice/latest/devguide/API_ResetUserPassword.html">ResetUserPassword</a>
32
+ * in the <i>Directory Service API Reference</i>.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { DirectoryServiceDataClient, DisableUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
37
+ * // const { DirectoryServiceDataClient, DisableUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
38
+ * const client = new DirectoryServiceDataClient(config);
39
+ * const input = { // DisableUserRequest
40
+ * DirectoryId: "STRING_VALUE", // required
41
+ * SAMAccountName: "STRING_VALUE", // required
42
+ * ClientToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new DisableUserCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param DisableUserCommandInput - {@link DisableUserCommandInput}
51
+ * @returns {@link DisableUserCommandOutput}
52
+ * @see {@link DisableUserCommandInput} for command's `input` shape.
53
+ * @see {@link DisableUserCommandOutput} for command's `response` shape.
54
+ * @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p> You don't have permission to perform the request or access the directory. It can also
58
+ * occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
59
+ * outside of your organizational unit (OU). </p>
60
+ * <p> Make sure that you have the authentication and authorization to perform the action.
61
+ * Review the directory information in the request, and make sure that the object isn't outside
62
+ * of your OU. </p>
63
+ *
64
+ * @throws {@link ConflictException} (client fault)
65
+ * <p> This error will occur when you try to create a resource that conflicts with an existing
66
+ * object. It can also occur when adding a member to a group that the member is already
67
+ * in.</p>
68
+ * <p> This error can be caused by a request sent within the 8-hour idempotency window with the
69
+ * same client token but different input parameters. Client tokens should not be re-used across
70
+ * different requests. After 8 hours, any request with the same client token is treated as a new
71
+ * request. </p>
72
+ *
73
+ * @throws {@link DirectoryUnavailableException} (client fault)
74
+ * <p> The request could not be completed due to a problem in the configuration or current state
75
+ * of the specified directory. </p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p> The resource couldn't be found. </p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p> The limit on the number of requests per second has been exceeded. </p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p> The request isn't valid. Review the details in the error message to update the invalid
88
+ * parameters or values in your request. </p>
89
+ *
90
+ * @throws {@link DirectoryServiceDataServiceException}
91
+ * <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
92
+ *
93
+ * @public
94
+ */
95
+ export declare class DisableUserCommand extends DisableUserCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: DisableUserRequest;
100
+ output: {};
101
+ };
102
+ sdk: {
103
+ input: DisableUserCommandInput;
104
+ output: DisableUserCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
4
+ import { ListGroupMembersRequest, ListGroupMembersResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListGroupMembersCommand}.
14
+ */
15
+ export interface ListGroupMembersCommandInput extends ListGroupMembersRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListGroupMembersCommand}.
21
+ */
22
+ export interface ListGroupMembersCommandOutput extends ListGroupMembersResult, __MetadataBearer {
23
+ }
24
+ declare const ListGroupMembersCommand_base: {
25
+ new (input: ListGroupMembersCommandInput): import("@smithy/smithy-client").CommandImpl<ListGroupMembersCommandInput, ListGroupMembersCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListGroupMembersCommandInput): import("@smithy/smithy-client").CommandImpl<ListGroupMembersCommandInput, ListGroupMembersCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p> Returns member information for the specified group. </p>
31
+ * <p> This operation supports pagination with the use of the <code>NextToken</code> request and
32
+ * response parameters. If more results are available, the
33
+ * <code>ListGroupMembers.NextToken</code> member contains a token that you pass in the next
34
+ * call to <code>ListGroupMembers</code>. This retrieves the next set of items. </p>
35
+ * <p> You can also specify a maximum number of return results with the <code>MaxResults</code>
36
+ * parameter. </p>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { DirectoryServiceDataClient, ListGroupMembersCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
41
+ * // const { DirectoryServiceDataClient, ListGroupMembersCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
42
+ * const client = new DirectoryServiceDataClient(config);
43
+ * const input = { // ListGroupMembersRequest
44
+ * DirectoryId: "STRING_VALUE", // required
45
+ * Realm: "STRING_VALUE",
46
+ * MemberRealm: "STRING_VALUE",
47
+ * SAMAccountName: "STRING_VALUE", // required
48
+ * NextToken: "STRING_VALUE",
49
+ * MaxResults: Number("int"),
50
+ * };
51
+ * const command = new ListGroupMembersCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // ListGroupMembersResult
54
+ * // DirectoryId: "STRING_VALUE",
55
+ * // Realm: "STRING_VALUE",
56
+ * // MemberRealm: "STRING_VALUE",
57
+ * // Members: [ // MemberList
58
+ * // { // Member
59
+ * // SID: "STRING_VALUE", // required
60
+ * // SAMAccountName: "STRING_VALUE", // required
61
+ * // MemberType: "USER" || "GROUP" || "COMPUTER", // required
62
+ * // },
63
+ * // ],
64
+ * // NextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListGroupMembersCommandInput - {@link ListGroupMembersCommandInput}
70
+ * @returns {@link ListGroupMembersCommandOutput}
71
+ * @see {@link ListGroupMembersCommandInput} for command's `input` shape.
72
+ * @see {@link ListGroupMembersCommandOutput} for command's `response` shape.
73
+ * @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p> You don't have permission to perform the request or access the directory. It can also
77
+ * occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
78
+ * outside of your organizational unit (OU). </p>
79
+ * <p> Make sure that you have the authentication and authorization to perform the action.
80
+ * Review the directory information in the request, and make sure that the object isn't outside
81
+ * of your OU. </p>
82
+ *
83
+ * @throws {@link DirectoryUnavailableException} (client fault)
84
+ * <p> The request could not be completed due to a problem in the configuration or current state
85
+ * of the specified directory. </p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p> The resource couldn't be found. </p>
92
+ *
93
+ * @throws {@link ThrottlingException} (client fault)
94
+ * <p> The limit on the number of requests per second has been exceeded. </p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <p> The request isn't valid. Review the details in the error message to update the invalid
98
+ * parameters or values in your request. </p>
99
+ *
100
+ * @throws {@link DirectoryServiceDataServiceException}
101
+ * <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
102
+ *
103
+ * @public
104
+ */
105
+ export declare class ListGroupMembersCommand extends ListGroupMembersCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: ListGroupMembersRequest;
110
+ output: ListGroupMembersResult;
111
+ };
112
+ sdk: {
113
+ input: ListGroupMembersCommandInput;
114
+ output: ListGroupMembersCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -0,0 +1,112 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
4
+ import { ListGroupsRequest, ListGroupsResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListGroupsCommand}.
14
+ */
15
+ export interface ListGroupsCommandInput extends ListGroupsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListGroupsCommand}.
21
+ */
22
+ export interface ListGroupsCommandOutput extends ListGroupsResult, __MetadataBearer {
23
+ }
24
+ declare const ListGroupsCommand_base: {
25
+ new (input: ListGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListGroupsCommandInput, ListGroupsCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListGroupsCommandInput, ListGroupsCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p> Returns group information for the specified directory. </p>
31
+ * <p> This operation supports pagination with the use of the <code>NextToken</code> request and
32
+ * response parameters. If more results are available, the <code>ListGroups.NextToken</code>
33
+ * member contains a token that you pass in the next call to <code>ListGroups</code>. This
34
+ * retrieves the next set of items. </p>
35
+ * <p> You can also specify a maximum number of return results with the <code>MaxResults</code>
36
+ * parameter. </p>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { DirectoryServiceDataClient, ListGroupsCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
41
+ * // const { DirectoryServiceDataClient, ListGroupsCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
42
+ * const client = new DirectoryServiceDataClient(config);
43
+ * const input = { // ListGroupsRequest
44
+ * DirectoryId: "STRING_VALUE", // required
45
+ * Realm: "STRING_VALUE",
46
+ * NextToken: "STRING_VALUE",
47
+ * MaxResults: Number("int"),
48
+ * };
49
+ * const command = new ListGroupsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListGroupsResult
52
+ * // DirectoryId: "STRING_VALUE",
53
+ * // Realm: "STRING_VALUE",
54
+ * // Groups: [ // GroupSummaryList
55
+ * // { // GroupSummary
56
+ * // SID: "STRING_VALUE", // required
57
+ * // SAMAccountName: "STRING_VALUE", // required
58
+ * // GroupType: "Distribution" || "Security", // required
59
+ * // GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal", // required
60
+ * // },
61
+ * // ],
62
+ * // NextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListGroupsCommandInput - {@link ListGroupsCommandInput}
68
+ * @returns {@link ListGroupsCommandOutput}
69
+ * @see {@link ListGroupsCommandInput} for command's `input` shape.
70
+ * @see {@link ListGroupsCommandOutput} for command's `response` shape.
71
+ * @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p> You don't have permission to perform the request or access the directory. It can also
75
+ * occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
76
+ * outside of your organizational unit (OU). </p>
77
+ * <p> Make sure that you have the authentication and authorization to perform the action.
78
+ * Review the directory information in the request, and make sure that the object isn't outside
79
+ * of your OU. </p>
80
+ *
81
+ * @throws {@link DirectoryUnavailableException} (client fault)
82
+ * <p> The request could not be completed due to a problem in the configuration or current state
83
+ * of the specified directory. </p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p> The limit on the number of requests per second has been exceeded. </p>
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * <p> The request isn't valid. Review the details in the error message to update the invalid
93
+ * parameters or values in your request. </p>
94
+ *
95
+ * @throws {@link DirectoryServiceDataServiceException}
96
+ * <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
97
+ *
98
+ * @public
99
+ */
100
+ export declare class ListGroupsCommand extends ListGroupsCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: ListGroupsRequest;
105
+ output: ListGroupsResult;
106
+ };
107
+ sdk: {
108
+ input: ListGroupsCommandInput;
109
+ output: ListGroupsCommandOutput;
110
+ };
111
+ };
112
+ }