@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.
Files changed (202) hide show
  1. package/README.md +19 -20
  2. package/dist-cjs/GameLift.js +135 -0
  3. package/dist-cjs/commands/CreateLocationCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteLocationCommand.js +46 -0
  5. package/dist-cjs/commands/DeregisterComputeCommand.js +46 -0
  6. package/dist-cjs/commands/DescribeComputeCommand.js +46 -0
  7. package/dist-cjs/commands/GetComputeAccessCommand.js +46 -0
  8. package/dist-cjs/commands/GetComputeAuthTokenCommand.js +46 -0
  9. package/dist-cjs/commands/ListComputeCommand.js +46 -0
  10. package/dist-cjs/commands/ListLocationsCommand.js +46 -0
  11. package/dist-cjs/commands/RegisterComputeCommand.js +46 -0
  12. package/dist-cjs/commands/UpdateFleetPortSettingsCommand.js +2 -1
  13. package/dist-cjs/commands/UpdateGameServerCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateGameServerGroupCommand.js +3 -3
  15. package/dist-cjs/commands/UpdateGameSessionCommand.js +3 -3
  16. package/dist-cjs/commands/UpdateGameSessionQueueCommand.js +3 -3
  17. package/dist-cjs/commands/UpdateMatchmakingConfigurationCommand.js +3 -3
  18. package/dist-cjs/commands/UpdateRuntimeConfigurationCommand.js +3 -3
  19. package/dist-cjs/commands/UpdateScriptCommand.js +3 -3
  20. package/dist-cjs/commands/ValidateMatchmakingRuleSetCommand.js +3 -3
  21. package/dist-cjs/commands/index.js +9 -0
  22. package/dist-cjs/endpoint/ruleset.js +1 -1
  23. package/dist-cjs/models/index.js +1 -0
  24. package/dist-cjs/models/models_0.js +348 -78
  25. package/dist-cjs/models/models_1.js +75 -0
  26. package/dist-cjs/pagination/ListComputePaginator.js +36 -0
  27. package/dist-cjs/pagination/ListLocationsPaginator.js +36 -0
  28. package/dist-cjs/pagination/index.js +2 -0
  29. package/dist-cjs/protocols/Aws_json1_1.js +731 -34
  30. package/dist-es/GameLift.js +135 -0
  31. package/dist-es/commands/CreateLocationCommand.js +42 -0
  32. package/dist-es/commands/DeleteLocationCommand.js +42 -0
  33. package/dist-es/commands/DeregisterComputeCommand.js +42 -0
  34. package/dist-es/commands/DescribeComputeCommand.js +42 -0
  35. package/dist-es/commands/GetComputeAccessCommand.js +42 -0
  36. package/dist-es/commands/GetComputeAuthTokenCommand.js +42 -0
  37. package/dist-es/commands/ListComputeCommand.js +42 -0
  38. package/dist-es/commands/ListLocationsCommand.js +42 -0
  39. package/dist-es/commands/RegisterComputeCommand.js +42 -0
  40. package/dist-es/commands/UpdateFleetPortSettingsCommand.js +2 -1
  41. package/dist-es/commands/UpdateGameServerCommand.js +1 -1
  42. package/dist-es/commands/UpdateGameServerGroupCommand.js +1 -1
  43. package/dist-es/commands/UpdateGameSessionCommand.js +1 -1
  44. package/dist-es/commands/UpdateGameSessionQueueCommand.js +1 -1
  45. package/dist-es/commands/UpdateMatchmakingConfigurationCommand.js +1 -1
  46. package/dist-es/commands/UpdateRuntimeConfigurationCommand.js +1 -1
  47. package/dist-es/commands/UpdateScriptCommand.js +1 -1
  48. package/dist-es/commands/ValidateMatchmakingRuleSetCommand.js +1 -1
  49. package/dist-es/commands/index.js +9 -0
  50. package/dist-es/endpoint/ruleset.js +1 -1
  51. package/dist-es/models/index.js +1 -0
  52. package/dist-es/models/models_0.js +321 -55
  53. package/dist-es/models/models_1.js +55 -0
  54. package/dist-es/pagination/ListComputePaginator.js +32 -0
  55. package/dist-es/pagination/ListLocationsPaginator.js +32 -0
  56. package/dist-es/pagination/index.js +2 -0
  57. package/dist-es/protocols/Aws_json1_1.js +729 -51
  58. package/dist-types/GameLift.d.ts +756 -1757
  59. package/dist-types/GameLiftClient.d.ts +32 -23
  60. package/dist-types/commands/AcceptMatchCommand.d.ts +3 -13
  61. package/dist-types/commands/ClaimGameServerCommand.d.ts +15 -26
  62. package/dist-types/commands/CreateAliasCommand.d.ts +2 -8
  63. package/dist-types/commands/CreateBuildCommand.d.ts +15 -26
  64. package/dist-types/commands/CreateFleetCommand.d.ts +9 -28
  65. package/dist-types/commands/CreateFleetLocationsCommand.d.ts +11 -30
  66. package/dist-types/commands/CreateGameServerGroupCommand.d.ts +13 -25
  67. package/dist-types/commands/CreateGameSessionCommand.d.ts +8 -21
  68. package/dist-types/commands/CreateGameSessionQueueCommand.d.ts +9 -14
  69. package/dist-types/commands/CreateLocationCommand.d.ts +37 -0
  70. package/dist-types/commands/CreateMatchmakingConfigurationCommand.d.ts +7 -23
  71. package/dist-types/commands/CreateMatchmakingRuleSetCommand.d.ts +3 -19
  72. package/dist-types/commands/CreatePlayerSessionCommand.d.ts +12 -20
  73. package/dist-types/commands/CreatePlayerSessionsCommand.d.ts +11 -18
  74. package/dist-types/commands/CreateScriptCommand.d.ts +11 -15
  75. package/dist-types/commands/CreateVpcPeeringAuthorizationCommand.d.ts +14 -21
  76. package/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +18 -25
  77. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -7
  78. package/dist-types/commands/DeleteBuildCommand.d.ts +6 -14
  79. package/dist-types/commands/DeleteFleetCommand.d.ts +6 -22
  80. package/dist-types/commands/DeleteFleetLocationsCommand.d.ts +3 -18
  81. package/dist-types/commands/DeleteGameServerGroupCommand.d.ts +10 -23
  82. package/dist-types/commands/DeleteGameSessionQueueCommand.d.ts +2 -24
  83. package/dist-types/commands/DeleteLocationCommand.d.ts +39 -0
  84. package/dist-types/commands/DeleteMatchmakingConfigurationCommand.d.ts +0 -14
  85. package/dist-types/commands/DeleteMatchmakingRuleSetCommand.d.ts +2 -16
  86. package/dist-types/commands/DeleteScalingPolicyCommand.d.ts +4 -18
  87. package/dist-types/commands/DeleteScriptCommand.d.ts +2 -7
  88. package/dist-types/commands/DeleteVpcPeeringAuthorizationCommand.d.ts +3 -9
  89. package/dist-types/commands/DeleteVpcPeeringConnectionCommand.d.ts +5 -13
  90. package/dist-types/commands/DeregisterComputeCommand.d.ts +38 -0
  91. package/dist-types/commands/DeregisterGameServerCommand.d.ts +5 -16
  92. package/dist-types/commands/DescribeAliasCommand.d.ts +1 -7
  93. package/dist-types/commands/DescribeBuildCommand.d.ts +3 -11
  94. package/dist-types/commands/DescribeComputeCommand.d.ts +39 -0
  95. package/dist-types/commands/DescribeEC2InstanceLimitsCommand.d.ts +9 -25
  96. package/dist-types/commands/DescribeFleetAttributesCommand.d.ts +6 -21
  97. package/dist-types/commands/DescribeFleetCapacityCommand.d.ts +8 -22
  98. package/dist-types/commands/DescribeFleetEventsCommand.d.ts +4 -19
  99. package/dist-types/commands/DescribeFleetLocationAttributesCommand.d.ts +4 -19
  100. package/dist-types/commands/DescribeFleetLocationCapacityCommand.d.ts +4 -19
  101. package/dist-types/commands/DescribeFleetLocationUtilizationCommand.d.ts +4 -19
  102. package/dist-types/commands/DescribeFleetPortSettingsCommand.d.ts +8 -23
  103. package/dist-types/commands/DescribeFleetUtilizationCommand.d.ts +9 -24
  104. package/dist-types/commands/DescribeGameServerCommand.d.ts +5 -15
  105. package/dist-types/commands/DescribeGameServerGroupCommand.d.ts +8 -20
  106. package/dist-types/commands/DescribeGameServerInstancesCommand.d.ts +7 -23
  107. package/dist-types/commands/DescribeGameSessionDetailsCommand.d.ts +6 -20
  108. package/dist-types/commands/DescribeGameSessionPlacementCommand.d.ts +8 -26
  109. package/dist-types/commands/DescribeGameSessionQueuesCommand.d.ts +5 -20
  110. package/dist-types/commands/DescribeGameSessionsCommand.d.ts +9 -32
  111. package/dist-types/commands/DescribeInstancesCommand.d.ts +5 -7
  112. package/dist-types/commands/DescribeMatchmakingCommand.d.ts +6 -19
  113. package/dist-types/commands/DescribeMatchmakingConfigurationsCommand.d.ts +1 -16
  114. package/dist-types/commands/DescribeMatchmakingRuleSetsCommand.d.ts +2 -16
  115. package/dist-types/commands/DescribePlayerSessionsCommand.d.ts +3 -11
  116. package/dist-types/commands/DescribeRuntimeConfigurationCommand.d.ts +5 -20
  117. package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +6 -22
  118. package/dist-types/commands/DescribeScriptCommand.d.ts +3 -8
  119. package/dist-types/commands/DescribeVpcPeeringAuthorizationsCommand.d.ts +2 -8
  120. package/dist-types/commands/DescribeVpcPeeringConnectionsCommand.d.ts +7 -13
  121. package/dist-types/commands/GetComputeAccessCommand.d.ts +59 -0
  122. package/dist-types/commands/GetComputeAuthTokenCommand.d.ts +40 -0
  123. package/dist-types/commands/GetGameSessionLogUrlCommand.d.ts +3 -15
  124. package/dist-types/commands/GetInstanceAccessCommand.d.ts +2 -8
  125. package/dist-types/commands/ListAliasesCommand.d.ts +4 -10
  126. package/dist-types/commands/ListBuildsCommand.d.ts +3 -11
  127. package/dist-types/commands/ListComputeCommand.d.ts +37 -0
  128. package/dist-types/commands/ListFleetsCommand.d.ts +9 -23
  129. package/dist-types/commands/ListGameServerGroupsCommand.d.ts +1 -26
  130. package/dist-types/commands/ListGameServersCommand.d.ts +6 -16
  131. package/dist-types/commands/ListLocationsCommand.d.ts +37 -0
  132. package/dist-types/commands/ListScriptsCommand.d.ts +3 -7
  133. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -13
  134. package/dist-types/commands/PutScalingPolicyCommand.d.ts +21 -40
  135. package/dist-types/commands/RegisterComputeCommand.d.ts +57 -0
  136. package/dist-types/commands/RegisterGameServerCommand.d.ts +9 -21
  137. package/dist-types/commands/RequestUploadCredentialsCommand.d.ts +3 -12
  138. package/dist-types/commands/ResolveAliasCommand.d.ts +1 -7
  139. package/dist-types/commands/ResumeGameServerGroupCommand.d.ts +11 -23
  140. package/dist-types/commands/SearchGameSessionsCommand.d.ts +21 -38
  141. package/dist-types/commands/StartFleetActionsCommand.d.ts +7 -21
  142. package/dist-types/commands/StartGameSessionPlacementCommand.d.ts +31 -46
  143. package/dist-types/commands/StartMatchBackfillCommand.d.ts +19 -29
  144. package/dist-types/commands/StartMatchmakingCommand.d.ts +4 -15
  145. package/dist-types/commands/StopFleetActionsCommand.d.ts +5 -21
  146. package/dist-types/commands/StopGameSessionPlacementCommand.d.ts +2 -17
  147. package/dist-types/commands/StopMatchmakingCommand.d.ts +3 -14
  148. package/dist-types/commands/SuspendGameServerGroupCommand.d.ts +7 -19
  149. package/dist-types/commands/TagResourceCommand.d.ts +7 -10
  150. package/dist-types/commands/UntagResourceCommand.d.ts +12 -16
  151. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -7
  152. package/dist-types/commands/UpdateBuildCommand.d.ts +3 -11
  153. package/dist-types/commands/UpdateFleetAttributesCommand.d.ts +3 -19
  154. package/dist-types/commands/UpdateFleetCapacityCommand.d.ts +10 -26
  155. package/dist-types/commands/UpdateFleetPortSettingsCommand.d.ts +6 -21
  156. package/dist-types/commands/UpdateGameServerCommand.d.ts +20 -29
  157. package/dist-types/commands/UpdateGameServerGroupCommand.d.ts +9 -21
  158. package/dist-types/commands/UpdateGameSessionCommand.d.ts +1 -13
  159. package/dist-types/commands/UpdateGameSessionQueueCommand.d.ts +2 -16
  160. package/dist-types/commands/UpdateMatchmakingConfigurationCommand.d.ts +6 -20
  161. package/dist-types/commands/UpdateRuntimeConfigurationCommand.d.ts +5 -21
  162. package/dist-types/commands/UpdateScriptCommand.d.ts +2 -7
  163. package/dist-types/commands/ValidateMatchmakingRuleSetCommand.d.ts +4 -18
  164. package/dist-types/commands/index.d.ts +9 -0
  165. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  166. package/dist-types/models/index.d.ts +1 -0
  167. package/dist-types/models/models_0.d.ts +1598 -1987
  168. package/dist-types/models/models_1.d.ts +452 -0
  169. package/dist-types/pagination/ListComputePaginator.d.ts +4 -0
  170. package/dist-types/pagination/ListLocationsPaginator.d.ts +4 -0
  171. package/dist-types/pagination/index.d.ts +2 -0
  172. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  173. package/dist-types/ts3.4/GameLift.d.ts +153 -0
  174. package/dist-types/ts3.4/GameLiftClient.d.ts +54 -0
  175. package/dist-types/ts3.4/commands/CreateLocationCommand.d.ts +34 -0
  176. package/dist-types/ts3.4/commands/DeleteLocationCommand.d.ts +34 -0
  177. package/dist-types/ts3.4/commands/DeregisterComputeCommand.d.ts +37 -0
  178. package/dist-types/ts3.4/commands/DescribeComputeCommand.d.ts +37 -0
  179. package/dist-types/ts3.4/commands/GetComputeAccessCommand.d.ts +37 -0
  180. package/dist-types/ts3.4/commands/GetComputeAuthTokenCommand.d.ts +38 -0
  181. package/dist-types/ts3.4/commands/ListComputeCommand.d.ts +34 -0
  182. package/dist-types/ts3.4/commands/ListLocationsCommand.d.ts +34 -0
  183. package/dist-types/ts3.4/commands/RegisterComputeCommand.d.ts +37 -0
  184. package/dist-types/ts3.4/commands/UpdateFleetPortSettingsCommand.d.ts +2 -4
  185. package/dist-types/ts3.4/commands/UpdateGameServerCommand.d.ts +1 -1
  186. package/dist-types/ts3.4/commands/UpdateGameServerGroupCommand.d.ts +1 -1
  187. package/dist-types/ts3.4/commands/UpdateGameSessionCommand.d.ts +1 -1
  188. package/dist-types/ts3.4/commands/UpdateGameSessionQueueCommand.d.ts +1 -1
  189. package/dist-types/ts3.4/commands/UpdateMatchmakingConfigurationCommand.d.ts +1 -1
  190. package/dist-types/ts3.4/commands/UpdateRuntimeConfigurationCommand.d.ts +1 -1
  191. package/dist-types/ts3.4/commands/UpdateScriptCommand.d.ts +1 -1
  192. package/dist-types/ts3.4/commands/ValidateMatchmakingRuleSetCommand.d.ts +1 -1
  193. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  194. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  195. package/dist-types/ts3.4/models/index.d.ts +1 -0
  196. package/dist-types/ts3.4/models/models_0.d.ts +417 -370
  197. package/dist-types/ts3.4/models/models_1.d.ts +166 -0
  198. package/dist-types/ts3.4/pagination/ListComputePaginator.d.ts +11 -0
  199. package/dist-types/ts3.4/pagination/ListLocationsPaginator.d.ts +11 -0
  200. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  201. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +108 -0
  202. 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);