@aws-sdk/client-outposts 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/GetOutpostInstanceTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCatalogItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrdersPaginator.js +2 -24
- package/dist-cjs/pagination/ListOutpostsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSitesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +171 -365
- package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +2 -23
- package/dist-es/pagination/ListAssetsPaginator.js +2 -23
- package/dist-es/pagination/ListCatalogItemsPaginator.js +2 -23
- package/dist-es/pagination/ListOrdersPaginator.js +2 -23
- package/dist-es/pagination/ListOutpostsPaginator.js +2 -23
- package/dist-es/pagination/ListSitesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +172 -366
- package/dist-types/pagination/GetOutpostInstanceTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCatalogItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrdersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOutpostsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSitesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetOutpostInstanceTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCatalogItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrdersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOutpostsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSitesPaginator.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.paginateGetOutpostInstanceTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetOutpostInstanceTypesCommand_1 = require("../commands/GetOutpostInstanceTypesCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetOutpostInstanceTypesCommand_1.GetOutpostInstanceTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetOutpostInstanceTypes(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateGetOutpostInstanceTypes = paginateGetOutpostInstanceTypes;
|
|
7
|
+
exports.paginateGetOutpostInstanceTypes = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, GetOutpostInstanceTypesCommand_1.GetOutpostInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAssets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAssetsCommand_1 = require("../commands/ListAssetsCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAssetsCommand_1.ListAssetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAssets(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateListAssets = paginateListAssets;
|
|
7
|
+
exports.paginateListAssets = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, ListAssetsCommand_1.ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCatalogItems = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListCatalogItemsCommand_1 = require("../commands/ListCatalogItemsCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCatalogItemsCommand_1.ListCatalogItemsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCatalogItems(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateListCatalogItems = paginateListCatalogItems;
|
|
7
|
+
exports.paginateListCatalogItems = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, ListCatalogItemsCommand_1.ListCatalogItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrders = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrdersCommand_1 = require("../commands/ListOrdersCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrdersCommand_1.ListOrdersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrders(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateListOrders = paginateListOrders;
|
|
7
|
+
exports.paginateListOrders = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, ListOrdersCommand_1.ListOrdersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOutposts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOutpostsCommand_1 = require("../commands/ListOutpostsCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOutpostsCommand_1.ListOutpostsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOutposts(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateListOutposts = paginateListOutposts;
|
|
7
|
+
exports.paginateListOutposts = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, ListOutpostsCommand_1.ListOutpostsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSites = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSitesCommand_1 = require("../commands/ListSitesCommand");
|
|
5
6
|
const OutpostsClient_1 = require("../OutpostsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSitesCommand_1.ListSitesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSites(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 OutpostsClient_1.OutpostsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Outposts | OutpostsClient");
|
|
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.paginateListSites = paginateListSites;
|
|
7
|
+
exports.paginateListSites = (0, core_1.createPaginator)(OutpostsClient_1.OutpostsClient, ListSitesCommand_1.ListSitesCommand, "NextToken", "NextToken", "MaxResults");
|