@aws-sdk/client-imagebuilder 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/ListComponentBuildVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListContainerRecipesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDistributionConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImageBuildVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImagePackagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListImagePipelineImagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListImagePipelinesPaginator.js +2 -24
- package/dist-cjs/pagination/ListImageRecipesPaginator.js +2 -24
- package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +2 -23
- package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListInfrastructureConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListWaitingWorkflowStepsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowBuildVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
- package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListContainerRecipesPaginator.js +2 -23
- package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListImageBuildVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListImagePackagesPaginator.js +2 -23
- package/dist-es/pagination/ListImagePipelineImagesPaginator.js +2 -23
- package/dist-es/pagination/ListImagePipelinesPaginator.js +2 -23
- package/dist-es/pagination/ListImageRecipesPaginator.js +2 -23
- package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +2 -22
- package/dist-es/pagination/ListImageScanFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListImagesPaginator.js +2 -23
- package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListWaitingWorkflowStepsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowBuildVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
- package/dist-types/pagination/ListComponentBuildVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContainerRecipesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDistributionConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageBuildVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImagePackagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImagePipelineImagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImagePipelinesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageRecipesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInfrastructureConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWaitingWorkflowStepsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowBuildVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListComponentBuildVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContainerRecipesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDistributionConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageBuildVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImagePackagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImagePipelineImagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImagePipelinesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageRecipesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInfrastructureConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWaitingWorkflowStepsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowBuildVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.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.paginateListWorkflowStepExecutions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWorkflowStepExecutionsCommand_1 = require("../commands/ListWorkflowStepExecutionsCommand");
|
|
5
6
|
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWorkflowStepExecutionsCommand_1.ListWorkflowStepExecutionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWorkflowStepExecutions(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 ImagebuilderClient_1.ImagebuilderClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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.paginateListWorkflowStepExecutions = paginateListWorkflowStepExecutions;
|
|
7
|
+
exports.paginateListWorkflowStepExecutions = (0, core_1.createPaginator)(ImagebuilderClient_1.ImagebuilderClient, ListWorkflowStepExecutionsCommand_1.ListWorkflowStepExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWorkflows = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
|
|
5
6
|
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWorkflows(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 ImagebuilderClient_1.ImagebuilderClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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.paginateListWorkflows = paginateListWorkflows;
|
|
7
|
+
exports.paginateListWorkflows = (0, core_1.createPaginator)(ImagebuilderClient_1.ImagebuilderClient, ListWorkflowsCommand_1.ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentBuildVersionsCommand, } from "../commands/ListComponentBuildVersionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentBuildVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponentBuildVersions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListComponentBuildVersions = createPaginator(ImagebuilderClient, ListComponentBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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(ImagebuilderClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContainerRecipesCommand, } from "../commands/ListContainerRecipesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContainerRecipesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContainerRecipes(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListContainerRecipes = createPaginator(ImagebuilderClient, ListContainerRecipesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDistributionConfigurationsCommand, } from "../commands/ListDistributionConfigurationsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDistributionConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDistributionConfigurations(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListDistributionConfigurations = createPaginator(ImagebuilderClient, ListDistributionConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImageBuildVersionsCommand, } from "../commands/ListImageBuildVersionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImageBuildVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImageBuildVersions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImageBuildVersions = createPaginator(ImagebuilderClient, ListImageBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImagePackagesCommand, } from "../commands/ListImagePackagesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImagePackagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImagePackages(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImagePackages = createPaginator(ImagebuilderClient, ListImagePackagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImagePipelineImagesCommand, } from "../commands/ListImagePipelineImagesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImagePipelineImagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImagePipelineImages(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImagePipelineImages = createPaginator(ImagebuilderClient, ListImagePipelineImagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImagePipelinesCommand, } from "../commands/ListImagePipelinesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImagePipelinesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImagePipelines(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImagePipelines = createPaginator(ImagebuilderClient, ListImagePipelinesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImageRecipesCommand, } from "../commands/ListImageRecipesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImageRecipesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImageRecipes(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImageRecipes = createPaginator(ImagebuilderClient, ListImageRecipesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImageScanFindingAggregationsCommand, } from "../commands/ListImageScanFindingAggregationsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImageScanFindingAggregationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImageScanFindingAggregations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof ImagebuilderClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListImageScanFindingAggregations = createPaginator(ImagebuilderClient, ListImageScanFindingAggregationsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImageScanFindingsCommand, } from "../commands/ListImageScanFindingsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImageScanFindingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImageScanFindings(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImageScanFindings = createPaginator(ImagebuilderClient, ListImageScanFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImagesCommand } from "../commands/ListImagesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImages(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListImages = createPaginator(ImagebuilderClient, ListImagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInfrastructureConfigurationsCommand, } from "../commands/ListInfrastructureConfigurationsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInfrastructureConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInfrastructureConfigurations(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListInfrastructureConfigurations = createPaginator(ImagebuilderClient, ListInfrastructureConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLifecycleExecutionResourcesCommand, } from "../commands/ListLifecycleExecutionResourcesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLifecycleExecutionResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLifecycleExecutionResources(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListLifecycleExecutionResources = createPaginator(ImagebuilderClient, ListLifecycleExecutionResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLifecycleExecutionsCommand, } from "../commands/ListLifecycleExecutionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLifecycleExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLifecycleExecutions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListLifecycleExecutions = createPaginator(ImagebuilderClient, ListLifecycleExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLifecyclePoliciesCommand, } from "../commands/ListLifecyclePoliciesCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLifecyclePoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLifecyclePolicies(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListLifecyclePolicies = createPaginator(ImagebuilderClient, ListLifecyclePoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWaitingWorkflowStepsCommand, } from "../commands/ListWaitingWorkflowStepsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWaitingWorkflowStepsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWaitingWorkflowSteps(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListWaitingWorkflowSteps = createPaginator(ImagebuilderClient, ListWaitingWorkflowStepsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkflowBuildVersionsCommand, } from "../commands/ListWorkflowBuildVersionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkflowBuildVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkflowBuildVersions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListWorkflowBuildVersions = createPaginator(ImagebuilderClient, ListWorkflowBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkflowExecutionsCommand, } from "../commands/ListWorkflowExecutionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkflowExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkflowExecutions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListWorkflowExecutions = createPaginator(ImagebuilderClient, ListWorkflowExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkflowStepExecutionsCommand, } from "../commands/ListWorkflowStepExecutionsCommand";
|
|
2
3
|
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkflowStepExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkflowStepExecutions(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 ImagebuilderClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
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 paginateListWorkflowStepExecutions = createPaginator(ImagebuilderClient, ListWorkflowStepExecutionsCommand, "nextToken", "nextToken", "maxResults");
|