@aws-sdk/client-gamelift 3.310.0 → 3.312.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.
@@ -10,1040 +10,728 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
10
10
  const GameLiftServiceException_1 = require("../models/GameLiftServiceException");
11
11
  const models_0_1 = require("../models/models_0");
12
12
  const se_AcceptMatchCommand = async (input, context) => {
13
- const headers = {
14
- "content-type": "application/x-amz-json-1.1",
15
- "x-amz-target": "GameLift.AcceptMatch",
16
- };
13
+ const headers = sharedHeaders("AcceptMatch");
17
14
  let body;
18
15
  body = JSON.stringify(se_AcceptMatchInput(input, context));
19
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
17
  };
21
18
  exports.se_AcceptMatchCommand = se_AcceptMatchCommand;
22
19
  const se_ClaimGameServerCommand = async (input, context) => {
23
- const headers = {
24
- "content-type": "application/x-amz-json-1.1",
25
- "x-amz-target": "GameLift.ClaimGameServer",
26
- };
20
+ const headers = sharedHeaders("ClaimGameServer");
27
21
  let body;
28
22
  body = JSON.stringify(se_ClaimGameServerInput(input, context));
29
23
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
24
  };
31
25
  exports.se_ClaimGameServerCommand = se_ClaimGameServerCommand;
32
26
  const se_CreateAliasCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "GameLift.CreateAlias",
36
- };
27
+ const headers = sharedHeaders("CreateAlias");
37
28
  let body;
38
29
  body = JSON.stringify(se_CreateAliasInput(input, context));
39
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
31
  };
41
32
  exports.se_CreateAliasCommand = se_CreateAliasCommand;
42
33
  const se_CreateBuildCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-amz-json-1.1",
45
- "x-amz-target": "GameLift.CreateBuild",
46
- };
34
+ const headers = sharedHeaders("CreateBuild");
47
35
  let body;
48
36
  body = JSON.stringify(se_CreateBuildInput(input, context));
49
37
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
38
  };
51
39
  exports.se_CreateBuildCommand = se_CreateBuildCommand;
52
40
  const se_CreateFleetCommand = async (input, context) => {
53
- const headers = {
54
- "content-type": "application/x-amz-json-1.1",
55
- "x-amz-target": "GameLift.CreateFleet",
56
- };
41
+ const headers = sharedHeaders("CreateFleet");
57
42
  let body;
58
43
  body = JSON.stringify(se_CreateFleetInput(input, context));
59
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
45
  };
61
46
  exports.se_CreateFleetCommand = se_CreateFleetCommand;
62
47
  const se_CreateFleetLocationsCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-amz-json-1.1",
65
- "x-amz-target": "GameLift.CreateFleetLocations",
66
- };
48
+ const headers = sharedHeaders("CreateFleetLocations");
67
49
  let body;
68
50
  body = JSON.stringify(se_CreateFleetLocationsInput(input, context));
69
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
52
  };
71
53
  exports.se_CreateFleetLocationsCommand = se_CreateFleetLocationsCommand;
72
54
  const se_CreateGameServerGroupCommand = async (input, context) => {
73
- const headers = {
74
- "content-type": "application/x-amz-json-1.1",
75
- "x-amz-target": "GameLift.CreateGameServerGroup",
76
- };
55
+ const headers = sharedHeaders("CreateGameServerGroup");
77
56
  let body;
78
57
  body = JSON.stringify(se_CreateGameServerGroupInput(input, context));
79
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
80
59
  };
81
60
  exports.se_CreateGameServerGroupCommand = se_CreateGameServerGroupCommand;
82
61
  const se_CreateGameSessionCommand = async (input, context) => {
83
- const headers = {
84
- "content-type": "application/x-amz-json-1.1",
85
- "x-amz-target": "GameLift.CreateGameSession",
86
- };
62
+ const headers = sharedHeaders("CreateGameSession");
87
63
  let body;
88
64
  body = JSON.stringify(se_CreateGameSessionInput(input, context));
89
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
66
  };
91
67
  exports.se_CreateGameSessionCommand = se_CreateGameSessionCommand;
92
68
  const se_CreateGameSessionQueueCommand = async (input, context) => {
93
- const headers = {
94
- "content-type": "application/x-amz-json-1.1",
95
- "x-amz-target": "GameLift.CreateGameSessionQueue",
96
- };
69
+ const headers = sharedHeaders("CreateGameSessionQueue");
97
70
  let body;
98
71
  body = JSON.stringify(se_CreateGameSessionQueueInput(input, context));
99
72
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
73
  };
101
74
  exports.se_CreateGameSessionQueueCommand = se_CreateGameSessionQueueCommand;
102
75
  const se_CreateLocationCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-amz-json-1.1",
105
- "x-amz-target": "GameLift.CreateLocation",
106
- };
76
+ const headers = sharedHeaders("CreateLocation");
107
77
  let body;
108
78
  body = JSON.stringify(se_CreateLocationInput(input, context));
109
79
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
110
80
  };
111
81
  exports.se_CreateLocationCommand = se_CreateLocationCommand;
112
82
  const se_CreateMatchmakingConfigurationCommand = async (input, context) => {
113
- const headers = {
114
- "content-type": "application/x-amz-json-1.1",
115
- "x-amz-target": "GameLift.CreateMatchmakingConfiguration",
116
- };
83
+ const headers = sharedHeaders("CreateMatchmakingConfiguration");
117
84
  let body;
118
85
  body = JSON.stringify(se_CreateMatchmakingConfigurationInput(input, context));
119
86
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
87
  };
121
88
  exports.se_CreateMatchmakingConfigurationCommand = se_CreateMatchmakingConfigurationCommand;
122
89
  const se_CreateMatchmakingRuleSetCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "GameLift.CreateMatchmakingRuleSet",
126
- };
90
+ const headers = sharedHeaders("CreateMatchmakingRuleSet");
127
91
  let body;
128
92
  body = JSON.stringify(se_CreateMatchmakingRuleSetInput(input, context));
129
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
94
  };
131
95
  exports.se_CreateMatchmakingRuleSetCommand = se_CreateMatchmakingRuleSetCommand;
132
96
  const se_CreatePlayerSessionCommand = async (input, context) => {
133
- const headers = {
134
- "content-type": "application/x-amz-json-1.1",
135
- "x-amz-target": "GameLift.CreatePlayerSession",
136
- };
97
+ const headers = sharedHeaders("CreatePlayerSession");
137
98
  let body;
138
99
  body = JSON.stringify(se_CreatePlayerSessionInput(input, context));
139
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
101
  };
141
102
  exports.se_CreatePlayerSessionCommand = se_CreatePlayerSessionCommand;
142
103
  const se_CreatePlayerSessionsCommand = async (input, context) => {
143
- const headers = {
144
- "content-type": "application/x-amz-json-1.1",
145
- "x-amz-target": "GameLift.CreatePlayerSessions",
146
- };
104
+ const headers = sharedHeaders("CreatePlayerSessions");
147
105
  let body;
148
106
  body = JSON.stringify(se_CreatePlayerSessionsInput(input, context));
149
107
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
108
  };
151
109
  exports.se_CreatePlayerSessionsCommand = se_CreatePlayerSessionsCommand;
152
110
  const se_CreateScriptCommand = async (input, context) => {
153
- const headers = {
154
- "content-type": "application/x-amz-json-1.1",
155
- "x-amz-target": "GameLift.CreateScript",
156
- };
111
+ const headers = sharedHeaders("CreateScript");
157
112
  let body;
158
113
  body = JSON.stringify(se_CreateScriptInput(input, context));
159
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
115
  };
161
116
  exports.se_CreateScriptCommand = se_CreateScriptCommand;
162
117
  const se_CreateVpcPeeringAuthorizationCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-amz-json-1.1",
165
- "x-amz-target": "GameLift.CreateVpcPeeringAuthorization",
166
- };
118
+ const headers = sharedHeaders("CreateVpcPeeringAuthorization");
167
119
  let body;
168
120
  body = JSON.stringify(se_CreateVpcPeeringAuthorizationInput(input, context));
169
121
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
170
122
  };
171
123
  exports.se_CreateVpcPeeringAuthorizationCommand = se_CreateVpcPeeringAuthorizationCommand;
172
124
  const se_CreateVpcPeeringConnectionCommand = async (input, context) => {
173
- const headers = {
174
- "content-type": "application/x-amz-json-1.1",
175
- "x-amz-target": "GameLift.CreateVpcPeeringConnection",
176
- };
125
+ const headers = sharedHeaders("CreateVpcPeeringConnection");
177
126
  let body;
178
127
  body = JSON.stringify(se_CreateVpcPeeringConnectionInput(input, context));
179
128
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
129
  };
181
130
  exports.se_CreateVpcPeeringConnectionCommand = se_CreateVpcPeeringConnectionCommand;
182
131
  const se_DeleteAliasCommand = async (input, context) => {
183
- const headers = {
184
- "content-type": "application/x-amz-json-1.1",
185
- "x-amz-target": "GameLift.DeleteAlias",
186
- };
132
+ const headers = sharedHeaders("DeleteAlias");
187
133
  let body;
188
134
  body = JSON.stringify(se_DeleteAliasInput(input, context));
189
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
136
  };
191
137
  exports.se_DeleteAliasCommand = se_DeleteAliasCommand;
192
138
  const se_DeleteBuildCommand = async (input, context) => {
193
- const headers = {
194
- "content-type": "application/x-amz-json-1.1",
195
- "x-amz-target": "GameLift.DeleteBuild",
196
- };
139
+ const headers = sharedHeaders("DeleteBuild");
197
140
  let body;
198
141
  body = JSON.stringify(se_DeleteBuildInput(input, context));
199
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
200
143
  };
201
144
  exports.se_DeleteBuildCommand = se_DeleteBuildCommand;
202
145
  const se_DeleteFleetCommand = async (input, context) => {
203
- const headers = {
204
- "content-type": "application/x-amz-json-1.1",
205
- "x-amz-target": "GameLift.DeleteFleet",
206
- };
146
+ const headers = sharedHeaders("DeleteFleet");
207
147
  let body;
208
148
  body = JSON.stringify(se_DeleteFleetInput(input, context));
209
149
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
150
  };
211
151
  exports.se_DeleteFleetCommand = se_DeleteFleetCommand;
212
152
  const se_DeleteFleetLocationsCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "GameLift.DeleteFleetLocations",
216
- };
153
+ const headers = sharedHeaders("DeleteFleetLocations");
217
154
  let body;
218
155
  body = JSON.stringify(se_DeleteFleetLocationsInput(input, context));
219
156
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
157
  };
221
158
  exports.se_DeleteFleetLocationsCommand = se_DeleteFleetLocationsCommand;
222
159
  const se_DeleteGameServerGroupCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-amz-json-1.1",
225
- "x-amz-target": "GameLift.DeleteGameServerGroup",
226
- };
160
+ const headers = sharedHeaders("DeleteGameServerGroup");
227
161
  let body;
228
162
  body = JSON.stringify(se_DeleteGameServerGroupInput(input, context));
229
163
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
164
  };
231
165
  exports.se_DeleteGameServerGroupCommand = se_DeleteGameServerGroupCommand;
232
166
  const se_DeleteGameSessionQueueCommand = async (input, context) => {
233
- const headers = {
234
- "content-type": "application/x-amz-json-1.1",
235
- "x-amz-target": "GameLift.DeleteGameSessionQueue",
236
- };
167
+ const headers = sharedHeaders("DeleteGameSessionQueue");
237
168
  let body;
238
169
  body = JSON.stringify(se_DeleteGameSessionQueueInput(input, context));
239
170
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
171
  };
241
172
  exports.se_DeleteGameSessionQueueCommand = se_DeleteGameSessionQueueCommand;
242
173
  const se_DeleteLocationCommand = async (input, context) => {
243
- const headers = {
244
- "content-type": "application/x-amz-json-1.1",
245
- "x-amz-target": "GameLift.DeleteLocation",
246
- };
174
+ const headers = sharedHeaders("DeleteLocation");
247
175
  let body;
248
176
  body = JSON.stringify(se_DeleteLocationInput(input, context));
249
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
178
  };
251
179
  exports.se_DeleteLocationCommand = se_DeleteLocationCommand;
252
180
  const se_DeleteMatchmakingConfigurationCommand = async (input, context) => {
253
- const headers = {
254
- "content-type": "application/x-amz-json-1.1",
255
- "x-amz-target": "GameLift.DeleteMatchmakingConfiguration",
256
- };
181
+ const headers = sharedHeaders("DeleteMatchmakingConfiguration");
257
182
  let body;
258
183
  body = JSON.stringify(se_DeleteMatchmakingConfigurationInput(input, context));
259
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
185
  };
261
186
  exports.se_DeleteMatchmakingConfigurationCommand = se_DeleteMatchmakingConfigurationCommand;
262
187
  const se_DeleteMatchmakingRuleSetCommand = async (input, context) => {
263
- const headers = {
264
- "content-type": "application/x-amz-json-1.1",
265
- "x-amz-target": "GameLift.DeleteMatchmakingRuleSet",
266
- };
188
+ const headers = sharedHeaders("DeleteMatchmakingRuleSet");
267
189
  let body;
268
190
  body = JSON.stringify(se_DeleteMatchmakingRuleSetInput(input, context));
269
191
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
192
  };
271
193
  exports.se_DeleteMatchmakingRuleSetCommand = se_DeleteMatchmakingRuleSetCommand;
272
194
  const se_DeleteScalingPolicyCommand = async (input, context) => {
273
- const headers = {
274
- "content-type": "application/x-amz-json-1.1",
275
- "x-amz-target": "GameLift.DeleteScalingPolicy",
276
- };
195
+ const headers = sharedHeaders("DeleteScalingPolicy");
277
196
  let body;
278
197
  body = JSON.stringify(se_DeleteScalingPolicyInput(input, context));
279
198
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
199
  };
281
200
  exports.se_DeleteScalingPolicyCommand = se_DeleteScalingPolicyCommand;
282
201
  const se_DeleteScriptCommand = async (input, context) => {
283
- const headers = {
284
- "content-type": "application/x-amz-json-1.1",
285
- "x-amz-target": "GameLift.DeleteScript",
286
- };
202
+ const headers = sharedHeaders("DeleteScript");
287
203
  let body;
288
204
  body = JSON.stringify(se_DeleteScriptInput(input, context));
289
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
290
206
  };
291
207
  exports.se_DeleteScriptCommand = se_DeleteScriptCommand;
292
208
  const se_DeleteVpcPeeringAuthorizationCommand = async (input, context) => {
293
- const headers = {
294
- "content-type": "application/x-amz-json-1.1",
295
- "x-amz-target": "GameLift.DeleteVpcPeeringAuthorization",
296
- };
209
+ const headers = sharedHeaders("DeleteVpcPeeringAuthorization");
297
210
  let body;
298
211
  body = JSON.stringify(se_DeleteVpcPeeringAuthorizationInput(input, context));
299
212
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
213
  };
301
214
  exports.se_DeleteVpcPeeringAuthorizationCommand = se_DeleteVpcPeeringAuthorizationCommand;
302
215
  const se_DeleteVpcPeeringConnectionCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "GameLift.DeleteVpcPeeringConnection",
306
- };
216
+ const headers = sharedHeaders("DeleteVpcPeeringConnection");
307
217
  let body;
308
218
  body = JSON.stringify(se_DeleteVpcPeeringConnectionInput(input, context));
309
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
220
  };
311
221
  exports.se_DeleteVpcPeeringConnectionCommand = se_DeleteVpcPeeringConnectionCommand;
312
222
  const se_DeregisterComputeCommand = async (input, context) => {
313
- const headers = {
314
- "content-type": "application/x-amz-json-1.1",
315
- "x-amz-target": "GameLift.DeregisterCompute",
316
- };
223
+ const headers = sharedHeaders("DeregisterCompute");
317
224
  let body;
318
225
  body = JSON.stringify(se_DeregisterComputeInput(input, context));
319
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
320
227
  };
321
228
  exports.se_DeregisterComputeCommand = se_DeregisterComputeCommand;
322
229
  const se_DeregisterGameServerCommand = async (input, context) => {
323
- const headers = {
324
- "content-type": "application/x-amz-json-1.1",
325
- "x-amz-target": "GameLift.DeregisterGameServer",
326
- };
230
+ const headers = sharedHeaders("DeregisterGameServer");
327
231
  let body;
328
232
  body = JSON.stringify(se_DeregisterGameServerInput(input, context));
329
233
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
234
  };
331
235
  exports.se_DeregisterGameServerCommand = se_DeregisterGameServerCommand;
332
236
  const se_DescribeAliasCommand = async (input, context) => {
333
- const headers = {
334
- "content-type": "application/x-amz-json-1.1",
335
- "x-amz-target": "GameLift.DescribeAlias",
336
- };
237
+ const headers = sharedHeaders("DescribeAlias");
337
238
  let body;
338
239
  body = JSON.stringify(se_DescribeAliasInput(input, context));
339
240
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
241
  };
341
242
  exports.se_DescribeAliasCommand = se_DescribeAliasCommand;
342
243
  const se_DescribeBuildCommand = async (input, context) => {
343
- const headers = {
344
- "content-type": "application/x-amz-json-1.1",
345
- "x-amz-target": "GameLift.DescribeBuild",
346
- };
244
+ const headers = sharedHeaders("DescribeBuild");
347
245
  let body;
348
246
  body = JSON.stringify(se_DescribeBuildInput(input, context));
349
247
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
350
248
  };
351
249
  exports.se_DescribeBuildCommand = se_DescribeBuildCommand;
352
250
  const se_DescribeComputeCommand = async (input, context) => {
353
- const headers = {
354
- "content-type": "application/x-amz-json-1.1",
355
- "x-amz-target": "GameLift.DescribeCompute",
356
- };
251
+ const headers = sharedHeaders("DescribeCompute");
357
252
  let body;
358
253
  body = JSON.stringify(se_DescribeComputeInput(input, context));
359
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
255
  };
361
256
  exports.se_DescribeComputeCommand = se_DescribeComputeCommand;
362
257
  const se_DescribeEC2InstanceLimitsCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-amz-json-1.1",
365
- "x-amz-target": "GameLift.DescribeEC2InstanceLimits",
366
- };
258
+ const headers = sharedHeaders("DescribeEC2InstanceLimits");
367
259
  let body;
368
260
  body = JSON.stringify(se_DescribeEC2InstanceLimitsInput(input, context));
369
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
262
  };
371
263
  exports.se_DescribeEC2InstanceLimitsCommand = se_DescribeEC2InstanceLimitsCommand;
372
264
  const se_DescribeFleetAttributesCommand = async (input, context) => {
373
- const headers = {
374
- "content-type": "application/x-amz-json-1.1",
375
- "x-amz-target": "GameLift.DescribeFleetAttributes",
376
- };
265
+ const headers = sharedHeaders("DescribeFleetAttributes");
377
266
  let body;
378
267
  body = JSON.stringify(se_DescribeFleetAttributesInput(input, context));
379
268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
380
269
  };
381
270
  exports.se_DescribeFleetAttributesCommand = se_DescribeFleetAttributesCommand;
382
271
  const se_DescribeFleetCapacityCommand = async (input, context) => {
383
- const headers = {
384
- "content-type": "application/x-amz-json-1.1",
385
- "x-amz-target": "GameLift.DescribeFleetCapacity",
386
- };
272
+ const headers = sharedHeaders("DescribeFleetCapacity");
387
273
  let body;
388
274
  body = JSON.stringify(se_DescribeFleetCapacityInput(input, context));
389
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
276
  };
391
277
  exports.se_DescribeFleetCapacityCommand = se_DescribeFleetCapacityCommand;
392
278
  const se_DescribeFleetEventsCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-amz-json-1.1",
395
- "x-amz-target": "GameLift.DescribeFleetEvents",
396
- };
279
+ const headers = sharedHeaders("DescribeFleetEvents");
397
280
  let body;
398
281
  body = JSON.stringify(se_DescribeFleetEventsInput(input, context));
399
282
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
283
  };
401
284
  exports.se_DescribeFleetEventsCommand = se_DescribeFleetEventsCommand;
402
285
  const se_DescribeFleetLocationAttributesCommand = async (input, context) => {
403
- const headers = {
404
- "content-type": "application/x-amz-json-1.1",
405
- "x-amz-target": "GameLift.DescribeFleetLocationAttributes",
406
- };
286
+ const headers = sharedHeaders("DescribeFleetLocationAttributes");
407
287
  let body;
408
288
  body = JSON.stringify(se_DescribeFleetLocationAttributesInput(input, context));
409
289
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
410
290
  };
411
291
  exports.se_DescribeFleetLocationAttributesCommand = se_DescribeFleetLocationAttributesCommand;
412
292
  const se_DescribeFleetLocationCapacityCommand = async (input, context) => {
413
- const headers = {
414
- "content-type": "application/x-amz-json-1.1",
415
- "x-amz-target": "GameLift.DescribeFleetLocationCapacity",
416
- };
293
+ const headers = sharedHeaders("DescribeFleetLocationCapacity");
417
294
  let body;
418
295
  body = JSON.stringify(se_DescribeFleetLocationCapacityInput(input, context));
419
296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
297
  };
421
298
  exports.se_DescribeFleetLocationCapacityCommand = se_DescribeFleetLocationCapacityCommand;
422
299
  const se_DescribeFleetLocationUtilizationCommand = async (input, context) => {
423
- const headers = {
424
- "content-type": "application/x-amz-json-1.1",
425
- "x-amz-target": "GameLift.DescribeFleetLocationUtilization",
426
- };
300
+ const headers = sharedHeaders("DescribeFleetLocationUtilization");
427
301
  let body;
428
302
  body = JSON.stringify(se_DescribeFleetLocationUtilizationInput(input, context));
429
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
304
  };
431
305
  exports.se_DescribeFleetLocationUtilizationCommand = se_DescribeFleetLocationUtilizationCommand;
432
306
  const se_DescribeFleetPortSettingsCommand = async (input, context) => {
433
- const headers = {
434
- "content-type": "application/x-amz-json-1.1",
435
- "x-amz-target": "GameLift.DescribeFleetPortSettings",
436
- };
307
+ const headers = sharedHeaders("DescribeFleetPortSettings");
437
308
  let body;
438
309
  body = JSON.stringify(se_DescribeFleetPortSettingsInput(input, context));
439
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
440
311
  };
441
312
  exports.se_DescribeFleetPortSettingsCommand = se_DescribeFleetPortSettingsCommand;
442
313
  const se_DescribeFleetUtilizationCommand = async (input, context) => {
443
- const headers = {
444
- "content-type": "application/x-amz-json-1.1",
445
- "x-amz-target": "GameLift.DescribeFleetUtilization",
446
- };
314
+ const headers = sharedHeaders("DescribeFleetUtilization");
447
315
  let body;
448
316
  body = JSON.stringify(se_DescribeFleetUtilizationInput(input, context));
449
317
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
318
  };
451
319
  exports.se_DescribeFleetUtilizationCommand = se_DescribeFleetUtilizationCommand;
452
320
  const se_DescribeGameServerCommand = async (input, context) => {
453
- const headers = {
454
- "content-type": "application/x-amz-json-1.1",
455
- "x-amz-target": "GameLift.DescribeGameServer",
456
- };
321
+ const headers = sharedHeaders("DescribeGameServer");
457
322
  let body;
458
323
  body = JSON.stringify(se_DescribeGameServerInput(input, context));
459
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
325
  };
461
326
  exports.se_DescribeGameServerCommand = se_DescribeGameServerCommand;
462
327
  const se_DescribeGameServerGroupCommand = async (input, context) => {
463
- const headers = {
464
- "content-type": "application/x-amz-json-1.1",
465
- "x-amz-target": "GameLift.DescribeGameServerGroup",
466
- };
328
+ const headers = sharedHeaders("DescribeGameServerGroup");
467
329
  let body;
468
330
  body = JSON.stringify(se_DescribeGameServerGroupInput(input, context));
469
331
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
332
  };
471
333
  exports.se_DescribeGameServerGroupCommand = se_DescribeGameServerGroupCommand;
472
334
  const se_DescribeGameServerInstancesCommand = async (input, context) => {
473
- const headers = {
474
- "content-type": "application/x-amz-json-1.1",
475
- "x-amz-target": "GameLift.DescribeGameServerInstances",
476
- };
335
+ const headers = sharedHeaders("DescribeGameServerInstances");
477
336
  let body;
478
337
  body = JSON.stringify(se_DescribeGameServerInstancesInput(input, context));
479
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
339
  };
481
340
  exports.se_DescribeGameServerInstancesCommand = se_DescribeGameServerInstancesCommand;
482
341
  const se_DescribeGameSessionDetailsCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-amz-json-1.1",
485
- "x-amz-target": "GameLift.DescribeGameSessionDetails",
486
- };
342
+ const headers = sharedHeaders("DescribeGameSessionDetails");
487
343
  let body;
488
344
  body = JSON.stringify(se_DescribeGameSessionDetailsInput(input, context));
489
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
346
  };
491
347
  exports.se_DescribeGameSessionDetailsCommand = se_DescribeGameSessionDetailsCommand;
492
348
  const se_DescribeGameSessionPlacementCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-amz-json-1.1",
495
- "x-amz-target": "GameLift.DescribeGameSessionPlacement",
496
- };
349
+ const headers = sharedHeaders("DescribeGameSessionPlacement");
497
350
  let body;
498
351
  body = JSON.stringify(se_DescribeGameSessionPlacementInput(input, context));
499
352
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
500
353
  };
501
354
  exports.se_DescribeGameSessionPlacementCommand = se_DescribeGameSessionPlacementCommand;
502
355
  const se_DescribeGameSessionQueuesCommand = async (input, context) => {
503
- const headers = {
504
- "content-type": "application/x-amz-json-1.1",
505
- "x-amz-target": "GameLift.DescribeGameSessionQueues",
506
- };
356
+ const headers = sharedHeaders("DescribeGameSessionQueues");
507
357
  let body;
508
358
  body = JSON.stringify(se_DescribeGameSessionQueuesInput(input, context));
509
359
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
360
  };
511
361
  exports.se_DescribeGameSessionQueuesCommand = se_DescribeGameSessionQueuesCommand;
512
362
  const se_DescribeGameSessionsCommand = async (input, context) => {
513
- const headers = {
514
- "content-type": "application/x-amz-json-1.1",
515
- "x-amz-target": "GameLift.DescribeGameSessions",
516
- };
363
+ const headers = sharedHeaders("DescribeGameSessions");
517
364
  let body;
518
365
  body = JSON.stringify(se_DescribeGameSessionsInput(input, context));
519
366
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
520
367
  };
521
368
  exports.se_DescribeGameSessionsCommand = se_DescribeGameSessionsCommand;
522
369
  const se_DescribeInstancesCommand = async (input, context) => {
523
- const headers = {
524
- "content-type": "application/x-amz-json-1.1",
525
- "x-amz-target": "GameLift.DescribeInstances",
526
- };
370
+ const headers = sharedHeaders("DescribeInstances");
527
371
  let body;
528
372
  body = JSON.stringify(se_DescribeInstancesInput(input, context));
529
373
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
530
374
  };
531
375
  exports.se_DescribeInstancesCommand = se_DescribeInstancesCommand;
532
376
  const se_DescribeMatchmakingCommand = async (input, context) => {
533
- const headers = {
534
- "content-type": "application/x-amz-json-1.1",
535
- "x-amz-target": "GameLift.DescribeMatchmaking",
536
- };
377
+ const headers = sharedHeaders("DescribeMatchmaking");
537
378
  let body;
538
379
  body = JSON.stringify(se_DescribeMatchmakingInput(input, context));
539
380
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
381
  };
541
382
  exports.se_DescribeMatchmakingCommand = se_DescribeMatchmakingCommand;
542
383
  const se_DescribeMatchmakingConfigurationsCommand = async (input, context) => {
543
- const headers = {
544
- "content-type": "application/x-amz-json-1.1",
545
- "x-amz-target": "GameLift.DescribeMatchmakingConfigurations",
546
- };
384
+ const headers = sharedHeaders("DescribeMatchmakingConfigurations");
547
385
  let body;
548
386
  body = JSON.stringify(se_DescribeMatchmakingConfigurationsInput(input, context));
549
387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
550
388
  };
551
389
  exports.se_DescribeMatchmakingConfigurationsCommand = se_DescribeMatchmakingConfigurationsCommand;
552
390
  const se_DescribeMatchmakingRuleSetsCommand = async (input, context) => {
553
- const headers = {
554
- "content-type": "application/x-amz-json-1.1",
555
- "x-amz-target": "GameLift.DescribeMatchmakingRuleSets",
556
- };
391
+ const headers = sharedHeaders("DescribeMatchmakingRuleSets");
557
392
  let body;
558
393
  body = JSON.stringify(se_DescribeMatchmakingRuleSetsInput(input, context));
559
394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
560
395
  };
561
396
  exports.se_DescribeMatchmakingRuleSetsCommand = se_DescribeMatchmakingRuleSetsCommand;
562
397
  const se_DescribePlayerSessionsCommand = async (input, context) => {
563
- const headers = {
564
- "content-type": "application/x-amz-json-1.1",
565
- "x-amz-target": "GameLift.DescribePlayerSessions",
566
- };
398
+ const headers = sharedHeaders("DescribePlayerSessions");
567
399
  let body;
568
400
  body = JSON.stringify(se_DescribePlayerSessionsInput(input, context));
569
401
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
402
  };
571
403
  exports.se_DescribePlayerSessionsCommand = se_DescribePlayerSessionsCommand;
572
404
  const se_DescribeRuntimeConfigurationCommand = async (input, context) => {
573
- const headers = {
574
- "content-type": "application/x-amz-json-1.1",
575
- "x-amz-target": "GameLift.DescribeRuntimeConfiguration",
576
- };
405
+ const headers = sharedHeaders("DescribeRuntimeConfiguration");
577
406
  let body;
578
407
  body = JSON.stringify(se_DescribeRuntimeConfigurationInput(input, context));
579
408
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
580
409
  };
581
410
  exports.se_DescribeRuntimeConfigurationCommand = se_DescribeRuntimeConfigurationCommand;
582
411
  const se_DescribeScalingPoliciesCommand = async (input, context) => {
583
- const headers = {
584
- "content-type": "application/x-amz-json-1.1",
585
- "x-amz-target": "GameLift.DescribeScalingPolicies",
586
- };
412
+ const headers = sharedHeaders("DescribeScalingPolicies");
587
413
  let body;
588
414
  body = JSON.stringify(se_DescribeScalingPoliciesInput(input, context));
589
415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
590
416
  };
591
417
  exports.se_DescribeScalingPoliciesCommand = se_DescribeScalingPoliciesCommand;
592
418
  const se_DescribeScriptCommand = async (input, context) => {
593
- const headers = {
594
- "content-type": "application/x-amz-json-1.1",
595
- "x-amz-target": "GameLift.DescribeScript",
596
- };
419
+ const headers = sharedHeaders("DescribeScript");
597
420
  let body;
598
421
  body = JSON.stringify(se_DescribeScriptInput(input, context));
599
422
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
600
423
  };
601
424
  exports.se_DescribeScriptCommand = se_DescribeScriptCommand;
602
425
  const se_DescribeVpcPeeringAuthorizationsCommand = async (input, context) => {
603
- const headers = {
604
- "content-type": "application/x-amz-json-1.1",
605
- "x-amz-target": "GameLift.DescribeVpcPeeringAuthorizations",
606
- };
426
+ const headers = sharedHeaders("DescribeVpcPeeringAuthorizations");
607
427
  let body;
608
428
  body = JSON.stringify(se_DescribeVpcPeeringAuthorizationsInput(input, context));
609
429
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
610
430
  };
611
431
  exports.se_DescribeVpcPeeringAuthorizationsCommand = se_DescribeVpcPeeringAuthorizationsCommand;
612
432
  const se_DescribeVpcPeeringConnectionsCommand = async (input, context) => {
613
- const headers = {
614
- "content-type": "application/x-amz-json-1.1",
615
- "x-amz-target": "GameLift.DescribeVpcPeeringConnections",
616
- };
433
+ const headers = sharedHeaders("DescribeVpcPeeringConnections");
617
434
  let body;
618
435
  body = JSON.stringify(se_DescribeVpcPeeringConnectionsInput(input, context));
619
436
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
620
437
  };
621
438
  exports.se_DescribeVpcPeeringConnectionsCommand = se_DescribeVpcPeeringConnectionsCommand;
622
439
  const se_GetComputeAccessCommand = async (input, context) => {
623
- const headers = {
624
- "content-type": "application/x-amz-json-1.1",
625
- "x-amz-target": "GameLift.GetComputeAccess",
626
- };
440
+ const headers = sharedHeaders("GetComputeAccess");
627
441
  let body;
628
442
  body = JSON.stringify(se_GetComputeAccessInput(input, context));
629
443
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
444
  };
631
445
  exports.se_GetComputeAccessCommand = se_GetComputeAccessCommand;
632
446
  const se_GetComputeAuthTokenCommand = async (input, context) => {
633
- const headers = {
634
- "content-type": "application/x-amz-json-1.1",
635
- "x-amz-target": "GameLift.GetComputeAuthToken",
636
- };
447
+ const headers = sharedHeaders("GetComputeAuthToken");
637
448
  let body;
638
449
  body = JSON.stringify(se_GetComputeAuthTokenInput(input, context));
639
450
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
640
451
  };
641
452
  exports.se_GetComputeAuthTokenCommand = se_GetComputeAuthTokenCommand;
642
453
  const se_GetGameSessionLogUrlCommand = async (input, context) => {
643
- const headers = {
644
- "content-type": "application/x-amz-json-1.1",
645
- "x-amz-target": "GameLift.GetGameSessionLogUrl",
646
- };
454
+ const headers = sharedHeaders("GetGameSessionLogUrl");
647
455
  let body;
648
456
  body = JSON.stringify(se_GetGameSessionLogUrlInput(input, context));
649
457
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
650
458
  };
651
459
  exports.se_GetGameSessionLogUrlCommand = se_GetGameSessionLogUrlCommand;
652
460
  const se_GetInstanceAccessCommand = async (input, context) => {
653
- const headers = {
654
- "content-type": "application/x-amz-json-1.1",
655
- "x-amz-target": "GameLift.GetInstanceAccess",
656
- };
461
+ const headers = sharedHeaders("GetInstanceAccess");
657
462
  let body;
658
463
  body = JSON.stringify(se_GetInstanceAccessInput(input, context));
659
464
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
660
465
  };
661
466
  exports.se_GetInstanceAccessCommand = se_GetInstanceAccessCommand;
662
467
  const se_ListAliasesCommand = async (input, context) => {
663
- const headers = {
664
- "content-type": "application/x-amz-json-1.1",
665
- "x-amz-target": "GameLift.ListAliases",
666
- };
468
+ const headers = sharedHeaders("ListAliases");
667
469
  let body;
668
470
  body = JSON.stringify(se_ListAliasesInput(input, context));
669
471
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
670
472
  };
671
473
  exports.se_ListAliasesCommand = se_ListAliasesCommand;
672
474
  const se_ListBuildsCommand = async (input, context) => {
673
- const headers = {
674
- "content-type": "application/x-amz-json-1.1",
675
- "x-amz-target": "GameLift.ListBuilds",
676
- };
475
+ const headers = sharedHeaders("ListBuilds");
677
476
  let body;
678
477
  body = JSON.stringify(se_ListBuildsInput(input, context));
679
478
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
680
479
  };
681
480
  exports.se_ListBuildsCommand = se_ListBuildsCommand;
682
481
  const se_ListComputeCommand = async (input, context) => {
683
- const headers = {
684
- "content-type": "application/x-amz-json-1.1",
685
- "x-amz-target": "GameLift.ListCompute",
686
- };
482
+ const headers = sharedHeaders("ListCompute");
687
483
  let body;
688
484
  body = JSON.stringify(se_ListComputeInput(input, context));
689
485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
486
  };
691
487
  exports.se_ListComputeCommand = se_ListComputeCommand;
692
488
  const se_ListFleetsCommand = async (input, context) => {
693
- const headers = {
694
- "content-type": "application/x-amz-json-1.1",
695
- "x-amz-target": "GameLift.ListFleets",
696
- };
489
+ const headers = sharedHeaders("ListFleets");
697
490
  let body;
698
491
  body = JSON.stringify(se_ListFleetsInput(input, context));
699
492
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
700
493
  };
701
494
  exports.se_ListFleetsCommand = se_ListFleetsCommand;
702
495
  const se_ListGameServerGroupsCommand = async (input, context) => {
703
- const headers = {
704
- "content-type": "application/x-amz-json-1.1",
705
- "x-amz-target": "GameLift.ListGameServerGroups",
706
- };
496
+ const headers = sharedHeaders("ListGameServerGroups");
707
497
  let body;
708
498
  body = JSON.stringify(se_ListGameServerGroupsInput(input, context));
709
499
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
710
500
  };
711
501
  exports.se_ListGameServerGroupsCommand = se_ListGameServerGroupsCommand;
712
502
  const se_ListGameServersCommand = async (input, context) => {
713
- const headers = {
714
- "content-type": "application/x-amz-json-1.1",
715
- "x-amz-target": "GameLift.ListGameServers",
716
- };
503
+ const headers = sharedHeaders("ListGameServers");
717
504
  let body;
718
505
  body = JSON.stringify(se_ListGameServersInput(input, context));
719
506
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
720
507
  };
721
508
  exports.se_ListGameServersCommand = se_ListGameServersCommand;
722
509
  const se_ListLocationsCommand = async (input, context) => {
723
- const headers = {
724
- "content-type": "application/x-amz-json-1.1",
725
- "x-amz-target": "GameLift.ListLocations",
726
- };
510
+ const headers = sharedHeaders("ListLocations");
727
511
  let body;
728
512
  body = JSON.stringify(se_ListLocationsInput(input, context));
729
513
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
730
514
  };
731
515
  exports.se_ListLocationsCommand = se_ListLocationsCommand;
732
516
  const se_ListScriptsCommand = async (input, context) => {
733
- const headers = {
734
- "content-type": "application/x-amz-json-1.1",
735
- "x-amz-target": "GameLift.ListScripts",
736
- };
517
+ const headers = sharedHeaders("ListScripts");
737
518
  let body;
738
519
  body = JSON.stringify(se_ListScriptsInput(input, context));
739
520
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
740
521
  };
741
522
  exports.se_ListScriptsCommand = se_ListScriptsCommand;
742
523
  const se_ListTagsForResourceCommand = async (input, context) => {
743
- const headers = {
744
- "content-type": "application/x-amz-json-1.1",
745
- "x-amz-target": "GameLift.ListTagsForResource",
746
- };
524
+ const headers = sharedHeaders("ListTagsForResource");
747
525
  let body;
748
526
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
749
527
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
750
528
  };
751
529
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
752
530
  const se_PutScalingPolicyCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-amz-json-1.1",
755
- "x-amz-target": "GameLift.PutScalingPolicy",
756
- };
531
+ const headers = sharedHeaders("PutScalingPolicy");
757
532
  let body;
758
533
  body = JSON.stringify(se_PutScalingPolicyInput(input, context));
759
534
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
760
535
  };
761
536
  exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
762
537
  const se_RegisterComputeCommand = async (input, context) => {
763
- const headers = {
764
- "content-type": "application/x-amz-json-1.1",
765
- "x-amz-target": "GameLift.RegisterCompute",
766
- };
538
+ const headers = sharedHeaders("RegisterCompute");
767
539
  let body;
768
540
  body = JSON.stringify(se_RegisterComputeInput(input, context));
769
541
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
770
542
  };
771
543
  exports.se_RegisterComputeCommand = se_RegisterComputeCommand;
772
544
  const se_RegisterGameServerCommand = async (input, context) => {
773
- const headers = {
774
- "content-type": "application/x-amz-json-1.1",
775
- "x-amz-target": "GameLift.RegisterGameServer",
776
- };
545
+ const headers = sharedHeaders("RegisterGameServer");
777
546
  let body;
778
547
  body = JSON.stringify(se_RegisterGameServerInput(input, context));
779
548
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
780
549
  };
781
550
  exports.se_RegisterGameServerCommand = se_RegisterGameServerCommand;
782
551
  const se_RequestUploadCredentialsCommand = async (input, context) => {
783
- const headers = {
784
- "content-type": "application/x-amz-json-1.1",
785
- "x-amz-target": "GameLift.RequestUploadCredentials",
786
- };
552
+ const headers = sharedHeaders("RequestUploadCredentials");
787
553
  let body;
788
554
  body = JSON.stringify(se_RequestUploadCredentialsInput(input, context));
789
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
790
556
  };
791
557
  exports.se_RequestUploadCredentialsCommand = se_RequestUploadCredentialsCommand;
792
558
  const se_ResolveAliasCommand = async (input, context) => {
793
- const headers = {
794
- "content-type": "application/x-amz-json-1.1",
795
- "x-amz-target": "GameLift.ResolveAlias",
796
- };
559
+ const headers = sharedHeaders("ResolveAlias");
797
560
  let body;
798
561
  body = JSON.stringify(se_ResolveAliasInput(input, context));
799
562
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
800
563
  };
801
564
  exports.se_ResolveAliasCommand = se_ResolveAliasCommand;
802
565
  const se_ResumeGameServerGroupCommand = async (input, context) => {
803
- const headers = {
804
- "content-type": "application/x-amz-json-1.1",
805
- "x-amz-target": "GameLift.ResumeGameServerGroup",
806
- };
566
+ const headers = sharedHeaders("ResumeGameServerGroup");
807
567
  let body;
808
568
  body = JSON.stringify(se_ResumeGameServerGroupInput(input, context));
809
569
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
810
570
  };
811
571
  exports.se_ResumeGameServerGroupCommand = se_ResumeGameServerGroupCommand;
812
572
  const se_SearchGameSessionsCommand = async (input, context) => {
813
- const headers = {
814
- "content-type": "application/x-amz-json-1.1",
815
- "x-amz-target": "GameLift.SearchGameSessions",
816
- };
573
+ const headers = sharedHeaders("SearchGameSessions");
817
574
  let body;
818
575
  body = JSON.stringify(se_SearchGameSessionsInput(input, context));
819
576
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
820
577
  };
821
578
  exports.se_SearchGameSessionsCommand = se_SearchGameSessionsCommand;
822
579
  const se_StartFleetActionsCommand = async (input, context) => {
823
- const headers = {
824
- "content-type": "application/x-amz-json-1.1",
825
- "x-amz-target": "GameLift.StartFleetActions",
826
- };
580
+ const headers = sharedHeaders("StartFleetActions");
827
581
  let body;
828
582
  body = JSON.stringify(se_StartFleetActionsInput(input, context));
829
583
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
830
584
  };
831
585
  exports.se_StartFleetActionsCommand = se_StartFleetActionsCommand;
832
586
  const se_StartGameSessionPlacementCommand = async (input, context) => {
833
- const headers = {
834
- "content-type": "application/x-amz-json-1.1",
835
- "x-amz-target": "GameLift.StartGameSessionPlacement",
836
- };
587
+ const headers = sharedHeaders("StartGameSessionPlacement");
837
588
  let body;
838
589
  body = JSON.stringify(se_StartGameSessionPlacementInput(input, context));
839
590
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
840
591
  };
841
592
  exports.se_StartGameSessionPlacementCommand = se_StartGameSessionPlacementCommand;
842
593
  const se_StartMatchBackfillCommand = async (input, context) => {
843
- const headers = {
844
- "content-type": "application/x-amz-json-1.1",
845
- "x-amz-target": "GameLift.StartMatchBackfill",
846
- };
594
+ const headers = sharedHeaders("StartMatchBackfill");
847
595
  let body;
848
596
  body = JSON.stringify(se_StartMatchBackfillInput(input, context));
849
597
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
850
598
  };
851
599
  exports.se_StartMatchBackfillCommand = se_StartMatchBackfillCommand;
852
600
  const se_StartMatchmakingCommand = async (input, context) => {
853
- const headers = {
854
- "content-type": "application/x-amz-json-1.1",
855
- "x-amz-target": "GameLift.StartMatchmaking",
856
- };
601
+ const headers = sharedHeaders("StartMatchmaking");
857
602
  let body;
858
603
  body = JSON.stringify(se_StartMatchmakingInput(input, context));
859
604
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
860
605
  };
861
606
  exports.se_StartMatchmakingCommand = se_StartMatchmakingCommand;
862
607
  const se_StopFleetActionsCommand = async (input, context) => {
863
- const headers = {
864
- "content-type": "application/x-amz-json-1.1",
865
- "x-amz-target": "GameLift.StopFleetActions",
866
- };
608
+ const headers = sharedHeaders("StopFleetActions");
867
609
  let body;
868
610
  body = JSON.stringify(se_StopFleetActionsInput(input, context));
869
611
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
870
612
  };
871
613
  exports.se_StopFleetActionsCommand = se_StopFleetActionsCommand;
872
614
  const se_StopGameSessionPlacementCommand = async (input, context) => {
873
- const headers = {
874
- "content-type": "application/x-amz-json-1.1",
875
- "x-amz-target": "GameLift.StopGameSessionPlacement",
876
- };
615
+ const headers = sharedHeaders("StopGameSessionPlacement");
877
616
  let body;
878
617
  body = JSON.stringify(se_StopGameSessionPlacementInput(input, context));
879
618
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
880
619
  };
881
620
  exports.se_StopGameSessionPlacementCommand = se_StopGameSessionPlacementCommand;
882
621
  const se_StopMatchmakingCommand = async (input, context) => {
883
- const headers = {
884
- "content-type": "application/x-amz-json-1.1",
885
- "x-amz-target": "GameLift.StopMatchmaking",
886
- };
622
+ const headers = sharedHeaders("StopMatchmaking");
887
623
  let body;
888
624
  body = JSON.stringify(se_StopMatchmakingInput(input, context));
889
625
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
890
626
  };
891
627
  exports.se_StopMatchmakingCommand = se_StopMatchmakingCommand;
892
628
  const se_SuspendGameServerGroupCommand = async (input, context) => {
893
- const headers = {
894
- "content-type": "application/x-amz-json-1.1",
895
- "x-amz-target": "GameLift.SuspendGameServerGroup",
896
- };
629
+ const headers = sharedHeaders("SuspendGameServerGroup");
897
630
  let body;
898
631
  body = JSON.stringify(se_SuspendGameServerGroupInput(input, context));
899
632
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
900
633
  };
901
634
  exports.se_SuspendGameServerGroupCommand = se_SuspendGameServerGroupCommand;
902
635
  const se_TagResourceCommand = async (input, context) => {
903
- const headers = {
904
- "content-type": "application/x-amz-json-1.1",
905
- "x-amz-target": "GameLift.TagResource",
906
- };
636
+ const headers = sharedHeaders("TagResource");
907
637
  let body;
908
638
  body = JSON.stringify(se_TagResourceRequest(input, context));
909
639
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
910
640
  };
911
641
  exports.se_TagResourceCommand = se_TagResourceCommand;
912
642
  const se_UntagResourceCommand = async (input, context) => {
913
- const headers = {
914
- "content-type": "application/x-amz-json-1.1",
915
- "x-amz-target": "GameLift.UntagResource",
916
- };
643
+ const headers = sharedHeaders("UntagResource");
917
644
  let body;
918
645
  body = JSON.stringify(se_UntagResourceRequest(input, context));
919
646
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
920
647
  };
921
648
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
922
649
  const se_UpdateAliasCommand = async (input, context) => {
923
- const headers = {
924
- "content-type": "application/x-amz-json-1.1",
925
- "x-amz-target": "GameLift.UpdateAlias",
926
- };
650
+ const headers = sharedHeaders("UpdateAlias");
927
651
  let body;
928
652
  body = JSON.stringify(se_UpdateAliasInput(input, context));
929
653
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
930
654
  };
931
655
  exports.se_UpdateAliasCommand = se_UpdateAliasCommand;
932
656
  const se_UpdateBuildCommand = async (input, context) => {
933
- const headers = {
934
- "content-type": "application/x-amz-json-1.1",
935
- "x-amz-target": "GameLift.UpdateBuild",
936
- };
657
+ const headers = sharedHeaders("UpdateBuild");
937
658
  let body;
938
659
  body = JSON.stringify(se_UpdateBuildInput(input, context));
939
660
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
940
661
  };
941
662
  exports.se_UpdateBuildCommand = se_UpdateBuildCommand;
942
663
  const se_UpdateFleetAttributesCommand = async (input, context) => {
943
- const headers = {
944
- "content-type": "application/x-amz-json-1.1",
945
- "x-amz-target": "GameLift.UpdateFleetAttributes",
946
- };
664
+ const headers = sharedHeaders("UpdateFleetAttributes");
947
665
  let body;
948
666
  body = JSON.stringify(se_UpdateFleetAttributesInput(input, context));
949
667
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
950
668
  };
951
669
  exports.se_UpdateFleetAttributesCommand = se_UpdateFleetAttributesCommand;
952
670
  const se_UpdateFleetCapacityCommand = async (input, context) => {
953
- const headers = {
954
- "content-type": "application/x-amz-json-1.1",
955
- "x-amz-target": "GameLift.UpdateFleetCapacity",
956
- };
671
+ const headers = sharedHeaders("UpdateFleetCapacity");
957
672
  let body;
958
673
  body = JSON.stringify(se_UpdateFleetCapacityInput(input, context));
959
674
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
960
675
  };
961
676
  exports.se_UpdateFleetCapacityCommand = se_UpdateFleetCapacityCommand;
962
677
  const se_UpdateFleetPortSettingsCommand = async (input, context) => {
963
- const headers = {
964
- "content-type": "application/x-amz-json-1.1",
965
- "x-amz-target": "GameLift.UpdateFleetPortSettings",
966
- };
678
+ const headers = sharedHeaders("UpdateFleetPortSettings");
967
679
  let body;
968
680
  body = JSON.stringify(se_UpdateFleetPortSettingsInput(input, context));
969
681
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
970
682
  };
971
683
  exports.se_UpdateFleetPortSettingsCommand = se_UpdateFleetPortSettingsCommand;
972
684
  const se_UpdateGameServerCommand = async (input, context) => {
973
- const headers = {
974
- "content-type": "application/x-amz-json-1.1",
975
- "x-amz-target": "GameLift.UpdateGameServer",
976
- };
685
+ const headers = sharedHeaders("UpdateGameServer");
977
686
  let body;
978
687
  body = JSON.stringify(se_UpdateGameServerInput(input, context));
979
688
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
980
689
  };
981
690
  exports.se_UpdateGameServerCommand = se_UpdateGameServerCommand;
982
691
  const se_UpdateGameServerGroupCommand = async (input, context) => {
983
- const headers = {
984
- "content-type": "application/x-amz-json-1.1",
985
- "x-amz-target": "GameLift.UpdateGameServerGroup",
986
- };
692
+ const headers = sharedHeaders("UpdateGameServerGroup");
987
693
  let body;
988
694
  body = JSON.stringify(se_UpdateGameServerGroupInput(input, context));
989
695
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
990
696
  };
991
697
  exports.se_UpdateGameServerGroupCommand = se_UpdateGameServerGroupCommand;
992
698
  const se_UpdateGameSessionCommand = async (input, context) => {
993
- const headers = {
994
- "content-type": "application/x-amz-json-1.1",
995
- "x-amz-target": "GameLift.UpdateGameSession",
996
- };
699
+ const headers = sharedHeaders("UpdateGameSession");
997
700
  let body;
998
701
  body = JSON.stringify(se_UpdateGameSessionInput(input, context));
999
702
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1000
703
  };
1001
704
  exports.se_UpdateGameSessionCommand = se_UpdateGameSessionCommand;
1002
705
  const se_UpdateGameSessionQueueCommand = async (input, context) => {
1003
- const headers = {
1004
- "content-type": "application/x-amz-json-1.1",
1005
- "x-amz-target": "GameLift.UpdateGameSessionQueue",
1006
- };
706
+ const headers = sharedHeaders("UpdateGameSessionQueue");
1007
707
  let body;
1008
708
  body = JSON.stringify(se_UpdateGameSessionQueueInput(input, context));
1009
709
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1010
710
  };
1011
711
  exports.se_UpdateGameSessionQueueCommand = se_UpdateGameSessionQueueCommand;
1012
712
  const se_UpdateMatchmakingConfigurationCommand = async (input, context) => {
1013
- const headers = {
1014
- "content-type": "application/x-amz-json-1.1",
1015
- "x-amz-target": "GameLift.UpdateMatchmakingConfiguration",
1016
- };
713
+ const headers = sharedHeaders("UpdateMatchmakingConfiguration");
1017
714
  let body;
1018
715
  body = JSON.stringify(se_UpdateMatchmakingConfigurationInput(input, context));
1019
716
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1020
717
  };
1021
718
  exports.se_UpdateMatchmakingConfigurationCommand = se_UpdateMatchmakingConfigurationCommand;
1022
719
  const se_UpdateRuntimeConfigurationCommand = async (input, context) => {
1023
- const headers = {
1024
- "content-type": "application/x-amz-json-1.1",
1025
- "x-amz-target": "GameLift.UpdateRuntimeConfiguration",
1026
- };
720
+ const headers = sharedHeaders("UpdateRuntimeConfiguration");
1027
721
  let body;
1028
722
  body = JSON.stringify(se_UpdateRuntimeConfigurationInput(input, context));
1029
723
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1030
724
  };
1031
725
  exports.se_UpdateRuntimeConfigurationCommand = se_UpdateRuntimeConfigurationCommand;
1032
726
  const se_UpdateScriptCommand = async (input, context) => {
1033
- const headers = {
1034
- "content-type": "application/x-amz-json-1.1",
1035
- "x-amz-target": "GameLift.UpdateScript",
1036
- };
727
+ const headers = sharedHeaders("UpdateScript");
1037
728
  let body;
1038
729
  body = JSON.stringify(se_UpdateScriptInput(input, context));
1039
730
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1040
731
  };
1041
732
  exports.se_UpdateScriptCommand = se_UpdateScriptCommand;
1042
733
  const se_ValidateMatchmakingRuleSetCommand = async (input, context) => {
1043
- const headers = {
1044
- "content-type": "application/x-amz-json-1.1",
1045
- "x-amz-target": "GameLift.ValidateMatchmakingRuleSet",
1046
- };
734
+ const headers = sharedHeaders("ValidateMatchmakingRuleSet");
1047
735
  let body;
1048
736
  body = JSON.stringify(se_ValidateMatchmakingRuleSetInput(input, context));
1049
737
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -8822,6 +8510,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
8822
8510
  }
8823
8511
  return new protocol_http_1.HttpRequest(contents);
8824
8512
  };
8513
+ function sharedHeaders(operation) {
8514
+ return {
8515
+ "content-type": "application/x-amz-json-1.1",
8516
+ "x-amz-target": `GameLift.${operation}`,
8517
+ };
8518
+ }
8825
8519
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
8826
8520
  if (encoded.length) {
8827
8521
  return JSON.parse(encoded);