@aws-sdk/client-resource-explorer-2 3.682.0 → 3.687.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 (29) hide show
  1. package/README.md +17 -1
  2. package/dist-cjs/index.js +127 -0
  3. package/dist-es/ResourceExplorer2.js +4 -0
  4. package/dist-es/commands/GetManagedViewCommand.js +23 -0
  5. package/dist-es/commands/ListManagedViewsCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +8 -0
  8. package/dist-es/pagination/ListManagedViewsPaginator.js +4 -0
  9. package/dist-es/pagination/index.js +1 -0
  10. package/dist-es/protocols/Aws_restJson1.js +71 -0
  11. package/dist-types/ResourceExplorer2.d.ts +15 -0
  12. package/dist-types/ResourceExplorer2Client.d.ts +4 -2
  13. package/dist-types/commands/GetManagedViewCommand.d.ts +112 -0
  14. package/dist-types/commands/ListManagedViewsCommand.d.ts +98 -0
  15. package/dist-types/commands/index.d.ts +2 -0
  16. package/dist-types/models/models_0.d.ts +145 -2
  17. package/dist-types/pagination/ListManagedViewsPaginator.d.ts +7 -0
  18. package/dist-types/pagination/index.d.ts +1 -0
  19. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  20. package/dist-types/ts3.4/ResourceExplorer2.d.ts +35 -0
  21. package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +12 -0
  22. package/dist-types/ts3.4/commands/GetManagedViewCommand.d.ts +47 -0
  23. package/dist-types/ts3.4/commands/ListManagedViewsCommand.d.ts +50 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  26. package/dist-types/ts3.4/pagination/ListManagedViewsPaginator.d.ts +11 -0
  27. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  29. package/package.json +35 -35
package/README.md CHANGED
@@ -30,7 +30,7 @@ service, see the <a href="https://docs.aws.amazon.com/resource-explorer/latest/u
30
30
 
31
31
  ## Installing
32
32
 
33
- To install the this package, simply type add or install @aws-sdk/client-resource-explorer-2
33
+ To install this package, simply type add or install @aws-sdk/client-resource-explorer-2
34
34
  using your favorite package manager:
35
35
 
36
36
  - `npm install @aws-sdk/client-resource-explorer-2`
@@ -302,6 +302,14 @@ GetIndex
302
302
 
303
303
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/GetIndexCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetIndexCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetIndexCommandOutput/)
304
304
 
305
+ </details>
306
+ <details>
307
+ <summary>
308
+ GetManagedView
309
+ </summary>
310
+
311
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/GetManagedViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetManagedViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetManagedViewCommandOutput/)
312
+
305
313
  </details>
306
314
  <details>
307
315
  <summary>
@@ -326,6 +334,14 @@ ListIndexesForMembers
326
334
 
327
335
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/ListIndexesForMembersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListIndexesForMembersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListIndexesForMembersCommandOutput/)
328
336
 
337
+ </details>
338
+ <details>
339
+ <summary>
340
+ ListManagedViews
341
+ </summary>
342
+
343
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/ListManagedViewsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListManagedViewsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListManagedViewsCommandOutput/)
344
+
329
345
  </details>
330
346
  <details>
331
347
  <summary>
package/dist-cjs/index.js CHANGED
@@ -39,6 +39,8 @@ __export(src_exports, {
39
39
  GetDefaultViewCommand: () => GetDefaultViewCommand,
40
40
  GetIndexCommand: () => GetIndexCommand,
41
41
  GetIndexOutputFilterSensitiveLog: () => GetIndexOutputFilterSensitiveLog,
42
+ GetManagedViewCommand: () => GetManagedViewCommand,
43
+ GetManagedViewOutputFilterSensitiveLog: () => GetManagedViewOutputFilterSensitiveLog,
42
44
  GetViewCommand: () => GetViewCommand,
43
45
  GetViewOutputFilterSensitiveLog: () => GetViewOutputFilterSensitiveLog,
44
46
  IndexState: () => IndexState,
@@ -46,12 +48,14 @@ __export(src_exports, {
46
48
  InternalServerException: () => InternalServerException,
47
49
  ListIndexesCommand: () => ListIndexesCommand,
48
50
  ListIndexesForMembersCommand: () => ListIndexesForMembersCommand,
51
+ ListManagedViewsCommand: () => ListManagedViewsCommand,
49
52
  ListResourcesCommand: () => ListResourcesCommand,
50
53
  ListResourcesInputFilterSensitiveLog: () => ListResourcesInputFilterSensitiveLog,
51
54
  ListSupportedResourceTypesCommand: () => ListSupportedResourceTypesCommand,
52
55
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
53
56
  ListTagsForResourceOutputFilterSensitiveLog: () => ListTagsForResourceOutputFilterSensitiveLog,
54
57
  ListViewsCommand: () => ListViewsCommand,
58
+ ManagedViewFilterSensitiveLog: () => ManagedViewFilterSensitiveLog,
55
59
  ResourceExplorer2: () => ResourceExplorer2,
56
60
  ResourceExplorer2Client: () => ResourceExplorer2Client,
57
61
  ResourceExplorer2ServiceException: () => ResourceExplorer2ServiceException,
@@ -75,6 +79,7 @@ __export(src_exports, {
75
79
  __Client: () => import_smithy_client.Client,
76
80
  paginateListIndexes: () => paginateListIndexes,
77
81
  paginateListIndexesForMembers: () => paginateListIndexesForMembers,
82
+ paginateListManagedViews: () => paginateListManagedViews,
78
83
  paginateListResources: () => paginateListResources,
79
84
  paginateListSupportedResourceTypes: () => paginateListSupportedResourceTypes,
80
85
  paginateListViews: () => paginateListViews,
@@ -475,6 +480,14 @@ var GetIndexOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
475
480
  ...obj,
476
481
  ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
477
482
  }), "GetIndexOutputFilterSensitiveLog");
483
+ var ManagedViewFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
484
+ ...obj,
485
+ ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING }
486
+ }), "ManagedViewFilterSensitiveLog");
487
+ var GetManagedViewOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
488
+ ...obj,
489
+ ...obj.ManagedView && { ManagedView: ManagedViewFilterSensitiveLog(obj.ManagedView) }
490
+ }), "GetManagedViewOutputFilterSensitiveLog");
478
491
  var ListResourcesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
479
492
  ...obj,
480
493
  ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING }
@@ -625,6 +638,21 @@ var se_GetIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
625
638
  b.m("POST").h(headers).b(body);
626
639
  return b.build();
627
640
  }, "se_GetIndexCommand");
641
+ var se_GetManagedViewCommand = /* @__PURE__ */ __name(async (input, context) => {
642
+ const b = (0, import_core.requestBuilder)(input, context);
643
+ const headers = {
644
+ "content-type": "application/json"
645
+ };
646
+ b.bp("/GetManagedView");
647
+ let body;
648
+ body = JSON.stringify(
649
+ (0, import_smithy_client.take)(input, {
650
+ ManagedViewArn: []
651
+ })
652
+ );
653
+ b.m("POST").h(headers).b(body);
654
+ return b.build();
655
+ }, "se_GetManagedViewCommand");
628
656
  var se_GetViewCommand = /* @__PURE__ */ __name(async (input, context) => {
629
657
  const b = (0, import_core.requestBuilder)(input, context);
630
658
  const headers = {
@@ -675,6 +703,23 @@ var se_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (input, conte
675
703
  b.m("POST").h(headers).b(body);
676
704
  return b.build();
677
705
  }, "se_ListIndexesForMembersCommand");
706
+ var se_ListManagedViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
707
+ const b = (0, import_core.requestBuilder)(input, context);
708
+ const headers = {
709
+ "content-type": "application/json"
710
+ };
711
+ b.bp("/ListManagedViews");
712
+ let body;
713
+ body = JSON.stringify(
714
+ (0, import_smithy_client.take)(input, {
715
+ MaxResults: [],
716
+ NextToken: [],
717
+ ServicePrincipal: []
718
+ })
719
+ );
720
+ b.m("POST").h(headers).b(body);
721
+ return b.build();
722
+ }, "se_ListManagedViewsCommand");
678
723
  var se_ListResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
679
724
  const b = (0, import_core.requestBuilder)(input, context);
680
725
  const headers = {
@@ -961,6 +1006,20 @@ var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
961
1006
  Object.assign(contents, doc);
962
1007
  return contents;
963
1008
  }, "de_GetIndexCommand");
1009
+ var de_GetManagedViewCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_CommandError(output, context);
1012
+ }
1013
+ const contents = (0, import_smithy_client.map)({
1014
+ $metadata: deserializeMetadata(output)
1015
+ });
1016
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1017
+ const doc = (0, import_smithy_client.take)(data, {
1018
+ ManagedView: (_) => de_ManagedView(_, context)
1019
+ });
1020
+ Object.assign(contents, doc);
1021
+ return contents;
1022
+ }, "de_GetManagedViewCommand");
964
1023
  var de_GetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
965
1024
  if (output.statusCode !== 200 && output.statusCode >= 300) {
966
1025
  return de_CommandError(output, context);
@@ -1006,6 +1065,21 @@ var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, cont
1006
1065
  Object.assign(contents, doc);
1007
1066
  return contents;
1008
1067
  }, "de_ListIndexesForMembersCommand");
1068
+ var de_ListManagedViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1070
+ return de_CommandError(output, context);
1071
+ }
1072
+ const contents = (0, import_smithy_client.map)({
1073
+ $metadata: deserializeMetadata(output)
1074
+ });
1075
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1076
+ const doc = (0, import_smithy_client.take)(data, {
1077
+ ManagedViews: import_smithy_client._json,
1078
+ NextToken: import_smithy_client.expectString
1079
+ });
1080
+ Object.assign(contents, doc);
1081
+ return contents;
1082
+ }, "de_ListManagedViewsCommand");
1009
1083
  var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
1084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
1085
  return de_CommandError(output, context);
@@ -1282,6 +1356,20 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
1282
1356
  });
1283
1357
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1284
1358
  }, "de_ValidationExceptionRes");
1359
+ var de_ManagedView = /* @__PURE__ */ __name((output, context) => {
1360
+ return (0, import_smithy_client.take)(output, {
1361
+ Filters: import_smithy_client._json,
1362
+ IncludedProperties: import_smithy_client._json,
1363
+ LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1364
+ ManagedViewArn: import_smithy_client.expectString,
1365
+ ManagedViewName: import_smithy_client.expectString,
1366
+ Owner: import_smithy_client.expectString,
1367
+ ResourcePolicy: import_smithy_client.expectString,
1368
+ Scope: import_smithy_client.expectString,
1369
+ TrustedService: import_smithy_client.expectString,
1370
+ Version: import_smithy_client.expectString
1371
+ });
1372
+ }, "de_ManagedView");
1285
1373
  var de_Resource = /* @__PURE__ */ __name((output, context) => {
1286
1374
  return (0, import_smithy_client.take)(output, {
1287
1375
  Arn: import_smithy_client.expectString,
@@ -1476,6 +1564,20 @@ var _GetIndexCommand = class _GetIndexCommand extends import_smithy_client.Comma
1476
1564
  __name(_GetIndexCommand, "GetIndexCommand");
1477
1565
  var GetIndexCommand = _GetIndexCommand;
1478
1566
 
1567
+ // src/commands/GetManagedViewCommand.ts
1568
+
1569
+
1570
+
1571
+ var _GetManagedViewCommand = class _GetManagedViewCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1572
+ return [
1573
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1574
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1575
+ ];
1576
+ }).s("ResourceExplorer", "GetManagedView", {}).n("ResourceExplorer2Client", "GetManagedViewCommand").f(void 0, GetManagedViewOutputFilterSensitiveLog).ser(se_GetManagedViewCommand).de(de_GetManagedViewCommand).build() {
1577
+ };
1578
+ __name(_GetManagedViewCommand, "GetManagedViewCommand");
1579
+ var GetManagedViewCommand = _GetManagedViewCommand;
1580
+
1479
1581
  // src/commands/GetViewCommand.ts
1480
1582
 
1481
1583
 
@@ -1518,6 +1620,20 @@ var _ListIndexesForMembersCommand = class _ListIndexesForMembersCommand extends
1518
1620
  __name(_ListIndexesForMembersCommand, "ListIndexesForMembersCommand");
1519
1621
  var ListIndexesForMembersCommand = _ListIndexesForMembersCommand;
1520
1622
 
1623
+ // src/commands/ListManagedViewsCommand.ts
1624
+
1625
+
1626
+
1627
+ var _ListManagedViewsCommand = class _ListManagedViewsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1628
+ return [
1629
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1630
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1631
+ ];
1632
+ }).s("ResourceExplorer", "ListManagedViews", {}).n("ResourceExplorer2Client", "ListManagedViewsCommand").f(void 0, void 0).ser(se_ListManagedViewsCommand).de(de_ListManagedViewsCommand).build() {
1633
+ };
1634
+ __name(_ListManagedViewsCommand, "ListManagedViewsCommand");
1635
+ var ListManagedViewsCommand = _ListManagedViewsCommand;
1636
+
1521
1637
  // src/commands/ListResourcesCommand.ts
1522
1638
 
1523
1639
 
@@ -1656,9 +1772,11 @@ var commands = {
1656
1772
  GetAccountLevelServiceConfigurationCommand,
1657
1773
  GetDefaultViewCommand,
1658
1774
  GetIndexCommand,
1775
+ GetManagedViewCommand,
1659
1776
  GetViewCommand,
1660
1777
  ListIndexesCommand,
1661
1778
  ListIndexesForMembersCommand,
1779
+ ListManagedViewsCommand,
1662
1780
  ListResourcesCommand,
1663
1781
  ListSupportedResourceTypesCommand,
1664
1782
  ListTagsForResourceCommand,
@@ -1683,6 +1801,10 @@ var paginateListIndexesForMembers = (0, import_core.createPaginator)(ResourceExp
1683
1801
 
1684
1802
  var paginateListIndexes = (0, import_core.createPaginator)(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
1685
1803
 
1804
+ // src/pagination/ListManagedViewsPaginator.ts
1805
+
1806
+ var paginateListManagedViews = (0, import_core.createPaginator)(ResourceExplorer2Client, ListManagedViewsCommand, "NextToken", "NextToken", "MaxResults");
1807
+
1686
1808
  // src/pagination/ListResourcesPaginator.ts
1687
1809
 
1688
1810
  var paginateListResources = (0, import_core.createPaginator)(ResourceExplorer2Client, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1716,9 +1838,11 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1716
1838
  GetAccountLevelServiceConfigurationCommand,
1717
1839
  GetDefaultViewCommand,
1718
1840
  GetIndexCommand,
1841
+ GetManagedViewCommand,
1719
1842
  GetViewCommand,
1720
1843
  ListIndexesCommand,
1721
1844
  ListIndexesForMembersCommand,
1845
+ ListManagedViewsCommand,
1722
1846
  ListResourcesCommand,
1723
1847
  ListSupportedResourceTypesCommand,
1724
1848
  ListTagsForResourceCommand,
@@ -1730,6 +1854,7 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1730
1854
  UpdateViewCommand,
1731
1855
  paginateListIndexesForMembers,
1732
1856
  paginateListIndexes,
1857
+ paginateListManagedViews,
1733
1858
  paginateListResources,
1734
1859
  paginateListSupportedResourceTypes,
1735
1860
  paginateListViews,
@@ -1755,6 +1880,8 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1755
1880
  UpdateViewInputFilterSensitiveLog,
1756
1881
  UpdateViewOutputFilterSensitiveLog,
1757
1882
  GetIndexOutputFilterSensitiveLog,
1883
+ ManagedViewFilterSensitiveLog,
1884
+ GetManagedViewOutputFilterSensitiveLog,
1758
1885
  ListResourcesInputFilterSensitiveLog,
1759
1886
  ListTagsForResourceOutputFilterSensitiveLog,
1760
1887
  SearchInputFilterSensitiveLog,
@@ -9,9 +9,11 @@ import { DisassociateDefaultViewCommand, } from "./commands/DisassociateDefaultV
9
9
  import { GetAccountLevelServiceConfigurationCommand, } from "./commands/GetAccountLevelServiceConfigurationCommand";
10
10
  import { GetDefaultViewCommand, } from "./commands/GetDefaultViewCommand";
11
11
  import { GetIndexCommand } from "./commands/GetIndexCommand";
12
+ import { GetManagedViewCommand, } from "./commands/GetManagedViewCommand";
12
13
  import { GetViewCommand } from "./commands/GetViewCommand";
13
14
  import { ListIndexesCommand } from "./commands/ListIndexesCommand";
14
15
  import { ListIndexesForMembersCommand, } from "./commands/ListIndexesForMembersCommand";
16
+ import { ListManagedViewsCommand, } from "./commands/ListManagedViewsCommand";
15
17
  import { ListResourcesCommand, } from "./commands/ListResourcesCommand";
16
18
  import { ListSupportedResourceTypesCommand, } from "./commands/ListSupportedResourceTypesCommand";
17
19
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -33,9 +35,11 @@ const commands = {
33
35
  GetAccountLevelServiceConfigurationCommand,
34
36
  GetDefaultViewCommand,
35
37
  GetIndexCommand,
38
+ GetManagedViewCommand,
36
39
  GetViewCommand,
37
40
  ListIndexesCommand,
38
41
  ListIndexesForMembersCommand,
42
+ ListManagedViewsCommand,
39
43
  ListResourcesCommand,
40
44
  ListSupportedResourceTypesCommand,
41
45
  ListTagsForResourceCommand,
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetManagedViewOutputFilterSensitiveLog } from "../models/models_0";
6
+ import { de_GetManagedViewCommand, se_GetManagedViewCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetManagedViewCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("ResourceExplorer", "GetManagedView", {})
18
+ .n("ResourceExplorer2Client", "GetManagedViewCommand")
19
+ .f(void 0, GetManagedViewOutputFilterSensitiveLog)
20
+ .ser(se_GetManagedViewCommand)
21
+ .de(de_GetManagedViewCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListManagedViewsCommand, se_ListManagedViewsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListManagedViewsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ResourceExplorer", "ListManagedViews", {})
17
+ .n("ResourceExplorer2Client", "ListManagedViewsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListManagedViewsCommand)
20
+ .de(de_ListManagedViewsCommand)
21
+ .build() {
22
+ }
@@ -8,9 +8,11 @@ export * from "./DisassociateDefaultViewCommand";
8
8
  export * from "./GetAccountLevelServiceConfigurationCommand";
9
9
  export * from "./GetDefaultViewCommand";
10
10
  export * from "./GetIndexCommand";
11
+ export * from "./GetManagedViewCommand";
11
12
  export * from "./GetViewCommand";
12
13
  export * from "./ListIndexesCommand";
13
14
  export * from "./ListIndexesForMembersCommand";
15
+ export * from "./ListManagedViewsCommand";
14
16
  export * from "./ListResourcesCommand";
15
17
  export * from "./ListSupportedResourceTypesCommand";
16
18
  export * from "./ListTagsForResourceCommand";
@@ -163,6 +163,14 @@ export const GetIndexOutputFilterSensitiveLog = (obj) => ({
163
163
  ...obj,
164
164
  ...(obj.Tags && { Tags: SENSITIVE_STRING }),
165
165
  });
166
+ export const ManagedViewFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ ...(obj.Filters && { Filters: SENSITIVE_STRING }),
169
+ });
170
+ export const GetManagedViewOutputFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ ...(obj.ManagedView && { ManagedView: ManagedViewFilterSensitiveLog(obj.ManagedView) }),
173
+ });
166
174
  export const ListResourcesInputFilterSensitiveLog = (obj) => ({
167
175
  ...obj,
168
176
  ...(obj.Filters && { Filters: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListManagedViewsCommand, } from "../commands/ListManagedViewsCommand";
3
+ import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
4
+ export const paginateListManagedViews = createPaginator(ResourceExplorer2Client, ListManagedViewsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListIndexesForMembersPaginator";
3
3
  export * from "./ListIndexesPaginator";
4
+ export * from "./ListManagedViewsPaginator";
4
5
  export * from "./ListResourcesPaginator";
5
6
  export * from "./ListSupportedResourceTypesPaginator";
6
7
  export * from "./ListViewsPaginator";
@@ -120,6 +120,19 @@ export const se_GetIndexCommand = async (input, context) => {
120
120
  b.m("POST").h(headers).b(body);
121
121
  return b.build();
122
122
  };
123
+ export const se_GetManagedViewCommand = async (input, context) => {
124
+ const b = rb(input, context);
125
+ const headers = {
126
+ "content-type": "application/json",
127
+ };
128
+ b.bp("/GetManagedView");
129
+ let body;
130
+ body = JSON.stringify(take(input, {
131
+ ManagedViewArn: [],
132
+ }));
133
+ b.m("POST").h(headers).b(body);
134
+ return b.build();
135
+ };
123
136
  export const se_GetViewCommand = async (input, context) => {
124
137
  const b = rb(input, context);
125
138
  const headers = {
@@ -164,6 +177,21 @@ export const se_ListIndexesForMembersCommand = async (input, context) => {
164
177
  b.m("POST").h(headers).b(body);
165
178
  return b.build();
166
179
  };
180
+ export const se_ListManagedViewsCommand = async (input, context) => {
181
+ const b = rb(input, context);
182
+ const headers = {
183
+ "content-type": "application/json",
184
+ };
185
+ b.bp("/ListManagedViews");
186
+ let body;
187
+ body = JSON.stringify(take(input, {
188
+ MaxResults: [],
189
+ NextToken: [],
190
+ ServicePrincipal: [],
191
+ }));
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
194
+ };
167
195
  export const se_ListResourcesCommand = async (input, context) => {
168
196
  const b = rb(input, context);
169
197
  const headers = {
@@ -436,6 +464,20 @@ export const de_GetIndexCommand = async (output, context) => {
436
464
  Object.assign(contents, doc);
437
465
  return contents;
438
466
  };
467
+ export const de_GetManagedViewCommand = async (output, context) => {
468
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
469
+ return de_CommandError(output, context);
470
+ }
471
+ const contents = map({
472
+ $metadata: deserializeMetadata(output),
473
+ });
474
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
475
+ const doc = take(data, {
476
+ ManagedView: (_) => de_ManagedView(_, context),
477
+ });
478
+ Object.assign(contents, doc);
479
+ return contents;
480
+ };
439
481
  export const de_GetViewCommand = async (output, context) => {
440
482
  if (output.statusCode !== 200 && output.statusCode >= 300) {
441
483
  return de_CommandError(output, context);
@@ -481,6 +523,21 @@ export const de_ListIndexesForMembersCommand = async (output, context) => {
481
523
  Object.assign(contents, doc);
482
524
  return contents;
483
525
  };
526
+ export const de_ListManagedViewsCommand = async (output, context) => {
527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
528
+ return de_CommandError(output, context);
529
+ }
530
+ const contents = map({
531
+ $metadata: deserializeMetadata(output),
532
+ });
533
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
534
+ const doc = take(data, {
535
+ ManagedViews: _json,
536
+ NextToken: __expectString,
537
+ });
538
+ Object.assign(contents, doc);
539
+ return contents;
540
+ };
484
541
  export const de_ListResourcesCommand = async (output, context) => {
485
542
  if (output.statusCode !== 200 && output.statusCode >= 300) {
486
543
  return de_CommandError(output, context);
@@ -757,6 +814,20 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
757
814
  });
758
815
  return __decorateServiceException(exception, parsedOutput.body);
759
816
  };
817
+ const de_ManagedView = (output, context) => {
818
+ return take(output, {
819
+ Filters: _json,
820
+ IncludedProperties: _json,
821
+ LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
822
+ ManagedViewArn: __expectString,
823
+ ManagedViewName: __expectString,
824
+ Owner: __expectString,
825
+ ResourcePolicy: __expectString,
826
+ Scope: __expectString,
827
+ TrustedService: __expectString,
828
+ Version: __expectString,
829
+ });
830
+ };
760
831
  const de_Resource = (output, context) => {
761
832
  return take(output, {
762
833
  Arn: __expectString,
@@ -9,9 +9,11 @@ import { DisassociateDefaultViewCommandInput, DisassociateDefaultViewCommandOutp
9
9
  import { GetAccountLevelServiceConfigurationCommandInput, GetAccountLevelServiceConfigurationCommandOutput } from "./commands/GetAccountLevelServiceConfigurationCommand";
10
10
  import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
11
11
  import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
12
+ import { GetManagedViewCommandInput, GetManagedViewCommandOutput } from "./commands/GetManagedViewCommand";
12
13
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
13
14
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
14
15
  import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
16
+ import { ListManagedViewsCommandInput, ListManagedViewsCommandOutput } from "./commands/ListManagedViewsCommand";
15
17
  import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
16
18
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
17
19
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -89,6 +91,12 @@ export interface ResourceExplorer2 {
89
91
  getIndex(args: GetIndexCommandInput, options?: __HttpHandlerOptions): Promise<GetIndexCommandOutput>;
90
92
  getIndex(args: GetIndexCommandInput, cb: (err: any, data?: GetIndexCommandOutput) => void): void;
91
93
  getIndex(args: GetIndexCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIndexCommandOutput) => void): void;
94
+ /**
95
+ * @see {@link GetManagedViewCommand}
96
+ */
97
+ getManagedView(args: GetManagedViewCommandInput, options?: __HttpHandlerOptions): Promise<GetManagedViewCommandOutput>;
98
+ getManagedView(args: GetManagedViewCommandInput, cb: (err: any, data?: GetManagedViewCommandOutput) => void): void;
99
+ getManagedView(args: GetManagedViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetManagedViewCommandOutput) => void): void;
92
100
  /**
93
101
  * @see {@link GetViewCommand}
94
102
  */
@@ -108,6 +116,13 @@ export interface ResourceExplorer2 {
108
116
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListIndexesForMembersCommandOutput>;
109
117
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
110
118
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link ListManagedViewsCommand}
121
+ */
122
+ listManagedViews(): Promise<ListManagedViewsCommandOutput>;
123
+ listManagedViews(args: ListManagedViewsCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedViewsCommandOutput>;
124
+ listManagedViews(args: ListManagedViewsCommandInput, cb: (err: any, data?: ListManagedViewsCommandOutput) => void): void;
125
+ listManagedViews(args: ListManagedViewsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedViewsCommandOutput) => void): void;
111
126
  /**
112
127
  * @see {@link ListResourcesCommand}
113
128
  */
@@ -17,9 +17,11 @@ import { DisassociateDefaultViewCommandInput, DisassociateDefaultViewCommandOutp
17
17
  import { GetAccountLevelServiceConfigurationCommandInput, GetAccountLevelServiceConfigurationCommandOutput } from "./commands/GetAccountLevelServiceConfigurationCommand";
18
18
  import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
19
19
  import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
20
+ import { GetManagedViewCommandInput, GetManagedViewCommandOutput } from "./commands/GetManagedViewCommand";
20
21
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
21
22
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
22
23
  import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
24
+ import { ListManagedViewsCommandInput, ListManagedViewsCommandOutput } from "./commands/ListManagedViewsCommand";
23
25
  import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
24
26
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
25
27
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -35,11 +37,11 @@ export { __Client };
35
37
  /**
36
38
  * @public
37
39
  */
38
- export type ServiceInputTypes = AssociateDefaultViewCommandInput | BatchGetViewCommandInput | CreateIndexCommandInput | CreateViewCommandInput | DeleteIndexCommandInput | DeleteViewCommandInput | DisassociateDefaultViewCommandInput | GetAccountLevelServiceConfigurationCommandInput | GetDefaultViewCommandInput | GetIndexCommandInput | GetViewCommandInput | ListIndexesCommandInput | ListIndexesForMembersCommandInput | ListResourcesCommandInput | ListSupportedResourceTypesCommandInput | ListTagsForResourceCommandInput | ListViewsCommandInput | SearchCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexTypeCommandInput | UpdateViewCommandInput;
40
+ export type ServiceInputTypes = AssociateDefaultViewCommandInput | BatchGetViewCommandInput | CreateIndexCommandInput | CreateViewCommandInput | DeleteIndexCommandInput | DeleteViewCommandInput | DisassociateDefaultViewCommandInput | GetAccountLevelServiceConfigurationCommandInput | GetDefaultViewCommandInput | GetIndexCommandInput | GetManagedViewCommandInput | GetViewCommandInput | ListIndexesCommandInput | ListIndexesForMembersCommandInput | ListManagedViewsCommandInput | ListResourcesCommandInput | ListSupportedResourceTypesCommandInput | ListTagsForResourceCommandInput | ListViewsCommandInput | SearchCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexTypeCommandInput | UpdateViewCommandInput;
39
41
  /**
40
42
  * @public
41
43
  */
42
- export type ServiceOutputTypes = AssociateDefaultViewCommandOutput | BatchGetViewCommandOutput | CreateIndexCommandOutput | CreateViewCommandOutput | DeleteIndexCommandOutput | DeleteViewCommandOutput | DisassociateDefaultViewCommandOutput | GetAccountLevelServiceConfigurationCommandOutput | GetDefaultViewCommandOutput | GetIndexCommandOutput | GetViewCommandOutput | ListIndexesCommandOutput | ListIndexesForMembersCommandOutput | ListResourcesCommandOutput | ListSupportedResourceTypesCommandOutput | ListTagsForResourceCommandOutput | ListViewsCommandOutput | SearchCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexTypeCommandOutput | UpdateViewCommandOutput;
44
+ export type ServiceOutputTypes = AssociateDefaultViewCommandOutput | BatchGetViewCommandOutput | CreateIndexCommandOutput | CreateViewCommandOutput | DeleteIndexCommandOutput | DeleteViewCommandOutput | DisassociateDefaultViewCommandOutput | GetAccountLevelServiceConfigurationCommandOutput | GetDefaultViewCommandOutput | GetIndexCommandOutput | GetManagedViewCommandOutput | GetViewCommandOutput | ListIndexesCommandOutput | ListIndexesForMembersCommandOutput | ListManagedViewsCommandOutput | ListResourcesCommandOutput | ListSupportedResourceTypesCommandOutput | ListTagsForResourceCommandOutput | ListViewsCommandOutput | SearchCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexTypeCommandOutput | UpdateViewCommandOutput;
43
45
  /**
44
46
  * @public
45
47
  */