@aws-sdk/client-gamelift 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/DescribeFleetAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFleetCapacityPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFleetEventsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFleetLocationAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFleetUtilizationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGameServerInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGameSessionDetailsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGameSessionQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGameSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMatchmakingConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMatchmakingRuleSetsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePlayerSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeScalingPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListBuildsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComputePaginator.js +2 -24
- package/dist-cjs/pagination/ListFleetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGameServerGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGameServersPaginator.js +2 -24
- package/dist-cjs/pagination/ListLocationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListScriptsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchGameSessionsPaginator.js +2 -24
- package/dist-es/pagination/DescribeFleetAttributesPaginator.js +2 -23
- package/dist-es/pagination/DescribeFleetCapacityPaginator.js +2 -23
- package/dist-es/pagination/DescribeFleetEventsPaginator.js +2 -23
- package/dist-es/pagination/DescribeFleetLocationAttributesPaginator.js +2 -23
- package/dist-es/pagination/DescribeFleetUtilizationPaginator.js +2 -23
- package/dist-es/pagination/DescribeGameServerInstancesPaginator.js +2 -23
- package/dist-es/pagination/DescribeGameSessionDetailsPaginator.js +2 -23
- package/dist-es/pagination/DescribeGameSessionQueuesPaginator.js +2 -23
- package/dist-es/pagination/DescribeGameSessionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeInstancesPaginator.js +2 -23
- package/dist-es/pagination/DescribeMatchmakingConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMatchmakingRuleSetsPaginator.js +2 -23
- package/dist-es/pagination/DescribePlayerSessionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeScalingPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListBuildsPaginator.js +2 -23
- package/dist-es/pagination/ListComputePaginator.js +2 -23
- package/dist-es/pagination/ListFleetsPaginator.js +2 -23
- package/dist-es/pagination/ListGameServerGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListGameServersPaginator.js +2 -23
- package/dist-es/pagination/ListLocationsPaginator.js +2 -23
- package/dist-es/pagination/ListScriptsPaginator.js +2 -23
- package/dist-es/pagination/SearchGameSessionsPaginator.js +2 -23
- package/dist-types/pagination/DescribeFleetAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFleetCapacityPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFleetEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFleetLocationAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFleetUtilizationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGameServerInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGameSessionDetailsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGameSessionQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGameSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMatchmakingConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMatchmakingRuleSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePlayerSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeScalingPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBuildsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComputePaginator.d.ts +1 -1
- package/dist-types/pagination/ListFleetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGameServerGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGameServersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListScriptsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchGameSessionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeFleetAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFleetCapacityPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFleetEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFleetLocationAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFleetUtilizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGameServerInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGameSessionDetailsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGameSessionQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGameSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMatchmakingConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMatchmakingRuleSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePlayerSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeScalingPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBuildsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComputePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFleetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGameServerGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGameServersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListScriptsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchGameSessionsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGameServers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGameServersCommand_1 = require("../commands/ListGameServersCommand");
|
|
5
6
|
const GameLiftClient_1 = require("../GameLiftClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGameServersCommand_1.ListGameServersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGameServers(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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.paginateListGameServers = paginateListGameServers;
|
|
7
|
+
exports.paginateListGameServers = (0, core_1.createPaginator)(GameLiftClient_1.GameLiftClient, ListGameServersCommand_1.ListGameServersCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLocations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListLocationsCommand_1 = require("../commands/ListLocationsCommand");
|
|
5
6
|
const GameLiftClient_1 = require("../GameLiftClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLocationsCommand_1.ListLocationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLocations(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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.paginateListLocations = paginateListLocations;
|
|
7
|
+
exports.paginateListLocations = (0, core_1.createPaginator)(GameLiftClient_1.GameLiftClient, ListLocationsCommand_1.ListLocationsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListScripts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListScriptsCommand_1 = require("../commands/ListScriptsCommand");
|
|
5
6
|
const GameLiftClient_1 = require("../GameLiftClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListScriptsCommand_1.ListScriptsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListScripts(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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.paginateListScripts = paginateListScripts;
|
|
7
|
+
exports.paginateListScripts = (0, core_1.createPaginator)(GameLiftClient_1.GameLiftClient, ListScriptsCommand_1.ListScriptsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchGameSessions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchGameSessionsCommand_1 = require("../commands/SearchGameSessionsCommand");
|
|
5
6
|
const GameLiftClient_1 = require("../GameLiftClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchGameSessionsCommand_1.SearchGameSessionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchGameSessions(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["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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.paginateSearchGameSessions = paginateSearchGameSessions;
|
|
7
|
+
exports.paginateSearchGameSessions = (0, core_1.createPaginator)(GameLiftClient_1.GameLiftClient, SearchGameSessionsCommand_1.SearchGameSessionsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeFleetAttributesCommand, } from "../commands/DescribeFleetAttributesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFleetAttributesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFleetAttributes(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeFleetAttributes = createPaginator(GameLiftClient, DescribeFleetAttributesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeFleetCapacityCommand, } from "../commands/DescribeFleetCapacityCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFleetCapacityCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFleetCapacity(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeFleetCapacity = createPaginator(GameLiftClient, DescribeFleetCapacityCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeFleetEventsCommand, } from "../commands/DescribeFleetEventsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFleetEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFleetEvents(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeFleetEvents = createPaginator(GameLiftClient, DescribeFleetEventsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeFleetLocationAttributesCommand, } from "../commands/DescribeFleetLocationAttributesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFleetLocationAttributesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFleetLocationAttributes(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeFleetLocationAttributes = createPaginator(GameLiftClient, DescribeFleetLocationAttributesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeFleetUtilizationCommand, } from "../commands/DescribeFleetUtilizationCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFleetUtilizationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFleetUtilization(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeFleetUtilization = createPaginator(GameLiftClient, DescribeFleetUtilizationCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeGameServerInstancesCommand, } from "../commands/DescribeGameServerInstancesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeGameServerInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeGameServerInstances(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeGameServerInstances = createPaginator(GameLiftClient, DescribeGameServerInstancesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeGameSessionDetailsCommand, } from "../commands/DescribeGameSessionDetailsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeGameSessionDetailsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeGameSessionDetails(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeGameSessionDetails = createPaginator(GameLiftClient, DescribeGameSessionDetailsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeGameSessionQueuesCommand, } from "../commands/DescribeGameSessionQueuesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeGameSessionQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeGameSessionQueues(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeGameSessionQueues = createPaginator(GameLiftClient, DescribeGameSessionQueuesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeGameSessionsCommand, } from "../commands/DescribeGameSessionsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeGameSessionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeGameSessions(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeGameSessions = createPaginator(GameLiftClient, DescribeGameSessionsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstancesCommand, } from "../commands/DescribeInstancesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstances(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeInstances = createPaginator(GameLiftClient, DescribeInstancesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMatchmakingConfigurationsCommand, } from "../commands/DescribeMatchmakingConfigurationsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMatchmakingConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMatchmakingConfigurations(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeMatchmakingConfigurations = createPaginator(GameLiftClient, DescribeMatchmakingConfigurationsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMatchmakingRuleSetsCommand, } from "../commands/DescribeMatchmakingRuleSetsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMatchmakingRuleSetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMatchmakingRuleSets(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeMatchmakingRuleSets = createPaginator(GameLiftClient, DescribeMatchmakingRuleSetsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePlayerSessionsCommand, } from "../commands/DescribePlayerSessionsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePlayerSessionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePlayerSessions(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribePlayerSessions = createPaginator(GameLiftClient, DescribePlayerSessionsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeScalingPoliciesCommand, } from "../commands/DescribeScalingPoliciesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeScalingPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeScalingPolicies(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateDescribeScalingPolicies = createPaginator(GameLiftClient, DescribeScalingPoliciesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAliasesCommand } from "../commands/ListAliasesCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAliasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAliases(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateListAliases = createPaginator(GameLiftClient, ListAliasesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListBuildsCommand } from "../commands/ListBuildsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBuildsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBuilds(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateListBuilds = createPaginator(GameLiftClient, ListBuildsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComputeCommand } from "../commands/ListComputeCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComputeCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCompute(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateListCompute = createPaginator(GameLiftClient, ListComputeCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFleetsCommand } from "../commands/ListFleetsCommand";
|
|
2
3
|
import { GameLiftClient } from "../GameLiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFleetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFleets(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["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GameLiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
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 paginateListFleets = createPaginator(GameLiftClient, ListFleetsCommand, "NextToken", "NextToken", "Limit");
|