@aws-sdk/client-resource-explorer-2 3.975.0 → 3.978.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/dist-cjs/index.js CHANGED
@@ -1400,6 +1400,28 @@ class UpdateViewCommand extends smithyClient.Command
1400
1400
  .build() {
1401
1401
  }
1402
1402
 
1403
+ const paginateGetResourceExplorerSetup = core.createPaginator(ResourceExplorer2Client, GetResourceExplorerSetupCommand, "NextToken", "NextToken", "MaxResults");
1404
+
1405
+ const paginateListIndexesForMembers = core.createPaginator(ResourceExplorer2Client, ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
1406
+
1407
+ const paginateListIndexes = core.createPaginator(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
1408
+
1409
+ const paginateListManagedViews = core.createPaginator(ResourceExplorer2Client, ListManagedViewsCommand, "NextToken", "NextToken", "MaxResults");
1410
+
1411
+ const paginateListResources = core.createPaginator(ResourceExplorer2Client, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
1412
+
1413
+ const paginateListServiceIndexes = core.createPaginator(ResourceExplorer2Client, ListServiceIndexesCommand, "NextToken", "NextToken", "MaxResults");
1414
+
1415
+ const paginateListServiceViews = core.createPaginator(ResourceExplorer2Client, ListServiceViewsCommand, "NextToken", "NextToken", "MaxResults");
1416
+
1417
+ const paginateListStreamingAccessForServices = core.createPaginator(ResourceExplorer2Client, ListStreamingAccessForServicesCommand, "NextToken", "NextToken", "MaxResults");
1418
+
1419
+ const paginateListSupportedResourceTypes = core.createPaginator(ResourceExplorer2Client, ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
1420
+
1421
+ const paginateListViews = core.createPaginator(ResourceExplorer2Client, ListViewsCommand, "NextToken", "NextToken", "MaxResults");
1422
+
1423
+ const paginateSearch = core.createPaginator(ResourceExplorer2Client, SearchCommand, "NextToken", "NextToken", "MaxResults");
1424
+
1403
1425
  const commands = {
1404
1426
  AssociateDefaultViewCommand,
1405
1427
  BatchGetViewCommand,
@@ -1434,31 +1456,22 @@ const commands = {
1434
1456
  UpdateIndexTypeCommand,
1435
1457
  UpdateViewCommand,
1436
1458
  };
1459
+ const paginators = {
1460
+ paginateGetResourceExplorerSetup,
1461
+ paginateListIndexes,
1462
+ paginateListIndexesForMembers,
1463
+ paginateListManagedViews,
1464
+ paginateListResources,
1465
+ paginateListServiceIndexes,
1466
+ paginateListServiceViews,
1467
+ paginateListStreamingAccessForServices,
1468
+ paginateListSupportedResourceTypes,
1469
+ paginateListViews,
1470
+ paginateSearch,
1471
+ };
1437
1472
  class ResourceExplorer2 extends ResourceExplorer2Client {
1438
1473
  }
1439
- smithyClient.createAggregatedClient(commands, ResourceExplorer2);
1440
-
1441
- const paginateGetResourceExplorerSetup = core.createPaginator(ResourceExplorer2Client, GetResourceExplorerSetupCommand, "NextToken", "NextToken", "MaxResults");
1442
-
1443
- const paginateListIndexes = core.createPaginator(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
1444
-
1445
- const paginateListIndexesForMembers = core.createPaginator(ResourceExplorer2Client, ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
1446
-
1447
- const paginateListManagedViews = core.createPaginator(ResourceExplorer2Client, ListManagedViewsCommand, "NextToken", "NextToken", "MaxResults");
1448
-
1449
- const paginateListResources = core.createPaginator(ResourceExplorer2Client, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
1450
-
1451
- const paginateListServiceIndexes = core.createPaginator(ResourceExplorer2Client, ListServiceIndexesCommand, "NextToken", "NextToken", "MaxResults");
1452
-
1453
- const paginateListServiceViews = core.createPaginator(ResourceExplorer2Client, ListServiceViewsCommand, "NextToken", "NextToken", "MaxResults");
1454
-
1455
- const paginateListStreamingAccessForServices = core.createPaginator(ResourceExplorer2Client, ListStreamingAccessForServicesCommand, "NextToken", "NextToken", "MaxResults");
1456
-
1457
- const paginateListSupportedResourceTypes = core.createPaginator(ResourceExplorer2Client, ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
1458
-
1459
- const paginateListViews = core.createPaginator(ResourceExplorer2Client, ListViewsCommand, "NextToken", "NextToken", "MaxResults");
1460
-
1461
- const paginateSearch = core.createPaginator(ResourceExplorer2Client, SearchCommand, "NextToken", "NextToken", "MaxResults");
1474
+ smithyClient.createAggregatedClient(commands, ResourceExplorer2, { paginators });
1462
1475
 
1463
1476
  const AWSServiceAccessStatus = {
1464
1477
  DISABLED: "DISABLED",
@@ -31,6 +31,17 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
31
31
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
32
32
  import { UpdateIndexTypeCommand, } from "./commands/UpdateIndexTypeCommand";
33
33
  import { UpdateViewCommand } from "./commands/UpdateViewCommand";
34
+ import { paginateGetResourceExplorerSetup } from "./pagination/GetResourceExplorerSetupPaginator";
35
+ import { paginateListIndexesForMembers } from "./pagination/ListIndexesForMembersPaginator";
36
+ import { paginateListIndexes } from "./pagination/ListIndexesPaginator";
37
+ import { paginateListManagedViews } from "./pagination/ListManagedViewsPaginator";
38
+ import { paginateListResources } from "./pagination/ListResourcesPaginator";
39
+ import { paginateListServiceIndexes } from "./pagination/ListServiceIndexesPaginator";
40
+ import { paginateListServiceViews } from "./pagination/ListServiceViewsPaginator";
41
+ import { paginateListStreamingAccessForServices } from "./pagination/ListStreamingAccessForServicesPaginator";
42
+ import { paginateListSupportedResourceTypes } from "./pagination/ListSupportedResourceTypesPaginator";
43
+ import { paginateListViews } from "./pagination/ListViewsPaginator";
44
+ import { paginateSearch } from "./pagination/SearchPaginator";
34
45
  import { ResourceExplorer2Client } from "./ResourceExplorer2Client";
35
46
  const commands = {
36
47
  AssociateDefaultViewCommand,
@@ -66,6 +77,19 @@ const commands = {
66
77
  UpdateIndexTypeCommand,
67
78
  UpdateViewCommand,
68
79
  };
80
+ const paginators = {
81
+ paginateGetResourceExplorerSetup,
82
+ paginateListIndexes,
83
+ paginateListIndexesForMembers,
84
+ paginateListManagedViews,
85
+ paginateListResources,
86
+ paginateListServiceIndexes,
87
+ paginateListServiceViews,
88
+ paginateListStreamingAccessForServices,
89
+ paginateListSupportedResourceTypes,
90
+ paginateListViews,
91
+ paginateSearch,
92
+ };
69
93
  export class ResourceExplorer2 extends ResourceExplorer2Client {
70
94
  }
71
- createAggregatedClient(commands, ResourceExplorer2);
95
+ createAggregatedClient(commands, ResourceExplorer2, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { AssociateDefaultViewCommandInput, AssociateDefaultViewCommandOutput } from "./commands/AssociateDefaultViewCommand";
3
3
  import { BatchGetViewCommandInput, BatchGetViewCommandOutput } from "./commands/BatchGetViewCommand";
4
4
  import { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
@@ -241,6 +241,83 @@ export interface ResourceExplorer2 {
241
241
  updateView(args: UpdateViewCommandInput, options?: __HttpHandlerOptions): Promise<UpdateViewCommandOutput>;
242
242
  updateView(args: UpdateViewCommandInput, cb: (err: any, data?: UpdateViewCommandOutput) => void): void;
243
243
  updateView(args: UpdateViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateViewCommandOutput) => void): void;
244
+ /**
245
+ * @see {@link GetResourceExplorerSetupCommand}
246
+ * @param args - command input.
247
+ * @param paginationConfig - optional pagination config.
248
+ * @returns AsyncIterable of {@link GetResourceExplorerSetupCommandOutput}.
249
+ */
250
+ paginateGetResourceExplorerSetup(args: GetResourceExplorerSetupCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetResourceExplorerSetupCommandOutput>;
251
+ /**
252
+ * @see {@link ListIndexesCommand}
253
+ * @param args - command input.
254
+ * @param paginationConfig - optional pagination config.
255
+ * @returns AsyncIterable of {@link ListIndexesCommandOutput}.
256
+ */
257
+ paginateListIndexes(args?: ListIndexesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIndexesCommandOutput>;
258
+ /**
259
+ * @see {@link ListIndexesForMembersCommand}
260
+ * @param args - command input.
261
+ * @param paginationConfig - optional pagination config.
262
+ * @returns AsyncIterable of {@link ListIndexesForMembersCommandOutput}.
263
+ */
264
+ paginateListIndexesForMembers(args: ListIndexesForMembersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIndexesForMembersCommandOutput>;
265
+ /**
266
+ * @see {@link ListManagedViewsCommand}
267
+ * @param args - command input.
268
+ * @param paginationConfig - optional pagination config.
269
+ * @returns AsyncIterable of {@link ListManagedViewsCommandOutput}.
270
+ */
271
+ paginateListManagedViews(args?: ListManagedViewsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListManagedViewsCommandOutput>;
272
+ /**
273
+ * @see {@link ListResourcesCommand}
274
+ * @param args - command input.
275
+ * @param paginationConfig - optional pagination config.
276
+ * @returns AsyncIterable of {@link ListResourcesCommandOutput}.
277
+ */
278
+ paginateListResources(args?: ListResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcesCommandOutput>;
279
+ /**
280
+ * @see {@link ListServiceIndexesCommand}
281
+ * @param args - command input.
282
+ * @param paginationConfig - optional pagination config.
283
+ * @returns AsyncIterable of {@link ListServiceIndexesCommandOutput}.
284
+ */
285
+ paginateListServiceIndexes(args?: ListServiceIndexesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListServiceIndexesCommandOutput>;
286
+ /**
287
+ * @see {@link ListServiceViewsCommand}
288
+ * @param args - command input.
289
+ * @param paginationConfig - optional pagination config.
290
+ * @returns AsyncIterable of {@link ListServiceViewsCommandOutput}.
291
+ */
292
+ paginateListServiceViews(args?: ListServiceViewsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListServiceViewsCommandOutput>;
293
+ /**
294
+ * @see {@link ListStreamingAccessForServicesCommand}
295
+ * @param args - command input.
296
+ * @param paginationConfig - optional pagination config.
297
+ * @returns AsyncIterable of {@link ListStreamingAccessForServicesCommandOutput}.
298
+ */
299
+ paginateListStreamingAccessForServices(args?: ListStreamingAccessForServicesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStreamingAccessForServicesCommandOutput>;
300
+ /**
301
+ * @see {@link ListSupportedResourceTypesCommand}
302
+ * @param args - command input.
303
+ * @param paginationConfig - optional pagination config.
304
+ * @returns AsyncIterable of {@link ListSupportedResourceTypesCommandOutput}.
305
+ */
306
+ paginateListSupportedResourceTypes(args?: ListSupportedResourceTypesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSupportedResourceTypesCommandOutput>;
307
+ /**
308
+ * @see {@link ListViewsCommand}
309
+ * @param args - command input.
310
+ * @param paginationConfig - optional pagination config.
311
+ * @returns AsyncIterable of {@link ListViewsCommandOutput}.
312
+ */
313
+ paginateListViews(args?: ListViewsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListViewsCommandOutput>;
314
+ /**
315
+ * @see {@link SearchCommand}
316
+ * @param args - command input.
317
+ * @param paginationConfig - optional pagination config.
318
+ * @returns AsyncIterable of {@link SearchCommandOutput}.
319
+ */
320
+ paginateSearch(args: SearchCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchCommandOutput>;
244
321
  }
245
322
  /**
246
323
  * <p>Amazon Web Services Resource Explorer is a resource search and discovery service. By using Resource Explorer, you can explore your resources using an internet search engine-like experience. Examples of resources include Amazon Relational Database Service (Amazon RDS) instances, Amazon Simple Storage Service (Amazon S3) buckets, or Amazon DynamoDB tables. You can search for your resources using resource metadata like names, tags, and IDs. Resource Explorer can search across all of the Amazon Web Services Regions in your account in which you turn the service on, to simplify your cross-Region workloads.</p> <p>Resource Explorer scans the resources in each of the Amazon Web Services Regions in your Amazon Web Services account in which you turn on Resource Explorer. Resource Explorer <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/getting-started-terms-and-concepts.html#term-index">creates and maintains an index</a> in each Region, with the details of that Region's resources.</p> <p>You can <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html">search across all of the indexed Regions in your account</a> by designating one of your Amazon Web Services Regions to contain the aggregator index for the account. When you <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region-turn-on.html">promote a local index in a Region to become the aggregator index for the account</a>, Resource Explorer automatically replicates the index information from all local indexes in the other Regions to the aggregator index. Therefore, the Region with the aggregator index has a copy of all resource information for all Regions in the account where you turned on Resource Explorer. As a result, views in the aggregator index Region include resources from all of the indexed Regions in your account.</p> <p>For more information about Amazon Web Services Resource Explorer, including how to enable and configure the service, see the <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/">Amazon Web Services Resource Explorer User Guide</a>.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AssociateDefaultViewCommandInput,
4
8
  AssociateDefaultViewCommandOutput,
@@ -567,6 +571,83 @@ export interface ResourceExplorer2 {
567
571
  options: __HttpHandlerOptions,
568
572
  cb: (err: any, data?: UpdateViewCommandOutput) => void
569
573
  ): void;
574
+ paginateGetResourceExplorerSetup(
575
+ args: GetResourceExplorerSetupCommandInput,
576
+ paginationConfig?: Pick<
577
+ PaginationConfiguration,
578
+ Exclude<keyof PaginationConfiguration, "client">
579
+ >
580
+ ): Paginator<GetResourceExplorerSetupCommandOutput>;
581
+ paginateListIndexes(
582
+ args?: ListIndexesCommandInput,
583
+ paginationConfig?: Pick<
584
+ PaginationConfiguration,
585
+ Exclude<keyof PaginationConfiguration, "client">
586
+ >
587
+ ): Paginator<ListIndexesCommandOutput>;
588
+ paginateListIndexesForMembers(
589
+ args: ListIndexesForMembersCommandInput,
590
+ paginationConfig?: Pick<
591
+ PaginationConfiguration,
592
+ Exclude<keyof PaginationConfiguration, "client">
593
+ >
594
+ ): Paginator<ListIndexesForMembersCommandOutput>;
595
+ paginateListManagedViews(
596
+ args?: ListManagedViewsCommandInput,
597
+ paginationConfig?: Pick<
598
+ PaginationConfiguration,
599
+ Exclude<keyof PaginationConfiguration, "client">
600
+ >
601
+ ): Paginator<ListManagedViewsCommandOutput>;
602
+ paginateListResources(
603
+ args?: ListResourcesCommandInput,
604
+ paginationConfig?: Pick<
605
+ PaginationConfiguration,
606
+ Exclude<keyof PaginationConfiguration, "client">
607
+ >
608
+ ): Paginator<ListResourcesCommandOutput>;
609
+ paginateListServiceIndexes(
610
+ args?: ListServiceIndexesCommandInput,
611
+ paginationConfig?: Pick<
612
+ PaginationConfiguration,
613
+ Exclude<keyof PaginationConfiguration, "client">
614
+ >
615
+ ): Paginator<ListServiceIndexesCommandOutput>;
616
+ paginateListServiceViews(
617
+ args?: ListServiceViewsCommandInput,
618
+ paginationConfig?: Pick<
619
+ PaginationConfiguration,
620
+ Exclude<keyof PaginationConfiguration, "client">
621
+ >
622
+ ): Paginator<ListServiceViewsCommandOutput>;
623
+ paginateListStreamingAccessForServices(
624
+ args?: ListStreamingAccessForServicesCommandInput,
625
+ paginationConfig?: Pick<
626
+ PaginationConfiguration,
627
+ Exclude<keyof PaginationConfiguration, "client">
628
+ >
629
+ ): Paginator<ListStreamingAccessForServicesCommandOutput>;
630
+ paginateListSupportedResourceTypes(
631
+ args?: ListSupportedResourceTypesCommandInput,
632
+ paginationConfig?: Pick<
633
+ PaginationConfiguration,
634
+ Exclude<keyof PaginationConfiguration, "client">
635
+ >
636
+ ): Paginator<ListSupportedResourceTypesCommandOutput>;
637
+ paginateListViews(
638
+ args?: ListViewsCommandInput,
639
+ paginationConfig?: Pick<
640
+ PaginationConfiguration,
641
+ Exclude<keyof PaginationConfiguration, "client">
642
+ >
643
+ ): Paginator<ListViewsCommandOutput>;
644
+ paginateSearch(
645
+ args: SearchCommandInput,
646
+ paginationConfig?: Pick<
647
+ PaginationConfiguration,
648
+ Exclude<keyof PaginationConfiguration, "client">
649
+ >
650
+ ): Paginator<SearchCommandOutput>;
570
651
  }
571
652
  export declare class ResourceExplorer2
572
653
  extends ResourceExplorer2Client
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.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-resource-explorer-2",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",