@aws-sdk/client-resource-explorer-2 3.449.0 → 3.451.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 (65) hide show
  1. package/README.md +17 -1
  2. package/dist-cjs/ResourceExplorer2.js +4 -0
  3. package/dist-cjs/commands/CreateIndexCommand.js +2 -1
  4. package/dist-cjs/commands/GetAccountLevelServiceConfigurationCommand.js +50 -0
  5. package/dist-cjs/commands/GetIndexCommand.js +2 -1
  6. package/dist-cjs/commands/ListIndexesForMembersCommand.js +50 -0
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  8. package/dist-cjs/commands/TagResourceCommand.js +2 -1
  9. package/dist-cjs/commands/UntagResourceCommand.js +2 -1
  10. package/dist-cjs/commands/index.js +2 -0
  11. package/dist-cjs/models/models_0.js +32 -1
  12. package/dist-cjs/pagination/ListIndexesForMembersPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +134 -1
  15. package/dist-es/ResourceExplorer2.js +4 -0
  16. package/dist-es/commands/CreateIndexCommand.js +2 -1
  17. package/dist-es/commands/GetAccountLevelServiceConfigurationCommand.js +46 -0
  18. package/dist-es/commands/GetIndexCommand.js +2 -1
  19. package/dist-es/commands/ListIndexesForMembersCommand.js +46 -0
  20. package/dist-es/commands/ListTagsForResourceCommand.js +2 -1
  21. package/dist-es/commands/TagResourceCommand.js +2 -1
  22. package/dist-es/commands/UntagResourceCommand.js +2 -1
  23. package/dist-es/commands/index.js +2 -0
  24. package/dist-es/models/models_0.js +26 -0
  25. package/dist-es/pagination/ListIndexesForMembersPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_restJson1.js +129 -0
  28. package/dist-types/ResourceExplorer2.d.ts +14 -0
  29. package/dist-types/ResourceExplorer2Client.d.ts +4 -2
  30. package/dist-types/commands/AssociateDefaultViewCommand.d.ts +2 -2
  31. package/dist-types/commands/BatchGetViewCommand.d.ts +2 -2
  32. package/dist-types/commands/CreateIndexCommand.d.ts +7 -3
  33. package/dist-types/commands/CreateViewCommand.d.ts +8 -3
  34. package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
  35. package/dist-types/commands/DeleteViewCommand.d.ts +2 -2
  36. package/dist-types/commands/DisassociateDefaultViewCommand.d.ts +6 -2
  37. package/dist-types/commands/GetAccountLevelServiceConfigurationCommand.d.ts +94 -0
  38. package/dist-types/commands/GetDefaultViewCommand.d.ts +2 -2
  39. package/dist-types/commands/GetIndexCommand.d.ts +2 -2
  40. package/dist-types/commands/GetViewCommand.d.ts +2 -2
  41. package/dist-types/commands/ListIndexesCommand.d.ts +2 -2
  42. package/dist-types/commands/ListIndexesForMembersCommand.d.ts +105 -0
  43. package/dist-types/commands/ListSupportedResourceTypesCommand.d.ts +2 -2
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  45. package/dist-types/commands/ListViewsCommand.d.ts +2 -2
  46. package/dist-types/commands/SearchCommand.d.ts +2 -2
  47. package/dist-types/commands/TagResourceCommand.d.ts +7 -3
  48. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  49. package/dist-types/commands/UpdateIndexTypeCommand.d.ts +7 -3
  50. package/dist-types/commands/UpdateViewCommand.d.ts +2 -2
  51. package/dist-types/commands/index.d.ts +2 -0
  52. package/dist-types/models/models_0.d.ts +190 -21
  53. package/dist-types/pagination/ListIndexesForMembersPaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +1 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  56. package/dist-types/ts3.4/ResourceExplorer2.d.ts +40 -0
  57. package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +12 -0
  58. package/dist-types/ts3.4/commands/GetAccountLevelServiceConfigurationCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/ListIndexesForMembersCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +44 -0
  62. package/dist-types/ts3.4/pagination/ListIndexesForMembersPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  65. package/package.json +35 -35
package/README.md CHANGED
@@ -182,7 +182,7 @@ try {
182
182
  const data = await client.send(command);
183
183
  // process data.
184
184
  } catch (error) {
185
- const { requestId, cfId, extendedRequestId } = error.$$metadata;
185
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
186
186
  console.log({ requestId, cfId, extendedRequestId });
187
187
  /**
188
188
  * The keys within exceptions are also parsed.
@@ -278,6 +278,14 @@ DisassociateDefaultView
278
278
 
279
279
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/disassociatedefaultviewcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/disassociatedefaultviewcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/disassociatedefaultviewcommandoutput.html)
280
280
 
281
+ </details>
282
+ <details>
283
+ <summary>
284
+ GetAccountLevelServiceConfiguration
285
+ </summary>
286
+
287
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/getaccountlevelserviceconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/getaccountlevelserviceconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/getaccountlevelserviceconfigurationcommandoutput.html)
288
+
281
289
  </details>
282
290
  <details>
283
291
  <summary>
@@ -310,6 +318,14 @@ ListIndexes
310
318
 
311
319
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/listindexescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexescommandoutput.html)
312
320
 
321
+ </details>
322
+ <details>
323
+ <summary>
324
+ ListIndexesForMembers
325
+ </summary>
326
+
327
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/listindexesformemberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexesformemberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexesformemberscommandoutput.html)
328
+
313
329
  </details>
314
330
  <details>
315
331
  <summary>
@@ -9,10 +9,12 @@ const CreateViewCommand_1 = require("./commands/CreateViewCommand");
9
9
  const DeleteIndexCommand_1 = require("./commands/DeleteIndexCommand");
10
10
  const DeleteViewCommand_1 = require("./commands/DeleteViewCommand");
11
11
  const DisassociateDefaultViewCommand_1 = require("./commands/DisassociateDefaultViewCommand");
12
+ const GetAccountLevelServiceConfigurationCommand_1 = require("./commands/GetAccountLevelServiceConfigurationCommand");
12
13
  const GetDefaultViewCommand_1 = require("./commands/GetDefaultViewCommand");
13
14
  const GetIndexCommand_1 = require("./commands/GetIndexCommand");
14
15
  const GetViewCommand_1 = require("./commands/GetViewCommand");
15
16
  const ListIndexesCommand_1 = require("./commands/ListIndexesCommand");
17
+ const ListIndexesForMembersCommand_1 = require("./commands/ListIndexesForMembersCommand");
16
18
  const ListSupportedResourceTypesCommand_1 = require("./commands/ListSupportedResourceTypesCommand");
17
19
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
18
20
  const ListViewsCommand_1 = require("./commands/ListViewsCommand");
@@ -30,10 +32,12 @@ const commands = {
30
32
  DeleteIndexCommand: DeleteIndexCommand_1.DeleteIndexCommand,
31
33
  DeleteViewCommand: DeleteViewCommand_1.DeleteViewCommand,
32
34
  DisassociateDefaultViewCommand: DisassociateDefaultViewCommand_1.DisassociateDefaultViewCommand,
35
+ GetAccountLevelServiceConfigurationCommand: GetAccountLevelServiceConfigurationCommand_1.GetAccountLevelServiceConfigurationCommand,
33
36
  GetDefaultViewCommand: GetDefaultViewCommand_1.GetDefaultViewCommand,
34
37
  GetIndexCommand: GetIndexCommand_1.GetIndexCommand,
35
38
  GetViewCommand: GetViewCommand_1.GetViewCommand,
36
39
  ListIndexesCommand: ListIndexesCommand_1.ListIndexesCommand,
40
+ ListIndexesForMembersCommand: ListIndexesForMembersCommand_1.ListIndexesForMembersCommand,
37
41
  ListSupportedResourceTypesCommand: ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand,
38
42
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
39
43
  ListViewsCommand: ListViewsCommand_1.ListViewsCommand,
@@ -6,6 +6,7 @@ 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
8
  const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class CreateIndexCommand extends smithy_client_1.Command {
11
12
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class CreateIndexCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.CreateIndexInputFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  [types_1.SMITHY_CONTEXT_KEY]: {
36
37
  service: "ResourceExplorer",
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAccountLevelServiceConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetAccountLevelServiceConfigurationCommand 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, GetAccountLevelServiceConfigurationCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "ResourceExplorer2Client";
28
+ const commandName = "GetAccountLevelServiceConfigurationCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "ResourceExplorer",
37
+ operation: "GetAccountLevelServiceConfiguration",
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_GetAccountLevelServiceConfigurationCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_GetAccountLevelServiceConfigurationCommand)(output, context);
48
+ }
49
+ }
50
+ exports.GetAccountLevelServiceConfigurationCommand = GetAccountLevelServiceConfigurationCommand;
@@ -6,6 +6,7 @@ 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
8
  const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class GetIndexCommand extends smithy_client_1.Command {
11
12
  static getEndpointParameterInstructions() {
@@ -31,7 +32,7 @@ class GetIndexCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: models_0_1.GetIndexOutputFilterSensitiveLog,
35
36
  [types_1.SMITHY_CONTEXT_KEY]: {
36
37
  service: "ResourceExplorer",
37
38
  operation: "GetIndex",
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListIndexesForMembersCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListIndexesForMembersCommand 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, ListIndexesForMembersCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "ResourceExplorer2Client";
28
+ const commandName = "ListIndexesForMembersCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "ResourceExplorer",
37
+ operation: "ListIndexesForMembers",
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_ListIndexesForMembersCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_ListIndexesForMembersCommand)(output, context);
48
+ }
49
+ }
50
+ exports.ListIndexesForMembersCommand = ListIndexesForMembersCommand;
@@ -6,6 +6,7 @@ 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
8
  const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class ListTagsForResourceCommand extends smithy_client_1.Command {
11
12
  static getEndpointParameterInstructions() {
@@ -31,7 +32,7 @@ class ListTagsForResourceCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: models_0_1.ListTagsForResourceOutputFilterSensitiveLog,
35
36
  [types_1.SMITHY_CONTEXT_KEY]: {
36
37
  service: "ResourceExplorer",
37
38
  operation: "ListTagsForResource",
@@ -6,6 +6,7 @@ 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
8
  const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class TagResourceCommand extends smithy_client_1.Command {
11
12
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class TagResourceCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  [types_1.SMITHY_CONTEXT_KEY]: {
36
37
  service: "ResourceExplorer",
@@ -6,6 +6,7 @@ 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
8
  const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
11
  class UntagResourceCommand extends smithy_client_1.Command {
11
12
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class UntagResourceCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  [types_1.SMITHY_CONTEXT_KEY]: {
36
37
  service: "ResourceExplorer",
@@ -8,10 +8,12 @@ tslib_1.__exportStar(require("./CreateViewCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteIndexCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DeleteViewCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DisassociateDefaultViewCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetAccountLevelServiceConfigurationCommand"), exports);
11
12
  tslib_1.__exportStar(require("./GetDefaultViewCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetIndexCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetViewCommand"), exports);
14
15
  tslib_1.__exportStar(require("./ListIndexesCommand"), exports);
16
+ tslib_1.__exportStar(require("./ListIndexesForMembersCommand"), exports);
15
17
  tslib_1.__exportStar(require("./ListSupportedResourceTypesCommand"), exports);
16
18
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
17
19
  tslib_1.__exportStar(require("./ListViewsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchInputFilterSensitiveLog = exports.UpdateViewOutputFilterSensitiveLog = exports.UpdateViewInputFilterSensitiveLog = exports.GetViewOutputFilterSensitiveLog = exports.CreateViewOutputFilterSensitiveLog = exports.CreateViewInputFilterSensitiveLog = exports.BatchGetViewOutputFilterSensitiveLog = exports.ViewFilterSensitiveLog = exports.SearchFilterFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.IndexType = exports.IndexState = exports.ConflictException = exports.UnauthorizedException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
3
+ exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.SearchInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.GetIndexOutputFilterSensitiveLog = exports.UpdateViewOutputFilterSensitiveLog = exports.UpdateViewInputFilterSensitiveLog = exports.GetViewOutputFilterSensitiveLog = exports.CreateViewOutputFilterSensitiveLog = exports.CreateViewInputFilterSensitiveLog = exports.CreateIndexInputFilterSensitiveLog = exports.BatchGetViewOutputFilterSensitiveLog = exports.ViewFilterSensitiveLog = exports.SearchFilterFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.IndexType = exports.IndexState = exports.ConflictException = exports.UnauthorizedException = exports.AWSServiceAccessStatus = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const ResourceExplorer2ServiceException_1 = require("./ResourceExplorer2ServiceException");
6
6
  class AccessDeniedException extends ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException {
@@ -74,6 +74,10 @@ class ValidationException extends ResourceExplorer2ServiceException_1.ResourceEx
74
74
  }
75
75
  }
76
76
  exports.ValidationException = ValidationException;
77
+ exports.AWSServiceAccessStatus = {
78
+ DISABLED: "DISABLED",
79
+ ENABLED: "ENABLED",
80
+ };
77
81
  class UnauthorizedException extends ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException {
78
82
  constructor(opts) {
79
83
  super({
@@ -143,9 +147,15 @@ const BatchGetViewOutputFilterSensitiveLog = (obj) => ({
143
147
  ...(obj.Views && { Views: obj.Views.map((item) => (0, exports.ViewFilterSensitiveLog)(item)) }),
144
148
  });
145
149
  exports.BatchGetViewOutputFilterSensitiveLog = BatchGetViewOutputFilterSensitiveLog;
150
+ const CreateIndexInputFilterSensitiveLog = (obj) => ({
151
+ ...obj,
152
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
153
+ });
154
+ exports.CreateIndexInputFilterSensitiveLog = CreateIndexInputFilterSensitiveLog;
146
155
  const CreateViewInputFilterSensitiveLog = (obj) => ({
147
156
  ...obj,
148
157
  ...(obj.Filters && { Filters: smithy_client_1.SENSITIVE_STRING }),
158
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
149
159
  });
150
160
  exports.CreateViewInputFilterSensitiveLog = CreateViewInputFilterSensitiveLog;
151
161
  const CreateViewOutputFilterSensitiveLog = (obj) => ({
@@ -156,6 +166,7 @@ exports.CreateViewOutputFilterSensitiveLog = CreateViewOutputFilterSensitiveLog;
156
166
  const GetViewOutputFilterSensitiveLog = (obj) => ({
157
167
  ...obj,
158
168
  ...(obj.View && { View: (0, exports.ViewFilterSensitiveLog)(obj.View) }),
169
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
159
170
  });
160
171
  exports.GetViewOutputFilterSensitiveLog = GetViewOutputFilterSensitiveLog;
161
172
  const UpdateViewInputFilterSensitiveLog = (obj) => ({
@@ -168,8 +179,28 @@ const UpdateViewOutputFilterSensitiveLog = (obj) => ({
168
179
  ...(obj.View && { View: (0, exports.ViewFilterSensitiveLog)(obj.View) }),
169
180
  });
170
181
  exports.UpdateViewOutputFilterSensitiveLog = UpdateViewOutputFilterSensitiveLog;
182
+ const GetIndexOutputFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
185
+ });
186
+ exports.GetIndexOutputFilterSensitiveLog = GetIndexOutputFilterSensitiveLog;
187
+ const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
190
+ });
191
+ exports.ListTagsForResourceOutputFilterSensitiveLog = ListTagsForResourceOutputFilterSensitiveLog;
171
192
  const SearchInputFilterSensitiveLog = (obj) => ({
172
193
  ...obj,
173
194
  ...(obj.QueryString && { QueryString: smithy_client_1.SENSITIVE_STRING }),
174
195
  });
175
196
  exports.SearchInputFilterSensitiveLog = SearchInputFilterSensitiveLog;
197
+ const TagResourceInputFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
200
+ });
201
+ exports.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog;
202
+ const UntagResourceInputFilterSensitiveLog = (obj) => ({
203
+ ...obj,
204
+ ...(obj.tagKeys && { tagKeys: smithy_client_1.SENSITIVE_STRING }),
205
+ });
206
+ exports.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListIndexesForMembers = void 0;
4
+ const ListIndexesForMembersCommand_1 = require("../commands/ListIndexesForMembersCommand");
5
+ 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;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListIndexesForMembersPaginator"), exports);
5
6
  tslib_1.__exportStar(require("./ListIndexesPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./ListSupportedResourceTypesPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListViewsPaginator"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateViewCommand = exports.de_UpdateIndexTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchCommand = exports.de_ListViewsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSupportedResourceTypesCommand = exports.de_ListIndexesCommand = exports.de_GetViewCommand = exports.de_GetIndexCommand = exports.de_GetDefaultViewCommand = exports.de_DisassociateDefaultViewCommand = exports.de_DeleteViewCommand = exports.de_DeleteIndexCommand = exports.de_CreateViewCommand = exports.de_CreateIndexCommand = exports.de_BatchGetViewCommand = exports.de_AssociateDefaultViewCommand = exports.se_UpdateViewCommand = exports.se_UpdateIndexTypeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchCommand = exports.se_ListViewsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSupportedResourceTypesCommand = exports.se_ListIndexesCommand = exports.se_GetViewCommand = exports.se_GetIndexCommand = exports.se_GetDefaultViewCommand = exports.se_DisassociateDefaultViewCommand = exports.se_DeleteViewCommand = exports.se_DeleteIndexCommand = exports.se_CreateViewCommand = exports.se_CreateIndexCommand = exports.se_BatchGetViewCommand = exports.se_AssociateDefaultViewCommand = void 0;
3
+ exports.de_UpdateViewCommand = exports.de_UpdateIndexTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchCommand = exports.de_ListViewsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSupportedResourceTypesCommand = exports.de_ListIndexesForMembersCommand = exports.de_ListIndexesCommand = exports.de_GetViewCommand = exports.de_GetIndexCommand = exports.de_GetDefaultViewCommand = exports.de_GetAccountLevelServiceConfigurationCommand = exports.de_DisassociateDefaultViewCommand = exports.de_DeleteViewCommand = exports.de_DeleteIndexCommand = exports.de_CreateViewCommand = exports.de_CreateIndexCommand = exports.de_BatchGetViewCommand = exports.de_AssociateDefaultViewCommand = exports.se_UpdateViewCommand = exports.se_UpdateIndexTypeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchCommand = exports.se_ListViewsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSupportedResourceTypesCommand = exports.se_ListIndexesForMembersCommand = exports.se_ListIndexesCommand = exports.se_GetViewCommand = exports.se_GetIndexCommand = exports.se_GetDefaultViewCommand = exports.se_GetAccountLevelServiceConfigurationCommand = exports.se_DisassociateDefaultViewCommand = exports.se_DeleteViewCommand = exports.se_DeleteIndexCommand = exports.se_CreateViewCommand = exports.se_CreateIndexCommand = exports.se_BatchGetViewCommand = exports.se_AssociateDefaultViewCommand = void 0;
4
4
  const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
@@ -81,6 +81,7 @@ const se_CreateViewCommand = async (input, context) => {
81
81
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
82
82
  Filters: (_) => (0, smithy_client_1._json)(_),
83
83
  IncludedProperties: (_) => (0, smithy_client_1._json)(_),
84
+ Scope: [],
84
85
  Tags: (_) => (0, smithy_client_1._json)(_),
85
86
  ViewName: [],
86
87
  }));
@@ -156,6 +157,25 @@ const se_DisassociateDefaultViewCommand = async (input, context) => {
156
157
  });
157
158
  };
158
159
  exports.se_DisassociateDefaultViewCommand = se_DisassociateDefaultViewCommand;
160
+ const se_GetAccountLevelServiceConfigurationCommand = async (input, context) => {
161
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const headers = {
163
+ "content-type": "application/json",
164
+ };
165
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetAccountLevelServiceConfiguration";
166
+ let body;
167
+ body = "";
168
+ return new protocol_http_1.HttpRequest({
169
+ protocol,
170
+ hostname,
171
+ port,
172
+ method: "POST",
173
+ headers,
174
+ path: resolvedPath,
175
+ body,
176
+ });
177
+ };
178
+ exports.se_GetAccountLevelServiceConfigurationCommand = se_GetAccountLevelServiceConfigurationCommand;
159
179
  const se_GetDefaultViewCommand = async (input, context) => {
160
180
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
181
  const headers = {
@@ -239,6 +259,29 @@ const se_ListIndexesCommand = async (input, context) => {
239
259
  });
240
260
  };
241
261
  exports.se_ListIndexesCommand = se_ListIndexesCommand;
262
+ const se_ListIndexesForMembersCommand = async (input, context) => {
263
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
+ const headers = {
265
+ "content-type": "application/json",
266
+ };
267
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexesForMembers";
268
+ let body;
269
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
270
+ AccountIdList: (_) => (0, smithy_client_1._json)(_),
271
+ MaxResults: [],
272
+ NextToken: [],
273
+ }));
274
+ return new protocol_http_1.HttpRequest({
275
+ protocol,
276
+ hostname,
277
+ port,
278
+ method: "POST",
279
+ headers,
280
+ path: resolvedPath,
281
+ body,
282
+ });
283
+ };
284
+ exports.se_ListIndexesForMembersCommand = se_ListIndexesForMembersCommand;
242
285
  const se_ListSupportedResourceTypesCommand = async (input, context) => {
243
286
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
287
  const headers = {
@@ -729,6 +772,9 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
729
772
  case "InternalServerException":
730
773
  case "com.amazonaws.resourceexplorer2#InternalServerException":
731
774
  throw await de_InternalServerExceptionRes(parsedOutput, context);
775
+ case "ResourceNotFoundException":
776
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
777
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
778
  case "ThrottlingException":
733
779
  case "com.amazonaws.resourceexplorer2#ThrottlingException":
734
780
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -744,6 +790,49 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
744
790
  });
745
791
  }
746
792
  };
793
+ const de_GetAccountLevelServiceConfigurationCommand = async (output, context) => {
794
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
795
+ return de_GetAccountLevelServiceConfigurationCommandError(output, context);
796
+ }
797
+ const contents = (0, smithy_client_1.map)({
798
+ $metadata: deserializeMetadata(output),
799
+ });
800
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
801
+ const doc = (0, smithy_client_1.take)(data, {
802
+ OrgConfiguration: smithy_client_1._json,
803
+ });
804
+ Object.assign(contents, doc);
805
+ return contents;
806
+ };
807
+ exports.de_GetAccountLevelServiceConfigurationCommand = de_GetAccountLevelServiceConfigurationCommand;
808
+ const de_GetAccountLevelServiceConfigurationCommandError = async (output, context) => {
809
+ const parsedOutput = {
810
+ ...output,
811
+ body: await parseErrorBody(output.body, context),
812
+ };
813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
814
+ switch (errorCode) {
815
+ case "AccessDeniedException":
816
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
817
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
818
+ case "InternalServerException":
819
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
820
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
821
+ case "ResourceNotFoundException":
822
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
823
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
824
+ case "ThrottlingException":
825
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
826
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
827
+ default:
828
+ const parsedBody = parsedOutput.body;
829
+ return throwDefaultError({
830
+ output,
831
+ parsedBody,
832
+ errorCode,
833
+ });
834
+ }
835
+ };
747
836
  const de_GetDefaultViewCommand = async (output, context) => {
748
837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
749
838
  return de_GetDefaultViewCommandError(output, context);
@@ -937,6 +1026,50 @@ const de_ListIndexesCommandError = async (output, context) => {
937
1026
  });
938
1027
  }
939
1028
  };
1029
+ const de_ListIndexesForMembersCommand = async (output, context) => {
1030
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
+ return de_ListIndexesForMembersCommandError(output, context);
1032
+ }
1033
+ const contents = (0, smithy_client_1.map)({
1034
+ $metadata: deserializeMetadata(output),
1035
+ });
1036
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1037
+ const doc = (0, smithy_client_1.take)(data, {
1038
+ Indexes: smithy_client_1._json,
1039
+ NextToken: smithy_client_1.expectString,
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ return contents;
1043
+ };
1044
+ exports.de_ListIndexesForMembersCommand = de_ListIndexesForMembersCommand;
1045
+ const de_ListIndexesForMembersCommandError = async (output, context) => {
1046
+ const parsedOutput = {
1047
+ ...output,
1048
+ body: await parseErrorBody(output.body, context),
1049
+ };
1050
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1051
+ switch (errorCode) {
1052
+ case "AccessDeniedException":
1053
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1054
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1055
+ case "InternalServerException":
1056
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1057
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1058
+ case "ThrottlingException":
1059
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1060
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1061
+ case "ValidationException":
1062
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1063
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1064
+ default:
1065
+ const parsedBody = parsedOutput.body;
1066
+ return throwDefaultError({
1067
+ output,
1068
+ parsedBody,
1069
+ errorCode,
1070
+ });
1071
+ }
1072
+ };
940
1073
  const de_ListSupportedResourceTypesCommand = async (output, context) => {
941
1074
  if (output.statusCode !== 200 && output.statusCode >= 300) {
942
1075
  return de_ListSupportedResourceTypesCommandError(output, context);
@@ -6,10 +6,12 @@ import { CreateViewCommand } from "./commands/CreateViewCommand";
6
6
  import { DeleteIndexCommand } from "./commands/DeleteIndexCommand";
7
7
  import { DeleteViewCommand } from "./commands/DeleteViewCommand";
8
8
  import { DisassociateDefaultViewCommand, } from "./commands/DisassociateDefaultViewCommand";
9
+ import { GetAccountLevelServiceConfigurationCommand, } from "./commands/GetAccountLevelServiceConfigurationCommand";
9
10
  import { GetDefaultViewCommand, } from "./commands/GetDefaultViewCommand";
10
11
  import { GetIndexCommand } from "./commands/GetIndexCommand";
11
12
  import { GetViewCommand } from "./commands/GetViewCommand";
12
13
  import { ListIndexesCommand } from "./commands/ListIndexesCommand";
14
+ import { ListIndexesForMembersCommand, } from "./commands/ListIndexesForMembersCommand";
13
15
  import { ListSupportedResourceTypesCommand, } from "./commands/ListSupportedResourceTypesCommand";
14
16
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
15
17
  import { ListViewsCommand } from "./commands/ListViewsCommand";
@@ -27,10 +29,12 @@ const commands = {
27
29
  DeleteIndexCommand,
28
30
  DeleteViewCommand,
29
31
  DisassociateDefaultViewCommand,
32
+ GetAccountLevelServiceConfigurationCommand,
30
33
  GetDefaultViewCommand,
31
34
  GetIndexCommand,
32
35
  GetViewCommand,
33
36
  ListIndexesCommand,
37
+ ListIndexesForMembersCommand,
34
38
  ListSupportedResourceTypesCommand,
35
39
  ListTagsForResourceCommand,
36
40
  ListViewsCommand,
@@ -2,6 +2,7 @@ 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
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { CreateIndexInputFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_CreateIndexCommand, se_CreateIndexCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class CreateIndexCommand extends $Command {
@@ -27,7 +28,7 @@ export class CreateIndexCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: CreateIndexInputFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  [SMITHY_CONTEXT_KEY]: {
33
34
  service: "ResourceExplorer",