@aws-sdk/client-greengrassv2 3.974.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
@@ -1606,6 +1606,20 @@ class UpdateConnectivityInfoCommand extends smithyClient.Command
1606
1606
  .build() {
1607
1607
  }
1608
1608
 
1609
+ const paginateListClientDevicesAssociatedWithCoreDevice = core.createPaginator(GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
1610
+
1611
+ const paginateListComponents = core.createPaginator(GreengrassV2Client, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
1612
+
1613
+ const paginateListComponentVersions = core.createPaginator(GreengrassV2Client, ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
1614
+
1615
+ const paginateListCoreDevices = core.createPaginator(GreengrassV2Client, ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
1616
+
1617
+ const paginateListDeployments = core.createPaginator(GreengrassV2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1618
+
1619
+ const paginateListEffectiveDeployments = core.createPaginator(GreengrassV2Client, ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1620
+
1621
+ const paginateListInstalledComponents = core.createPaginator(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
1622
+
1609
1623
  const commands = {
1610
1624
  AssociateServiceRoleToAccountCommand,
1611
1625
  BatchAssociateClientDeviceWithCoreDeviceCommand,
@@ -1637,23 +1651,18 @@ const commands = {
1637
1651
  UntagResourceCommand,
1638
1652
  UpdateConnectivityInfoCommand,
1639
1653
  };
1654
+ const paginators = {
1655
+ paginateListClientDevicesAssociatedWithCoreDevice,
1656
+ paginateListComponents,
1657
+ paginateListComponentVersions,
1658
+ paginateListCoreDevices,
1659
+ paginateListDeployments,
1660
+ paginateListEffectiveDeployments,
1661
+ paginateListInstalledComponents,
1662
+ };
1640
1663
  class GreengrassV2 extends GreengrassV2Client {
1641
1664
  }
1642
- smithyClient.createAggregatedClient(commands, GreengrassV2);
1643
-
1644
- const paginateListClientDevicesAssociatedWithCoreDevice = core.createPaginator(GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
1645
-
1646
- const paginateListComponents = core.createPaginator(GreengrassV2Client, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
1647
-
1648
- const paginateListComponentVersions = core.createPaginator(GreengrassV2Client, ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
1649
-
1650
- const paginateListCoreDevices = core.createPaginator(GreengrassV2Client, ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
1651
-
1652
- const paginateListDeployments = core.createPaginator(GreengrassV2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1653
-
1654
- const paginateListEffectiveDeployments = core.createPaginator(GreengrassV2Client, ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1655
-
1656
- const paginateListInstalledComponents = core.createPaginator(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
1665
+ smithyClient.createAggregatedClient(commands, GreengrassV2, { paginators });
1657
1666
 
1658
1667
  const ValidationExceptionReason = {
1659
1668
  CANNOT_PARSE: "CANNOT_PARSE",
@@ -29,6 +29,13 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
29
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
30
  import { UpdateConnectivityInfoCommand, } from "./commands/UpdateConnectivityInfoCommand";
31
31
  import { GreengrassV2Client } from "./GreengrassV2Client";
32
+ import { paginateListClientDevicesAssociatedWithCoreDevice, } from "./pagination/ListClientDevicesAssociatedWithCoreDevicePaginator";
33
+ import { paginateListComponents } from "./pagination/ListComponentsPaginator";
34
+ import { paginateListComponentVersions } from "./pagination/ListComponentVersionsPaginator";
35
+ import { paginateListCoreDevices } from "./pagination/ListCoreDevicesPaginator";
36
+ import { paginateListDeployments } from "./pagination/ListDeploymentsPaginator";
37
+ import { paginateListEffectiveDeployments } from "./pagination/ListEffectiveDeploymentsPaginator";
38
+ import { paginateListInstalledComponents } from "./pagination/ListInstalledComponentsPaginator";
32
39
  const commands = {
33
40
  AssociateServiceRoleToAccountCommand,
34
41
  BatchAssociateClientDeviceWithCoreDeviceCommand,
@@ -60,6 +67,15 @@ const commands = {
60
67
  UntagResourceCommand,
61
68
  UpdateConnectivityInfoCommand,
62
69
  };
70
+ const paginators = {
71
+ paginateListClientDevicesAssociatedWithCoreDevice,
72
+ paginateListComponents,
73
+ paginateListComponentVersions,
74
+ paginateListCoreDevices,
75
+ paginateListDeployments,
76
+ paginateListEffectiveDeployments,
77
+ paginateListInstalledComponents,
78
+ };
63
79
  export class GreengrassV2 extends GreengrassV2Client {
64
80
  }
65
- createAggregatedClient(commands, GreengrassV2);
81
+ createAggregatedClient(commands, GreengrassV2, { 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 { AssociateServiceRoleToAccountCommandInput, AssociateServiceRoleToAccountCommandOutput } from "./commands/AssociateServiceRoleToAccountCommand";
3
3
  import { BatchAssociateClientDeviceWithCoreDeviceCommandInput, BatchAssociateClientDeviceWithCoreDeviceCommandOutput } from "./commands/BatchAssociateClientDeviceWithCoreDeviceCommand";
4
4
  import { BatchDisassociateClientDeviceFromCoreDeviceCommandInput, BatchDisassociateClientDeviceFromCoreDeviceCommandOutput } from "./commands/BatchDisassociateClientDeviceFromCoreDeviceCommand";
@@ -211,6 +211,55 @@ export interface GreengrassV2 {
211
211
  updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectivityInfoCommandOutput>;
212
212
  updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, cb: (err: any, data?: UpdateConnectivityInfoCommandOutput) => void): void;
213
213
  updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectivityInfoCommandOutput) => void): void;
214
+ /**
215
+ * @see {@link ListClientDevicesAssociatedWithCoreDeviceCommand}
216
+ * @param args - command input.
217
+ * @param paginationConfig - optional pagination config.
218
+ * @returns AsyncIterable of {@link ListClientDevicesAssociatedWithCoreDeviceCommandOutput}.
219
+ */
220
+ paginateListClientDevicesAssociatedWithCoreDevice(args: ListClientDevicesAssociatedWithCoreDeviceCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClientDevicesAssociatedWithCoreDeviceCommandOutput>;
221
+ /**
222
+ * @see {@link ListComponentsCommand}
223
+ * @param args - command input.
224
+ * @param paginationConfig - optional pagination config.
225
+ * @returns AsyncIterable of {@link ListComponentsCommandOutput}.
226
+ */
227
+ paginateListComponents(args?: ListComponentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListComponentsCommandOutput>;
228
+ /**
229
+ * @see {@link ListComponentVersionsCommand}
230
+ * @param args - command input.
231
+ * @param paginationConfig - optional pagination config.
232
+ * @returns AsyncIterable of {@link ListComponentVersionsCommandOutput}.
233
+ */
234
+ paginateListComponentVersions(args: ListComponentVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListComponentVersionsCommandOutput>;
235
+ /**
236
+ * @see {@link ListCoreDevicesCommand}
237
+ * @param args - command input.
238
+ * @param paginationConfig - optional pagination config.
239
+ * @returns AsyncIterable of {@link ListCoreDevicesCommandOutput}.
240
+ */
241
+ paginateListCoreDevices(args?: ListCoreDevicesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCoreDevicesCommandOutput>;
242
+ /**
243
+ * @see {@link ListDeploymentsCommand}
244
+ * @param args - command input.
245
+ * @param paginationConfig - optional pagination config.
246
+ * @returns AsyncIterable of {@link ListDeploymentsCommandOutput}.
247
+ */
248
+ paginateListDeployments(args?: ListDeploymentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDeploymentsCommandOutput>;
249
+ /**
250
+ * @see {@link ListEffectiveDeploymentsCommand}
251
+ * @param args - command input.
252
+ * @param paginationConfig - optional pagination config.
253
+ * @returns AsyncIterable of {@link ListEffectiveDeploymentsCommandOutput}.
254
+ */
255
+ paginateListEffectiveDeployments(args: ListEffectiveDeploymentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEffectiveDeploymentsCommandOutput>;
256
+ /**
257
+ * @see {@link ListInstalledComponentsCommand}
258
+ * @param args - command input.
259
+ * @param paginationConfig - optional pagination config.
260
+ * @returns AsyncIterable of {@link ListInstalledComponentsCommandOutput}.
261
+ */
262
+ paginateListInstalledComponents(args: ListInstalledComponentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInstalledComponentsCommandOutput>;
214
263
  }
215
264
  /**
216
265
  * <p>IoT Greengrass brings local compute, messaging, data management, sync, and ML inference capabilities
@@ -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
  AssociateServiceRoleToAccountCommandInput,
4
8
  AssociateServiceRoleToAccountCommandOutput,
@@ -525,6 +529,55 @@ export interface GreengrassV2 {
525
529
  options: __HttpHandlerOptions,
526
530
  cb: (err: any, data?: UpdateConnectivityInfoCommandOutput) => void
527
531
  ): void;
532
+ paginateListClientDevicesAssociatedWithCoreDevice(
533
+ args: ListClientDevicesAssociatedWithCoreDeviceCommandInput,
534
+ paginationConfig?: Pick<
535
+ PaginationConfiguration,
536
+ Exclude<keyof PaginationConfiguration, "client">
537
+ >
538
+ ): Paginator<ListClientDevicesAssociatedWithCoreDeviceCommandOutput>;
539
+ paginateListComponents(
540
+ args?: ListComponentsCommandInput,
541
+ paginationConfig?: Pick<
542
+ PaginationConfiguration,
543
+ Exclude<keyof PaginationConfiguration, "client">
544
+ >
545
+ ): Paginator<ListComponentsCommandOutput>;
546
+ paginateListComponentVersions(
547
+ args: ListComponentVersionsCommandInput,
548
+ paginationConfig?: Pick<
549
+ PaginationConfiguration,
550
+ Exclude<keyof PaginationConfiguration, "client">
551
+ >
552
+ ): Paginator<ListComponentVersionsCommandOutput>;
553
+ paginateListCoreDevices(
554
+ args?: ListCoreDevicesCommandInput,
555
+ paginationConfig?: Pick<
556
+ PaginationConfiguration,
557
+ Exclude<keyof PaginationConfiguration, "client">
558
+ >
559
+ ): Paginator<ListCoreDevicesCommandOutput>;
560
+ paginateListDeployments(
561
+ args?: ListDeploymentsCommandInput,
562
+ paginationConfig?: Pick<
563
+ PaginationConfiguration,
564
+ Exclude<keyof PaginationConfiguration, "client">
565
+ >
566
+ ): Paginator<ListDeploymentsCommandOutput>;
567
+ paginateListEffectiveDeployments(
568
+ args: ListEffectiveDeploymentsCommandInput,
569
+ paginationConfig?: Pick<
570
+ PaginationConfiguration,
571
+ Exclude<keyof PaginationConfiguration, "client">
572
+ >
573
+ ): Paginator<ListEffectiveDeploymentsCommandOutput>;
574
+ paginateListInstalledComponents(
575
+ args: ListInstalledComponentsCommandInput,
576
+ paginationConfig?: Pick<
577
+ PaginationConfiguration,
578
+ Exclude<keyof PaginationConfiguration, "client">
579
+ >
580
+ ): Paginator<ListInstalledComponentsCommandOutput>;
528
581
  }
529
582
  export declare class GreengrassV2
530
583
  extends GreengrassV2Client
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrassv2",
3
3
  "description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
4
- "version": "3.974.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-greengrassv2",
@@ -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.0",
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.1",
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.0",
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.10",
42
- "@smithy/middleware-retry": "^4.4.26",
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.11",
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.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
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",