@aws-sdk/client-resource-explorer-2 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 (109) hide show
  1. package/dist-cjs/commands/AssociateDefaultViewCommand.js +18 -40
  2. package/dist-cjs/commands/BatchGetViewCommand.js +18 -40
  3. package/dist-cjs/commands/CreateIndexCommand.js +18 -40
  4. package/dist-cjs/commands/CreateViewCommand.js +18 -40
  5. package/dist-cjs/commands/DeleteIndexCommand.js +18 -40
  6. package/dist-cjs/commands/DeleteViewCommand.js +18 -40
  7. package/dist-cjs/commands/DisassociateDefaultViewCommand.js +18 -40
  8. package/dist-cjs/commands/GetAccountLevelServiceConfigurationCommand.js +18 -40
  9. package/dist-cjs/commands/GetDefaultViewCommand.js +18 -40
  10. package/dist-cjs/commands/GetIndexCommand.js +18 -40
  11. package/dist-cjs/commands/GetViewCommand.js +18 -40
  12. package/dist-cjs/commands/ListIndexesCommand.js +18 -40
  13. package/dist-cjs/commands/ListIndexesForMembersCommand.js +18 -40
  14. package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +18 -40
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -40
  16. package/dist-cjs/commands/ListViewsCommand.js +18 -40
  17. package/dist-cjs/commands/SearchCommand.js +18 -40
  18. package/dist-cjs/commands/TagResourceCommand.js +18 -40
  19. package/dist-cjs/commands/UntagResourceCommand.js +18 -40
  20. package/dist-cjs/commands/UpdateIndexTypeCommand.js +18 -40
  21. package/dist-cjs/commands/UpdateViewCommand.js +18 -40
  22. package/dist-cjs/endpoint/EndpointParameters.js +6 -1
  23. package/dist-cjs/pagination/ListIndexesForMembersPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListIndexesPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListViewsPaginator.js +2 -24
  27. package/dist-cjs/pagination/SearchPaginator.js +2 -24
  28. package/dist-es/commands/AssociateDefaultViewCommand.js +18 -40
  29. package/dist-es/commands/BatchGetViewCommand.js +18 -40
  30. package/dist-es/commands/CreateIndexCommand.js +18 -40
  31. package/dist-es/commands/CreateViewCommand.js +18 -40
  32. package/dist-es/commands/DeleteIndexCommand.js +18 -40
  33. package/dist-es/commands/DeleteViewCommand.js +18 -40
  34. package/dist-es/commands/DisassociateDefaultViewCommand.js +18 -40
  35. package/dist-es/commands/GetAccountLevelServiceConfigurationCommand.js +18 -40
  36. package/dist-es/commands/GetDefaultViewCommand.js +18 -40
  37. package/dist-es/commands/GetIndexCommand.js +18 -40
  38. package/dist-es/commands/GetViewCommand.js +18 -40
  39. package/dist-es/commands/ListIndexesCommand.js +18 -40
  40. package/dist-es/commands/ListIndexesForMembersCommand.js +18 -40
  41. package/dist-es/commands/ListSupportedResourceTypesCommand.js +18 -40
  42. package/dist-es/commands/ListTagsForResourceCommand.js +18 -40
  43. package/dist-es/commands/ListViewsCommand.js +18 -40
  44. package/dist-es/commands/SearchCommand.js +18 -40
  45. package/dist-es/commands/TagResourceCommand.js +18 -40
  46. package/dist-es/commands/UntagResourceCommand.js +18 -40
  47. package/dist-es/commands/UpdateIndexTypeCommand.js +18 -40
  48. package/dist-es/commands/UpdateViewCommand.js +18 -40
  49. package/dist-es/endpoint/EndpointParameters.js +5 -0
  50. package/dist-es/pagination/ListIndexesForMembersPaginator.js +2 -23
  51. package/dist-es/pagination/ListIndexesPaginator.js +2 -23
  52. package/dist-es/pagination/ListSupportedResourceTypesPaginator.js +2 -23
  53. package/dist-es/pagination/ListViewsPaginator.js +2 -23
  54. package/dist-es/pagination/SearchPaginator.js +2 -23
  55. package/dist-types/commands/AssociateDefaultViewCommand.d.ts +6 -21
  56. package/dist-types/commands/BatchGetViewCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateIndexCommand.d.ts +6 -21
  58. package/dist-types/commands/CreateViewCommand.d.ts +6 -21
  59. package/dist-types/commands/DeleteIndexCommand.d.ts +6 -21
  60. package/dist-types/commands/DeleteViewCommand.d.ts +6 -21
  61. package/dist-types/commands/DisassociateDefaultViewCommand.d.ts +6 -21
  62. package/dist-types/commands/GetAccountLevelServiceConfigurationCommand.d.ts +6 -21
  63. package/dist-types/commands/GetDefaultViewCommand.d.ts +6 -21
  64. package/dist-types/commands/GetIndexCommand.d.ts +6 -21
  65. package/dist-types/commands/GetViewCommand.d.ts +6 -21
  66. package/dist-types/commands/ListIndexesCommand.d.ts +6 -21
  67. package/dist-types/commands/ListIndexesForMembersCommand.d.ts +6 -21
  68. package/dist-types/commands/ListSupportedResourceTypesCommand.d.ts +6 -21
  69. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  70. package/dist-types/commands/ListViewsCommand.d.ts +6 -21
  71. package/dist-types/commands/SearchCommand.d.ts +6 -21
  72. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  73. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  74. package/dist-types/commands/UpdateIndexTypeCommand.d.ts +6 -21
  75. package/dist-types/commands/UpdateViewCommand.d.ts +6 -21
  76. package/dist-types/endpoint/EndpointParameters.d.ts +14 -0
  77. package/dist-types/pagination/ListIndexesForMembersPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListIndexesPaginator.d.ts +1 -1
  79. package/dist-types/pagination/ListSupportedResourceTypesPaginator.d.ts +1 -1
  80. package/dist-types/pagination/ListViewsPaginator.d.ts +1 -1
  81. package/dist-types/pagination/SearchPaginator.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/AssociateDefaultViewCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/BatchGetViewCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/DisassociateDefaultViewCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/GetAccountLevelServiceConfigurationCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/GetDefaultViewCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetViewCommand.d.ts +12 -23
  93. package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/ListIndexesForMembersCommand.d.ts +12 -24
  95. package/dist-types/ts3.4/commands/ListSupportedResourceTypesCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/SearchCommand.d.ts +12 -23
  99. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/UpdateIndexTypeCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/UpdateViewCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +14 -0
  104. package/dist-types/ts3.4/pagination/ListIndexesForMembersPaginator.d.ts +3 -3
  105. package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +3 -3
  106. package/dist-types/ts3.4/pagination/ListSupportedResourceTypesPaginator.d.ts +3 -3
  107. package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +3 -3
  108. package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +3 -3
  109. package/package.json +11 -11
@@ -5,47 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class UntagResourceCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ResourceExplorer2Client";
29
- const commandName = "UntagResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ResourceExplorer",
38
- operation: "UntagResource",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UntagResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
49
- }
11
+ class UntagResourceCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("ResourceExplorer", "UntagResource", {})
23
+ .n("ResourceExplorer2Client", "UntagResourceCommand")
24
+ .f(models_0_1.UntagResourceInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_UntagResourceCommand)
26
+ .de(Aws_restJson1_1.de_UntagResourceCommand)
27
+ .build() {
50
28
  }
51
29
  exports.UntagResourceCommand = UntagResourceCommand;
@@ -5,46 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateIndexTypeCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- };
17
- }
18
- constructor(input) {
19
- super();
20
- this.input = input;
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateIndexTypeCommand.getEndpointParameterInstructions()));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "ResourceExplorer2Client";
28
- const commandName = "UpdateIndexTypeCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [types_1.SMITHY_CONTEXT_KEY]: {
36
- service: "ResourceExplorer",
37
- operation: "UpdateIndexType",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return (0, Aws_restJson1_1.se_UpdateIndexTypeCommand)(input, context);
45
- }
46
- deserialize(output, context) {
47
- return (0, Aws_restJson1_1.de_UpdateIndexTypeCommand)(output, context);
48
- }
10
+ class UpdateIndexTypeCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ResourceExplorer", "UpdateIndexType", {})
22
+ .n("ResourceExplorer2Client", "UpdateIndexTypeCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateIndexTypeCommand)
25
+ .de(Aws_restJson1_1.de_UpdateIndexTypeCommand)
26
+ .build() {
49
27
  }
50
28
  exports.UpdateIndexTypeCommand = UpdateIndexTypeCommand;
@@ -5,47 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class UpdateViewCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateViewCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ResourceExplorer2Client";
29
- const commandName = "UpdateViewCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: models_0_1.UpdateViewInputFilterSensitiveLog,
35
- outputFilterSensitiveLog: models_0_1.UpdateViewOutputFilterSensitiveLog,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ResourceExplorer",
38
- operation: "UpdateView",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateViewCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateViewCommand)(output, context);
49
- }
11
+ class UpdateViewCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("ResourceExplorer", "UpdateView", {})
23
+ .n("ResourceExplorer2Client", "UpdateViewCommand")
24
+ .f(models_0_1.UpdateViewInputFilterSensitiveLog, models_0_1.UpdateViewOutputFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_UpdateViewCommand)
26
+ .de(Aws_restJson1_1.de_UpdateViewCommand)
27
+ .build() {
50
28
  }
51
29
  exports.UpdateViewCommand = UpdateViewCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -9,3 +9,8 @@ const resolveClientEndpointParameters = (options) => {
9
9
  };
10
10
  };
11
11
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
12
+ exports.commonParams = {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIndexesForMembers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIndexesForMembersCommand_1 = require("../commands/ListIndexesForMembersCommand");
5
6
  const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIndexesForMembersCommand_1.ListIndexesForMembersCommand(input), ...args);
8
- };
9
- async function* paginateListIndexesForMembers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIndexesForMembers = paginateListIndexesForMembers;
7
+ exports.paginateListIndexesForMembers = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListIndexesForMembersCommand_1.ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIndexes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIndexesCommand_1 = require("../commands/ListIndexesCommand");
5
6
  const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIndexesCommand_1.ListIndexesCommand(input), ...args);
8
- };
9
- async function* paginateListIndexes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIndexes = paginateListIndexes;
7
+ exports.paginateListIndexes = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListIndexesCommand_1.ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSupportedResourceTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSupportedResourceTypesCommand_1 = require("../commands/ListSupportedResourceTypesCommand");
5
6
  const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand(input), ...args);
8
- };
9
- async function* paginateListSupportedResourceTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSupportedResourceTypes = paginateListSupportedResourceTypes;
7
+ exports.paginateListSupportedResourceTypes = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListViews = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListViewsCommand_1 = require("../commands/ListViewsCommand");
5
6
  const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListViewsCommand_1.ListViewsCommand(input), ...args);
8
- };
9
- async function* paginateListViews(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListViews = paginateListViews;
7
+ exports.paginateListViews = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListViewsCommand_1.ListViewsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearch = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchCommand_1 = require("../commands/SearchCommand");
5
6
  const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchCommand_1.SearchCommand(input), ...args);
8
- };
9
- async function* paginateSearch(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateSearch = paginateSearch;
7
+ exports.paginateSearch = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, SearchCommand_1.SearchCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,46 +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_AssociateDefaultViewCommand, se_AssociateDefaultViewCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class AssociateDefaultViewCommand 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
- };
14
- }
15
- constructor(input) {
16
- super();
17
- this.input = input;
18
- }
19
- resolveMiddleware(clientStack, configuration, options) {
20
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
- this.middlewareStack.use(getEndpointPlugin(configuration, AssociateDefaultViewCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "ResourceExplorer2Client";
25
- const commandName = "AssociateDefaultViewCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "ResourceExplorer",
34
- operation: "AssociateDefaultView",
35
- },
36
- };
37
- const { requestHandler } = configuration;
38
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
- }
40
- serialize(input, context) {
41
- return se_AssociateDefaultViewCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_AssociateDefaultViewCommand(output, context);
45
- }
7
+ export class AssociateDefaultViewCommand 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("ResourceExplorer", "AssociateDefaultView", {})
19
+ .n("ResourceExplorer2Client", "AssociateDefaultViewCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_AssociateDefaultViewCommand)
22
+ .de(de_AssociateDefaultViewCommand)
23
+ .build() {
46
24
  }
@@ -1,47 +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 { BatchGetViewOutputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_BatchGetViewCommand, se_BatchGetViewCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class BatchGetViewCommand 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
- };
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, BatchGetViewCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "BatchGetViewCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: BatchGetViewOutputFilterSensitiveLog,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "BatchGetView",
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_BatchGetViewCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchGetViewCommand(output, context);
46
- }
8
+ export class BatchGetViewCommand 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("ResourceExplorer", "BatchGetView", {})
20
+ .n("ResourceExplorer2Client", "BatchGetViewCommand")
21
+ .f(void 0, BatchGetViewOutputFilterSensitiveLog)
22
+ .ser(se_BatchGetViewCommand)
23
+ .de(de_BatchGetViewCommand)
24
+ .build() {
47
25
  }
@@ -1,47 +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 { CreateIndexInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_CreateIndexCommand, se_CreateIndexCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class CreateIndexCommand 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
- };
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, CreateIndexCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "CreateIndexCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: CreateIndexInputFilterSensitiveLog,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "CreateIndex",
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_CreateIndexCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateIndexCommand(output, context);
46
- }
8
+ export class CreateIndexCommand 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("ResourceExplorer", "CreateIndex", {})
20
+ .n("ResourceExplorer2Client", "CreateIndexCommand")
21
+ .f(CreateIndexInputFilterSensitiveLog, void 0)
22
+ .ser(se_CreateIndexCommand)
23
+ .de(de_CreateIndexCommand)
24
+ .build() {
47
25
  }