@aws-sdk/client-directory-service-data 3.975.0 → 3.978.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.
package/dist-cjs/index.js CHANGED
@@ -884,6 +884,18 @@ class UpdateUserCommand extends smithyClient.Command
884
884
  .build() {
885
885
  }
886
886
 
887
+ const paginateListGroupMembers = core.createPaginator(DirectoryServiceDataClient, ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
888
+
889
+ const paginateListGroupsForMember = core.createPaginator(DirectoryServiceDataClient, ListGroupsForMemberCommand, "NextToken", "NextToken", "MaxResults");
890
+
891
+ const paginateListGroups = core.createPaginator(DirectoryServiceDataClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
892
+
893
+ const paginateListUsers = core.createPaginator(DirectoryServiceDataClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
894
+
895
+ const paginateSearchGroups = core.createPaginator(DirectoryServiceDataClient, SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");
896
+
897
+ const paginateSearchUsers = core.createPaginator(DirectoryServiceDataClient, SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
898
+
887
899
  const commands = {
888
900
  AddGroupMemberCommand,
889
901
  CreateGroupCommand,
@@ -903,21 +915,17 @@ const commands = {
903
915
  UpdateGroupCommand,
904
916
  UpdateUserCommand,
905
917
  };
918
+ const paginators = {
919
+ paginateListGroupMembers,
920
+ paginateListGroups,
921
+ paginateListGroupsForMember,
922
+ paginateListUsers,
923
+ paginateSearchGroups,
924
+ paginateSearchUsers,
925
+ };
906
926
  class DirectoryServiceData extends DirectoryServiceDataClient {
907
927
  }
908
- smithyClient.createAggregatedClient(commands, DirectoryServiceData);
909
-
910
- const paginateListGroupMembers = core.createPaginator(DirectoryServiceDataClient, ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
911
-
912
- const paginateListGroups = core.createPaginator(DirectoryServiceDataClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
913
-
914
- const paginateListGroupsForMember = core.createPaginator(DirectoryServiceDataClient, ListGroupsForMemberCommand, "NextToken", "NextToken", "MaxResults");
915
-
916
- const paginateListUsers = core.createPaginator(DirectoryServiceDataClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
917
-
918
- const paginateSearchGroups = core.createPaginator(DirectoryServiceDataClient, SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");
919
-
920
- const paginateSearchUsers = core.createPaginator(DirectoryServiceDataClient, SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
928
+ smithyClient.createAggregatedClient(commands, DirectoryServiceData, { paginators });
921
929
 
922
930
  const AccessDeniedReason = {
923
931
  DATA_DISABLED: "DATA_DISABLED",
@@ -17,6 +17,12 @@ import { SearchUsersCommand } from "./commands/SearchUsersCommand";
17
17
  import { UpdateGroupCommand } from "./commands/UpdateGroupCommand";
18
18
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
19
19
  import { DirectoryServiceDataClient } from "./DirectoryServiceDataClient";
20
+ import { paginateListGroupMembers } from "./pagination/ListGroupMembersPaginator";
21
+ import { paginateListGroupsForMember } from "./pagination/ListGroupsForMemberPaginator";
22
+ import { paginateListGroups } from "./pagination/ListGroupsPaginator";
23
+ import { paginateListUsers } from "./pagination/ListUsersPaginator";
24
+ import { paginateSearchGroups } from "./pagination/SearchGroupsPaginator";
25
+ import { paginateSearchUsers } from "./pagination/SearchUsersPaginator";
20
26
  const commands = {
21
27
  AddGroupMemberCommand,
22
28
  CreateGroupCommand,
@@ -36,6 +42,14 @@ const commands = {
36
42
  UpdateGroupCommand,
37
43
  UpdateUserCommand,
38
44
  };
45
+ const paginators = {
46
+ paginateListGroupMembers,
47
+ paginateListGroups,
48
+ paginateListGroupsForMember,
49
+ paginateListUsers,
50
+ paginateSearchGroups,
51
+ paginateSearchUsers,
52
+ };
39
53
  export class DirectoryServiceData extends DirectoryServiceDataClient {
40
54
  }
41
- createAggregatedClient(commands, DirectoryServiceData);
55
+ createAggregatedClient(commands, DirectoryServiceData, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { AddGroupMemberCommandInput, AddGroupMemberCommandOutput } from "./commands/AddGroupMemberCommand";
3
3
  import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
4
4
  import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
@@ -120,6 +120,48 @@ export interface DirectoryServiceData {
120
120
  updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
121
121
  updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
122
122
  updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link ListGroupMembersCommand}
125
+ * @param args - command input.
126
+ * @param paginationConfig - optional pagination config.
127
+ * @returns AsyncIterable of {@link ListGroupMembersCommandOutput}.
128
+ */
129
+ paginateListGroupMembers(args: ListGroupMembersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupMembersCommandOutput>;
130
+ /**
131
+ * @see {@link ListGroupsCommand}
132
+ * @param args - command input.
133
+ * @param paginationConfig - optional pagination config.
134
+ * @returns AsyncIterable of {@link ListGroupsCommandOutput}.
135
+ */
136
+ paginateListGroups(args: ListGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupsCommandOutput>;
137
+ /**
138
+ * @see {@link ListGroupsForMemberCommand}
139
+ * @param args - command input.
140
+ * @param paginationConfig - optional pagination config.
141
+ * @returns AsyncIterable of {@link ListGroupsForMemberCommandOutput}.
142
+ */
143
+ paginateListGroupsForMember(args: ListGroupsForMemberCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupsForMemberCommandOutput>;
144
+ /**
145
+ * @see {@link ListUsersCommand}
146
+ * @param args - command input.
147
+ * @param paginationConfig - optional pagination config.
148
+ * @returns AsyncIterable of {@link ListUsersCommandOutput}.
149
+ */
150
+ paginateListUsers(args: ListUsersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListUsersCommandOutput>;
151
+ /**
152
+ * @see {@link SearchGroupsCommand}
153
+ * @param args - command input.
154
+ * @param paginationConfig - optional pagination config.
155
+ * @returns AsyncIterable of {@link SearchGroupsCommandOutput}.
156
+ */
157
+ paginateSearchGroups(args: SearchGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchGroupsCommandOutput>;
158
+ /**
159
+ * @see {@link SearchUsersCommand}
160
+ * @param args - command input.
161
+ * @param paginationConfig - optional pagination config.
162
+ * @returns AsyncIterable of {@link SearchUsersCommandOutput}.
163
+ */
164
+ paginateSearchUsers(args: SearchUsersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchUsersCommandOutput>;
123
165
  }
124
166
  /**
125
167
  * <p> Amazon Web Services Directory Service Data is an extension of Directory Service. This API reference provides detailed information
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AddGroupMemberCommandInput,
4
8
  AddGroupMemberCommandOutput,
@@ -290,6 +294,48 @@ export interface DirectoryServiceData {
290
294
  options: __HttpHandlerOptions,
291
295
  cb: (err: any, data?: UpdateUserCommandOutput) => void
292
296
  ): void;
297
+ paginateListGroupMembers(
298
+ args: ListGroupMembersCommandInput,
299
+ paginationConfig?: Pick<
300
+ PaginationConfiguration,
301
+ Exclude<keyof PaginationConfiguration, "client">
302
+ >
303
+ ): Paginator<ListGroupMembersCommandOutput>;
304
+ paginateListGroups(
305
+ args: ListGroupsCommandInput,
306
+ paginationConfig?: Pick<
307
+ PaginationConfiguration,
308
+ Exclude<keyof PaginationConfiguration, "client">
309
+ >
310
+ ): Paginator<ListGroupsCommandOutput>;
311
+ paginateListGroupsForMember(
312
+ args: ListGroupsForMemberCommandInput,
313
+ paginationConfig?: Pick<
314
+ PaginationConfiguration,
315
+ Exclude<keyof PaginationConfiguration, "client">
316
+ >
317
+ ): Paginator<ListGroupsForMemberCommandOutput>;
318
+ paginateListUsers(
319
+ args: ListUsersCommandInput,
320
+ paginationConfig?: Pick<
321
+ PaginationConfiguration,
322
+ Exclude<keyof PaginationConfiguration, "client">
323
+ >
324
+ ): Paginator<ListUsersCommandOutput>;
325
+ paginateSearchGroups(
326
+ args: SearchGroupsCommandInput,
327
+ paginationConfig?: Pick<
328
+ PaginationConfiguration,
329
+ Exclude<keyof PaginationConfiguration, "client">
330
+ >
331
+ ): Paginator<SearchGroupsCommandOutput>;
332
+ paginateSearchUsers(
333
+ args: SearchUsersCommandInput,
334
+ paginationConfig?: Pick<
335
+ PaginationConfiguration,
336
+ Exclude<keyof PaginationConfiguration, "client">
337
+ >
338
+ ): Paginator<SearchUsersCommandOutput>;
293
339
  }
294
340
  export declare class DirectoryServiceData
295
341
  extends DirectoryServiceDataClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-directory-service-data",
3
3
  "description": "AWS SDK for JavaScript Directory Service Data Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-directory-service-data",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",