@aws-sdk/client-identitystore 3.477.0 → 3.481.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 (97) hide show
  1. package/dist-cjs/commands/CreateGroupCommand.js +18 -41
  2. package/dist-cjs/commands/CreateGroupMembershipCommand.js +18 -41
  3. package/dist-cjs/commands/CreateUserCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteGroupCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteGroupMembershipCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteUserCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeGroupCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeGroupMembershipCommand.js +18 -41
  9. package/dist-cjs/commands/DescribeUserCommand.js +18 -41
  10. package/dist-cjs/commands/GetGroupIdCommand.js +18 -41
  11. package/dist-cjs/commands/GetGroupMembershipIdCommand.js +18 -41
  12. package/dist-cjs/commands/GetUserIdCommand.js +18 -41
  13. package/dist-cjs/commands/IsMemberInGroupsCommand.js +18 -41
  14. package/dist-cjs/commands/ListGroupMembershipsCommand.js +18 -41
  15. package/dist-cjs/commands/ListGroupMembershipsForMemberCommand.js +18 -41
  16. package/dist-cjs/commands/ListGroupsCommand.js +18 -41
  17. package/dist-cjs/commands/ListUsersCommand.js +18 -41
  18. package/dist-cjs/commands/UpdateGroupCommand.js +18 -41
  19. package/dist-cjs/commands/UpdateUserCommand.js +18 -41
  20. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  21. package/dist-cjs/pagination/ListGroupMembershipsForMemberPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
  25. package/dist-es/commands/CreateGroupCommand.js +18 -41
  26. package/dist-es/commands/CreateGroupMembershipCommand.js +18 -41
  27. package/dist-es/commands/CreateUserCommand.js +18 -41
  28. package/dist-es/commands/DeleteGroupCommand.js +18 -41
  29. package/dist-es/commands/DeleteGroupMembershipCommand.js +18 -41
  30. package/dist-es/commands/DeleteUserCommand.js +18 -41
  31. package/dist-es/commands/DescribeGroupCommand.js +18 -41
  32. package/dist-es/commands/DescribeGroupMembershipCommand.js +18 -41
  33. package/dist-es/commands/DescribeUserCommand.js +18 -41
  34. package/dist-es/commands/GetGroupIdCommand.js +18 -41
  35. package/dist-es/commands/GetGroupMembershipIdCommand.js +18 -41
  36. package/dist-es/commands/GetUserIdCommand.js +18 -41
  37. package/dist-es/commands/IsMemberInGroupsCommand.js +18 -41
  38. package/dist-es/commands/ListGroupMembershipsCommand.js +18 -41
  39. package/dist-es/commands/ListGroupMembershipsForMemberCommand.js +18 -41
  40. package/dist-es/commands/ListGroupsCommand.js +18 -41
  41. package/dist-es/commands/ListUsersCommand.js +18 -41
  42. package/dist-es/commands/UpdateGroupCommand.js +18 -41
  43. package/dist-es/commands/UpdateUserCommand.js +18 -41
  44. package/dist-es/endpoint/EndpointParameters.js +6 -0
  45. package/dist-es/pagination/ListGroupMembershipsForMemberPaginator.js +2 -23
  46. package/dist-es/pagination/ListGroupMembershipsPaginator.js +2 -23
  47. package/dist-es/pagination/ListGroupsPaginator.js +2 -23
  48. package/dist-es/pagination/ListUsersPaginator.js +2 -23
  49. package/dist-types/commands/CreateGroupCommand.d.ts +6 -21
  50. package/dist-types/commands/CreateGroupMembershipCommand.d.ts +6 -21
  51. package/dist-types/commands/CreateUserCommand.d.ts +6 -21
  52. package/dist-types/commands/DeleteGroupCommand.d.ts +6 -21
  53. package/dist-types/commands/DeleteGroupMembershipCommand.d.ts +6 -21
  54. package/dist-types/commands/DeleteUserCommand.d.ts +6 -21
  55. package/dist-types/commands/DescribeGroupCommand.d.ts +6 -21
  56. package/dist-types/commands/DescribeGroupMembershipCommand.d.ts +6 -21
  57. package/dist-types/commands/DescribeUserCommand.d.ts +6 -21
  58. package/dist-types/commands/GetGroupIdCommand.d.ts +6 -21
  59. package/dist-types/commands/GetGroupMembershipIdCommand.d.ts +6 -21
  60. package/dist-types/commands/GetUserIdCommand.d.ts +6 -21
  61. package/dist-types/commands/IsMemberInGroupsCommand.d.ts +6 -21
  62. package/dist-types/commands/ListGroupMembershipsCommand.d.ts +6 -21
  63. package/dist-types/commands/ListGroupMembershipsForMemberCommand.d.ts +6 -21
  64. package/dist-types/commands/ListGroupsCommand.d.ts +6 -21
  65. package/dist-types/commands/ListUsersCommand.d.ts +6 -21
  66. package/dist-types/commands/UpdateGroupCommand.d.ts +6 -21
  67. package/dist-types/commands/UpdateUserCommand.d.ts +6 -21
  68. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  69. package/dist-types/pagination/ListGroupMembershipsForMemberPaginator.d.ts +1 -1
  70. package/dist-types/pagination/ListGroupMembershipsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/CreateGroupMembershipCommand.d.ts +12 -24
  75. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DeleteGroupMembershipCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/DescribeGroupCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/DescribeGroupMembershipCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/GetGroupIdCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/GetGroupMembershipIdCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/GetUserIdCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/IsMemberInGroupsCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/ListGroupMembershipsCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/ListGroupMembershipsForMemberCommand.d.ts +12 -24
  88. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  93. package/dist-types/ts3.4/pagination/ListGroupMembershipsForMemberPaginator.d.ts +3 -3
  94. package/dist-types/ts3.4/pagination/ListGroupMembershipsPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
  97. package/package.json +11 -10
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ListGroupsRequestFilterSensitiveLog, ListGroupsResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListGroupsCommand, se_ListGroupsCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class ListGroupsCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ListGroupsCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "IdentitystoreClient";
27
- const commandName = "ListGroupsCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: ListGroupsRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: ListGroupsResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSIdentityStore",
36
- operation: "ListGroups",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ListGroupsCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListGroupsCommand(output, context);
47
- }
8
+ export class ListGroupsCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSIdentityStore", "ListGroups", {})
20
+ .n("IdentitystoreClient", "ListGroupsCommand")
21
+ .f(ListGroupsRequestFilterSensitiveLog, ListGroupsResponseFilterSensitiveLog)
22
+ .ser(se_ListGroupsCommand)
23
+ .de(de_ListGroupsCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ListUsersRequestFilterSensitiveLog, ListUsersResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListUsersCommand, se_ListUsersCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class ListUsersCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ListUsersCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "IdentitystoreClient";
27
- const commandName = "ListUsersCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: ListUsersRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: ListUsersResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSIdentityStore",
36
- operation: "ListUsers",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ListUsersCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListUsersCommand(output, context);
47
- }
8
+ export class ListUsersCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSIdentityStore", "ListUsers", {})
20
+ .n("IdentitystoreClient", "ListUsersCommand")
21
+ .f(ListUsersRequestFilterSensitiveLog, ListUsersResponseFilterSensitiveLog)
22
+ .ser(se_ListUsersCommand)
23
+ .de(de_ListUsersCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateGroupCommand, se_UpdateGroupCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateGroupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IdentitystoreClient";
26
- const commandName = "UpdateGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSIdentityStore",
35
- operation: "UpdateGroup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateGroupCommand(output, context);
46
- }
7
+ export class UpdateGroupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSIdentityStore", "UpdateGroup", {})
19
+ .n("IdentitystoreClient", "UpdateGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateGroupCommand)
22
+ .de(de_UpdateGroupCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateUserCommand, se_UpdateUserCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateUserCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateUserCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IdentitystoreClient";
26
- const commandName = "UpdateUserCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSIdentityStore",
35
- operation: "UpdateUser",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateUserCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateUserCommand(output, context);
46
- }
7
+ export class UpdateUserCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSIdentityStore", "UpdateUser", {})
19
+ .n("IdentitystoreClient", "UpdateUserCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateUserCommand)
22
+ .de(de_UpdateUserCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "identitystore",
7
7
  };
8
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
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGroupMembershipsForMemberCommand, } from "../commands/ListGroupMembershipsForMemberCommand";
2
3
  import { IdentitystoreClient } from "../IdentitystoreClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGroupMembershipsForMemberCommand(input), ...args);
5
- };
6
- export async function* paginateListGroupMembershipsForMember(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof IdentitystoreClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Identitystore | IdentitystoreClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListGroupMembershipsForMember = createPaginator(IdentitystoreClient, ListGroupMembershipsForMemberCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGroupMembershipsCommand, } from "../commands/ListGroupMembershipsCommand";
2
3
  import { IdentitystoreClient } from "../IdentitystoreClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGroupMembershipsCommand(input), ...args);
5
- };
6
- export async function* paginateListGroupMemberships(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof IdentitystoreClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Identitystore | IdentitystoreClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListGroupMemberships = createPaginator(IdentitystoreClient, ListGroupMembershipsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGroupsCommand } from "../commands/ListGroupsCommand";
2
3
  import { IdentitystoreClient } from "../IdentitystoreClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof IdentitystoreClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Identitystore | IdentitystoreClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListGroups = createPaginator(IdentitystoreClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUsersCommand } from "../commands/ListUsersCommand";
2
3
  import { IdentitystoreClient } from "../IdentitystoreClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUsersCommand(input), ...args);
5
- };
6
- export async function* paginateListUsers(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof IdentitystoreClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Identitystore | IdentitystoreClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListUsers = createPaginator(IdentitystoreClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IdentitystoreClient";
5
4
  import { CreateGroupRequest, CreateGroupResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateGroupCommandInput extends CreateGroupRequest {
21
20
  */
22
21
  export interface CreateGroupCommandOutput extends CreateGroupResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateGroupCommand_base: {
24
+ new (input: CreateGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupCommandInput, CreateGroupCommandOutput, IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a group within the specified identity store.</p>
@@ -83,23 +86,5 @@ export interface CreateGroupCommandOutput extends CreateGroupResponse, __Metadat
83
86
  * <p>Base exception class for all service exceptions from Identitystore service.</p>
84
87
  *
85
88
  */
86
- export declare class CreateGroupCommand extends $Command<CreateGroupCommandInput, CreateGroupCommandOutput, IdentitystoreClientResolvedConfig> {
87
- readonly input: CreateGroupCommandInput;
88
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
- /**
90
- * @public
91
- */
92
- constructor(input: CreateGroupCommandInput);
93
- /**
94
- * @internal
95
- */
96
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateGroupCommandInput, CreateGroupCommandOutput>;
97
- /**
98
- * @internal
99
- */
100
- private serialize;
101
- /**
102
- * @internal
103
- */
104
- private deserialize;
89
+ export declare class CreateGroupCommand extends CreateGroupCommand_base {
105
90
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IdentitystoreClient";
5
4
  import { CreateGroupMembershipRequest, CreateGroupMembershipResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateGroupMembershipCommandInput extends CreateGroupMembership
21
20
  */
22
21
  export interface CreateGroupMembershipCommandOutput extends CreateGroupMembershipResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateGroupMembershipCommand_base: {
24
+ new (input: CreateGroupMembershipCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupMembershipCommandInput, CreateGroupMembershipCommandOutput, IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a relationship between a member and a group. The following identifiers must be specified: <code>GroupId</code>, <code>IdentityStoreId</code>, and <code>MemberId</code>.</p>
@@ -85,23 +88,5 @@ export interface CreateGroupMembershipCommandOutput extends CreateGroupMembershi
85
88
  * <p>Base exception class for all service exceptions from Identitystore service.</p>
86
89
  *
87
90
  */
88
- export declare class CreateGroupMembershipCommand extends $Command<CreateGroupMembershipCommandInput, CreateGroupMembershipCommandOutput, IdentitystoreClientResolvedConfig> {
89
- readonly input: CreateGroupMembershipCommandInput;
90
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
91
- /**
92
- * @public
93
- */
94
- constructor(input: CreateGroupMembershipCommandInput);
95
- /**
96
- * @internal
97
- */
98
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateGroupMembershipCommandInput, CreateGroupMembershipCommandOutput>;
99
- /**
100
- * @internal
101
- */
102
- private serialize;
103
- /**
104
- * @internal
105
- */
106
- private deserialize;
91
+ export declare class CreateGroupMembershipCommand extends CreateGroupMembershipCommand_base {
107
92
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IdentitystoreClient";
5
4
  import { CreateUserRequest, CreateUserResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateUserCommandInput extends CreateUserRequest {
21
20
  */
22
21
  export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateUserCommand_base: {
24
+ new (input: CreateUserCommandInput): import("@smithy/smithy-client").CommandImpl<CreateUserCommandInput, CreateUserCommandOutput, IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a user within the specified identity store.</p>
@@ -124,23 +127,5 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
124
127
  * <p>Base exception class for all service exceptions from Identitystore service.</p>
125
128
  *
126
129
  */
127
- export declare class CreateUserCommand extends $Command<CreateUserCommandInput, CreateUserCommandOutput, IdentitystoreClientResolvedConfig> {
128
- readonly input: CreateUserCommandInput;
129
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
130
- /**
131
- * @public
132
- */
133
- constructor(input: CreateUserCommandInput);
134
- /**
135
- * @internal
136
- */
137
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateUserCommandInput, CreateUserCommandOutput>;
138
- /**
139
- * @internal
140
- */
141
- private serialize;
142
- /**
143
- * @internal
144
- */
145
- private deserialize;
130
+ export declare class CreateUserCommand extends CreateUserCommand_base {
146
131
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IdentitystoreClient";
5
4
  import { DeleteGroupRequest, DeleteGroupResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteGroupCommandInput extends DeleteGroupRequest {
21
20
  */
22
21
  export interface DeleteGroupCommandOutput extends DeleteGroupResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteGroupCommand_base: {
24
+ new (input: DeleteGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteGroupCommandInput, DeleteGroupCommandOutput, IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Delete a group within an identity store given <code>GroupId</code>.</p>
@@ -76,23 +79,5 @@ export interface DeleteGroupCommandOutput extends DeleteGroupResponse, __Metadat
76
79
  * <p>Base exception class for all service exceptions from Identitystore service.</p>
77
80
  *
78
81
  */
79
- export declare class DeleteGroupCommand extends $Command<DeleteGroupCommandInput, DeleteGroupCommandOutput, IdentitystoreClientResolvedConfig> {
80
- readonly input: DeleteGroupCommandInput;
81
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
82
- /**
83
- * @public
84
- */
85
- constructor(input: DeleteGroupCommandInput);
86
- /**
87
- * @internal
88
- */
89
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteGroupCommandInput, DeleteGroupCommandOutput>;
90
- /**
91
- * @internal
92
- */
93
- private serialize;
94
- /**
95
- * @internal
96
- */
97
- private deserialize;
82
+ export declare class DeleteGroupCommand extends DeleteGroupCommand_base {
98
83
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IdentitystoreClient";
5
4
  import { DeleteGroupMembershipRequest, DeleteGroupMembershipResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteGroupMembershipCommandInput extends DeleteGroupMembership
21
20
  */
22
21
  export interface DeleteGroupMembershipCommandOutput extends DeleteGroupMembershipResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteGroupMembershipCommand_base: {
24
+ new (input: DeleteGroupMembershipCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteGroupMembershipCommandInput, DeleteGroupMembershipCommandOutput, IdentitystoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Delete a membership within a group given <code>MembershipId</code>.</p>
@@ -76,23 +79,5 @@ export interface DeleteGroupMembershipCommandOutput extends DeleteGroupMembershi
76
79
  * <p>Base exception class for all service exceptions from Identitystore service.</p>
77
80
  *
78
81
  */
79
- export declare class DeleteGroupMembershipCommand extends $Command<DeleteGroupMembershipCommandInput, DeleteGroupMembershipCommandOutput, IdentitystoreClientResolvedConfig> {
80
- readonly input: DeleteGroupMembershipCommandInput;
81
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
82
- /**
83
- * @public
84
- */
85
- constructor(input: DeleteGroupMembershipCommandInput);
86
- /**
87
- * @internal
88
- */
89
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IdentitystoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteGroupMembershipCommandInput, DeleteGroupMembershipCommandOutput>;
90
- /**
91
- * @internal
92
- */
93
- private serialize;
94
- /**
95
- * @internal
96
- */
97
- private deserialize;
82
+ export declare class DeleteGroupMembershipCommand extends DeleteGroupMembershipCommand_base {
98
83
  }