@aws-sdk/client-greengrassv2 3.477.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.
- package/dist-cjs/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCoreDevicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstalledComponentsPaginator.js +2 -24
- package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +2 -23
- package/dist-es/pagination/ListComponentVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListCoreDevicesPaginator.js +2 -23
- package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +2 -23
- package/dist-es/pagination/ListInstalledComponentsPaginator.js +2 -23
- package/dist-types/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCoreDevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEffectiveDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstalledComponentsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCoreDevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEffectiveDeploymentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstalledComponentsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListClientDevicesAssociatedWithCoreDeviceCommand, } from "../commands/ListClientDevicesAssociatedWithCoreDeviceCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListClientDevicesAssociatedWithCoreDeviceCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListClientDevicesAssociatedWithCoreDevice(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListClientDevicesAssociatedWithCoreDevice = createPaginator(GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentVersionsCommand, } from "../commands/ListComponentVersionsCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponentVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListComponentVersions = createPaginator(GreengrassV2Client, ListComponentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListComponents = createPaginator(GreengrassV2Client, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCoreDevicesCommand, } from "../commands/ListCoreDevicesCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCoreDevicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCoreDevices(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCoreDevices = createPaginator(GreengrassV2Client, ListCoreDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeploymentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeployments(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDeployments = createPaginator(GreengrassV2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEffectiveDeploymentsCommand, } from "../commands/ListEffectiveDeploymentsCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEffectiveDeploymentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEffectiveDeployments(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEffectiveDeployments = createPaginator(GreengrassV2Client, ListEffectiveDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInstalledComponentsCommand, } from "../commands/ListInstalledComponentsCommand";
|
|
2
3
|
import { GreengrassV2Client } from "../GreengrassV2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInstalledComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInstalledComponents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GreengrassV2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GreengrassV2 | GreengrassV2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListInstalledComponents = createPaginator(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListClientDevicesAssociatedWithCoreDevice: (config: GreengrassV2PaginationConfiguration, input: ListClientDevicesAssociatedWithCoreDeviceCommandInput, ...rest: any[]) => Paginator<ListClientDevicesAssociatedWithCoreDeviceCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponentVersions: (config: GreengrassV2PaginationConfiguration, input: ListComponentVersionsCommandInput, ...rest: any[]) => Paginator<ListComponentVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponents: (config: GreengrassV2PaginationConfiguration, input: ListComponentsCommandInput, ...rest: any[]) => Paginator<ListComponentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListCoreDevices: (config: GreengrassV2PaginationConfiguration, input: ListCoreDevicesCommandInput, ...rest: any[]) => Paginator<ListCoreDevicesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (config: GreengrassV2PaginationConfiguration, input: ListDeploymentsCommandInput, ...rest: any[]) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEffectiveDeployments: (config: GreengrassV2PaginationConfiguration, input: ListEffectiveDeploymentsCommandInput, ...rest: any[]) => Paginator<ListEffectiveDeploymentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListInstalledComponents: (config: GreengrassV2PaginationConfiguration, input: ListInstalledComponentsCommandInput, ...rest: any[]) => Paginator<ListInstalledComponentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListClientDevicesAssociatedWithCoreDeviceCommandOutput,
|
|
5
5
|
} from "../commands/ListClientDevicesAssociatedWithCoreDeviceCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListClientDevicesAssociatedWithCoreDevice: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListClientDevicesAssociatedWithCoreDeviceCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListClientDevicesAssociatedWithCoreDeviceCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListComponentVersionsCommandOutput,
|
|
5
5
|
} from "../commands/ListComponentVersionsCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponentVersions: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListComponentVersionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListComponentVersionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListComponentsCommandOutput,
|
|
5
5
|
} from "../commands/ListComponentsCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponents: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListComponentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListComponentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListCoreDevicesCommandOutput,
|
|
5
5
|
} from "../commands/ListCoreDevicesCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListCoreDevices: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListCoreDevicesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListCoreDevicesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentsCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListDeploymentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListEffectiveDeploymentsCommandOutput,
|
|
5
5
|
} from "../commands/ListEffectiveDeploymentsCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEffectiveDeployments: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListEffectiveDeploymentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEffectiveDeploymentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListInstalledComponentsCommandOutput,
|
|
5
5
|
} from "../commands/ListInstalledComponentsCommand";
|
|
6
6
|
import { GreengrassV2PaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListInstalledComponents: (
|
|
8
8
|
config: GreengrassV2PaginationConfiguration,
|
|
9
9
|
input: ListInstalledComponentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListInstalledComponentsCommandOutput>;
|
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.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|