@aws-sdk/client-gamelift 3.218.0 → 3.222.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/README.md +19 -20
- package/dist-cjs/GameLift.js +135 -0
- package/dist-cjs/commands/CreateLocationCommand.js +46 -0
- package/dist-cjs/commands/DeleteLocationCommand.js +46 -0
- package/dist-cjs/commands/DeregisterComputeCommand.js +46 -0
- package/dist-cjs/commands/DescribeComputeCommand.js +46 -0
- package/dist-cjs/commands/GetComputeAccessCommand.js +46 -0
- package/dist-cjs/commands/GetComputeAuthTokenCommand.js +46 -0
- package/dist-cjs/commands/ListComputeCommand.js +46 -0
- package/dist-cjs/commands/ListLocationsCommand.js +46 -0
- package/dist-cjs/commands/RegisterComputeCommand.js +46 -0
- package/dist-cjs/commands/UpdateFleetPortSettingsCommand.js +2 -1
- package/dist-cjs/commands/UpdateGameServerCommand.js +3 -3
- package/dist-cjs/commands/UpdateGameServerGroupCommand.js +3 -3
- package/dist-cjs/commands/UpdateGameSessionCommand.js +3 -3
- package/dist-cjs/commands/UpdateGameSessionQueueCommand.js +3 -3
- package/dist-cjs/commands/UpdateMatchmakingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateRuntimeConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateScriptCommand.js +3 -3
- package/dist-cjs/commands/ValidateMatchmakingRuleSetCommand.js +3 -3
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +348 -78
- package/dist-cjs/models/models_1.js +75 -0
- package/dist-cjs/pagination/ListComputePaginator.js +36 -0
- package/dist-cjs/pagination/ListLocationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +731 -34
- package/dist-es/GameLift.js +135 -0
- package/dist-es/commands/CreateLocationCommand.js +42 -0
- package/dist-es/commands/DeleteLocationCommand.js +42 -0
- package/dist-es/commands/DeregisterComputeCommand.js +42 -0
- package/dist-es/commands/DescribeComputeCommand.js +42 -0
- package/dist-es/commands/GetComputeAccessCommand.js +42 -0
- package/dist-es/commands/GetComputeAuthTokenCommand.js +42 -0
- package/dist-es/commands/ListComputeCommand.js +42 -0
- package/dist-es/commands/ListLocationsCommand.js +42 -0
- package/dist-es/commands/RegisterComputeCommand.js +42 -0
- package/dist-es/commands/UpdateFleetPortSettingsCommand.js +2 -1
- package/dist-es/commands/UpdateGameServerCommand.js +1 -1
- package/dist-es/commands/UpdateGameServerGroupCommand.js +1 -1
- package/dist-es/commands/UpdateGameSessionCommand.js +1 -1
- package/dist-es/commands/UpdateGameSessionQueueCommand.js +1 -1
- package/dist-es/commands/UpdateMatchmakingConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateRuntimeConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateScriptCommand.js +1 -1
- package/dist-es/commands/ValidateMatchmakingRuleSetCommand.js +1 -1
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +321 -55
- package/dist-es/models/models_1.js +55 -0
- package/dist-es/pagination/ListComputePaginator.js +32 -0
- package/dist-es/pagination/ListLocationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +729 -51
- package/dist-types/GameLift.d.ts +756 -1757
- package/dist-types/GameLiftClient.d.ts +32 -23
- package/dist-types/commands/AcceptMatchCommand.d.ts +3 -13
- package/dist-types/commands/ClaimGameServerCommand.d.ts +15 -26
- package/dist-types/commands/CreateAliasCommand.d.ts +2 -8
- package/dist-types/commands/CreateBuildCommand.d.ts +15 -26
- package/dist-types/commands/CreateFleetCommand.d.ts +9 -28
- package/dist-types/commands/CreateFleetLocationsCommand.d.ts +11 -30
- package/dist-types/commands/CreateGameServerGroupCommand.d.ts +13 -25
- package/dist-types/commands/CreateGameSessionCommand.d.ts +8 -21
- package/dist-types/commands/CreateGameSessionQueueCommand.d.ts +9 -14
- package/dist-types/commands/CreateLocationCommand.d.ts +37 -0
- package/dist-types/commands/CreateMatchmakingConfigurationCommand.d.ts +7 -23
- package/dist-types/commands/CreateMatchmakingRuleSetCommand.d.ts +3 -19
- package/dist-types/commands/CreatePlayerSessionCommand.d.ts +12 -20
- package/dist-types/commands/CreatePlayerSessionsCommand.d.ts +11 -18
- package/dist-types/commands/CreateScriptCommand.d.ts +11 -15
- package/dist-types/commands/CreateVpcPeeringAuthorizationCommand.d.ts +14 -21
- package/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +18 -25
- package/dist-types/commands/DeleteAliasCommand.d.ts +1 -7
- package/dist-types/commands/DeleteBuildCommand.d.ts +6 -14
- package/dist-types/commands/DeleteFleetCommand.d.ts +6 -22
- package/dist-types/commands/DeleteFleetLocationsCommand.d.ts +3 -18
- package/dist-types/commands/DeleteGameServerGroupCommand.d.ts +10 -23
- package/dist-types/commands/DeleteGameSessionQueueCommand.d.ts +2 -24
- package/dist-types/commands/DeleteLocationCommand.d.ts +39 -0
- package/dist-types/commands/DeleteMatchmakingConfigurationCommand.d.ts +0 -14
- package/dist-types/commands/DeleteMatchmakingRuleSetCommand.d.ts +2 -16
- package/dist-types/commands/DeleteScalingPolicyCommand.d.ts +4 -18
- package/dist-types/commands/DeleteScriptCommand.d.ts +2 -7
- package/dist-types/commands/DeleteVpcPeeringAuthorizationCommand.d.ts +3 -9
- package/dist-types/commands/DeleteVpcPeeringConnectionCommand.d.ts +5 -13
- package/dist-types/commands/DeregisterComputeCommand.d.ts +38 -0
- package/dist-types/commands/DeregisterGameServerCommand.d.ts +5 -16
- package/dist-types/commands/DescribeAliasCommand.d.ts +1 -7
- package/dist-types/commands/DescribeBuildCommand.d.ts +3 -11
- package/dist-types/commands/DescribeComputeCommand.d.ts +39 -0
- package/dist-types/commands/DescribeEC2InstanceLimitsCommand.d.ts +9 -25
- package/dist-types/commands/DescribeFleetAttributesCommand.d.ts +6 -21
- package/dist-types/commands/DescribeFleetCapacityCommand.d.ts +8 -22
- package/dist-types/commands/DescribeFleetEventsCommand.d.ts +4 -19
- package/dist-types/commands/DescribeFleetLocationAttributesCommand.d.ts +4 -19
- package/dist-types/commands/DescribeFleetLocationCapacityCommand.d.ts +4 -19
- package/dist-types/commands/DescribeFleetLocationUtilizationCommand.d.ts +4 -19
- package/dist-types/commands/DescribeFleetPortSettingsCommand.d.ts +8 -23
- package/dist-types/commands/DescribeFleetUtilizationCommand.d.ts +9 -24
- package/dist-types/commands/DescribeGameServerCommand.d.ts +5 -15
- package/dist-types/commands/DescribeGameServerGroupCommand.d.ts +8 -20
- package/dist-types/commands/DescribeGameServerInstancesCommand.d.ts +7 -23
- package/dist-types/commands/DescribeGameSessionDetailsCommand.d.ts +6 -20
- package/dist-types/commands/DescribeGameSessionPlacementCommand.d.ts +8 -26
- package/dist-types/commands/DescribeGameSessionQueuesCommand.d.ts +5 -20
- package/dist-types/commands/DescribeGameSessionsCommand.d.ts +9 -32
- package/dist-types/commands/DescribeInstancesCommand.d.ts +5 -7
- package/dist-types/commands/DescribeMatchmakingCommand.d.ts +6 -19
- package/dist-types/commands/DescribeMatchmakingConfigurationsCommand.d.ts +1 -16
- package/dist-types/commands/DescribeMatchmakingRuleSetsCommand.d.ts +2 -16
- package/dist-types/commands/DescribePlayerSessionsCommand.d.ts +3 -11
- package/dist-types/commands/DescribeRuntimeConfigurationCommand.d.ts +5 -20
- package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +6 -22
- package/dist-types/commands/DescribeScriptCommand.d.ts +3 -8
- package/dist-types/commands/DescribeVpcPeeringAuthorizationsCommand.d.ts +2 -8
- package/dist-types/commands/DescribeVpcPeeringConnectionsCommand.d.ts +7 -13
- package/dist-types/commands/GetComputeAccessCommand.d.ts +59 -0
- package/dist-types/commands/GetComputeAuthTokenCommand.d.ts +40 -0
- package/dist-types/commands/GetGameSessionLogUrlCommand.d.ts +3 -15
- package/dist-types/commands/GetInstanceAccessCommand.d.ts +2 -8
- package/dist-types/commands/ListAliasesCommand.d.ts +4 -10
- package/dist-types/commands/ListBuildsCommand.d.ts +3 -11
- package/dist-types/commands/ListComputeCommand.d.ts +37 -0
- package/dist-types/commands/ListFleetsCommand.d.ts +9 -23
- package/dist-types/commands/ListGameServerGroupsCommand.d.ts +1 -26
- package/dist-types/commands/ListGameServersCommand.d.ts +6 -16
- package/dist-types/commands/ListLocationsCommand.d.ts +37 -0
- package/dist-types/commands/ListScriptsCommand.d.ts +3 -7
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -13
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +21 -40
- package/dist-types/commands/RegisterComputeCommand.d.ts +57 -0
- package/dist-types/commands/RegisterGameServerCommand.d.ts +9 -21
- package/dist-types/commands/RequestUploadCredentialsCommand.d.ts +3 -12
- package/dist-types/commands/ResolveAliasCommand.d.ts +1 -7
- package/dist-types/commands/ResumeGameServerGroupCommand.d.ts +11 -23
- package/dist-types/commands/SearchGameSessionsCommand.d.ts +21 -38
- package/dist-types/commands/StartFleetActionsCommand.d.ts +7 -21
- package/dist-types/commands/StartGameSessionPlacementCommand.d.ts +31 -46
- package/dist-types/commands/StartMatchBackfillCommand.d.ts +19 -29
- package/dist-types/commands/StartMatchmakingCommand.d.ts +4 -15
- package/dist-types/commands/StopFleetActionsCommand.d.ts +5 -21
- package/dist-types/commands/StopGameSessionPlacementCommand.d.ts +2 -17
- package/dist-types/commands/StopMatchmakingCommand.d.ts +3 -14
- package/dist-types/commands/SuspendGameServerGroupCommand.d.ts +7 -19
- package/dist-types/commands/TagResourceCommand.d.ts +7 -10
- package/dist-types/commands/UntagResourceCommand.d.ts +12 -16
- package/dist-types/commands/UpdateAliasCommand.d.ts +1 -7
- package/dist-types/commands/UpdateBuildCommand.d.ts +3 -11
- package/dist-types/commands/UpdateFleetAttributesCommand.d.ts +3 -19
- package/dist-types/commands/UpdateFleetCapacityCommand.d.ts +10 -26
- package/dist-types/commands/UpdateFleetPortSettingsCommand.d.ts +6 -21
- package/dist-types/commands/UpdateGameServerCommand.d.ts +20 -29
- package/dist-types/commands/UpdateGameServerGroupCommand.d.ts +9 -21
- package/dist-types/commands/UpdateGameSessionCommand.d.ts +1 -13
- package/dist-types/commands/UpdateGameSessionQueueCommand.d.ts +2 -16
- package/dist-types/commands/UpdateMatchmakingConfigurationCommand.d.ts +6 -20
- package/dist-types/commands/UpdateRuntimeConfigurationCommand.d.ts +5 -21
- package/dist-types/commands/UpdateScriptCommand.d.ts +2 -7
- package/dist-types/commands/ValidateMatchmakingRuleSetCommand.d.ts +4 -18
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1598 -1987
- package/dist-types/models/models_1.d.ts +452 -0
- package/dist-types/pagination/ListComputePaginator.d.ts +4 -0
- package/dist-types/pagination/ListLocationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/GameLift.d.ts +153 -0
- package/dist-types/ts3.4/GameLiftClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateLocationCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteLocationCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeregisterComputeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeComputeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetComputeAccessCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetComputeAuthTokenCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListComputeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListLocationsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/RegisterComputeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateFleetPortSettingsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/UpdateGameServerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGameServerGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGameSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGameSessionQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMatchmakingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRuntimeConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateScriptCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ValidateMatchmakingRuleSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +417 -370
- package/dist-types/ts3.4/models/models_1.d.ts +166 -0
- package/dist-types/ts3.4/pagination/ListComputePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +108 -0
- package/package.json +29 -28
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidateMatchmakingRuleSetOutputFilterSensitiveLog = exports.ValidateMatchmakingRuleSetInputFilterSensitiveLog = exports.UpdateScriptOutputFilterSensitiveLog = exports.UpdateScriptInputFilterSensitiveLog = exports.UpdateRuntimeConfigurationOutputFilterSensitiveLog = exports.UpdateRuntimeConfigurationInputFilterSensitiveLog = exports.UpdateMatchmakingConfigurationOutputFilterSensitiveLog = exports.UpdateMatchmakingConfigurationInputFilterSensitiveLog = exports.UpdateGameSessionQueueOutputFilterSensitiveLog = exports.UpdateGameSessionQueueInputFilterSensitiveLog = exports.UpdateGameSessionOutputFilterSensitiveLog = exports.UpdateGameSessionInputFilterSensitiveLog = exports.UpdateGameServerGroupOutputFilterSensitiveLog = exports.UpdateGameServerGroupInputFilterSensitiveLog = exports.UpdateGameServerOutputFilterSensitiveLog = exports.UpdateGameServerInputFilterSensitiveLog = exports.UpdateFleetPortSettingsOutputFilterSensitiveLog = exports.GameServerHealthCheck = void 0;
|
|
4
|
+
var GameServerHealthCheck;
|
|
5
|
+
(function (GameServerHealthCheck) {
|
|
6
|
+
GameServerHealthCheck["HEALTHY"] = "HEALTHY";
|
|
7
|
+
})(GameServerHealthCheck = exports.GameServerHealthCheck || (exports.GameServerHealthCheck = {}));
|
|
8
|
+
const UpdateFleetPortSettingsOutputFilterSensitiveLog = (obj) => ({
|
|
9
|
+
...obj,
|
|
10
|
+
});
|
|
11
|
+
exports.UpdateFleetPortSettingsOutputFilterSensitiveLog = UpdateFleetPortSettingsOutputFilterSensitiveLog;
|
|
12
|
+
const UpdateGameServerInputFilterSensitiveLog = (obj) => ({
|
|
13
|
+
...obj,
|
|
14
|
+
});
|
|
15
|
+
exports.UpdateGameServerInputFilterSensitiveLog = UpdateGameServerInputFilterSensitiveLog;
|
|
16
|
+
const UpdateGameServerOutputFilterSensitiveLog = (obj) => ({
|
|
17
|
+
...obj,
|
|
18
|
+
});
|
|
19
|
+
exports.UpdateGameServerOutputFilterSensitiveLog = UpdateGameServerOutputFilterSensitiveLog;
|
|
20
|
+
const UpdateGameServerGroupInputFilterSensitiveLog = (obj) => ({
|
|
21
|
+
...obj,
|
|
22
|
+
});
|
|
23
|
+
exports.UpdateGameServerGroupInputFilterSensitiveLog = UpdateGameServerGroupInputFilterSensitiveLog;
|
|
24
|
+
const UpdateGameServerGroupOutputFilterSensitiveLog = (obj) => ({
|
|
25
|
+
...obj,
|
|
26
|
+
});
|
|
27
|
+
exports.UpdateGameServerGroupOutputFilterSensitiveLog = UpdateGameServerGroupOutputFilterSensitiveLog;
|
|
28
|
+
const UpdateGameSessionInputFilterSensitiveLog = (obj) => ({
|
|
29
|
+
...obj,
|
|
30
|
+
});
|
|
31
|
+
exports.UpdateGameSessionInputFilterSensitiveLog = UpdateGameSessionInputFilterSensitiveLog;
|
|
32
|
+
const UpdateGameSessionOutputFilterSensitiveLog = (obj) => ({
|
|
33
|
+
...obj,
|
|
34
|
+
});
|
|
35
|
+
exports.UpdateGameSessionOutputFilterSensitiveLog = UpdateGameSessionOutputFilterSensitiveLog;
|
|
36
|
+
const UpdateGameSessionQueueInputFilterSensitiveLog = (obj) => ({
|
|
37
|
+
...obj,
|
|
38
|
+
});
|
|
39
|
+
exports.UpdateGameSessionQueueInputFilterSensitiveLog = UpdateGameSessionQueueInputFilterSensitiveLog;
|
|
40
|
+
const UpdateGameSessionQueueOutputFilterSensitiveLog = (obj) => ({
|
|
41
|
+
...obj,
|
|
42
|
+
});
|
|
43
|
+
exports.UpdateGameSessionQueueOutputFilterSensitiveLog = UpdateGameSessionQueueOutputFilterSensitiveLog;
|
|
44
|
+
const UpdateMatchmakingConfigurationInputFilterSensitiveLog = (obj) => ({
|
|
45
|
+
...obj,
|
|
46
|
+
});
|
|
47
|
+
exports.UpdateMatchmakingConfigurationInputFilterSensitiveLog = UpdateMatchmakingConfigurationInputFilterSensitiveLog;
|
|
48
|
+
const UpdateMatchmakingConfigurationOutputFilterSensitiveLog = (obj) => ({
|
|
49
|
+
...obj,
|
|
50
|
+
});
|
|
51
|
+
exports.UpdateMatchmakingConfigurationOutputFilterSensitiveLog = UpdateMatchmakingConfigurationOutputFilterSensitiveLog;
|
|
52
|
+
const UpdateRuntimeConfigurationInputFilterSensitiveLog = (obj) => ({
|
|
53
|
+
...obj,
|
|
54
|
+
});
|
|
55
|
+
exports.UpdateRuntimeConfigurationInputFilterSensitiveLog = UpdateRuntimeConfigurationInputFilterSensitiveLog;
|
|
56
|
+
const UpdateRuntimeConfigurationOutputFilterSensitiveLog = (obj) => ({
|
|
57
|
+
...obj,
|
|
58
|
+
});
|
|
59
|
+
exports.UpdateRuntimeConfigurationOutputFilterSensitiveLog = UpdateRuntimeConfigurationOutputFilterSensitiveLog;
|
|
60
|
+
const UpdateScriptInputFilterSensitiveLog = (obj) => ({
|
|
61
|
+
...obj,
|
|
62
|
+
});
|
|
63
|
+
exports.UpdateScriptInputFilterSensitiveLog = UpdateScriptInputFilterSensitiveLog;
|
|
64
|
+
const UpdateScriptOutputFilterSensitiveLog = (obj) => ({
|
|
65
|
+
...obj,
|
|
66
|
+
});
|
|
67
|
+
exports.UpdateScriptOutputFilterSensitiveLog = UpdateScriptOutputFilterSensitiveLog;
|
|
68
|
+
const ValidateMatchmakingRuleSetInputFilterSensitiveLog = (obj) => ({
|
|
69
|
+
...obj,
|
|
70
|
+
});
|
|
71
|
+
exports.ValidateMatchmakingRuleSetInputFilterSensitiveLog = ValidateMatchmakingRuleSetInputFilterSensitiveLog;
|
|
72
|
+
const ValidateMatchmakingRuleSetOutputFilterSensitiveLog = (obj) => ({
|
|
73
|
+
...obj,
|
|
74
|
+
});
|
|
75
|
+
exports.ValidateMatchmakingRuleSetOutputFilterSensitiveLog = ValidateMatchmakingRuleSetOutputFilterSensitiveLog;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListCompute = void 0;
|
|
4
|
+
const ListComputeCommand_1 = require("../commands/ListComputeCommand");
|
|
5
|
+
const GameLift_1 = require("../GameLift");
|
|
6
|
+
const GameLiftClient_1 = require("../GameLiftClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListComputeCommand_1.ListComputeCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listCompute(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListCompute(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["Limit"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof GameLift_1.GameLift) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListCompute = paginateListCompute;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListLocations = void 0;
|
|
4
|
+
const ListLocationsCommand_1 = require("../commands/ListLocationsCommand");
|
|
5
|
+
const GameLift_1 = require("../GameLift");
|
|
6
|
+
const GameLiftClient_1 = require("../GameLiftClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListLocationsCommand_1.ListLocationsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listLocations(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListLocations(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["Limit"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof GameLift_1.GameLift) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof GameLiftClient_1.GameLiftClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected GameLift | GameLiftClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListLocations = paginateListLocations;
|
|
@@ -18,8 +18,10 @@ tslib_1.__exportStar(require("./DescribePlayerSessionsPaginator"), exports);
|
|
|
18
18
|
tslib_1.__exportStar(require("./DescribeScalingPoliciesPaginator"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./ListAliasesPaginator"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./ListBuildsPaginator"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListComputePaginator"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./ListFleetsPaginator"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./ListGameServerGroupsPaginator"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./ListGameServersPaginator"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListLocationsPaginator"), exports);
|
|
24
26
|
tslib_1.__exportStar(require("./ListScriptsPaginator"), exports);
|
|
25
27
|
tslib_1.__exportStar(require("./SearchGameSessionsPaginator"), exports);
|