@aws-sdk/client-resource-explorer-2 3.654.0 → 3.658.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.
package/README.md CHANGED
@@ -326,6 +326,14 @@ ListIndexesForMembers
326
326
 
327
327
  [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
328
 
329
+ </details>
330
+ <details>
331
+ <summary>
332
+ ListResources
333
+ </summary>
334
+
335
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/ListResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListResourcesCommandOutput/)
336
+
329
337
  </details>
330
338
  <details>
331
339
  <summary>
package/dist-cjs/index.js CHANGED
@@ -46,6 +46,8 @@ __export(src_exports, {
46
46
  InternalServerException: () => InternalServerException,
47
47
  ListIndexesCommand: () => ListIndexesCommand,
48
48
  ListIndexesForMembersCommand: () => ListIndexesForMembersCommand,
49
+ ListResourcesCommand: () => ListResourcesCommand,
50
+ ListResourcesInputFilterSensitiveLog: () => ListResourcesInputFilterSensitiveLog,
49
51
  ListSupportedResourceTypesCommand: () => ListSupportedResourceTypesCommand,
50
52
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
51
53
  ListTagsForResourceOutputFilterSensitiveLog: () => ListTagsForResourceOutputFilterSensitiveLog,
@@ -73,6 +75,7 @@ __export(src_exports, {
73
75
  __Client: () => import_smithy_client.Client,
74
76
  paginateListIndexes: () => paginateListIndexes,
75
77
  paginateListIndexesForMembers: () => paginateListIndexesForMembers,
78
+ paginateListResources: () => paginateListResources,
76
79
  paginateListSupportedResourceTypes: () => paginateListSupportedResourceTypes,
77
80
  paginateListViews: () => paginateListViews,
78
81
  paginateSearch: () => paginateSearch
@@ -472,6 +475,10 @@ var GetIndexOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
472
475
  ...obj,
473
476
  ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
474
477
  }), "GetIndexOutputFilterSensitiveLog");
478
+ var ListResourcesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
479
+ ...obj,
480
+ ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING }
481
+ }), "ListResourcesInputFilterSensitiveLog");
475
482
  var ListTagsForResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
476
483
  ...obj,
477
484
  ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
@@ -668,6 +675,24 @@ var se_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (input, conte
668
675
  b.m("POST").h(headers).b(body);
669
676
  return b.build();
670
677
  }, "se_ListIndexesForMembersCommand");
678
+ var se_ListResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
679
+ const b = (0, import_core.requestBuilder)(input, context);
680
+ const headers = {
681
+ "content-type": "application/json"
682
+ };
683
+ b.bp("/ListResources");
684
+ let body;
685
+ body = JSON.stringify(
686
+ (0, import_smithy_client.take)(input, {
687
+ Filters: (_) => (0, import_smithy_client._json)(_),
688
+ MaxResults: [],
689
+ NextToken: [],
690
+ ViewArn: []
691
+ })
692
+ );
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
695
+ }, "se_ListResourcesCommand");
671
696
  var se_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
672
697
  const b = (0, import_core.requestBuilder)(input, context);
673
698
  const headers = {
@@ -984,6 +1009,22 @@ var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, cont
984
1009
  Object.assign(contents, doc);
985
1010
  return contents;
986
1011
  }, "de_ListIndexesForMembersCommand");
1012
+ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1013
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1014
+ return de_CommandError(output, context);
1015
+ }
1016
+ const contents = (0, import_smithy_client.map)({
1017
+ $metadata: deserializeMetadata(output)
1018
+ });
1019
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1020
+ const doc = (0, import_smithy_client.take)(data, {
1021
+ NextToken: import_smithy_client.expectString,
1022
+ Resources: (_) => de_ResourceList(_, context),
1023
+ ViewArn: import_smithy_client.expectString
1024
+ });
1025
+ Object.assign(contents, doc);
1026
+ return contents;
1027
+ }, "de_ListResourcesCommand");
987
1028
  var de_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
988
1029
  if (output.statusCode !== 200 && output.statusCode >= 300) {
989
1030
  return de_CommandError(output, context);
@@ -1480,6 +1521,20 @@ var _ListIndexesForMembersCommand = class _ListIndexesForMembersCommand extends
1480
1521
  __name(_ListIndexesForMembersCommand, "ListIndexesForMembersCommand");
1481
1522
  var ListIndexesForMembersCommand = _ListIndexesForMembersCommand;
1482
1523
 
1524
+ // src/commands/ListResourcesCommand.ts
1525
+
1526
+
1527
+
1528
+ var _ListResourcesCommand = class _ListResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1529
+ return [
1530
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1531
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1532
+ ];
1533
+ }).s("ResourceExplorer", "ListResources", {}).n("ResourceExplorer2Client", "ListResourcesCommand").f(ListResourcesInputFilterSensitiveLog, void 0).ser(se_ListResourcesCommand).de(de_ListResourcesCommand).build() {
1534
+ };
1535
+ __name(_ListResourcesCommand, "ListResourcesCommand");
1536
+ var ListResourcesCommand = _ListResourcesCommand;
1537
+
1483
1538
  // src/commands/ListSupportedResourceTypesCommand.ts
1484
1539
 
1485
1540
 
@@ -1607,6 +1662,7 @@ var commands = {
1607
1662
  GetViewCommand,
1608
1663
  ListIndexesCommand,
1609
1664
  ListIndexesForMembersCommand,
1665
+ ListResourcesCommand,
1610
1666
  ListSupportedResourceTypesCommand,
1611
1667
  ListTagsForResourceCommand,
1612
1668
  ListViewsCommand,
@@ -1630,6 +1686,10 @@ var paginateListIndexesForMembers = (0, import_core.createPaginator)(ResourceExp
1630
1686
 
1631
1687
  var paginateListIndexes = (0, import_core.createPaginator)(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
1632
1688
 
1689
+ // src/pagination/ListResourcesPaginator.ts
1690
+
1691
+ var paginateListResources = (0, import_core.createPaginator)(ResourceExplorer2Client, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
1692
+
1633
1693
  // src/pagination/ListSupportedResourceTypesPaginator.ts
1634
1694
 
1635
1695
  var paginateListSupportedResourceTypes = (0, import_core.createPaginator)(ResourceExplorer2Client, ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1662,6 +1722,7 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1662
1722
  GetViewCommand,
1663
1723
  ListIndexesCommand,
1664
1724
  ListIndexesForMembersCommand,
1725
+ ListResourcesCommand,
1665
1726
  ListSupportedResourceTypesCommand,
1666
1727
  ListTagsForResourceCommand,
1667
1728
  ListViewsCommand,
@@ -1672,6 +1733,7 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1672
1733
  UpdateViewCommand,
1673
1734
  paginateListIndexesForMembers,
1674
1735
  paginateListIndexes,
1736
+ paginateListResources,
1675
1737
  paginateListSupportedResourceTypes,
1676
1738
  paginateListViews,
1677
1739
  paginateSearch,
@@ -1696,6 +1758,7 @@ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, S
1696
1758
  UpdateViewInputFilterSensitiveLog,
1697
1759
  UpdateViewOutputFilterSensitiveLog,
1698
1760
  GetIndexOutputFilterSensitiveLog,
1761
+ ListResourcesInputFilterSensitiveLog,
1699
1762
  ListTagsForResourceOutputFilterSensitiveLog,
1700
1763
  SearchInputFilterSensitiveLog,
1701
1764
  TagResourceInputFilterSensitiveLog,
@@ -12,6 +12,7 @@ import { GetIndexCommand } from "./commands/GetIndexCommand";
12
12
  import { GetViewCommand } from "./commands/GetViewCommand";
13
13
  import { ListIndexesCommand } from "./commands/ListIndexesCommand";
14
14
  import { ListIndexesForMembersCommand, } from "./commands/ListIndexesForMembersCommand";
15
+ import { ListResourcesCommand, } from "./commands/ListResourcesCommand";
15
16
  import { ListSupportedResourceTypesCommand, } from "./commands/ListSupportedResourceTypesCommand";
16
17
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
17
18
  import { ListViewsCommand } from "./commands/ListViewsCommand";
@@ -35,6 +36,7 @@ const commands = {
35
36
  GetViewCommand,
36
37
  ListIndexesCommand,
37
38
  ListIndexesForMembersCommand,
39
+ ListResourcesCommand,
38
40
  ListSupportedResourceTypesCommand,
39
41
  ListTagsForResourceCommand,
40
42
  ListViewsCommand,
@@ -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 { ListResourcesInputFilterSensitiveLog } from "../models/models_0";
6
+ import { de_ListResourcesCommand, se_ListResourcesCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListResourcesCommand 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", "ListResources", {})
18
+ .n("ResourceExplorer2Client", "ListResourcesCommand")
19
+ .f(ListResourcesInputFilterSensitiveLog, void 0)
20
+ .ser(se_ListResourcesCommand)
21
+ .de(de_ListResourcesCommand)
22
+ .build() {
23
+ }
@@ -11,6 +11,7 @@ export * from "./GetIndexCommand";
11
11
  export * from "./GetViewCommand";
12
12
  export * from "./ListIndexesCommand";
13
13
  export * from "./ListIndexesForMembersCommand";
14
+ export * from "./ListResourcesCommand";
14
15
  export * from "./ListSupportedResourceTypesCommand";
15
16
  export * from "./ListTagsForResourceCommand";
16
17
  export * from "./ListViewsCommand";
@@ -163,6 +163,10 @@ export const GetIndexOutputFilterSensitiveLog = (obj) => ({
163
163
  ...obj,
164
164
  ...(obj.Tags && { Tags: SENSITIVE_STRING }),
165
165
  });
166
+ export const ListResourcesInputFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ ...(obj.Filters && { Filters: SENSITIVE_STRING }),
169
+ });
166
170
  export const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
167
171
  ...obj,
168
172
  ...(obj.Tags && { Tags: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListResourcesCommand, } from "../commands/ListResourcesCommand";
3
+ import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
4
+ export const paginateListResources = createPaginator(ResourceExplorer2Client, ListResourcesCommand, "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 "./ListResourcesPaginator";
4
5
  export * from "./ListSupportedResourceTypesPaginator";
5
6
  export * from "./ListViewsPaginator";
6
7
  export * from "./SearchPaginator";
@@ -164,6 +164,22 @@ export const se_ListIndexesForMembersCommand = async (input, context) => {
164
164
  b.m("POST").h(headers).b(body);
165
165
  return b.build();
166
166
  };
167
+ export const se_ListResourcesCommand = async (input, context) => {
168
+ const b = rb(input, context);
169
+ const headers = {
170
+ "content-type": "application/json",
171
+ };
172
+ b.bp("/ListResources");
173
+ let body;
174
+ body = JSON.stringify(take(input, {
175
+ Filters: (_) => _json(_),
176
+ MaxResults: [],
177
+ NextToken: [],
178
+ ViewArn: [],
179
+ }));
180
+ b.m("POST").h(headers).b(body);
181
+ return b.build();
182
+ };
167
183
  export const se_ListSupportedResourceTypesCommand = async (input, context) => {
168
184
  const b = rb(input, context);
169
185
  const headers = {
@@ -468,6 +484,22 @@ export const de_ListIndexesForMembersCommand = async (output, context) => {
468
484
  Object.assign(contents, doc);
469
485
  return contents;
470
486
  };
487
+ export const de_ListResourcesCommand = async (output, context) => {
488
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
489
+ return de_CommandError(output, context);
490
+ }
491
+ const contents = map({
492
+ $metadata: deserializeMetadata(output),
493
+ });
494
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
495
+ const doc = take(data, {
496
+ NextToken: __expectString,
497
+ Resources: (_) => de_ResourceList(_, context),
498
+ ViewArn: __expectString,
499
+ });
500
+ Object.assign(contents, doc);
501
+ return contents;
502
+ };
471
503
  export const de_ListSupportedResourceTypesCommand = async (output, context) => {
472
504
  if (output.statusCode !== 200 && output.statusCode >= 300) {
473
505
  return de_CommandError(output, context);
@@ -12,6 +12,7 @@ import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndex
12
12
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
13
13
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
14
14
  import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
15
+ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
15
16
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
16
17
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
17
18
  import { ListViewsCommandInput, ListViewsCommandOutput } from "./commands/ListViewsCommand";
@@ -107,6 +108,13 @@ export interface ResourceExplorer2 {
107
108
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListIndexesForMembersCommandOutput>;
108
109
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
109
110
  listIndexesForMembers(args: ListIndexesForMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link ListResourcesCommand}
113
+ */
114
+ listResources(): Promise<ListResourcesCommandOutput>;
115
+ listResources(args: ListResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcesCommandOutput>;
116
+ listResources(args: ListResourcesCommandInput, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
117
+ listResources(args: ListResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
110
118
  /**
111
119
  * @see {@link ListSupportedResourceTypesCommand}
112
120
  */
@@ -20,6 +20,7 @@ import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndex
20
20
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
21
21
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
22
22
  import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
23
+ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
23
24
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
24
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
26
  import { ListViewsCommandInput, ListViewsCommandOutput } from "./commands/ListViewsCommand";
@@ -34,11 +35,11 @@ export { __Client };
34
35
  /**
35
36
  * @public
36
37
  */
37
- export type ServiceInputTypes = AssociateDefaultViewCommandInput | BatchGetViewCommandInput | CreateIndexCommandInput | CreateViewCommandInput | DeleteIndexCommandInput | DeleteViewCommandInput | DisassociateDefaultViewCommandInput | GetAccountLevelServiceConfigurationCommandInput | GetDefaultViewCommandInput | GetIndexCommandInput | GetViewCommandInput | ListIndexesCommandInput | ListIndexesForMembersCommandInput | ListSupportedResourceTypesCommandInput | ListTagsForResourceCommandInput | ListViewsCommandInput | SearchCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexTypeCommandInput | UpdateViewCommandInput;
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;
38
39
  /**
39
40
  * @public
40
41
  */
41
- export type ServiceOutputTypes = AssociateDefaultViewCommandOutput | BatchGetViewCommandOutput | CreateIndexCommandOutput | CreateViewCommandOutput | DeleteIndexCommandOutput | DeleteViewCommandOutput | DisassociateDefaultViewCommandOutput | GetAccountLevelServiceConfigurationCommandOutput | GetDefaultViewCommandOutput | GetIndexCommandOutput | GetViewCommandOutput | ListIndexesCommandOutput | ListIndexesForMembersCommandOutput | ListSupportedResourceTypesCommandOutput | ListTagsForResourceCommandOutput | ListViewsCommandOutput | SearchCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexTypeCommandOutput | UpdateViewCommandOutput;
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;
42
43
  /**
43
44
  * @public
44
45
  */
@@ -29,8 +29,7 @@ declare const GetAccountLevelServiceConfigurationCommand_base: {
29
29
  /**
30
30
  * <p>Retrieves the status of your account's Amazon Web Services service access, and validates the service
31
31
  * linked role required to access the multi-account search feature. Only the management
32
- * account or a delegated administrator with service access enabled can invoke this API
33
- * call. </p>
32
+ * account can invoke this API call. </p>
34
33
  * @example
35
34
  * Use a bare-bones client and the command you need to make an API call.
36
35
  * ```javascript
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListResourcesInput, ListResourcesOutput } from "../models/models_0";
4
+ import { ResourceExplorer2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceExplorer2Client";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListResourcesCommand}.
14
+ */
15
+ export interface ListResourcesCommandInput extends ListResourcesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListResourcesCommand}.
21
+ */
22
+ export interface ListResourcesCommandOutput extends ListResourcesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListResourcesCommand_base: {
25
+ new (input: ListResourcesCommandInput): import("@smithy/smithy-client").CommandImpl<ListResourcesCommandInput, ListResourcesCommandOutput, ResourceExplorer2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListResourcesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListResourcesCommandInput, ListResourcesCommandOutput, ResourceExplorer2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of resources and their details that match the specified criteria. This query must
31
+ * use a view. If you don’t explicitly specify a view, then Resource Explorer uses the default view for the Amazon Web Services Region
32
+ * in which you call this operation. </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { ResourceExplorer2Client, ListResourcesCommand } from "@aws-sdk/client-resource-explorer-2"; // ES Modules import
37
+ * // const { ResourceExplorer2Client, ListResourcesCommand } = require("@aws-sdk/client-resource-explorer-2"); // CommonJS import
38
+ * const client = new ResourceExplorer2Client(config);
39
+ * const input = { // ListResourcesInput
40
+ * Filters: { // SearchFilter
41
+ * FilterString: "STRING_VALUE", // required
42
+ * },
43
+ * MaxResults: Number("int"),
44
+ * ViewArn: "STRING_VALUE",
45
+ * NextToken: "STRING_VALUE",
46
+ * };
47
+ * const command = new ListResourcesCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // ListResourcesOutput
50
+ * // Resources: [ // ResourceList
51
+ * // { // Resource
52
+ * // Arn: "STRING_VALUE",
53
+ * // OwningAccountId: "STRING_VALUE",
54
+ * // Region: "STRING_VALUE",
55
+ * // ResourceType: "STRING_VALUE",
56
+ * // Service: "STRING_VALUE",
57
+ * // LastReportedAt: new Date("TIMESTAMP"),
58
+ * // Properties: [ // ResourcePropertyList
59
+ * // { // ResourceProperty
60
+ * // Name: "STRING_VALUE",
61
+ * // LastReportedAt: new Date("TIMESTAMP"),
62
+ * // Data: "DOCUMENT_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // },
66
+ * // ],
67
+ * // NextToken: "STRING_VALUE",
68
+ * // ViewArn: "STRING_VALUE",
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param ListResourcesCommandInput - {@link ListResourcesCommandInput}
74
+ * @returns {@link ListResourcesCommandOutput}
75
+ * @see {@link ListResourcesCommandInput} for command's `input` shape.
76
+ * @see {@link ListResourcesCommandOutput} for command's `response` shape.
77
+ * @see {@link ResourceExplorer2ClientResolvedConfig | config} for ResourceExplorer2Client's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>The credentials that you used to call this operation don't have the minimum required
81
+ * permissions.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>The request failed because of internal service error. Try your request again
85
+ * later.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to
89
+ * identity the resource, and try again.</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>The request failed because you exceeded a rate limit for this operation. For more
93
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
94
+ * Resource Explorer</a>.</p>
95
+ *
96
+ * @throws {@link UnauthorizedException} (client fault)
97
+ * <p>The principal making the request isn't permitted to perform the operation.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>You provided an invalid value for one of the operation's parameters. Check the syntax
101
+ * for the operation, and try again.</p>
102
+ *
103
+ * @throws {@link ResourceExplorer2ServiceException}
104
+ * <p>Base exception class for all service exceptions from ResourceExplorer2 service.</p>
105
+ *
106
+ * @public
107
+ */
108
+ export declare class ListResourcesCommand extends ListResourcesCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: ListResourcesInput;
113
+ output: ListResourcesOutput;
114
+ };
115
+ sdk: {
116
+ input: ListResourcesCommandInput;
117
+ output: ListResourcesCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -11,6 +11,7 @@ export * from "./GetIndexCommand";
11
11
  export * from "./GetViewCommand";
12
12
  export * from "./ListIndexesCommand";
13
13
  export * from "./ListIndexesForMembersCommand";
14
+ export * from "./ListResourcesCommand";
14
15
  export * from "./ListSupportedResourceTypesCommand";
15
16
  export * from "./ListTagsForResourceCommand";
16
17
  export * from "./ListViewsCommand";
@@ -982,16 +982,13 @@ export interface ListIndexesForMembersOutput {
982
982
  /**
983
983
  * @public
984
984
  */
985
- export interface ListSupportedResourceTypesInput {
985
+ export interface ListResourcesInput {
986
986
  /**
987
- * <p>The parameter for receiving additional results if you receive a
988
- * <code>NextToken</code> response in a previous request. A <code>NextToken</code> response
989
- * indicates that more output is available. Set this parameter to the value of the previous
990
- * call's <code>NextToken</code> response to indicate where the output should continue
991
- * from. The pagination tokens expire after 24 hours.</p>
987
+ * <p>A search filter defines which resources can be part of a search query result
988
+ * set.</p>
992
989
  * @public
993
990
  */
994
- NextToken?: string;
991
+ Filters?: SearchFilter;
995
992
  /**
996
993
  * <p>The maximum number of results that you want included on each page of the
997
994
  * response. If you do not include this parameter, it defaults to a value appropriate to the
@@ -1007,64 +1004,25 @@ export interface ListSupportedResourceTypesInput {
1007
1004
  * @public
1008
1005
  */
1009
1006
  MaxResults?: number;
1010
- }
1011
- /**
1012
- * <p>A structure that describes a resource type supported by Amazon Web Services Resource Explorer.</p>
1013
- * @public
1014
- */
1015
- export interface SupportedResourceType {
1016
1007
  /**
1017
- * <p>The Amazon Web Service that is associated with the resource type. This is the primary
1018
- * service that lets you create and interact with resources of this type.</p>
1008
+ * <p>Specifies the Amazon resource name (ARN) of the view to use for the query. If you don't
1009
+ * specify a value for this parameter, then the operation automatically uses the default view
1010
+ * for the Amazon Web Services Region in which you called this operation. If the Region either doesn't have
1011
+ * a default view or if you don't have permission to use the default view, then the operation
1012
+ * fails with a 401 Unauthorized exception.</p>
1019
1013
  * @public
1020
1014
  */
1021
- Service?: string;
1022
- /**
1023
- * <p>The unique identifier of the resource type.</p>
1024
- * @public
1025
- */
1026
- ResourceType?: string;
1027
- }
1028
- /**
1029
- * @public
1030
- */
1031
- export interface ListSupportedResourceTypesOutput {
1032
- /**
1033
- * <p>The list of resource types supported by Resource Explorer.</p>
1034
- * @public
1035
- */
1036
- ResourceTypes?: SupportedResourceType[];
1015
+ ViewArn?: string;
1037
1016
  /**
1038
- * <p>If present, indicates that more output is available than is
1039
- * included in the current response. Use this value in the <code>NextToken</code> request parameter
1040
- * in a subsequent call to the operation to get the next part of the output. You should repeat this
1041
- * until the <code>NextToken</code> response element comes back as <code>null</code>.
1042
- * The pagination tokens expire after 24 hours.</p>
1017
+ * <p>The parameter for receiving additional results if you receive a
1018
+ * <code>NextToken</code> response in a previous request. A <code>NextToken</code> response
1019
+ * indicates that more output is available. Set this parameter to the value of the previous
1020
+ * call's <code>NextToken</code> response to indicate where the output should continue
1021
+ * from. The pagination tokens expire after 24 hours.</p>
1043
1022
  * @public
1044
1023
  */
1045
1024
  NextToken?: string;
1046
1025
  }
1047
- /**
1048
- * @public
1049
- */
1050
- export interface ListTagsForResourceInput {
1051
- /**
1052
- * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view or index that you want to attach tags to.</p>
1053
- * @public
1054
- */
1055
- resourceArn: string | undefined;
1056
- }
1057
- /**
1058
- * @public
1059
- */
1060
- export interface ListTagsForResourceOutput {
1061
- /**
1062
- * <p>The tag key and value pairs that you want to attach to the specified view or
1063
- * index.</p>
1064
- * @public
1065
- */
1066
- Tags?: Record<string, string>;
1067
- }
1068
1026
  /**
1069
1027
  * <p>A structure that describes a property of a resource.</p>
1070
1028
  * @public
@@ -1115,7 +1073,7 @@ export interface Resource {
1115
1073
  */
1116
1074
  ResourceType?: string;
1117
1075
  /**
1118
- * <p>The Amazon Web Service that owns the resource and is responsible for creating and updating
1076
+ * <p>The Amazon Web Servicesservice that owns the resource and is responsible for creating and updating
1119
1077
  * it.</p>
1120
1078
  * @public
1121
1079
  */
@@ -1133,6 +1091,116 @@ export interface Resource {
1133
1091
  */
1134
1092
  Properties?: ResourceProperty[];
1135
1093
  }
1094
+ /**
1095
+ * @public
1096
+ */
1097
+ export interface ListResourcesOutput {
1098
+ /**
1099
+ * <p>The list of structures that describe the resources that match the query. </p>
1100
+ * @public
1101
+ */
1102
+ Resources?: Resource[];
1103
+ /**
1104
+ * <p>If present, indicates that more output is available than is
1105
+ * included in the current response. Use this value in the <code>NextToken</code> request parameter
1106
+ * in a subsequent call to the operation to get the next part of the output. You should repeat this
1107
+ * until the <code>NextToken</code> response element comes back as <code>null</code>.
1108
+ * The pagination tokens expire after 24 hours.</p>
1109
+ * @public
1110
+ */
1111
+ NextToken?: string;
1112
+ /**
1113
+ * <p>The Amazon resource name (ARN) of the view that this operation used to perform the search. </p>
1114
+ * @public
1115
+ */
1116
+ ViewArn?: string;
1117
+ }
1118
+ /**
1119
+ * @public
1120
+ */
1121
+ export interface ListSupportedResourceTypesInput {
1122
+ /**
1123
+ * <p>The parameter for receiving additional results if you receive a
1124
+ * <code>NextToken</code> response in a previous request. A <code>NextToken</code> response
1125
+ * indicates that more output is available. Set this parameter to the value of the previous
1126
+ * call's <code>NextToken</code> response to indicate where the output should continue
1127
+ * from. The pagination tokens expire after 24 hours.</p>
1128
+ * @public
1129
+ */
1130
+ NextToken?: string;
1131
+ /**
1132
+ * <p>The maximum number of results that you want included on each page of the
1133
+ * response. If you do not include this parameter, it defaults to a value appropriate to the
1134
+ * operation. If additional items exist beyond those included in the current response, the
1135
+ * <code>NextToken</code> response element is present and has a value (is not null). Include that
1136
+ * value as the <code>NextToken</code> request parameter in the next call to the operation to get
1137
+ * the next part of the results.</p>
1138
+ * <note>
1139
+ * <p>An API operation can return fewer results than the maximum even when there are
1140
+ * more results available. You should check <code>NextToken</code> after every operation to ensure
1141
+ * that you receive all of the results.</p>
1142
+ * </note>
1143
+ * @public
1144
+ */
1145
+ MaxResults?: number;
1146
+ }
1147
+ /**
1148
+ * <p>A structure that describes a resource type supported by Amazon Web Services Resource Explorer.</p>
1149
+ * @public
1150
+ */
1151
+ export interface SupportedResourceType {
1152
+ /**
1153
+ * <p>The Amazon Web Servicesservice that is associated with the resource type. This is the primary
1154
+ * service that lets you create and interact with resources of this type.</p>
1155
+ * @public
1156
+ */
1157
+ Service?: string;
1158
+ /**
1159
+ * <p>The unique identifier of the resource type.</p>
1160
+ * @public
1161
+ */
1162
+ ResourceType?: string;
1163
+ }
1164
+ /**
1165
+ * @public
1166
+ */
1167
+ export interface ListSupportedResourceTypesOutput {
1168
+ /**
1169
+ * <p>The list of resource types supported by Resource Explorer.</p>
1170
+ * @public
1171
+ */
1172
+ ResourceTypes?: SupportedResourceType[];
1173
+ /**
1174
+ * <p>If present, indicates that more output is available than is
1175
+ * included in the current response. Use this value in the <code>NextToken</code> request parameter
1176
+ * in a subsequent call to the operation to get the next part of the output. You should repeat this
1177
+ * until the <code>NextToken</code> response element comes back as <code>null</code>.
1178
+ * The pagination tokens expire after 24 hours.</p>
1179
+ * @public
1180
+ */
1181
+ NextToken?: string;
1182
+ }
1183
+ /**
1184
+ * @public
1185
+ */
1186
+ export interface ListTagsForResourceInput {
1187
+ /**
1188
+ * <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view or index that you want to attach tags to.</p>
1189
+ * @public
1190
+ */
1191
+ resourceArn: string | undefined;
1192
+ }
1193
+ /**
1194
+ * @public
1195
+ */
1196
+ export interface ListTagsForResourceOutput {
1197
+ /**
1198
+ * <p>The tag key and value pairs that you want to attach to the specified view or
1199
+ * index.</p>
1200
+ * @public
1201
+ */
1202
+ Tags?: Record<string, string>;
1203
+ }
1136
1204
  /**
1137
1205
  * <p>Information about the number of results that match the query. At this time, Amazon Web Services Resource Explorer
1138
1206
  * doesn't count more than 1,000 matches for any query. This structure
@@ -1333,6 +1401,10 @@ export declare const UpdateViewOutputFilterSensitiveLog: (obj: UpdateViewOutput)
1333
1401
  * @internal
1334
1402
  */
1335
1403
  export declare const GetIndexOutputFilterSensitiveLog: (obj: GetIndexOutput) => any;
1404
+ /**
1405
+ * @internal
1406
+ */
1407
+ export declare const ListResourcesInputFilterSensitiveLog: (obj: ListResourcesInput) => any;
1336
1408
  /**
1337
1409
  * @internal
1338
1410
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "../commands/ListResourcesCommand";
3
+ import { ResourceExplorer2PaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListResources: (config: ResourceExplorer2PaginationConfiguration, input: ListResourcesCommandInput, ...rest: any[]) => Paginator<ListResourcesCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListIndexesForMembersPaginator";
3
3
  export * from "./ListIndexesPaginator";
4
+ export * from "./ListResourcesPaginator";
4
5
  export * from "./ListSupportedResourceTypesPaginator";
5
6
  export * from "./ListViewsPaginator";
6
7
  export * from "./SearchPaginator";
@@ -13,6 +13,7 @@ import { GetIndexCommandInput, GetIndexCommandOutput } from "../commands/GetInde
13
13
  import { GetViewCommandInput, GetViewCommandOutput } from "../commands/GetViewCommand";
14
14
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "../commands/ListIndexesCommand";
15
15
  import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "../commands/ListIndexesForMembersCommand";
16
+ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "../commands/ListResourcesCommand";
16
17
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "../commands/ListSupportedResourceTypesCommand";
17
18
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
18
19
  import { ListViewsCommandInput, ListViewsCommandOutput } from "../commands/ListViewsCommand";
@@ -73,6 +74,10 @@ export declare const se_ListIndexesCommand: (input: ListIndexesCommandInput, con
73
74
  * serializeAws_restJson1ListIndexesForMembersCommand
74
75
  */
75
76
  export declare const se_ListIndexesForMembersCommand: (input: ListIndexesForMembersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
+ /**
78
+ * serializeAws_restJson1ListResourcesCommand
79
+ */
80
+ export declare const se_ListResourcesCommand: (input: ListResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
81
  /**
77
82
  * serializeAws_restJson1ListSupportedResourceTypesCommand
78
83
  */
@@ -157,6 +162,10 @@ export declare const de_ListIndexesCommand: (output: __HttpResponse, context: __
157
162
  * deserializeAws_restJson1ListIndexesForMembersCommand
158
163
  */
159
164
  export declare const de_ListIndexesForMembersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListIndexesForMembersCommandOutput>;
165
+ /**
166
+ * deserializeAws_restJson1ListResourcesCommand
167
+ */
168
+ export declare const de_ListResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListResourcesCommandOutput>;
160
169
  /**
161
170
  * deserializeAws_restJson1ListSupportedResourceTypesCommand
162
171
  */
@@ -51,6 +51,10 @@ import {
51
51
  ListIndexesForMembersCommandInput,
52
52
  ListIndexesForMembersCommandOutput,
53
53
  } from "./commands/ListIndexesForMembersCommand";
54
+ import {
55
+ ListResourcesCommandInput,
56
+ ListResourcesCommandOutput,
57
+ } from "./commands/ListResourcesCommand";
54
58
  import {
55
59
  ListSupportedResourceTypesCommandInput,
56
60
  ListSupportedResourceTypesCommandOutput,
@@ -267,6 +271,20 @@ export interface ResourceExplorer2 {
267
271
  options: __HttpHandlerOptions,
268
272
  cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void
269
273
  ): void;
274
+ listResources(): Promise<ListResourcesCommandOutput>;
275
+ listResources(
276
+ args: ListResourcesCommandInput,
277
+ options?: __HttpHandlerOptions
278
+ ): Promise<ListResourcesCommandOutput>;
279
+ listResources(
280
+ args: ListResourcesCommandInput,
281
+ cb: (err: any, data?: ListResourcesCommandOutput) => void
282
+ ): void;
283
+ listResources(
284
+ args: ListResourcesCommandInput,
285
+ options: __HttpHandlerOptions,
286
+ cb: (err: any, data?: ListResourcesCommandOutput) => void
287
+ ): void;
270
288
  listSupportedResourceTypes(): Promise<ListSupportedResourceTypesCommandOutput>;
271
289
  listSupportedResourceTypes(
272
290
  args: ListSupportedResourceTypesCommandInput,
@@ -97,6 +97,10 @@ import {
97
97
  ListIndexesForMembersCommandInput,
98
98
  ListIndexesForMembersCommandOutput,
99
99
  } from "./commands/ListIndexesForMembersCommand";
100
+ import {
101
+ ListResourcesCommandInput,
102
+ ListResourcesCommandOutput,
103
+ } from "./commands/ListResourcesCommand";
100
104
  import {
101
105
  ListSupportedResourceTypesCommandInput,
102
106
  ListSupportedResourceTypesCommandOutput,
@@ -150,6 +154,7 @@ export type ServiceInputTypes =
150
154
  | GetViewCommandInput
151
155
  | ListIndexesCommandInput
152
156
  | ListIndexesForMembersCommandInput
157
+ | ListResourcesCommandInput
153
158
  | ListSupportedResourceTypesCommandInput
154
159
  | ListTagsForResourceCommandInput
155
160
  | ListViewsCommandInput
@@ -172,6 +177,7 @@ export type ServiceOutputTypes =
172
177
  | GetViewCommandOutput
173
178
  | ListIndexesCommandOutput
174
179
  | ListIndexesForMembersCommandOutput
180
+ | ListResourcesCommandOutput
175
181
  | ListSupportedResourceTypesCommandOutput
176
182
  | ListTagsForResourceCommandOutput
177
183
  | ListViewsCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListResourcesInput, ListResourcesOutput } from "../models/models_0";
4
+ import {
5
+ ResourceExplorer2ClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../ResourceExplorer2Client";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface ListResourcesCommandInput extends ListResourcesInput {}
12
+ export interface ListResourcesCommandOutput
13
+ extends ListResourcesOutput,
14
+ __MetadataBearer {}
15
+ declare const ListResourcesCommand_base: {
16
+ new (
17
+ input: ListResourcesCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ ListResourcesCommandInput,
20
+ ListResourcesCommandOutput,
21
+ ResourceExplorer2ClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ ...[input]: [] | [ListResourcesCommandInput]
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ ListResourcesCommandInput,
29
+ ListResourcesCommandOutput,
30
+ ResourceExplorer2ClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class ListResourcesCommand extends ListResourcesCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: ListResourcesInput;
40
+ output: ListResourcesOutput;
41
+ };
42
+ sdk: {
43
+ input: ListResourcesCommandInput;
44
+ output: ListResourcesCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -11,6 +11,7 @@ export * from "./GetIndexCommand";
11
11
  export * from "./GetViewCommand";
12
12
  export * from "./ListIndexesCommand";
13
13
  export * from "./ListIndexesForMembersCommand";
14
+ export * from "./ListResourcesCommand";
14
15
  export * from "./ListSupportedResourceTypesCommand";
15
16
  export * from "./ListTagsForResourceCommand";
16
17
  export * from "./ListViewsCommand";
@@ -237,6 +237,31 @@ export interface ListIndexesForMembersOutput {
237
237
  Indexes?: MemberIndex[];
238
238
  NextToken?: string;
239
239
  }
240
+ export interface ListResourcesInput {
241
+ Filters?: SearchFilter;
242
+ MaxResults?: number;
243
+ ViewArn?: string;
244
+ NextToken?: string;
245
+ }
246
+ export interface ResourceProperty {
247
+ Name?: string;
248
+ LastReportedAt?: Date;
249
+ Data?: __DocumentType;
250
+ }
251
+ export interface Resource {
252
+ Arn?: string;
253
+ OwningAccountId?: string;
254
+ Region?: string;
255
+ ResourceType?: string;
256
+ Service?: string;
257
+ LastReportedAt?: Date;
258
+ Properties?: ResourceProperty[];
259
+ }
260
+ export interface ListResourcesOutput {
261
+ Resources?: Resource[];
262
+ NextToken?: string;
263
+ ViewArn?: string;
264
+ }
240
265
  export interface ListSupportedResourceTypesInput {
241
266
  NextToken?: string;
242
267
  MaxResults?: number;
@@ -255,20 +280,6 @@ export interface ListTagsForResourceInput {
255
280
  export interface ListTagsForResourceOutput {
256
281
  Tags?: Record<string, string>;
257
282
  }
258
- export interface ResourceProperty {
259
- Name?: string;
260
- LastReportedAt?: Date;
261
- Data?: __DocumentType;
262
- }
263
- export interface Resource {
264
- Arn?: string;
265
- OwningAccountId?: string;
266
- Region?: string;
267
- ResourceType?: string;
268
- Service?: string;
269
- LastReportedAt?: Date;
270
- Properties?: ResourceProperty[];
271
- }
272
283
  export interface ResourceCount {
273
284
  TotalResources?: number;
274
285
  Complete?: boolean;
@@ -321,6 +332,9 @@ export declare const UpdateViewOutputFilterSensitiveLog: (
321
332
  export declare const GetIndexOutputFilterSensitiveLog: (
322
333
  obj: GetIndexOutput
323
334
  ) => any;
335
+ export declare const ListResourcesInputFilterSensitiveLog: (
336
+ obj: ListResourcesInput
337
+ ) => any;
324
338
  export declare const ListTagsForResourceOutputFilterSensitiveLog: (
325
339
  obj: ListTagsForResourceOutput
326
340
  ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListResourcesCommandInput,
4
+ ListResourcesCommandOutput,
5
+ } from "../commands/ListResourcesCommand";
6
+ import { ResourceExplorer2PaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListResources: (
8
+ config: ResourceExplorer2PaginationConfiguration,
9
+ input: ListResourcesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListResourcesCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListIndexesForMembersPaginator";
3
3
  export * from "./ListIndexesPaginator";
4
+ export * from "./ListResourcesPaginator";
4
5
  export * from "./ListSupportedResourceTypesPaginator";
5
6
  export * from "./ListViewsPaginator";
6
7
  export * from "./SearchPaginator";
@@ -55,6 +55,10 @@ import {
55
55
  ListIndexesForMembersCommandInput,
56
56
  ListIndexesForMembersCommandOutput,
57
57
  } from "../commands/ListIndexesForMembersCommand";
58
+ import {
59
+ ListResourcesCommandInput,
60
+ ListResourcesCommandOutput,
61
+ } from "../commands/ListResourcesCommand";
58
62
  import {
59
63
  ListSupportedResourceTypesCommandInput,
60
64
  ListSupportedResourceTypesCommandOutput,
@@ -139,6 +143,10 @@ export declare const se_ListIndexesForMembersCommand: (
139
143
  input: ListIndexesForMembersCommandInput,
140
144
  context: __SerdeContext
141
145
  ) => Promise<__HttpRequest>;
146
+ export declare const se_ListResourcesCommand: (
147
+ input: ListResourcesCommandInput,
148
+ context: __SerdeContext
149
+ ) => Promise<__HttpRequest>;
142
150
  export declare const se_ListSupportedResourceTypesCommand: (
143
151
  input: ListSupportedResourceTypesCommandInput,
144
152
  context: __SerdeContext
@@ -223,6 +231,10 @@ export declare const de_ListIndexesForMembersCommand: (
223
231
  output: __HttpResponse,
224
232
  context: __SerdeContext
225
233
  ) => Promise<ListIndexesForMembersCommandOutput>;
234
+ export declare const de_ListResourcesCommand: (
235
+ output: __HttpResponse,
236
+ context: __SerdeContext
237
+ ) => Promise<ListResourcesCommandOutput>;
226
238
  export declare const de_ListSupportedResourceTypesCommand: (
227
239
  output: __HttpResponse,
228
240
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-resource-explorer-2",
3
3
  "description": "AWS SDK for JavaScript Resource Explorer 2 Client for Node.js, Browser and React Native",
4
- "version": "3.654.0",
4
+ "version": "3.658.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-resource-explorer-2",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.654.0",
24
- "@aws-sdk/client-sts": "3.654.0",
25
- "@aws-sdk/core": "3.654.0",
26
- "@aws-sdk/credential-provider-node": "3.654.0",
23
+ "@aws-sdk/client-sso-oidc": "3.658.0",
24
+ "@aws-sdk/client-sts": "3.658.0",
25
+ "@aws-sdk/core": "3.658.0",
26
+ "@aws-sdk/credential-provider-node": "3.658.0",
27
27
  "@aws-sdk/middleware-host-header": "3.654.0",
28
28
  "@aws-sdk/middleware-logger": "3.654.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.654.0",