@aws-sdk/client-greengrassv2 3.476.0 → 3.478.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 (31) hide show
  1. package/dist-cjs/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +2 -24
  2. package/dist-cjs/pagination/ListComponentVersionsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListCoreDevicesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListInstalledComponentsPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +177 -393
  9. package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +2 -23
  10. package/dist-es/pagination/ListComponentVersionsPaginator.js +2 -23
  11. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  12. package/dist-es/pagination/ListCoreDevicesPaginator.js +2 -23
  13. package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
  14. package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +2 -23
  15. package/dist-es/pagination/ListInstalledComponentsPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +178 -394
  17. package/dist-types/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListComponentVersionsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListCoreDevicesPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListEffectiveDeploymentsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListInstalledComponentsPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListComponentVersionsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListCoreDevicesPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListEffectiveDeploymentsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListInstalledComponentsPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListClientDevicesAssociatedWithCoreDevice = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListClientDevicesAssociatedWithCoreDeviceCommand_1 = require("../commands/ListClientDevicesAssociatedWithCoreDeviceCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListClientDevicesAssociatedWithCoreDeviceCommand_1.ListClientDevicesAssociatedWithCoreDeviceCommand(input), ...args);
8
- };
9
- async function* paginateListClientDevicesAssociatedWithCoreDevice(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListClientDevicesAssociatedWithCoreDevice = paginateListClientDevicesAssociatedWithCoreDevice;
7
+ exports.paginateListClientDevicesAssociatedWithCoreDevice = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand_1.ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComponentVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListComponentVersionsCommand_1 = require("../commands/ListComponentVersionsCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComponentVersionsCommand_1.ListComponentVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListComponentVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListComponentVersions = paginateListComponentVersions;
7
+ exports.paginateListComponentVersions = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListComponentVersionsCommand_1.ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListComponentsCommand_1 = require("../commands/ListComponentsCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComponentsCommand_1.ListComponentsCommand(input), ...args);
8
- };
9
- async function* paginateListComponents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListComponents = paginateListComponents;
7
+ exports.paginateListComponents = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListComponentsCommand_1.ListComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCoreDevices = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCoreDevicesCommand_1 = require("../commands/ListCoreDevicesCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCoreDevicesCommand_1.ListCoreDevicesCommand(input), ...args);
8
- };
9
- async function* paginateListCoreDevices(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCoreDevices = paginateListCoreDevices;
7
+ exports.paginateListCoreDevices = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListCoreDevicesCommand_1.ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateListDeployments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDeployments = paginateListDeployments;
7
+ exports.paginateListDeployments = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListDeploymentsCommand_1.ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEffectiveDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEffectiveDeploymentsCommand_1 = require("../commands/ListEffectiveDeploymentsCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEffectiveDeploymentsCommand_1.ListEffectiveDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateListEffectiveDeployments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEffectiveDeployments = paginateListEffectiveDeployments;
7
+ exports.paginateListEffectiveDeployments = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListEffectiveDeploymentsCommand_1.ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInstalledComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInstalledComponentsCommand_1 = require("../commands/ListInstalledComponentsCommand");
5
6
  const GreengrassV2Client_1 = require("../GreengrassV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInstalledComponentsCommand_1.ListInstalledComponentsCommand(input), ...args);
8
- };
9
- async function* paginateListInstalledComponents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof GreengrassV2Client_1.GreengrassV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListInstalledComponents = paginateListInstalledComponents;
7
+ exports.paginateListInstalledComponents = (0, core_1.createPaginator)(GreengrassV2Client_1.GreengrassV2Client, ListInstalledComponentsCommand_1.ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");