@aws-sdk/client-synthetics 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.
- package/dist-cjs/pagination/DescribeCanariesLastRunPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeCanariesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRuntimeVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCanaryRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +107 -252
- package/dist-es/pagination/DescribeCanariesLastRunPaginator.js +2 -23
- package/dist-es/pagination/DescribeCanariesPaginator.js +2 -23
- package/dist-es/pagination/DescribeRuntimeVersionsPaginator.js +2 -23
- package/dist-es/pagination/GetCanaryRunsPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListGroupResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +108 -253
- package/dist-types/pagination/DescribeCanariesLastRunPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeCanariesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRuntimeVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCanaryRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeCanariesLastRunPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeCanariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRuntimeVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCanaryRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeCanariesLastRun = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeCanariesLastRunCommand_1 = require("../commands/DescribeCanariesLastRunCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeCanariesLastRunCommand_1.DescribeCanariesLastRunCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeCanariesLastRun(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateDescribeCanariesLastRun = paginateDescribeCanariesLastRun;
|
|
7
|
+
exports.paginateDescribeCanariesLastRun = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, DescribeCanariesLastRunCommand_1.DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeCanaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeCanariesCommand_1 = require("../commands/DescribeCanariesCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeCanariesCommand_1.DescribeCanariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeCanaries(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateDescribeCanaries = paginateDescribeCanaries;
|
|
7
|
+
exports.paginateDescribeCanaries = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, DescribeCanariesCommand_1.DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeRuntimeVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeRuntimeVersionsCommand_1 = require("../commands/DescribeRuntimeVersionsCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeRuntimeVersionsCommand_1.DescribeRuntimeVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeRuntimeVersions(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateDescribeRuntimeVersions = paginateDescribeRuntimeVersions;
|
|
7
|
+
exports.paginateDescribeRuntimeVersions = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, DescribeRuntimeVersionsCommand_1.DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetCanaryRuns = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetCanaryRunsCommand_1 = require("../commands/GetCanaryRunsCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetCanaryRunsCommand_1.GetCanaryRunsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetCanaryRuns(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateGetCanaryRuns = paginateGetCanaryRuns;
|
|
7
|
+
exports.paginateGetCanaryRuns = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, GetCanaryRunsCommand_1.GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAssociatedGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAssociatedGroupsCommand_1 = require("../commands/ListAssociatedGroupsCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAssociatedGroupsCommand_1.ListAssociatedGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAssociatedGroups(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateListAssociatedGroups = paginateListAssociatedGroups;
|
|
7
|
+
exports.paginateListAssociatedGroups = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, ListAssociatedGroupsCommand_1.ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroupResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupResourcesCommand_1 = require("../commands/ListGroupResourcesCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupResourcesCommand_1.ListGroupResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroupResources(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateListGroupResources = paginateListGroupResources;
|
|
7
|
+
exports.paginateListGroupResources = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, ListGroupResourcesCommand_1.ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupsCommand_1 = require("../commands/ListGroupsCommand");
|
|
5
6
|
const SyntheticsClient_1 = require("../SyntheticsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupsCommand_1.ListGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroups(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 SyntheticsClient_1.SyntheticsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
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.paginateListGroups = paginateListGroups;
|
|
7
|
+
exports.paginateListGroups = (0, core_1.createPaginator)(SyntheticsClient_1.SyntheticsClient, ListGroupsCommand_1.ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|