@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
@@ -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_ListIndexesForMembersCommand, se_ListIndexesForMembersCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListIndexesForMembersCommand 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, ListIndexesForMembersCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "ResourceExplorer2Client";
25
- const commandName = "ListIndexesForMembersCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "ResourceExplorer",
34
- operation: "ListIndexesForMembers",
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_ListIndexesForMembersCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_ListIndexesForMembersCommand(output, context);
45
- }
7
+ export class ListIndexesForMembersCommand 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", "ListIndexesForMembers", {})
19
+ .n("ResourceExplorer2Client", "ListIndexesForMembersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListIndexesForMembersCommand)
22
+ .de(de_ListIndexesForMembersCommand)
23
+ .build() {
46
24
  }
@@ -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_ListSupportedResourceTypesCommand, se_ListSupportedResourceTypesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListSupportedResourceTypesCommand 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, ListSupportedResourceTypesCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "ResourceExplorer2Client";
25
- const commandName = "ListSupportedResourceTypesCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "ResourceExplorer",
34
- operation: "ListSupportedResourceTypes",
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_ListSupportedResourceTypesCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_ListSupportedResourceTypesCommand(output, context);
45
- }
7
+ export class ListSupportedResourceTypesCommand 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", "ListSupportedResourceTypes", {})
19
+ .n("ResourceExplorer2Client", "ListSupportedResourceTypesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListSupportedResourceTypesCommand)
22
+ .de(de_ListSupportedResourceTypesCommand)
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 { ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
8
+ export class ListTagsForResourceCommand 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", "ListTagsForResource", {})
20
+ .n("ResourceExplorer2Client", "ListTagsForResourceCommand")
21
+ .f(void 0, ListTagsForResourceOutputFilterSensitiveLog)
22
+ .ser(se_ListTagsForResourceCommand)
23
+ .de(de_ListTagsForResourceCommand)
24
+ .build() {
47
25
  }
@@ -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_ListViewsCommand, se_ListViewsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListViewsCommand 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, ListViewsCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "ResourceExplorer2Client";
25
- const commandName = "ListViewsCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "ResourceExplorer",
34
- operation: "ListViews",
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_ListViewsCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_ListViewsCommand(output, context);
45
- }
7
+ export class ListViewsCommand 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", "ListViews", {})
19
+ .n("ResourceExplorer2Client", "ListViewsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListViewsCommand)
22
+ .de(de_ListViewsCommand)
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 { SearchInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_SearchCommand, se_SearchCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class SearchCommand 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, SearchCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "SearchCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: SearchInputFilterSensitiveLog,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "Search",
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_SearchCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SearchCommand(output, context);
46
- }
8
+ export class SearchCommand 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", "Search", {})
20
+ .n("ResourceExplorer2Client", "SearchCommand")
21
+ .f(SearchInputFilterSensitiveLog, void 0)
22
+ .ser(se_SearchCommand)
23
+ .de(de_SearchCommand)
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 { TagResourceInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class TagResourceCommand 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, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "TagResource",
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_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
8
+ export class TagResourceCommand 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", "TagResource", {})
20
+ .n("ResourceExplorer2Client", "TagResourceCommand")
21
+ .f(TagResourceInputFilterSensitiveLog, void 0)
22
+ .ser(se_TagResourceCommand)
23
+ .de(de_TagResourceCommand)
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 { UntagResourceInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "UntagResource",
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_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
8
+ export class UntagResourceCommand 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", "UntagResource", {})
20
+ .n("ResourceExplorer2Client", "UntagResourceCommand")
21
+ .f(UntagResourceInputFilterSensitiveLog, void 0)
22
+ .ser(se_UntagResourceCommand)
23
+ .de(de_UntagResourceCommand)
24
+ .build() {
47
25
  }
@@ -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_UpdateIndexTypeCommand, se_UpdateIndexTypeCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateIndexTypeCommand 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, UpdateIndexTypeCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "ResourceExplorer2Client";
25
- const commandName = "UpdateIndexTypeCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "ResourceExplorer",
34
- operation: "UpdateIndexType",
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_UpdateIndexTypeCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_UpdateIndexTypeCommand(output, context);
45
- }
7
+ export class UpdateIndexTypeCommand 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", "UpdateIndexType", {})
19
+ .n("ResourceExplorer2Client", "UpdateIndexTypeCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateIndexTypeCommand)
22
+ .de(de_UpdateIndexTypeCommand)
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 { UpdateViewInputFilterSensitiveLog, UpdateViewOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateViewCommand, se_UpdateViewCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateViewCommand 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, UpdateViewCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ResourceExplorer2Client";
26
- const commandName = "UpdateViewCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: UpdateViewInputFilterSensitiveLog,
32
- outputFilterSensitiveLog: UpdateViewOutputFilterSensitiveLog,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ResourceExplorer",
35
- operation: "UpdateView",
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_UpdateViewCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateViewCommand(output, context);
46
- }
8
+ export class UpdateViewCommand 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", "UpdateView", {})
20
+ .n("ResourceExplorer2Client", "UpdateViewCommand")
21
+ .f(UpdateViewInputFilterSensitiveLog, UpdateViewOutputFilterSensitiveLog)
22
+ .ser(se_UpdateViewCommand)
23
+ .de(de_UpdateViewCommand)
24
+ .build() {
47
25
  }
@@ -5,3 +5,8 @@ export const resolveClientEndpointParameters = (options) => {
5
5
  defaultSigningName: "resource-explorer-2",
6
6
  };
7
7
  };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIndexesForMembersCommand, } from "../commands/ListIndexesForMembersCommand";
2
3
  import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIndexesForMembersCommand(input), ...args);
5
- };
6
- export async function* paginateListIndexesForMembers(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 ResourceExplorer2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
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 paginateListIndexesForMembers = createPaginator(ResourceExplorer2Client, ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");