1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package gamelift
4
5import (
6	"bytes"
7	"context"
8	"fmt"
9	"github.com/aws/aws-sdk-go-v2/service/gamelift/types"
10	smithy "github.com/aws/smithy-go"
11	"github.com/aws/smithy-go/encoding/httpbinding"
12	smithyjson "github.com/aws/smithy-go/encoding/json"
13	"github.com/aws/smithy-go/middleware"
14	smithytime "github.com/aws/smithy-go/time"
15	smithyhttp "github.com/aws/smithy-go/transport/http"
16)
17
18type awsAwsjson11_serializeOpAcceptMatch struct {
19}
20
21func (*awsAwsjson11_serializeOpAcceptMatch) ID() string {
22	return "OperationSerializer"
23}
24
25func (m *awsAwsjson11_serializeOpAcceptMatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
26	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
27) {
28	request, ok := in.Request.(*smithyhttp.Request)
29	if !ok {
30		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
31	}
32
33	input, ok := in.Parameters.(*AcceptMatchInput)
34	_ = input
35	if !ok {
36		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
37	}
38
39	request.Request.URL.Path = "/"
40	request.Request.Method = "POST"
41	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
42	if err != nil {
43		return out, metadata, &smithy.SerializationError{Err: err}
44	}
45	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
46	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.AcceptMatch")
47
48	jsonEncoder := smithyjson.NewEncoder()
49	if err := awsAwsjson11_serializeOpDocumentAcceptMatchInput(input, jsonEncoder.Value); err != nil {
50		return out, metadata, &smithy.SerializationError{Err: err}
51	}
52
53	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
54		return out, metadata, &smithy.SerializationError{Err: err}
55	}
56
57	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
58		return out, metadata, &smithy.SerializationError{Err: err}
59	}
60	in.Request = request
61
62	return next.HandleSerialize(ctx, in)
63}
64
65type awsAwsjson11_serializeOpClaimGameServer struct {
66}
67
68func (*awsAwsjson11_serializeOpClaimGameServer) ID() string {
69	return "OperationSerializer"
70}
71
72func (m *awsAwsjson11_serializeOpClaimGameServer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
73	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
74) {
75	request, ok := in.Request.(*smithyhttp.Request)
76	if !ok {
77		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
78	}
79
80	input, ok := in.Parameters.(*ClaimGameServerInput)
81	_ = input
82	if !ok {
83		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
84	}
85
86	request.Request.URL.Path = "/"
87	request.Request.Method = "POST"
88	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
89	if err != nil {
90		return out, metadata, &smithy.SerializationError{Err: err}
91	}
92	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
93	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ClaimGameServer")
94
95	jsonEncoder := smithyjson.NewEncoder()
96	if err := awsAwsjson11_serializeOpDocumentClaimGameServerInput(input, jsonEncoder.Value); err != nil {
97		return out, metadata, &smithy.SerializationError{Err: err}
98	}
99
100	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
101		return out, metadata, &smithy.SerializationError{Err: err}
102	}
103
104	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
105		return out, metadata, &smithy.SerializationError{Err: err}
106	}
107	in.Request = request
108
109	return next.HandleSerialize(ctx, in)
110}
111
112type awsAwsjson11_serializeOpCreateAlias struct {
113}
114
115func (*awsAwsjson11_serializeOpCreateAlias) ID() string {
116	return "OperationSerializer"
117}
118
119func (m *awsAwsjson11_serializeOpCreateAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
120	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
121) {
122	request, ok := in.Request.(*smithyhttp.Request)
123	if !ok {
124		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
125	}
126
127	input, ok := in.Parameters.(*CreateAliasInput)
128	_ = input
129	if !ok {
130		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
131	}
132
133	request.Request.URL.Path = "/"
134	request.Request.Method = "POST"
135	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
136	if err != nil {
137		return out, metadata, &smithy.SerializationError{Err: err}
138	}
139	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
140	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateAlias")
141
142	jsonEncoder := smithyjson.NewEncoder()
143	if err := awsAwsjson11_serializeOpDocumentCreateAliasInput(input, jsonEncoder.Value); err != nil {
144		return out, metadata, &smithy.SerializationError{Err: err}
145	}
146
147	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
148		return out, metadata, &smithy.SerializationError{Err: err}
149	}
150
151	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
152		return out, metadata, &smithy.SerializationError{Err: err}
153	}
154	in.Request = request
155
156	return next.HandleSerialize(ctx, in)
157}
158
159type awsAwsjson11_serializeOpCreateBuild struct {
160}
161
162func (*awsAwsjson11_serializeOpCreateBuild) ID() string {
163	return "OperationSerializer"
164}
165
166func (m *awsAwsjson11_serializeOpCreateBuild) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
167	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
168) {
169	request, ok := in.Request.(*smithyhttp.Request)
170	if !ok {
171		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
172	}
173
174	input, ok := in.Parameters.(*CreateBuildInput)
175	_ = input
176	if !ok {
177		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
178	}
179
180	request.Request.URL.Path = "/"
181	request.Request.Method = "POST"
182	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
183	if err != nil {
184		return out, metadata, &smithy.SerializationError{Err: err}
185	}
186	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
187	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateBuild")
188
189	jsonEncoder := smithyjson.NewEncoder()
190	if err := awsAwsjson11_serializeOpDocumentCreateBuildInput(input, jsonEncoder.Value); err != nil {
191		return out, metadata, &smithy.SerializationError{Err: err}
192	}
193
194	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
195		return out, metadata, &smithy.SerializationError{Err: err}
196	}
197
198	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
199		return out, metadata, &smithy.SerializationError{Err: err}
200	}
201	in.Request = request
202
203	return next.HandleSerialize(ctx, in)
204}
205
206type awsAwsjson11_serializeOpCreateFleet struct {
207}
208
209func (*awsAwsjson11_serializeOpCreateFleet) ID() string {
210	return "OperationSerializer"
211}
212
213func (m *awsAwsjson11_serializeOpCreateFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
214	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
215) {
216	request, ok := in.Request.(*smithyhttp.Request)
217	if !ok {
218		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
219	}
220
221	input, ok := in.Parameters.(*CreateFleetInput)
222	_ = input
223	if !ok {
224		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
225	}
226
227	request.Request.URL.Path = "/"
228	request.Request.Method = "POST"
229	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
230	if err != nil {
231		return out, metadata, &smithy.SerializationError{Err: err}
232	}
233	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
234	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateFleet")
235
236	jsonEncoder := smithyjson.NewEncoder()
237	if err := awsAwsjson11_serializeOpDocumentCreateFleetInput(input, jsonEncoder.Value); err != nil {
238		return out, metadata, &smithy.SerializationError{Err: err}
239	}
240
241	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
242		return out, metadata, &smithy.SerializationError{Err: err}
243	}
244
245	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
246		return out, metadata, &smithy.SerializationError{Err: err}
247	}
248	in.Request = request
249
250	return next.HandleSerialize(ctx, in)
251}
252
253type awsAwsjson11_serializeOpCreateFleetLocations struct {
254}
255
256func (*awsAwsjson11_serializeOpCreateFleetLocations) ID() string {
257	return "OperationSerializer"
258}
259
260func (m *awsAwsjson11_serializeOpCreateFleetLocations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
261	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
262) {
263	request, ok := in.Request.(*smithyhttp.Request)
264	if !ok {
265		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
266	}
267
268	input, ok := in.Parameters.(*CreateFleetLocationsInput)
269	_ = input
270	if !ok {
271		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
272	}
273
274	request.Request.URL.Path = "/"
275	request.Request.Method = "POST"
276	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
277	if err != nil {
278		return out, metadata, &smithy.SerializationError{Err: err}
279	}
280	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
281	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateFleetLocations")
282
283	jsonEncoder := smithyjson.NewEncoder()
284	if err := awsAwsjson11_serializeOpDocumentCreateFleetLocationsInput(input, jsonEncoder.Value); err != nil {
285		return out, metadata, &smithy.SerializationError{Err: err}
286	}
287
288	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
289		return out, metadata, &smithy.SerializationError{Err: err}
290	}
291
292	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
293		return out, metadata, &smithy.SerializationError{Err: err}
294	}
295	in.Request = request
296
297	return next.HandleSerialize(ctx, in)
298}
299
300type awsAwsjson11_serializeOpCreateGameServerGroup struct {
301}
302
303func (*awsAwsjson11_serializeOpCreateGameServerGroup) ID() string {
304	return "OperationSerializer"
305}
306
307func (m *awsAwsjson11_serializeOpCreateGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
308	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
309) {
310	request, ok := in.Request.(*smithyhttp.Request)
311	if !ok {
312		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
313	}
314
315	input, ok := in.Parameters.(*CreateGameServerGroupInput)
316	_ = input
317	if !ok {
318		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
319	}
320
321	request.Request.URL.Path = "/"
322	request.Request.Method = "POST"
323	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
324	if err != nil {
325		return out, metadata, &smithy.SerializationError{Err: err}
326	}
327	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
328	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateGameServerGroup")
329
330	jsonEncoder := smithyjson.NewEncoder()
331	if err := awsAwsjson11_serializeOpDocumentCreateGameServerGroupInput(input, jsonEncoder.Value); err != nil {
332		return out, metadata, &smithy.SerializationError{Err: err}
333	}
334
335	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
336		return out, metadata, &smithy.SerializationError{Err: err}
337	}
338
339	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
340		return out, metadata, &smithy.SerializationError{Err: err}
341	}
342	in.Request = request
343
344	return next.HandleSerialize(ctx, in)
345}
346
347type awsAwsjson11_serializeOpCreateGameSession struct {
348}
349
350func (*awsAwsjson11_serializeOpCreateGameSession) ID() string {
351	return "OperationSerializer"
352}
353
354func (m *awsAwsjson11_serializeOpCreateGameSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
355	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
356) {
357	request, ok := in.Request.(*smithyhttp.Request)
358	if !ok {
359		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
360	}
361
362	input, ok := in.Parameters.(*CreateGameSessionInput)
363	_ = input
364	if !ok {
365		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
366	}
367
368	request.Request.URL.Path = "/"
369	request.Request.Method = "POST"
370	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
371	if err != nil {
372		return out, metadata, &smithy.SerializationError{Err: err}
373	}
374	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
375	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateGameSession")
376
377	jsonEncoder := smithyjson.NewEncoder()
378	if err := awsAwsjson11_serializeOpDocumentCreateGameSessionInput(input, jsonEncoder.Value); err != nil {
379		return out, metadata, &smithy.SerializationError{Err: err}
380	}
381
382	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
383		return out, metadata, &smithy.SerializationError{Err: err}
384	}
385
386	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
387		return out, metadata, &smithy.SerializationError{Err: err}
388	}
389	in.Request = request
390
391	return next.HandleSerialize(ctx, in)
392}
393
394type awsAwsjson11_serializeOpCreateGameSessionQueue struct {
395}
396
397func (*awsAwsjson11_serializeOpCreateGameSessionQueue) ID() string {
398	return "OperationSerializer"
399}
400
401func (m *awsAwsjson11_serializeOpCreateGameSessionQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
402	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
403) {
404	request, ok := in.Request.(*smithyhttp.Request)
405	if !ok {
406		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
407	}
408
409	input, ok := in.Parameters.(*CreateGameSessionQueueInput)
410	_ = input
411	if !ok {
412		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
413	}
414
415	request.Request.URL.Path = "/"
416	request.Request.Method = "POST"
417	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
418	if err != nil {
419		return out, metadata, &smithy.SerializationError{Err: err}
420	}
421	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
422	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateGameSessionQueue")
423
424	jsonEncoder := smithyjson.NewEncoder()
425	if err := awsAwsjson11_serializeOpDocumentCreateGameSessionQueueInput(input, jsonEncoder.Value); err != nil {
426		return out, metadata, &smithy.SerializationError{Err: err}
427	}
428
429	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
430		return out, metadata, &smithy.SerializationError{Err: err}
431	}
432
433	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
434		return out, metadata, &smithy.SerializationError{Err: err}
435	}
436	in.Request = request
437
438	return next.HandleSerialize(ctx, in)
439}
440
441type awsAwsjson11_serializeOpCreateMatchmakingConfiguration struct {
442}
443
444func (*awsAwsjson11_serializeOpCreateMatchmakingConfiguration) ID() string {
445	return "OperationSerializer"
446}
447
448func (m *awsAwsjson11_serializeOpCreateMatchmakingConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
449	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
450) {
451	request, ok := in.Request.(*smithyhttp.Request)
452	if !ok {
453		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
454	}
455
456	input, ok := in.Parameters.(*CreateMatchmakingConfigurationInput)
457	_ = input
458	if !ok {
459		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
460	}
461
462	request.Request.URL.Path = "/"
463	request.Request.Method = "POST"
464	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
465	if err != nil {
466		return out, metadata, &smithy.SerializationError{Err: err}
467	}
468	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
469	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateMatchmakingConfiguration")
470
471	jsonEncoder := smithyjson.NewEncoder()
472	if err := awsAwsjson11_serializeOpDocumentCreateMatchmakingConfigurationInput(input, jsonEncoder.Value); err != nil {
473		return out, metadata, &smithy.SerializationError{Err: err}
474	}
475
476	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
477		return out, metadata, &smithy.SerializationError{Err: err}
478	}
479
480	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
481		return out, metadata, &smithy.SerializationError{Err: err}
482	}
483	in.Request = request
484
485	return next.HandleSerialize(ctx, in)
486}
487
488type awsAwsjson11_serializeOpCreateMatchmakingRuleSet struct {
489}
490
491func (*awsAwsjson11_serializeOpCreateMatchmakingRuleSet) ID() string {
492	return "OperationSerializer"
493}
494
495func (m *awsAwsjson11_serializeOpCreateMatchmakingRuleSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
496	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
497) {
498	request, ok := in.Request.(*smithyhttp.Request)
499	if !ok {
500		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
501	}
502
503	input, ok := in.Parameters.(*CreateMatchmakingRuleSetInput)
504	_ = input
505	if !ok {
506		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
507	}
508
509	request.Request.URL.Path = "/"
510	request.Request.Method = "POST"
511	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
512	if err != nil {
513		return out, metadata, &smithy.SerializationError{Err: err}
514	}
515	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
516	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateMatchmakingRuleSet")
517
518	jsonEncoder := smithyjson.NewEncoder()
519	if err := awsAwsjson11_serializeOpDocumentCreateMatchmakingRuleSetInput(input, jsonEncoder.Value); err != nil {
520		return out, metadata, &smithy.SerializationError{Err: err}
521	}
522
523	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
524		return out, metadata, &smithy.SerializationError{Err: err}
525	}
526
527	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
528		return out, metadata, &smithy.SerializationError{Err: err}
529	}
530	in.Request = request
531
532	return next.HandleSerialize(ctx, in)
533}
534
535type awsAwsjson11_serializeOpCreatePlayerSession struct {
536}
537
538func (*awsAwsjson11_serializeOpCreatePlayerSession) ID() string {
539	return "OperationSerializer"
540}
541
542func (m *awsAwsjson11_serializeOpCreatePlayerSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
543	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
544) {
545	request, ok := in.Request.(*smithyhttp.Request)
546	if !ok {
547		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
548	}
549
550	input, ok := in.Parameters.(*CreatePlayerSessionInput)
551	_ = input
552	if !ok {
553		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
554	}
555
556	request.Request.URL.Path = "/"
557	request.Request.Method = "POST"
558	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
559	if err != nil {
560		return out, metadata, &smithy.SerializationError{Err: err}
561	}
562	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
563	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreatePlayerSession")
564
565	jsonEncoder := smithyjson.NewEncoder()
566	if err := awsAwsjson11_serializeOpDocumentCreatePlayerSessionInput(input, jsonEncoder.Value); err != nil {
567		return out, metadata, &smithy.SerializationError{Err: err}
568	}
569
570	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
571		return out, metadata, &smithy.SerializationError{Err: err}
572	}
573
574	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
575		return out, metadata, &smithy.SerializationError{Err: err}
576	}
577	in.Request = request
578
579	return next.HandleSerialize(ctx, in)
580}
581
582type awsAwsjson11_serializeOpCreatePlayerSessions struct {
583}
584
585func (*awsAwsjson11_serializeOpCreatePlayerSessions) ID() string {
586	return "OperationSerializer"
587}
588
589func (m *awsAwsjson11_serializeOpCreatePlayerSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
590	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
591) {
592	request, ok := in.Request.(*smithyhttp.Request)
593	if !ok {
594		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
595	}
596
597	input, ok := in.Parameters.(*CreatePlayerSessionsInput)
598	_ = input
599	if !ok {
600		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
601	}
602
603	request.Request.URL.Path = "/"
604	request.Request.Method = "POST"
605	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
606	if err != nil {
607		return out, metadata, &smithy.SerializationError{Err: err}
608	}
609	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
610	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreatePlayerSessions")
611
612	jsonEncoder := smithyjson.NewEncoder()
613	if err := awsAwsjson11_serializeOpDocumentCreatePlayerSessionsInput(input, jsonEncoder.Value); err != nil {
614		return out, metadata, &smithy.SerializationError{Err: err}
615	}
616
617	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
618		return out, metadata, &smithy.SerializationError{Err: err}
619	}
620
621	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
622		return out, metadata, &smithy.SerializationError{Err: err}
623	}
624	in.Request = request
625
626	return next.HandleSerialize(ctx, in)
627}
628
629type awsAwsjson11_serializeOpCreateScript struct {
630}
631
632func (*awsAwsjson11_serializeOpCreateScript) ID() string {
633	return "OperationSerializer"
634}
635
636func (m *awsAwsjson11_serializeOpCreateScript) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
637	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
638) {
639	request, ok := in.Request.(*smithyhttp.Request)
640	if !ok {
641		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
642	}
643
644	input, ok := in.Parameters.(*CreateScriptInput)
645	_ = input
646	if !ok {
647		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
648	}
649
650	request.Request.URL.Path = "/"
651	request.Request.Method = "POST"
652	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
653	if err != nil {
654		return out, metadata, &smithy.SerializationError{Err: err}
655	}
656	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
657	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateScript")
658
659	jsonEncoder := smithyjson.NewEncoder()
660	if err := awsAwsjson11_serializeOpDocumentCreateScriptInput(input, jsonEncoder.Value); err != nil {
661		return out, metadata, &smithy.SerializationError{Err: err}
662	}
663
664	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
665		return out, metadata, &smithy.SerializationError{Err: err}
666	}
667
668	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
669		return out, metadata, &smithy.SerializationError{Err: err}
670	}
671	in.Request = request
672
673	return next.HandleSerialize(ctx, in)
674}
675
676type awsAwsjson11_serializeOpCreateVpcPeeringAuthorization struct {
677}
678
679func (*awsAwsjson11_serializeOpCreateVpcPeeringAuthorization) ID() string {
680	return "OperationSerializer"
681}
682
683func (m *awsAwsjson11_serializeOpCreateVpcPeeringAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
684	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
685) {
686	request, ok := in.Request.(*smithyhttp.Request)
687	if !ok {
688		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
689	}
690
691	input, ok := in.Parameters.(*CreateVpcPeeringAuthorizationInput)
692	_ = input
693	if !ok {
694		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
695	}
696
697	request.Request.URL.Path = "/"
698	request.Request.Method = "POST"
699	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
700	if err != nil {
701		return out, metadata, &smithy.SerializationError{Err: err}
702	}
703	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
704	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateVpcPeeringAuthorization")
705
706	jsonEncoder := smithyjson.NewEncoder()
707	if err := awsAwsjson11_serializeOpDocumentCreateVpcPeeringAuthorizationInput(input, jsonEncoder.Value); err != nil {
708		return out, metadata, &smithy.SerializationError{Err: err}
709	}
710
711	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
712		return out, metadata, &smithy.SerializationError{Err: err}
713	}
714
715	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
716		return out, metadata, &smithy.SerializationError{Err: err}
717	}
718	in.Request = request
719
720	return next.HandleSerialize(ctx, in)
721}
722
723type awsAwsjson11_serializeOpCreateVpcPeeringConnection struct {
724}
725
726func (*awsAwsjson11_serializeOpCreateVpcPeeringConnection) ID() string {
727	return "OperationSerializer"
728}
729
730func (m *awsAwsjson11_serializeOpCreateVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
731	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
732) {
733	request, ok := in.Request.(*smithyhttp.Request)
734	if !ok {
735		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
736	}
737
738	input, ok := in.Parameters.(*CreateVpcPeeringConnectionInput)
739	_ = input
740	if !ok {
741		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
742	}
743
744	request.Request.URL.Path = "/"
745	request.Request.Method = "POST"
746	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
747	if err != nil {
748		return out, metadata, &smithy.SerializationError{Err: err}
749	}
750	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
751	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.CreateVpcPeeringConnection")
752
753	jsonEncoder := smithyjson.NewEncoder()
754	if err := awsAwsjson11_serializeOpDocumentCreateVpcPeeringConnectionInput(input, jsonEncoder.Value); err != nil {
755		return out, metadata, &smithy.SerializationError{Err: err}
756	}
757
758	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
759		return out, metadata, &smithy.SerializationError{Err: err}
760	}
761
762	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
763		return out, metadata, &smithy.SerializationError{Err: err}
764	}
765	in.Request = request
766
767	return next.HandleSerialize(ctx, in)
768}
769
770type awsAwsjson11_serializeOpDeleteAlias struct {
771}
772
773func (*awsAwsjson11_serializeOpDeleteAlias) ID() string {
774	return "OperationSerializer"
775}
776
777func (m *awsAwsjson11_serializeOpDeleteAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
778	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
779) {
780	request, ok := in.Request.(*smithyhttp.Request)
781	if !ok {
782		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
783	}
784
785	input, ok := in.Parameters.(*DeleteAliasInput)
786	_ = input
787	if !ok {
788		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
789	}
790
791	request.Request.URL.Path = "/"
792	request.Request.Method = "POST"
793	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
794	if err != nil {
795		return out, metadata, &smithy.SerializationError{Err: err}
796	}
797	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
798	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteAlias")
799
800	jsonEncoder := smithyjson.NewEncoder()
801	if err := awsAwsjson11_serializeOpDocumentDeleteAliasInput(input, jsonEncoder.Value); err != nil {
802		return out, metadata, &smithy.SerializationError{Err: err}
803	}
804
805	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
806		return out, metadata, &smithy.SerializationError{Err: err}
807	}
808
809	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
810		return out, metadata, &smithy.SerializationError{Err: err}
811	}
812	in.Request = request
813
814	return next.HandleSerialize(ctx, in)
815}
816
817type awsAwsjson11_serializeOpDeleteBuild struct {
818}
819
820func (*awsAwsjson11_serializeOpDeleteBuild) ID() string {
821	return "OperationSerializer"
822}
823
824func (m *awsAwsjson11_serializeOpDeleteBuild) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
825	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
826) {
827	request, ok := in.Request.(*smithyhttp.Request)
828	if !ok {
829		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
830	}
831
832	input, ok := in.Parameters.(*DeleteBuildInput)
833	_ = input
834	if !ok {
835		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
836	}
837
838	request.Request.URL.Path = "/"
839	request.Request.Method = "POST"
840	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
841	if err != nil {
842		return out, metadata, &smithy.SerializationError{Err: err}
843	}
844	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
845	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteBuild")
846
847	jsonEncoder := smithyjson.NewEncoder()
848	if err := awsAwsjson11_serializeOpDocumentDeleteBuildInput(input, jsonEncoder.Value); err != nil {
849		return out, metadata, &smithy.SerializationError{Err: err}
850	}
851
852	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
853		return out, metadata, &smithy.SerializationError{Err: err}
854	}
855
856	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
857		return out, metadata, &smithy.SerializationError{Err: err}
858	}
859	in.Request = request
860
861	return next.HandleSerialize(ctx, in)
862}
863
864type awsAwsjson11_serializeOpDeleteFleet struct {
865}
866
867func (*awsAwsjson11_serializeOpDeleteFleet) ID() string {
868	return "OperationSerializer"
869}
870
871func (m *awsAwsjson11_serializeOpDeleteFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
872	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
873) {
874	request, ok := in.Request.(*smithyhttp.Request)
875	if !ok {
876		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
877	}
878
879	input, ok := in.Parameters.(*DeleteFleetInput)
880	_ = input
881	if !ok {
882		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
883	}
884
885	request.Request.URL.Path = "/"
886	request.Request.Method = "POST"
887	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
888	if err != nil {
889		return out, metadata, &smithy.SerializationError{Err: err}
890	}
891	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
892	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteFleet")
893
894	jsonEncoder := smithyjson.NewEncoder()
895	if err := awsAwsjson11_serializeOpDocumentDeleteFleetInput(input, jsonEncoder.Value); err != nil {
896		return out, metadata, &smithy.SerializationError{Err: err}
897	}
898
899	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
900		return out, metadata, &smithy.SerializationError{Err: err}
901	}
902
903	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
904		return out, metadata, &smithy.SerializationError{Err: err}
905	}
906	in.Request = request
907
908	return next.HandleSerialize(ctx, in)
909}
910
911type awsAwsjson11_serializeOpDeleteFleetLocations struct {
912}
913
914func (*awsAwsjson11_serializeOpDeleteFleetLocations) ID() string {
915	return "OperationSerializer"
916}
917
918func (m *awsAwsjson11_serializeOpDeleteFleetLocations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
919	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
920) {
921	request, ok := in.Request.(*smithyhttp.Request)
922	if !ok {
923		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
924	}
925
926	input, ok := in.Parameters.(*DeleteFleetLocationsInput)
927	_ = input
928	if !ok {
929		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
930	}
931
932	request.Request.URL.Path = "/"
933	request.Request.Method = "POST"
934	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
935	if err != nil {
936		return out, metadata, &smithy.SerializationError{Err: err}
937	}
938	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
939	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteFleetLocations")
940
941	jsonEncoder := smithyjson.NewEncoder()
942	if err := awsAwsjson11_serializeOpDocumentDeleteFleetLocationsInput(input, jsonEncoder.Value); err != nil {
943		return out, metadata, &smithy.SerializationError{Err: err}
944	}
945
946	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
947		return out, metadata, &smithy.SerializationError{Err: err}
948	}
949
950	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
951		return out, metadata, &smithy.SerializationError{Err: err}
952	}
953	in.Request = request
954
955	return next.HandleSerialize(ctx, in)
956}
957
958type awsAwsjson11_serializeOpDeleteGameServerGroup struct {
959}
960
961func (*awsAwsjson11_serializeOpDeleteGameServerGroup) ID() string {
962	return "OperationSerializer"
963}
964
965func (m *awsAwsjson11_serializeOpDeleteGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
966	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
967) {
968	request, ok := in.Request.(*smithyhttp.Request)
969	if !ok {
970		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
971	}
972
973	input, ok := in.Parameters.(*DeleteGameServerGroupInput)
974	_ = input
975	if !ok {
976		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
977	}
978
979	request.Request.URL.Path = "/"
980	request.Request.Method = "POST"
981	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
982	if err != nil {
983		return out, metadata, &smithy.SerializationError{Err: err}
984	}
985	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
986	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteGameServerGroup")
987
988	jsonEncoder := smithyjson.NewEncoder()
989	if err := awsAwsjson11_serializeOpDocumentDeleteGameServerGroupInput(input, jsonEncoder.Value); err != nil {
990		return out, metadata, &smithy.SerializationError{Err: err}
991	}
992
993	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
994		return out, metadata, &smithy.SerializationError{Err: err}
995	}
996
997	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
998		return out, metadata, &smithy.SerializationError{Err: err}
999	}
1000	in.Request = request
1001
1002	return next.HandleSerialize(ctx, in)
1003}
1004
1005type awsAwsjson11_serializeOpDeleteGameSessionQueue struct {
1006}
1007
1008func (*awsAwsjson11_serializeOpDeleteGameSessionQueue) ID() string {
1009	return "OperationSerializer"
1010}
1011
1012func (m *awsAwsjson11_serializeOpDeleteGameSessionQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1013	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1014) {
1015	request, ok := in.Request.(*smithyhttp.Request)
1016	if !ok {
1017		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1018	}
1019
1020	input, ok := in.Parameters.(*DeleteGameSessionQueueInput)
1021	_ = input
1022	if !ok {
1023		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1024	}
1025
1026	request.Request.URL.Path = "/"
1027	request.Request.Method = "POST"
1028	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1029	if err != nil {
1030		return out, metadata, &smithy.SerializationError{Err: err}
1031	}
1032	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1033	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteGameSessionQueue")
1034
1035	jsonEncoder := smithyjson.NewEncoder()
1036	if err := awsAwsjson11_serializeOpDocumentDeleteGameSessionQueueInput(input, jsonEncoder.Value); err != nil {
1037		return out, metadata, &smithy.SerializationError{Err: err}
1038	}
1039
1040	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1041		return out, metadata, &smithy.SerializationError{Err: err}
1042	}
1043
1044	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1045		return out, metadata, &smithy.SerializationError{Err: err}
1046	}
1047	in.Request = request
1048
1049	return next.HandleSerialize(ctx, in)
1050}
1051
1052type awsAwsjson11_serializeOpDeleteMatchmakingConfiguration struct {
1053}
1054
1055func (*awsAwsjson11_serializeOpDeleteMatchmakingConfiguration) ID() string {
1056	return "OperationSerializer"
1057}
1058
1059func (m *awsAwsjson11_serializeOpDeleteMatchmakingConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1060	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1061) {
1062	request, ok := in.Request.(*smithyhttp.Request)
1063	if !ok {
1064		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1065	}
1066
1067	input, ok := in.Parameters.(*DeleteMatchmakingConfigurationInput)
1068	_ = input
1069	if !ok {
1070		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1071	}
1072
1073	request.Request.URL.Path = "/"
1074	request.Request.Method = "POST"
1075	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1076	if err != nil {
1077		return out, metadata, &smithy.SerializationError{Err: err}
1078	}
1079	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1080	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteMatchmakingConfiguration")
1081
1082	jsonEncoder := smithyjson.NewEncoder()
1083	if err := awsAwsjson11_serializeOpDocumentDeleteMatchmakingConfigurationInput(input, jsonEncoder.Value); err != nil {
1084		return out, metadata, &smithy.SerializationError{Err: err}
1085	}
1086
1087	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1088		return out, metadata, &smithy.SerializationError{Err: err}
1089	}
1090
1091	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1092		return out, metadata, &smithy.SerializationError{Err: err}
1093	}
1094	in.Request = request
1095
1096	return next.HandleSerialize(ctx, in)
1097}
1098
1099type awsAwsjson11_serializeOpDeleteMatchmakingRuleSet struct {
1100}
1101
1102func (*awsAwsjson11_serializeOpDeleteMatchmakingRuleSet) ID() string {
1103	return "OperationSerializer"
1104}
1105
1106func (m *awsAwsjson11_serializeOpDeleteMatchmakingRuleSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1107	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1108) {
1109	request, ok := in.Request.(*smithyhttp.Request)
1110	if !ok {
1111		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1112	}
1113
1114	input, ok := in.Parameters.(*DeleteMatchmakingRuleSetInput)
1115	_ = input
1116	if !ok {
1117		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1118	}
1119
1120	request.Request.URL.Path = "/"
1121	request.Request.Method = "POST"
1122	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1123	if err != nil {
1124		return out, metadata, &smithy.SerializationError{Err: err}
1125	}
1126	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1127	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteMatchmakingRuleSet")
1128
1129	jsonEncoder := smithyjson.NewEncoder()
1130	if err := awsAwsjson11_serializeOpDocumentDeleteMatchmakingRuleSetInput(input, jsonEncoder.Value); err != nil {
1131		return out, metadata, &smithy.SerializationError{Err: err}
1132	}
1133
1134	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1135		return out, metadata, &smithy.SerializationError{Err: err}
1136	}
1137
1138	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1139		return out, metadata, &smithy.SerializationError{Err: err}
1140	}
1141	in.Request = request
1142
1143	return next.HandleSerialize(ctx, in)
1144}
1145
1146type awsAwsjson11_serializeOpDeleteScalingPolicy struct {
1147}
1148
1149func (*awsAwsjson11_serializeOpDeleteScalingPolicy) ID() string {
1150	return "OperationSerializer"
1151}
1152
1153func (m *awsAwsjson11_serializeOpDeleteScalingPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1154	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1155) {
1156	request, ok := in.Request.(*smithyhttp.Request)
1157	if !ok {
1158		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1159	}
1160
1161	input, ok := in.Parameters.(*DeleteScalingPolicyInput)
1162	_ = input
1163	if !ok {
1164		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1165	}
1166
1167	request.Request.URL.Path = "/"
1168	request.Request.Method = "POST"
1169	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1170	if err != nil {
1171		return out, metadata, &smithy.SerializationError{Err: err}
1172	}
1173	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1174	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteScalingPolicy")
1175
1176	jsonEncoder := smithyjson.NewEncoder()
1177	if err := awsAwsjson11_serializeOpDocumentDeleteScalingPolicyInput(input, jsonEncoder.Value); err != nil {
1178		return out, metadata, &smithy.SerializationError{Err: err}
1179	}
1180
1181	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1182		return out, metadata, &smithy.SerializationError{Err: err}
1183	}
1184
1185	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1186		return out, metadata, &smithy.SerializationError{Err: err}
1187	}
1188	in.Request = request
1189
1190	return next.HandleSerialize(ctx, in)
1191}
1192
1193type awsAwsjson11_serializeOpDeleteScript struct {
1194}
1195
1196func (*awsAwsjson11_serializeOpDeleteScript) ID() string {
1197	return "OperationSerializer"
1198}
1199
1200func (m *awsAwsjson11_serializeOpDeleteScript) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1201	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1202) {
1203	request, ok := in.Request.(*smithyhttp.Request)
1204	if !ok {
1205		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1206	}
1207
1208	input, ok := in.Parameters.(*DeleteScriptInput)
1209	_ = input
1210	if !ok {
1211		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1212	}
1213
1214	request.Request.URL.Path = "/"
1215	request.Request.Method = "POST"
1216	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1217	if err != nil {
1218		return out, metadata, &smithy.SerializationError{Err: err}
1219	}
1220	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1221	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteScript")
1222
1223	jsonEncoder := smithyjson.NewEncoder()
1224	if err := awsAwsjson11_serializeOpDocumentDeleteScriptInput(input, jsonEncoder.Value); err != nil {
1225		return out, metadata, &smithy.SerializationError{Err: err}
1226	}
1227
1228	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1229		return out, metadata, &smithy.SerializationError{Err: err}
1230	}
1231
1232	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1233		return out, metadata, &smithy.SerializationError{Err: err}
1234	}
1235	in.Request = request
1236
1237	return next.HandleSerialize(ctx, in)
1238}
1239
1240type awsAwsjson11_serializeOpDeleteVpcPeeringAuthorization struct {
1241}
1242
1243func (*awsAwsjson11_serializeOpDeleteVpcPeeringAuthorization) ID() string {
1244	return "OperationSerializer"
1245}
1246
1247func (m *awsAwsjson11_serializeOpDeleteVpcPeeringAuthorization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1248	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1249) {
1250	request, ok := in.Request.(*smithyhttp.Request)
1251	if !ok {
1252		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1253	}
1254
1255	input, ok := in.Parameters.(*DeleteVpcPeeringAuthorizationInput)
1256	_ = input
1257	if !ok {
1258		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1259	}
1260
1261	request.Request.URL.Path = "/"
1262	request.Request.Method = "POST"
1263	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1264	if err != nil {
1265		return out, metadata, &smithy.SerializationError{Err: err}
1266	}
1267	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1268	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteVpcPeeringAuthorization")
1269
1270	jsonEncoder := smithyjson.NewEncoder()
1271	if err := awsAwsjson11_serializeOpDocumentDeleteVpcPeeringAuthorizationInput(input, jsonEncoder.Value); err != nil {
1272		return out, metadata, &smithy.SerializationError{Err: err}
1273	}
1274
1275	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1276		return out, metadata, &smithy.SerializationError{Err: err}
1277	}
1278
1279	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1280		return out, metadata, &smithy.SerializationError{Err: err}
1281	}
1282	in.Request = request
1283
1284	return next.HandleSerialize(ctx, in)
1285}
1286
1287type awsAwsjson11_serializeOpDeleteVpcPeeringConnection struct {
1288}
1289
1290func (*awsAwsjson11_serializeOpDeleteVpcPeeringConnection) ID() string {
1291	return "OperationSerializer"
1292}
1293
1294func (m *awsAwsjson11_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1295	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1296) {
1297	request, ok := in.Request.(*smithyhttp.Request)
1298	if !ok {
1299		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1300	}
1301
1302	input, ok := in.Parameters.(*DeleteVpcPeeringConnectionInput)
1303	_ = input
1304	if !ok {
1305		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1306	}
1307
1308	request.Request.URL.Path = "/"
1309	request.Request.Method = "POST"
1310	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1311	if err != nil {
1312		return out, metadata, &smithy.SerializationError{Err: err}
1313	}
1314	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1315	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeleteVpcPeeringConnection")
1316
1317	jsonEncoder := smithyjson.NewEncoder()
1318	if err := awsAwsjson11_serializeOpDocumentDeleteVpcPeeringConnectionInput(input, jsonEncoder.Value); err != nil {
1319		return out, metadata, &smithy.SerializationError{Err: err}
1320	}
1321
1322	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1323		return out, metadata, &smithy.SerializationError{Err: err}
1324	}
1325
1326	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1327		return out, metadata, &smithy.SerializationError{Err: err}
1328	}
1329	in.Request = request
1330
1331	return next.HandleSerialize(ctx, in)
1332}
1333
1334type awsAwsjson11_serializeOpDeregisterGameServer struct {
1335}
1336
1337func (*awsAwsjson11_serializeOpDeregisterGameServer) ID() string {
1338	return "OperationSerializer"
1339}
1340
1341func (m *awsAwsjson11_serializeOpDeregisterGameServer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1342	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1343) {
1344	request, ok := in.Request.(*smithyhttp.Request)
1345	if !ok {
1346		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1347	}
1348
1349	input, ok := in.Parameters.(*DeregisterGameServerInput)
1350	_ = input
1351	if !ok {
1352		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1353	}
1354
1355	request.Request.URL.Path = "/"
1356	request.Request.Method = "POST"
1357	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1358	if err != nil {
1359		return out, metadata, &smithy.SerializationError{Err: err}
1360	}
1361	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1362	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DeregisterGameServer")
1363
1364	jsonEncoder := smithyjson.NewEncoder()
1365	if err := awsAwsjson11_serializeOpDocumentDeregisterGameServerInput(input, jsonEncoder.Value); err != nil {
1366		return out, metadata, &smithy.SerializationError{Err: err}
1367	}
1368
1369	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1370		return out, metadata, &smithy.SerializationError{Err: err}
1371	}
1372
1373	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1374		return out, metadata, &smithy.SerializationError{Err: err}
1375	}
1376	in.Request = request
1377
1378	return next.HandleSerialize(ctx, in)
1379}
1380
1381type awsAwsjson11_serializeOpDescribeAlias struct {
1382}
1383
1384func (*awsAwsjson11_serializeOpDescribeAlias) ID() string {
1385	return "OperationSerializer"
1386}
1387
1388func (m *awsAwsjson11_serializeOpDescribeAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1389	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1390) {
1391	request, ok := in.Request.(*smithyhttp.Request)
1392	if !ok {
1393		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1394	}
1395
1396	input, ok := in.Parameters.(*DescribeAliasInput)
1397	_ = input
1398	if !ok {
1399		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1400	}
1401
1402	request.Request.URL.Path = "/"
1403	request.Request.Method = "POST"
1404	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1405	if err != nil {
1406		return out, metadata, &smithy.SerializationError{Err: err}
1407	}
1408	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1409	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeAlias")
1410
1411	jsonEncoder := smithyjson.NewEncoder()
1412	if err := awsAwsjson11_serializeOpDocumentDescribeAliasInput(input, jsonEncoder.Value); err != nil {
1413		return out, metadata, &smithy.SerializationError{Err: err}
1414	}
1415
1416	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1417		return out, metadata, &smithy.SerializationError{Err: err}
1418	}
1419
1420	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1421		return out, metadata, &smithy.SerializationError{Err: err}
1422	}
1423	in.Request = request
1424
1425	return next.HandleSerialize(ctx, in)
1426}
1427
1428type awsAwsjson11_serializeOpDescribeBuild struct {
1429}
1430
1431func (*awsAwsjson11_serializeOpDescribeBuild) ID() string {
1432	return "OperationSerializer"
1433}
1434
1435func (m *awsAwsjson11_serializeOpDescribeBuild) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1436	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1437) {
1438	request, ok := in.Request.(*smithyhttp.Request)
1439	if !ok {
1440		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1441	}
1442
1443	input, ok := in.Parameters.(*DescribeBuildInput)
1444	_ = input
1445	if !ok {
1446		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1447	}
1448
1449	request.Request.URL.Path = "/"
1450	request.Request.Method = "POST"
1451	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1452	if err != nil {
1453		return out, metadata, &smithy.SerializationError{Err: err}
1454	}
1455	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1456	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeBuild")
1457
1458	jsonEncoder := smithyjson.NewEncoder()
1459	if err := awsAwsjson11_serializeOpDocumentDescribeBuildInput(input, jsonEncoder.Value); err != nil {
1460		return out, metadata, &smithy.SerializationError{Err: err}
1461	}
1462
1463	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1464		return out, metadata, &smithy.SerializationError{Err: err}
1465	}
1466
1467	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1468		return out, metadata, &smithy.SerializationError{Err: err}
1469	}
1470	in.Request = request
1471
1472	return next.HandleSerialize(ctx, in)
1473}
1474
1475type awsAwsjson11_serializeOpDescribeEC2InstanceLimits struct {
1476}
1477
1478func (*awsAwsjson11_serializeOpDescribeEC2InstanceLimits) ID() string {
1479	return "OperationSerializer"
1480}
1481
1482func (m *awsAwsjson11_serializeOpDescribeEC2InstanceLimits) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1483	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1484) {
1485	request, ok := in.Request.(*smithyhttp.Request)
1486	if !ok {
1487		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1488	}
1489
1490	input, ok := in.Parameters.(*DescribeEC2InstanceLimitsInput)
1491	_ = input
1492	if !ok {
1493		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1494	}
1495
1496	request.Request.URL.Path = "/"
1497	request.Request.Method = "POST"
1498	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1499	if err != nil {
1500		return out, metadata, &smithy.SerializationError{Err: err}
1501	}
1502	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1503	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeEC2InstanceLimits")
1504
1505	jsonEncoder := smithyjson.NewEncoder()
1506	if err := awsAwsjson11_serializeOpDocumentDescribeEC2InstanceLimitsInput(input, jsonEncoder.Value); err != nil {
1507		return out, metadata, &smithy.SerializationError{Err: err}
1508	}
1509
1510	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1511		return out, metadata, &smithy.SerializationError{Err: err}
1512	}
1513
1514	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1515		return out, metadata, &smithy.SerializationError{Err: err}
1516	}
1517	in.Request = request
1518
1519	return next.HandleSerialize(ctx, in)
1520}
1521
1522type awsAwsjson11_serializeOpDescribeFleetAttributes struct {
1523}
1524
1525func (*awsAwsjson11_serializeOpDescribeFleetAttributes) ID() string {
1526	return "OperationSerializer"
1527}
1528
1529func (m *awsAwsjson11_serializeOpDescribeFleetAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1530	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1531) {
1532	request, ok := in.Request.(*smithyhttp.Request)
1533	if !ok {
1534		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1535	}
1536
1537	input, ok := in.Parameters.(*DescribeFleetAttributesInput)
1538	_ = input
1539	if !ok {
1540		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1541	}
1542
1543	request.Request.URL.Path = "/"
1544	request.Request.Method = "POST"
1545	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1546	if err != nil {
1547		return out, metadata, &smithy.SerializationError{Err: err}
1548	}
1549	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1550	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetAttributes")
1551
1552	jsonEncoder := smithyjson.NewEncoder()
1553	if err := awsAwsjson11_serializeOpDocumentDescribeFleetAttributesInput(input, jsonEncoder.Value); err != nil {
1554		return out, metadata, &smithy.SerializationError{Err: err}
1555	}
1556
1557	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1558		return out, metadata, &smithy.SerializationError{Err: err}
1559	}
1560
1561	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1562		return out, metadata, &smithy.SerializationError{Err: err}
1563	}
1564	in.Request = request
1565
1566	return next.HandleSerialize(ctx, in)
1567}
1568
1569type awsAwsjson11_serializeOpDescribeFleetCapacity struct {
1570}
1571
1572func (*awsAwsjson11_serializeOpDescribeFleetCapacity) ID() string {
1573	return "OperationSerializer"
1574}
1575
1576func (m *awsAwsjson11_serializeOpDescribeFleetCapacity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1577	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1578) {
1579	request, ok := in.Request.(*smithyhttp.Request)
1580	if !ok {
1581		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1582	}
1583
1584	input, ok := in.Parameters.(*DescribeFleetCapacityInput)
1585	_ = input
1586	if !ok {
1587		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1588	}
1589
1590	request.Request.URL.Path = "/"
1591	request.Request.Method = "POST"
1592	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1593	if err != nil {
1594		return out, metadata, &smithy.SerializationError{Err: err}
1595	}
1596	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1597	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetCapacity")
1598
1599	jsonEncoder := smithyjson.NewEncoder()
1600	if err := awsAwsjson11_serializeOpDocumentDescribeFleetCapacityInput(input, jsonEncoder.Value); err != nil {
1601		return out, metadata, &smithy.SerializationError{Err: err}
1602	}
1603
1604	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1605		return out, metadata, &smithy.SerializationError{Err: err}
1606	}
1607
1608	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1609		return out, metadata, &smithy.SerializationError{Err: err}
1610	}
1611	in.Request = request
1612
1613	return next.HandleSerialize(ctx, in)
1614}
1615
1616type awsAwsjson11_serializeOpDescribeFleetEvents struct {
1617}
1618
1619func (*awsAwsjson11_serializeOpDescribeFleetEvents) ID() string {
1620	return "OperationSerializer"
1621}
1622
1623func (m *awsAwsjson11_serializeOpDescribeFleetEvents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1624	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1625) {
1626	request, ok := in.Request.(*smithyhttp.Request)
1627	if !ok {
1628		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1629	}
1630
1631	input, ok := in.Parameters.(*DescribeFleetEventsInput)
1632	_ = input
1633	if !ok {
1634		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1635	}
1636
1637	request.Request.URL.Path = "/"
1638	request.Request.Method = "POST"
1639	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1640	if err != nil {
1641		return out, metadata, &smithy.SerializationError{Err: err}
1642	}
1643	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1644	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetEvents")
1645
1646	jsonEncoder := smithyjson.NewEncoder()
1647	if err := awsAwsjson11_serializeOpDocumentDescribeFleetEventsInput(input, jsonEncoder.Value); err != nil {
1648		return out, metadata, &smithy.SerializationError{Err: err}
1649	}
1650
1651	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1652		return out, metadata, &smithy.SerializationError{Err: err}
1653	}
1654
1655	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1656		return out, metadata, &smithy.SerializationError{Err: err}
1657	}
1658	in.Request = request
1659
1660	return next.HandleSerialize(ctx, in)
1661}
1662
1663type awsAwsjson11_serializeOpDescribeFleetLocationAttributes struct {
1664}
1665
1666func (*awsAwsjson11_serializeOpDescribeFleetLocationAttributes) ID() string {
1667	return "OperationSerializer"
1668}
1669
1670func (m *awsAwsjson11_serializeOpDescribeFleetLocationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1671	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1672) {
1673	request, ok := in.Request.(*smithyhttp.Request)
1674	if !ok {
1675		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1676	}
1677
1678	input, ok := in.Parameters.(*DescribeFleetLocationAttributesInput)
1679	_ = input
1680	if !ok {
1681		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1682	}
1683
1684	request.Request.URL.Path = "/"
1685	request.Request.Method = "POST"
1686	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1687	if err != nil {
1688		return out, metadata, &smithy.SerializationError{Err: err}
1689	}
1690	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1691	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetLocationAttributes")
1692
1693	jsonEncoder := smithyjson.NewEncoder()
1694	if err := awsAwsjson11_serializeOpDocumentDescribeFleetLocationAttributesInput(input, jsonEncoder.Value); err != nil {
1695		return out, metadata, &smithy.SerializationError{Err: err}
1696	}
1697
1698	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1699		return out, metadata, &smithy.SerializationError{Err: err}
1700	}
1701
1702	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1703		return out, metadata, &smithy.SerializationError{Err: err}
1704	}
1705	in.Request = request
1706
1707	return next.HandleSerialize(ctx, in)
1708}
1709
1710type awsAwsjson11_serializeOpDescribeFleetLocationCapacity struct {
1711}
1712
1713func (*awsAwsjson11_serializeOpDescribeFleetLocationCapacity) ID() string {
1714	return "OperationSerializer"
1715}
1716
1717func (m *awsAwsjson11_serializeOpDescribeFleetLocationCapacity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1718	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1719) {
1720	request, ok := in.Request.(*smithyhttp.Request)
1721	if !ok {
1722		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1723	}
1724
1725	input, ok := in.Parameters.(*DescribeFleetLocationCapacityInput)
1726	_ = input
1727	if !ok {
1728		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1729	}
1730
1731	request.Request.URL.Path = "/"
1732	request.Request.Method = "POST"
1733	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1734	if err != nil {
1735		return out, metadata, &smithy.SerializationError{Err: err}
1736	}
1737	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1738	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetLocationCapacity")
1739
1740	jsonEncoder := smithyjson.NewEncoder()
1741	if err := awsAwsjson11_serializeOpDocumentDescribeFleetLocationCapacityInput(input, jsonEncoder.Value); err != nil {
1742		return out, metadata, &smithy.SerializationError{Err: err}
1743	}
1744
1745	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1746		return out, metadata, &smithy.SerializationError{Err: err}
1747	}
1748
1749	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1750		return out, metadata, &smithy.SerializationError{Err: err}
1751	}
1752	in.Request = request
1753
1754	return next.HandleSerialize(ctx, in)
1755}
1756
1757type awsAwsjson11_serializeOpDescribeFleetLocationUtilization struct {
1758}
1759
1760func (*awsAwsjson11_serializeOpDescribeFleetLocationUtilization) ID() string {
1761	return "OperationSerializer"
1762}
1763
1764func (m *awsAwsjson11_serializeOpDescribeFleetLocationUtilization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1765	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1766) {
1767	request, ok := in.Request.(*smithyhttp.Request)
1768	if !ok {
1769		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1770	}
1771
1772	input, ok := in.Parameters.(*DescribeFleetLocationUtilizationInput)
1773	_ = input
1774	if !ok {
1775		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1776	}
1777
1778	request.Request.URL.Path = "/"
1779	request.Request.Method = "POST"
1780	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1781	if err != nil {
1782		return out, metadata, &smithy.SerializationError{Err: err}
1783	}
1784	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1785	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetLocationUtilization")
1786
1787	jsonEncoder := smithyjson.NewEncoder()
1788	if err := awsAwsjson11_serializeOpDocumentDescribeFleetLocationUtilizationInput(input, jsonEncoder.Value); err != nil {
1789		return out, metadata, &smithy.SerializationError{Err: err}
1790	}
1791
1792	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1793		return out, metadata, &smithy.SerializationError{Err: err}
1794	}
1795
1796	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1797		return out, metadata, &smithy.SerializationError{Err: err}
1798	}
1799	in.Request = request
1800
1801	return next.HandleSerialize(ctx, in)
1802}
1803
1804type awsAwsjson11_serializeOpDescribeFleetPortSettings struct {
1805}
1806
1807func (*awsAwsjson11_serializeOpDescribeFleetPortSettings) ID() string {
1808	return "OperationSerializer"
1809}
1810
1811func (m *awsAwsjson11_serializeOpDescribeFleetPortSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1812	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1813) {
1814	request, ok := in.Request.(*smithyhttp.Request)
1815	if !ok {
1816		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1817	}
1818
1819	input, ok := in.Parameters.(*DescribeFleetPortSettingsInput)
1820	_ = input
1821	if !ok {
1822		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1823	}
1824
1825	request.Request.URL.Path = "/"
1826	request.Request.Method = "POST"
1827	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1828	if err != nil {
1829		return out, metadata, &smithy.SerializationError{Err: err}
1830	}
1831	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1832	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetPortSettings")
1833
1834	jsonEncoder := smithyjson.NewEncoder()
1835	if err := awsAwsjson11_serializeOpDocumentDescribeFleetPortSettingsInput(input, jsonEncoder.Value); err != nil {
1836		return out, metadata, &smithy.SerializationError{Err: err}
1837	}
1838
1839	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1840		return out, metadata, &smithy.SerializationError{Err: err}
1841	}
1842
1843	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1844		return out, metadata, &smithy.SerializationError{Err: err}
1845	}
1846	in.Request = request
1847
1848	return next.HandleSerialize(ctx, in)
1849}
1850
1851type awsAwsjson11_serializeOpDescribeFleetUtilization struct {
1852}
1853
1854func (*awsAwsjson11_serializeOpDescribeFleetUtilization) ID() string {
1855	return "OperationSerializer"
1856}
1857
1858func (m *awsAwsjson11_serializeOpDescribeFleetUtilization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1859	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1860) {
1861	request, ok := in.Request.(*smithyhttp.Request)
1862	if !ok {
1863		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1864	}
1865
1866	input, ok := in.Parameters.(*DescribeFleetUtilizationInput)
1867	_ = input
1868	if !ok {
1869		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1870	}
1871
1872	request.Request.URL.Path = "/"
1873	request.Request.Method = "POST"
1874	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1875	if err != nil {
1876		return out, metadata, &smithy.SerializationError{Err: err}
1877	}
1878	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1879	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeFleetUtilization")
1880
1881	jsonEncoder := smithyjson.NewEncoder()
1882	if err := awsAwsjson11_serializeOpDocumentDescribeFleetUtilizationInput(input, jsonEncoder.Value); err != nil {
1883		return out, metadata, &smithy.SerializationError{Err: err}
1884	}
1885
1886	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1887		return out, metadata, &smithy.SerializationError{Err: err}
1888	}
1889
1890	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1891		return out, metadata, &smithy.SerializationError{Err: err}
1892	}
1893	in.Request = request
1894
1895	return next.HandleSerialize(ctx, in)
1896}
1897
1898type awsAwsjson11_serializeOpDescribeGameServer struct {
1899}
1900
1901func (*awsAwsjson11_serializeOpDescribeGameServer) ID() string {
1902	return "OperationSerializer"
1903}
1904
1905func (m *awsAwsjson11_serializeOpDescribeGameServer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1906	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1907) {
1908	request, ok := in.Request.(*smithyhttp.Request)
1909	if !ok {
1910		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1911	}
1912
1913	input, ok := in.Parameters.(*DescribeGameServerInput)
1914	_ = input
1915	if !ok {
1916		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1917	}
1918
1919	request.Request.URL.Path = "/"
1920	request.Request.Method = "POST"
1921	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1922	if err != nil {
1923		return out, metadata, &smithy.SerializationError{Err: err}
1924	}
1925	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1926	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameServer")
1927
1928	jsonEncoder := smithyjson.NewEncoder()
1929	if err := awsAwsjson11_serializeOpDocumentDescribeGameServerInput(input, jsonEncoder.Value); err != nil {
1930		return out, metadata, &smithy.SerializationError{Err: err}
1931	}
1932
1933	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1934		return out, metadata, &smithy.SerializationError{Err: err}
1935	}
1936
1937	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1938		return out, metadata, &smithy.SerializationError{Err: err}
1939	}
1940	in.Request = request
1941
1942	return next.HandleSerialize(ctx, in)
1943}
1944
1945type awsAwsjson11_serializeOpDescribeGameServerGroup struct {
1946}
1947
1948func (*awsAwsjson11_serializeOpDescribeGameServerGroup) ID() string {
1949	return "OperationSerializer"
1950}
1951
1952func (m *awsAwsjson11_serializeOpDescribeGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
1953	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
1954) {
1955	request, ok := in.Request.(*smithyhttp.Request)
1956	if !ok {
1957		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
1958	}
1959
1960	input, ok := in.Parameters.(*DescribeGameServerGroupInput)
1961	_ = input
1962	if !ok {
1963		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
1964	}
1965
1966	request.Request.URL.Path = "/"
1967	request.Request.Method = "POST"
1968	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
1969	if err != nil {
1970		return out, metadata, &smithy.SerializationError{Err: err}
1971	}
1972	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
1973	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameServerGroup")
1974
1975	jsonEncoder := smithyjson.NewEncoder()
1976	if err := awsAwsjson11_serializeOpDocumentDescribeGameServerGroupInput(input, jsonEncoder.Value); err != nil {
1977		return out, metadata, &smithy.SerializationError{Err: err}
1978	}
1979
1980	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
1981		return out, metadata, &smithy.SerializationError{Err: err}
1982	}
1983
1984	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
1985		return out, metadata, &smithy.SerializationError{Err: err}
1986	}
1987	in.Request = request
1988
1989	return next.HandleSerialize(ctx, in)
1990}
1991
1992type awsAwsjson11_serializeOpDescribeGameServerInstances struct {
1993}
1994
1995func (*awsAwsjson11_serializeOpDescribeGameServerInstances) ID() string {
1996	return "OperationSerializer"
1997}
1998
1999func (m *awsAwsjson11_serializeOpDescribeGameServerInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2000	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2001) {
2002	request, ok := in.Request.(*smithyhttp.Request)
2003	if !ok {
2004		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2005	}
2006
2007	input, ok := in.Parameters.(*DescribeGameServerInstancesInput)
2008	_ = input
2009	if !ok {
2010		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2011	}
2012
2013	request.Request.URL.Path = "/"
2014	request.Request.Method = "POST"
2015	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2016	if err != nil {
2017		return out, metadata, &smithy.SerializationError{Err: err}
2018	}
2019	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2020	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameServerInstances")
2021
2022	jsonEncoder := smithyjson.NewEncoder()
2023	if err := awsAwsjson11_serializeOpDocumentDescribeGameServerInstancesInput(input, jsonEncoder.Value); err != nil {
2024		return out, metadata, &smithy.SerializationError{Err: err}
2025	}
2026
2027	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2028		return out, metadata, &smithy.SerializationError{Err: err}
2029	}
2030
2031	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2032		return out, metadata, &smithy.SerializationError{Err: err}
2033	}
2034	in.Request = request
2035
2036	return next.HandleSerialize(ctx, in)
2037}
2038
2039type awsAwsjson11_serializeOpDescribeGameSessionDetails struct {
2040}
2041
2042func (*awsAwsjson11_serializeOpDescribeGameSessionDetails) ID() string {
2043	return "OperationSerializer"
2044}
2045
2046func (m *awsAwsjson11_serializeOpDescribeGameSessionDetails) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2047	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2048) {
2049	request, ok := in.Request.(*smithyhttp.Request)
2050	if !ok {
2051		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2052	}
2053
2054	input, ok := in.Parameters.(*DescribeGameSessionDetailsInput)
2055	_ = input
2056	if !ok {
2057		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2058	}
2059
2060	request.Request.URL.Path = "/"
2061	request.Request.Method = "POST"
2062	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2063	if err != nil {
2064		return out, metadata, &smithy.SerializationError{Err: err}
2065	}
2066	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2067	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameSessionDetails")
2068
2069	jsonEncoder := smithyjson.NewEncoder()
2070	if err := awsAwsjson11_serializeOpDocumentDescribeGameSessionDetailsInput(input, jsonEncoder.Value); err != nil {
2071		return out, metadata, &smithy.SerializationError{Err: err}
2072	}
2073
2074	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2075		return out, metadata, &smithy.SerializationError{Err: err}
2076	}
2077
2078	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2079		return out, metadata, &smithy.SerializationError{Err: err}
2080	}
2081	in.Request = request
2082
2083	return next.HandleSerialize(ctx, in)
2084}
2085
2086type awsAwsjson11_serializeOpDescribeGameSessionPlacement struct {
2087}
2088
2089func (*awsAwsjson11_serializeOpDescribeGameSessionPlacement) ID() string {
2090	return "OperationSerializer"
2091}
2092
2093func (m *awsAwsjson11_serializeOpDescribeGameSessionPlacement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2094	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2095) {
2096	request, ok := in.Request.(*smithyhttp.Request)
2097	if !ok {
2098		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2099	}
2100
2101	input, ok := in.Parameters.(*DescribeGameSessionPlacementInput)
2102	_ = input
2103	if !ok {
2104		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2105	}
2106
2107	request.Request.URL.Path = "/"
2108	request.Request.Method = "POST"
2109	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2110	if err != nil {
2111		return out, metadata, &smithy.SerializationError{Err: err}
2112	}
2113	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2114	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameSessionPlacement")
2115
2116	jsonEncoder := smithyjson.NewEncoder()
2117	if err := awsAwsjson11_serializeOpDocumentDescribeGameSessionPlacementInput(input, jsonEncoder.Value); err != nil {
2118		return out, metadata, &smithy.SerializationError{Err: err}
2119	}
2120
2121	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2122		return out, metadata, &smithy.SerializationError{Err: err}
2123	}
2124
2125	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2126		return out, metadata, &smithy.SerializationError{Err: err}
2127	}
2128	in.Request = request
2129
2130	return next.HandleSerialize(ctx, in)
2131}
2132
2133type awsAwsjson11_serializeOpDescribeGameSessionQueues struct {
2134}
2135
2136func (*awsAwsjson11_serializeOpDescribeGameSessionQueues) ID() string {
2137	return "OperationSerializer"
2138}
2139
2140func (m *awsAwsjson11_serializeOpDescribeGameSessionQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2141	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2142) {
2143	request, ok := in.Request.(*smithyhttp.Request)
2144	if !ok {
2145		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2146	}
2147
2148	input, ok := in.Parameters.(*DescribeGameSessionQueuesInput)
2149	_ = input
2150	if !ok {
2151		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2152	}
2153
2154	request.Request.URL.Path = "/"
2155	request.Request.Method = "POST"
2156	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2157	if err != nil {
2158		return out, metadata, &smithy.SerializationError{Err: err}
2159	}
2160	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2161	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameSessionQueues")
2162
2163	jsonEncoder := smithyjson.NewEncoder()
2164	if err := awsAwsjson11_serializeOpDocumentDescribeGameSessionQueuesInput(input, jsonEncoder.Value); err != nil {
2165		return out, metadata, &smithy.SerializationError{Err: err}
2166	}
2167
2168	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2169		return out, metadata, &smithy.SerializationError{Err: err}
2170	}
2171
2172	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2173		return out, metadata, &smithy.SerializationError{Err: err}
2174	}
2175	in.Request = request
2176
2177	return next.HandleSerialize(ctx, in)
2178}
2179
2180type awsAwsjson11_serializeOpDescribeGameSessions struct {
2181}
2182
2183func (*awsAwsjson11_serializeOpDescribeGameSessions) ID() string {
2184	return "OperationSerializer"
2185}
2186
2187func (m *awsAwsjson11_serializeOpDescribeGameSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2188	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2189) {
2190	request, ok := in.Request.(*smithyhttp.Request)
2191	if !ok {
2192		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2193	}
2194
2195	input, ok := in.Parameters.(*DescribeGameSessionsInput)
2196	_ = input
2197	if !ok {
2198		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2199	}
2200
2201	request.Request.URL.Path = "/"
2202	request.Request.Method = "POST"
2203	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2204	if err != nil {
2205		return out, metadata, &smithy.SerializationError{Err: err}
2206	}
2207	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2208	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeGameSessions")
2209
2210	jsonEncoder := smithyjson.NewEncoder()
2211	if err := awsAwsjson11_serializeOpDocumentDescribeGameSessionsInput(input, jsonEncoder.Value); err != nil {
2212		return out, metadata, &smithy.SerializationError{Err: err}
2213	}
2214
2215	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2216		return out, metadata, &smithy.SerializationError{Err: err}
2217	}
2218
2219	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2220		return out, metadata, &smithy.SerializationError{Err: err}
2221	}
2222	in.Request = request
2223
2224	return next.HandleSerialize(ctx, in)
2225}
2226
2227type awsAwsjson11_serializeOpDescribeInstances struct {
2228}
2229
2230func (*awsAwsjson11_serializeOpDescribeInstances) ID() string {
2231	return "OperationSerializer"
2232}
2233
2234func (m *awsAwsjson11_serializeOpDescribeInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2235	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2236) {
2237	request, ok := in.Request.(*smithyhttp.Request)
2238	if !ok {
2239		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2240	}
2241
2242	input, ok := in.Parameters.(*DescribeInstancesInput)
2243	_ = input
2244	if !ok {
2245		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2246	}
2247
2248	request.Request.URL.Path = "/"
2249	request.Request.Method = "POST"
2250	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2251	if err != nil {
2252		return out, metadata, &smithy.SerializationError{Err: err}
2253	}
2254	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2255	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeInstances")
2256
2257	jsonEncoder := smithyjson.NewEncoder()
2258	if err := awsAwsjson11_serializeOpDocumentDescribeInstancesInput(input, jsonEncoder.Value); err != nil {
2259		return out, metadata, &smithy.SerializationError{Err: err}
2260	}
2261
2262	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2263		return out, metadata, &smithy.SerializationError{Err: err}
2264	}
2265
2266	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2267		return out, metadata, &smithy.SerializationError{Err: err}
2268	}
2269	in.Request = request
2270
2271	return next.HandleSerialize(ctx, in)
2272}
2273
2274type awsAwsjson11_serializeOpDescribeMatchmaking struct {
2275}
2276
2277func (*awsAwsjson11_serializeOpDescribeMatchmaking) ID() string {
2278	return "OperationSerializer"
2279}
2280
2281func (m *awsAwsjson11_serializeOpDescribeMatchmaking) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2282	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2283) {
2284	request, ok := in.Request.(*smithyhttp.Request)
2285	if !ok {
2286		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2287	}
2288
2289	input, ok := in.Parameters.(*DescribeMatchmakingInput)
2290	_ = input
2291	if !ok {
2292		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2293	}
2294
2295	request.Request.URL.Path = "/"
2296	request.Request.Method = "POST"
2297	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2298	if err != nil {
2299		return out, metadata, &smithy.SerializationError{Err: err}
2300	}
2301	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2302	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeMatchmaking")
2303
2304	jsonEncoder := smithyjson.NewEncoder()
2305	if err := awsAwsjson11_serializeOpDocumentDescribeMatchmakingInput(input, jsonEncoder.Value); err != nil {
2306		return out, metadata, &smithy.SerializationError{Err: err}
2307	}
2308
2309	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2310		return out, metadata, &smithy.SerializationError{Err: err}
2311	}
2312
2313	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2314		return out, metadata, &smithy.SerializationError{Err: err}
2315	}
2316	in.Request = request
2317
2318	return next.HandleSerialize(ctx, in)
2319}
2320
2321type awsAwsjson11_serializeOpDescribeMatchmakingConfigurations struct {
2322}
2323
2324func (*awsAwsjson11_serializeOpDescribeMatchmakingConfigurations) ID() string {
2325	return "OperationSerializer"
2326}
2327
2328func (m *awsAwsjson11_serializeOpDescribeMatchmakingConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2329	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2330) {
2331	request, ok := in.Request.(*smithyhttp.Request)
2332	if !ok {
2333		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2334	}
2335
2336	input, ok := in.Parameters.(*DescribeMatchmakingConfigurationsInput)
2337	_ = input
2338	if !ok {
2339		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2340	}
2341
2342	request.Request.URL.Path = "/"
2343	request.Request.Method = "POST"
2344	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2345	if err != nil {
2346		return out, metadata, &smithy.SerializationError{Err: err}
2347	}
2348	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2349	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeMatchmakingConfigurations")
2350
2351	jsonEncoder := smithyjson.NewEncoder()
2352	if err := awsAwsjson11_serializeOpDocumentDescribeMatchmakingConfigurationsInput(input, jsonEncoder.Value); err != nil {
2353		return out, metadata, &smithy.SerializationError{Err: err}
2354	}
2355
2356	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2357		return out, metadata, &smithy.SerializationError{Err: err}
2358	}
2359
2360	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2361		return out, metadata, &smithy.SerializationError{Err: err}
2362	}
2363	in.Request = request
2364
2365	return next.HandleSerialize(ctx, in)
2366}
2367
2368type awsAwsjson11_serializeOpDescribeMatchmakingRuleSets struct {
2369}
2370
2371func (*awsAwsjson11_serializeOpDescribeMatchmakingRuleSets) ID() string {
2372	return "OperationSerializer"
2373}
2374
2375func (m *awsAwsjson11_serializeOpDescribeMatchmakingRuleSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2376	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2377) {
2378	request, ok := in.Request.(*smithyhttp.Request)
2379	if !ok {
2380		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2381	}
2382
2383	input, ok := in.Parameters.(*DescribeMatchmakingRuleSetsInput)
2384	_ = input
2385	if !ok {
2386		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2387	}
2388
2389	request.Request.URL.Path = "/"
2390	request.Request.Method = "POST"
2391	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2392	if err != nil {
2393		return out, metadata, &smithy.SerializationError{Err: err}
2394	}
2395	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2396	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeMatchmakingRuleSets")
2397
2398	jsonEncoder := smithyjson.NewEncoder()
2399	if err := awsAwsjson11_serializeOpDocumentDescribeMatchmakingRuleSetsInput(input, jsonEncoder.Value); err != nil {
2400		return out, metadata, &smithy.SerializationError{Err: err}
2401	}
2402
2403	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2404		return out, metadata, &smithy.SerializationError{Err: err}
2405	}
2406
2407	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2408		return out, metadata, &smithy.SerializationError{Err: err}
2409	}
2410	in.Request = request
2411
2412	return next.HandleSerialize(ctx, in)
2413}
2414
2415type awsAwsjson11_serializeOpDescribePlayerSessions struct {
2416}
2417
2418func (*awsAwsjson11_serializeOpDescribePlayerSessions) ID() string {
2419	return "OperationSerializer"
2420}
2421
2422func (m *awsAwsjson11_serializeOpDescribePlayerSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2423	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2424) {
2425	request, ok := in.Request.(*smithyhttp.Request)
2426	if !ok {
2427		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2428	}
2429
2430	input, ok := in.Parameters.(*DescribePlayerSessionsInput)
2431	_ = input
2432	if !ok {
2433		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2434	}
2435
2436	request.Request.URL.Path = "/"
2437	request.Request.Method = "POST"
2438	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2439	if err != nil {
2440		return out, metadata, &smithy.SerializationError{Err: err}
2441	}
2442	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2443	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribePlayerSessions")
2444
2445	jsonEncoder := smithyjson.NewEncoder()
2446	if err := awsAwsjson11_serializeOpDocumentDescribePlayerSessionsInput(input, jsonEncoder.Value); err != nil {
2447		return out, metadata, &smithy.SerializationError{Err: err}
2448	}
2449
2450	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2451		return out, metadata, &smithy.SerializationError{Err: err}
2452	}
2453
2454	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2455		return out, metadata, &smithy.SerializationError{Err: err}
2456	}
2457	in.Request = request
2458
2459	return next.HandleSerialize(ctx, in)
2460}
2461
2462type awsAwsjson11_serializeOpDescribeRuntimeConfiguration struct {
2463}
2464
2465func (*awsAwsjson11_serializeOpDescribeRuntimeConfiguration) ID() string {
2466	return "OperationSerializer"
2467}
2468
2469func (m *awsAwsjson11_serializeOpDescribeRuntimeConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2470	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2471) {
2472	request, ok := in.Request.(*smithyhttp.Request)
2473	if !ok {
2474		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2475	}
2476
2477	input, ok := in.Parameters.(*DescribeRuntimeConfigurationInput)
2478	_ = input
2479	if !ok {
2480		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2481	}
2482
2483	request.Request.URL.Path = "/"
2484	request.Request.Method = "POST"
2485	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2486	if err != nil {
2487		return out, metadata, &smithy.SerializationError{Err: err}
2488	}
2489	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2490	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeRuntimeConfiguration")
2491
2492	jsonEncoder := smithyjson.NewEncoder()
2493	if err := awsAwsjson11_serializeOpDocumentDescribeRuntimeConfigurationInput(input, jsonEncoder.Value); err != nil {
2494		return out, metadata, &smithy.SerializationError{Err: err}
2495	}
2496
2497	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2498		return out, metadata, &smithy.SerializationError{Err: err}
2499	}
2500
2501	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2502		return out, metadata, &smithy.SerializationError{Err: err}
2503	}
2504	in.Request = request
2505
2506	return next.HandleSerialize(ctx, in)
2507}
2508
2509type awsAwsjson11_serializeOpDescribeScalingPolicies struct {
2510}
2511
2512func (*awsAwsjson11_serializeOpDescribeScalingPolicies) ID() string {
2513	return "OperationSerializer"
2514}
2515
2516func (m *awsAwsjson11_serializeOpDescribeScalingPolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2517	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2518) {
2519	request, ok := in.Request.(*smithyhttp.Request)
2520	if !ok {
2521		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2522	}
2523
2524	input, ok := in.Parameters.(*DescribeScalingPoliciesInput)
2525	_ = input
2526	if !ok {
2527		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2528	}
2529
2530	request.Request.URL.Path = "/"
2531	request.Request.Method = "POST"
2532	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2533	if err != nil {
2534		return out, metadata, &smithy.SerializationError{Err: err}
2535	}
2536	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2537	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeScalingPolicies")
2538
2539	jsonEncoder := smithyjson.NewEncoder()
2540	if err := awsAwsjson11_serializeOpDocumentDescribeScalingPoliciesInput(input, jsonEncoder.Value); err != nil {
2541		return out, metadata, &smithy.SerializationError{Err: err}
2542	}
2543
2544	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2545		return out, metadata, &smithy.SerializationError{Err: err}
2546	}
2547
2548	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2549		return out, metadata, &smithy.SerializationError{Err: err}
2550	}
2551	in.Request = request
2552
2553	return next.HandleSerialize(ctx, in)
2554}
2555
2556type awsAwsjson11_serializeOpDescribeScript struct {
2557}
2558
2559func (*awsAwsjson11_serializeOpDescribeScript) ID() string {
2560	return "OperationSerializer"
2561}
2562
2563func (m *awsAwsjson11_serializeOpDescribeScript) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2564	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2565) {
2566	request, ok := in.Request.(*smithyhttp.Request)
2567	if !ok {
2568		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2569	}
2570
2571	input, ok := in.Parameters.(*DescribeScriptInput)
2572	_ = input
2573	if !ok {
2574		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2575	}
2576
2577	request.Request.URL.Path = "/"
2578	request.Request.Method = "POST"
2579	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2580	if err != nil {
2581		return out, metadata, &smithy.SerializationError{Err: err}
2582	}
2583	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2584	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeScript")
2585
2586	jsonEncoder := smithyjson.NewEncoder()
2587	if err := awsAwsjson11_serializeOpDocumentDescribeScriptInput(input, jsonEncoder.Value); err != nil {
2588		return out, metadata, &smithy.SerializationError{Err: err}
2589	}
2590
2591	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2592		return out, metadata, &smithy.SerializationError{Err: err}
2593	}
2594
2595	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2596		return out, metadata, &smithy.SerializationError{Err: err}
2597	}
2598	in.Request = request
2599
2600	return next.HandleSerialize(ctx, in)
2601}
2602
2603type awsAwsjson11_serializeOpDescribeVpcPeeringAuthorizations struct {
2604}
2605
2606func (*awsAwsjson11_serializeOpDescribeVpcPeeringAuthorizations) ID() string {
2607	return "OperationSerializer"
2608}
2609
2610func (m *awsAwsjson11_serializeOpDescribeVpcPeeringAuthorizations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2611	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2612) {
2613	request, ok := in.Request.(*smithyhttp.Request)
2614	if !ok {
2615		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2616	}
2617
2618	input, ok := in.Parameters.(*DescribeVpcPeeringAuthorizationsInput)
2619	_ = input
2620	if !ok {
2621		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2622	}
2623
2624	request.Request.URL.Path = "/"
2625	request.Request.Method = "POST"
2626	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2627	if err != nil {
2628		return out, metadata, &smithy.SerializationError{Err: err}
2629	}
2630	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2631	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeVpcPeeringAuthorizations")
2632
2633	jsonEncoder := smithyjson.NewEncoder()
2634	if err := awsAwsjson11_serializeOpDocumentDescribeVpcPeeringAuthorizationsInput(input, jsonEncoder.Value); err != nil {
2635		return out, metadata, &smithy.SerializationError{Err: err}
2636	}
2637
2638	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2639		return out, metadata, &smithy.SerializationError{Err: err}
2640	}
2641
2642	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2643		return out, metadata, &smithy.SerializationError{Err: err}
2644	}
2645	in.Request = request
2646
2647	return next.HandleSerialize(ctx, in)
2648}
2649
2650type awsAwsjson11_serializeOpDescribeVpcPeeringConnections struct {
2651}
2652
2653func (*awsAwsjson11_serializeOpDescribeVpcPeeringConnections) ID() string {
2654	return "OperationSerializer"
2655}
2656
2657func (m *awsAwsjson11_serializeOpDescribeVpcPeeringConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2658	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2659) {
2660	request, ok := in.Request.(*smithyhttp.Request)
2661	if !ok {
2662		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2663	}
2664
2665	input, ok := in.Parameters.(*DescribeVpcPeeringConnectionsInput)
2666	_ = input
2667	if !ok {
2668		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2669	}
2670
2671	request.Request.URL.Path = "/"
2672	request.Request.Method = "POST"
2673	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2674	if err != nil {
2675		return out, metadata, &smithy.SerializationError{Err: err}
2676	}
2677	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2678	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.DescribeVpcPeeringConnections")
2679
2680	jsonEncoder := smithyjson.NewEncoder()
2681	if err := awsAwsjson11_serializeOpDocumentDescribeVpcPeeringConnectionsInput(input, jsonEncoder.Value); err != nil {
2682		return out, metadata, &smithy.SerializationError{Err: err}
2683	}
2684
2685	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2686		return out, metadata, &smithy.SerializationError{Err: err}
2687	}
2688
2689	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2690		return out, metadata, &smithy.SerializationError{Err: err}
2691	}
2692	in.Request = request
2693
2694	return next.HandleSerialize(ctx, in)
2695}
2696
2697type awsAwsjson11_serializeOpGetGameSessionLogUrl struct {
2698}
2699
2700func (*awsAwsjson11_serializeOpGetGameSessionLogUrl) ID() string {
2701	return "OperationSerializer"
2702}
2703
2704func (m *awsAwsjson11_serializeOpGetGameSessionLogUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2705	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2706) {
2707	request, ok := in.Request.(*smithyhttp.Request)
2708	if !ok {
2709		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2710	}
2711
2712	input, ok := in.Parameters.(*GetGameSessionLogUrlInput)
2713	_ = input
2714	if !ok {
2715		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2716	}
2717
2718	request.Request.URL.Path = "/"
2719	request.Request.Method = "POST"
2720	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2721	if err != nil {
2722		return out, metadata, &smithy.SerializationError{Err: err}
2723	}
2724	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2725	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.GetGameSessionLogUrl")
2726
2727	jsonEncoder := smithyjson.NewEncoder()
2728	if err := awsAwsjson11_serializeOpDocumentGetGameSessionLogUrlInput(input, jsonEncoder.Value); err != nil {
2729		return out, metadata, &smithy.SerializationError{Err: err}
2730	}
2731
2732	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2733		return out, metadata, &smithy.SerializationError{Err: err}
2734	}
2735
2736	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2737		return out, metadata, &smithy.SerializationError{Err: err}
2738	}
2739	in.Request = request
2740
2741	return next.HandleSerialize(ctx, in)
2742}
2743
2744type awsAwsjson11_serializeOpGetInstanceAccess struct {
2745}
2746
2747func (*awsAwsjson11_serializeOpGetInstanceAccess) ID() string {
2748	return "OperationSerializer"
2749}
2750
2751func (m *awsAwsjson11_serializeOpGetInstanceAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2752	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2753) {
2754	request, ok := in.Request.(*smithyhttp.Request)
2755	if !ok {
2756		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2757	}
2758
2759	input, ok := in.Parameters.(*GetInstanceAccessInput)
2760	_ = input
2761	if !ok {
2762		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2763	}
2764
2765	request.Request.URL.Path = "/"
2766	request.Request.Method = "POST"
2767	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2768	if err != nil {
2769		return out, metadata, &smithy.SerializationError{Err: err}
2770	}
2771	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2772	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.GetInstanceAccess")
2773
2774	jsonEncoder := smithyjson.NewEncoder()
2775	if err := awsAwsjson11_serializeOpDocumentGetInstanceAccessInput(input, jsonEncoder.Value); err != nil {
2776		return out, metadata, &smithy.SerializationError{Err: err}
2777	}
2778
2779	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2780		return out, metadata, &smithy.SerializationError{Err: err}
2781	}
2782
2783	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2784		return out, metadata, &smithy.SerializationError{Err: err}
2785	}
2786	in.Request = request
2787
2788	return next.HandleSerialize(ctx, in)
2789}
2790
2791type awsAwsjson11_serializeOpListAliases struct {
2792}
2793
2794func (*awsAwsjson11_serializeOpListAliases) ID() string {
2795	return "OperationSerializer"
2796}
2797
2798func (m *awsAwsjson11_serializeOpListAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2799	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2800) {
2801	request, ok := in.Request.(*smithyhttp.Request)
2802	if !ok {
2803		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2804	}
2805
2806	input, ok := in.Parameters.(*ListAliasesInput)
2807	_ = input
2808	if !ok {
2809		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2810	}
2811
2812	request.Request.URL.Path = "/"
2813	request.Request.Method = "POST"
2814	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2815	if err != nil {
2816		return out, metadata, &smithy.SerializationError{Err: err}
2817	}
2818	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2819	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListAliases")
2820
2821	jsonEncoder := smithyjson.NewEncoder()
2822	if err := awsAwsjson11_serializeOpDocumentListAliasesInput(input, jsonEncoder.Value); err != nil {
2823		return out, metadata, &smithy.SerializationError{Err: err}
2824	}
2825
2826	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2827		return out, metadata, &smithy.SerializationError{Err: err}
2828	}
2829
2830	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2831		return out, metadata, &smithy.SerializationError{Err: err}
2832	}
2833	in.Request = request
2834
2835	return next.HandleSerialize(ctx, in)
2836}
2837
2838type awsAwsjson11_serializeOpListBuilds struct {
2839}
2840
2841func (*awsAwsjson11_serializeOpListBuilds) ID() string {
2842	return "OperationSerializer"
2843}
2844
2845func (m *awsAwsjson11_serializeOpListBuilds) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2846	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2847) {
2848	request, ok := in.Request.(*smithyhttp.Request)
2849	if !ok {
2850		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2851	}
2852
2853	input, ok := in.Parameters.(*ListBuildsInput)
2854	_ = input
2855	if !ok {
2856		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2857	}
2858
2859	request.Request.URL.Path = "/"
2860	request.Request.Method = "POST"
2861	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2862	if err != nil {
2863		return out, metadata, &smithy.SerializationError{Err: err}
2864	}
2865	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2866	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListBuilds")
2867
2868	jsonEncoder := smithyjson.NewEncoder()
2869	if err := awsAwsjson11_serializeOpDocumentListBuildsInput(input, jsonEncoder.Value); err != nil {
2870		return out, metadata, &smithy.SerializationError{Err: err}
2871	}
2872
2873	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2874		return out, metadata, &smithy.SerializationError{Err: err}
2875	}
2876
2877	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2878		return out, metadata, &smithy.SerializationError{Err: err}
2879	}
2880	in.Request = request
2881
2882	return next.HandleSerialize(ctx, in)
2883}
2884
2885type awsAwsjson11_serializeOpListFleets struct {
2886}
2887
2888func (*awsAwsjson11_serializeOpListFleets) ID() string {
2889	return "OperationSerializer"
2890}
2891
2892func (m *awsAwsjson11_serializeOpListFleets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2893	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2894) {
2895	request, ok := in.Request.(*smithyhttp.Request)
2896	if !ok {
2897		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2898	}
2899
2900	input, ok := in.Parameters.(*ListFleetsInput)
2901	_ = input
2902	if !ok {
2903		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2904	}
2905
2906	request.Request.URL.Path = "/"
2907	request.Request.Method = "POST"
2908	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2909	if err != nil {
2910		return out, metadata, &smithy.SerializationError{Err: err}
2911	}
2912	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2913	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListFleets")
2914
2915	jsonEncoder := smithyjson.NewEncoder()
2916	if err := awsAwsjson11_serializeOpDocumentListFleetsInput(input, jsonEncoder.Value); err != nil {
2917		return out, metadata, &smithy.SerializationError{Err: err}
2918	}
2919
2920	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2921		return out, metadata, &smithy.SerializationError{Err: err}
2922	}
2923
2924	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2925		return out, metadata, &smithy.SerializationError{Err: err}
2926	}
2927	in.Request = request
2928
2929	return next.HandleSerialize(ctx, in)
2930}
2931
2932type awsAwsjson11_serializeOpListGameServerGroups struct {
2933}
2934
2935func (*awsAwsjson11_serializeOpListGameServerGroups) ID() string {
2936	return "OperationSerializer"
2937}
2938
2939func (m *awsAwsjson11_serializeOpListGameServerGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2940	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2941) {
2942	request, ok := in.Request.(*smithyhttp.Request)
2943	if !ok {
2944		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2945	}
2946
2947	input, ok := in.Parameters.(*ListGameServerGroupsInput)
2948	_ = input
2949	if !ok {
2950		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2951	}
2952
2953	request.Request.URL.Path = "/"
2954	request.Request.Method = "POST"
2955	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
2956	if err != nil {
2957		return out, metadata, &smithy.SerializationError{Err: err}
2958	}
2959	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
2960	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListGameServerGroups")
2961
2962	jsonEncoder := smithyjson.NewEncoder()
2963	if err := awsAwsjson11_serializeOpDocumentListGameServerGroupsInput(input, jsonEncoder.Value); err != nil {
2964		return out, metadata, &smithy.SerializationError{Err: err}
2965	}
2966
2967	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
2968		return out, metadata, &smithy.SerializationError{Err: err}
2969	}
2970
2971	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
2972		return out, metadata, &smithy.SerializationError{Err: err}
2973	}
2974	in.Request = request
2975
2976	return next.HandleSerialize(ctx, in)
2977}
2978
2979type awsAwsjson11_serializeOpListGameServers struct {
2980}
2981
2982func (*awsAwsjson11_serializeOpListGameServers) ID() string {
2983	return "OperationSerializer"
2984}
2985
2986func (m *awsAwsjson11_serializeOpListGameServers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
2987	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
2988) {
2989	request, ok := in.Request.(*smithyhttp.Request)
2990	if !ok {
2991		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
2992	}
2993
2994	input, ok := in.Parameters.(*ListGameServersInput)
2995	_ = input
2996	if !ok {
2997		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
2998	}
2999
3000	request.Request.URL.Path = "/"
3001	request.Request.Method = "POST"
3002	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3003	if err != nil {
3004		return out, metadata, &smithy.SerializationError{Err: err}
3005	}
3006	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3007	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListGameServers")
3008
3009	jsonEncoder := smithyjson.NewEncoder()
3010	if err := awsAwsjson11_serializeOpDocumentListGameServersInput(input, jsonEncoder.Value); err != nil {
3011		return out, metadata, &smithy.SerializationError{Err: err}
3012	}
3013
3014	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3015		return out, metadata, &smithy.SerializationError{Err: err}
3016	}
3017
3018	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3019		return out, metadata, &smithy.SerializationError{Err: err}
3020	}
3021	in.Request = request
3022
3023	return next.HandleSerialize(ctx, in)
3024}
3025
3026type awsAwsjson11_serializeOpListScripts struct {
3027}
3028
3029func (*awsAwsjson11_serializeOpListScripts) ID() string {
3030	return "OperationSerializer"
3031}
3032
3033func (m *awsAwsjson11_serializeOpListScripts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3034	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3035) {
3036	request, ok := in.Request.(*smithyhttp.Request)
3037	if !ok {
3038		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3039	}
3040
3041	input, ok := in.Parameters.(*ListScriptsInput)
3042	_ = input
3043	if !ok {
3044		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3045	}
3046
3047	request.Request.URL.Path = "/"
3048	request.Request.Method = "POST"
3049	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3050	if err != nil {
3051		return out, metadata, &smithy.SerializationError{Err: err}
3052	}
3053	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3054	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListScripts")
3055
3056	jsonEncoder := smithyjson.NewEncoder()
3057	if err := awsAwsjson11_serializeOpDocumentListScriptsInput(input, jsonEncoder.Value); err != nil {
3058		return out, metadata, &smithy.SerializationError{Err: err}
3059	}
3060
3061	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3062		return out, metadata, &smithy.SerializationError{Err: err}
3063	}
3064
3065	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3066		return out, metadata, &smithy.SerializationError{Err: err}
3067	}
3068	in.Request = request
3069
3070	return next.HandleSerialize(ctx, in)
3071}
3072
3073type awsAwsjson11_serializeOpListTagsForResource struct {
3074}
3075
3076func (*awsAwsjson11_serializeOpListTagsForResource) ID() string {
3077	return "OperationSerializer"
3078}
3079
3080func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3081	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3082) {
3083	request, ok := in.Request.(*smithyhttp.Request)
3084	if !ok {
3085		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3086	}
3087
3088	input, ok := in.Parameters.(*ListTagsForResourceInput)
3089	_ = input
3090	if !ok {
3091		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3092	}
3093
3094	request.Request.URL.Path = "/"
3095	request.Request.Method = "POST"
3096	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3097	if err != nil {
3098		return out, metadata, &smithy.SerializationError{Err: err}
3099	}
3100	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3101	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ListTagsForResource")
3102
3103	jsonEncoder := smithyjson.NewEncoder()
3104	if err := awsAwsjson11_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil {
3105		return out, metadata, &smithy.SerializationError{Err: err}
3106	}
3107
3108	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3109		return out, metadata, &smithy.SerializationError{Err: err}
3110	}
3111
3112	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3113		return out, metadata, &smithy.SerializationError{Err: err}
3114	}
3115	in.Request = request
3116
3117	return next.HandleSerialize(ctx, in)
3118}
3119
3120type awsAwsjson11_serializeOpPutScalingPolicy struct {
3121}
3122
3123func (*awsAwsjson11_serializeOpPutScalingPolicy) ID() string {
3124	return "OperationSerializer"
3125}
3126
3127func (m *awsAwsjson11_serializeOpPutScalingPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3128	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3129) {
3130	request, ok := in.Request.(*smithyhttp.Request)
3131	if !ok {
3132		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3133	}
3134
3135	input, ok := in.Parameters.(*PutScalingPolicyInput)
3136	_ = input
3137	if !ok {
3138		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3139	}
3140
3141	request.Request.URL.Path = "/"
3142	request.Request.Method = "POST"
3143	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3144	if err != nil {
3145		return out, metadata, &smithy.SerializationError{Err: err}
3146	}
3147	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3148	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.PutScalingPolicy")
3149
3150	jsonEncoder := smithyjson.NewEncoder()
3151	if err := awsAwsjson11_serializeOpDocumentPutScalingPolicyInput(input, jsonEncoder.Value); err != nil {
3152		return out, metadata, &smithy.SerializationError{Err: err}
3153	}
3154
3155	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3156		return out, metadata, &smithy.SerializationError{Err: err}
3157	}
3158
3159	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3160		return out, metadata, &smithy.SerializationError{Err: err}
3161	}
3162	in.Request = request
3163
3164	return next.HandleSerialize(ctx, in)
3165}
3166
3167type awsAwsjson11_serializeOpRegisterGameServer struct {
3168}
3169
3170func (*awsAwsjson11_serializeOpRegisterGameServer) ID() string {
3171	return "OperationSerializer"
3172}
3173
3174func (m *awsAwsjson11_serializeOpRegisterGameServer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3175	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3176) {
3177	request, ok := in.Request.(*smithyhttp.Request)
3178	if !ok {
3179		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3180	}
3181
3182	input, ok := in.Parameters.(*RegisterGameServerInput)
3183	_ = input
3184	if !ok {
3185		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3186	}
3187
3188	request.Request.URL.Path = "/"
3189	request.Request.Method = "POST"
3190	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3191	if err != nil {
3192		return out, metadata, &smithy.SerializationError{Err: err}
3193	}
3194	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3195	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.RegisterGameServer")
3196
3197	jsonEncoder := smithyjson.NewEncoder()
3198	if err := awsAwsjson11_serializeOpDocumentRegisterGameServerInput(input, jsonEncoder.Value); err != nil {
3199		return out, metadata, &smithy.SerializationError{Err: err}
3200	}
3201
3202	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3203		return out, metadata, &smithy.SerializationError{Err: err}
3204	}
3205
3206	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3207		return out, metadata, &smithy.SerializationError{Err: err}
3208	}
3209	in.Request = request
3210
3211	return next.HandleSerialize(ctx, in)
3212}
3213
3214type awsAwsjson11_serializeOpRequestUploadCredentials struct {
3215}
3216
3217func (*awsAwsjson11_serializeOpRequestUploadCredentials) ID() string {
3218	return "OperationSerializer"
3219}
3220
3221func (m *awsAwsjson11_serializeOpRequestUploadCredentials) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3222	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3223) {
3224	request, ok := in.Request.(*smithyhttp.Request)
3225	if !ok {
3226		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3227	}
3228
3229	input, ok := in.Parameters.(*RequestUploadCredentialsInput)
3230	_ = input
3231	if !ok {
3232		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3233	}
3234
3235	request.Request.URL.Path = "/"
3236	request.Request.Method = "POST"
3237	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3238	if err != nil {
3239		return out, metadata, &smithy.SerializationError{Err: err}
3240	}
3241	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3242	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.RequestUploadCredentials")
3243
3244	jsonEncoder := smithyjson.NewEncoder()
3245	if err := awsAwsjson11_serializeOpDocumentRequestUploadCredentialsInput(input, jsonEncoder.Value); err != nil {
3246		return out, metadata, &smithy.SerializationError{Err: err}
3247	}
3248
3249	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3250		return out, metadata, &smithy.SerializationError{Err: err}
3251	}
3252
3253	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3254		return out, metadata, &smithy.SerializationError{Err: err}
3255	}
3256	in.Request = request
3257
3258	return next.HandleSerialize(ctx, in)
3259}
3260
3261type awsAwsjson11_serializeOpResolveAlias struct {
3262}
3263
3264func (*awsAwsjson11_serializeOpResolveAlias) ID() string {
3265	return "OperationSerializer"
3266}
3267
3268func (m *awsAwsjson11_serializeOpResolveAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3269	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3270) {
3271	request, ok := in.Request.(*smithyhttp.Request)
3272	if !ok {
3273		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3274	}
3275
3276	input, ok := in.Parameters.(*ResolveAliasInput)
3277	_ = input
3278	if !ok {
3279		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3280	}
3281
3282	request.Request.URL.Path = "/"
3283	request.Request.Method = "POST"
3284	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3285	if err != nil {
3286		return out, metadata, &smithy.SerializationError{Err: err}
3287	}
3288	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3289	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ResolveAlias")
3290
3291	jsonEncoder := smithyjson.NewEncoder()
3292	if err := awsAwsjson11_serializeOpDocumentResolveAliasInput(input, jsonEncoder.Value); err != nil {
3293		return out, metadata, &smithy.SerializationError{Err: err}
3294	}
3295
3296	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3297		return out, metadata, &smithy.SerializationError{Err: err}
3298	}
3299
3300	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3301		return out, metadata, &smithy.SerializationError{Err: err}
3302	}
3303	in.Request = request
3304
3305	return next.HandleSerialize(ctx, in)
3306}
3307
3308type awsAwsjson11_serializeOpResumeGameServerGroup struct {
3309}
3310
3311func (*awsAwsjson11_serializeOpResumeGameServerGroup) ID() string {
3312	return "OperationSerializer"
3313}
3314
3315func (m *awsAwsjson11_serializeOpResumeGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3316	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3317) {
3318	request, ok := in.Request.(*smithyhttp.Request)
3319	if !ok {
3320		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3321	}
3322
3323	input, ok := in.Parameters.(*ResumeGameServerGroupInput)
3324	_ = input
3325	if !ok {
3326		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3327	}
3328
3329	request.Request.URL.Path = "/"
3330	request.Request.Method = "POST"
3331	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3332	if err != nil {
3333		return out, metadata, &smithy.SerializationError{Err: err}
3334	}
3335	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3336	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ResumeGameServerGroup")
3337
3338	jsonEncoder := smithyjson.NewEncoder()
3339	if err := awsAwsjson11_serializeOpDocumentResumeGameServerGroupInput(input, jsonEncoder.Value); err != nil {
3340		return out, metadata, &smithy.SerializationError{Err: err}
3341	}
3342
3343	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3344		return out, metadata, &smithy.SerializationError{Err: err}
3345	}
3346
3347	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3348		return out, metadata, &smithy.SerializationError{Err: err}
3349	}
3350	in.Request = request
3351
3352	return next.HandleSerialize(ctx, in)
3353}
3354
3355type awsAwsjson11_serializeOpSearchGameSessions struct {
3356}
3357
3358func (*awsAwsjson11_serializeOpSearchGameSessions) ID() string {
3359	return "OperationSerializer"
3360}
3361
3362func (m *awsAwsjson11_serializeOpSearchGameSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3363	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3364) {
3365	request, ok := in.Request.(*smithyhttp.Request)
3366	if !ok {
3367		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3368	}
3369
3370	input, ok := in.Parameters.(*SearchGameSessionsInput)
3371	_ = input
3372	if !ok {
3373		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3374	}
3375
3376	request.Request.URL.Path = "/"
3377	request.Request.Method = "POST"
3378	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3379	if err != nil {
3380		return out, metadata, &smithy.SerializationError{Err: err}
3381	}
3382	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3383	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.SearchGameSessions")
3384
3385	jsonEncoder := smithyjson.NewEncoder()
3386	if err := awsAwsjson11_serializeOpDocumentSearchGameSessionsInput(input, jsonEncoder.Value); err != nil {
3387		return out, metadata, &smithy.SerializationError{Err: err}
3388	}
3389
3390	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3391		return out, metadata, &smithy.SerializationError{Err: err}
3392	}
3393
3394	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3395		return out, metadata, &smithy.SerializationError{Err: err}
3396	}
3397	in.Request = request
3398
3399	return next.HandleSerialize(ctx, in)
3400}
3401
3402type awsAwsjson11_serializeOpStartFleetActions struct {
3403}
3404
3405func (*awsAwsjson11_serializeOpStartFleetActions) ID() string {
3406	return "OperationSerializer"
3407}
3408
3409func (m *awsAwsjson11_serializeOpStartFleetActions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3410	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3411) {
3412	request, ok := in.Request.(*smithyhttp.Request)
3413	if !ok {
3414		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3415	}
3416
3417	input, ok := in.Parameters.(*StartFleetActionsInput)
3418	_ = input
3419	if !ok {
3420		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3421	}
3422
3423	request.Request.URL.Path = "/"
3424	request.Request.Method = "POST"
3425	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3426	if err != nil {
3427		return out, metadata, &smithy.SerializationError{Err: err}
3428	}
3429	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3430	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StartFleetActions")
3431
3432	jsonEncoder := smithyjson.NewEncoder()
3433	if err := awsAwsjson11_serializeOpDocumentStartFleetActionsInput(input, jsonEncoder.Value); err != nil {
3434		return out, metadata, &smithy.SerializationError{Err: err}
3435	}
3436
3437	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3438		return out, metadata, &smithy.SerializationError{Err: err}
3439	}
3440
3441	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3442		return out, metadata, &smithy.SerializationError{Err: err}
3443	}
3444	in.Request = request
3445
3446	return next.HandleSerialize(ctx, in)
3447}
3448
3449type awsAwsjson11_serializeOpStartGameSessionPlacement struct {
3450}
3451
3452func (*awsAwsjson11_serializeOpStartGameSessionPlacement) ID() string {
3453	return "OperationSerializer"
3454}
3455
3456func (m *awsAwsjson11_serializeOpStartGameSessionPlacement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3457	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3458) {
3459	request, ok := in.Request.(*smithyhttp.Request)
3460	if !ok {
3461		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3462	}
3463
3464	input, ok := in.Parameters.(*StartGameSessionPlacementInput)
3465	_ = input
3466	if !ok {
3467		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3468	}
3469
3470	request.Request.URL.Path = "/"
3471	request.Request.Method = "POST"
3472	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3473	if err != nil {
3474		return out, metadata, &smithy.SerializationError{Err: err}
3475	}
3476	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3477	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StartGameSessionPlacement")
3478
3479	jsonEncoder := smithyjson.NewEncoder()
3480	if err := awsAwsjson11_serializeOpDocumentStartGameSessionPlacementInput(input, jsonEncoder.Value); err != nil {
3481		return out, metadata, &smithy.SerializationError{Err: err}
3482	}
3483
3484	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3485		return out, metadata, &smithy.SerializationError{Err: err}
3486	}
3487
3488	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3489		return out, metadata, &smithy.SerializationError{Err: err}
3490	}
3491	in.Request = request
3492
3493	return next.HandleSerialize(ctx, in)
3494}
3495
3496type awsAwsjson11_serializeOpStartMatchBackfill struct {
3497}
3498
3499func (*awsAwsjson11_serializeOpStartMatchBackfill) ID() string {
3500	return "OperationSerializer"
3501}
3502
3503func (m *awsAwsjson11_serializeOpStartMatchBackfill) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3504	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3505) {
3506	request, ok := in.Request.(*smithyhttp.Request)
3507	if !ok {
3508		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3509	}
3510
3511	input, ok := in.Parameters.(*StartMatchBackfillInput)
3512	_ = input
3513	if !ok {
3514		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3515	}
3516
3517	request.Request.URL.Path = "/"
3518	request.Request.Method = "POST"
3519	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3520	if err != nil {
3521		return out, metadata, &smithy.SerializationError{Err: err}
3522	}
3523	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3524	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StartMatchBackfill")
3525
3526	jsonEncoder := smithyjson.NewEncoder()
3527	if err := awsAwsjson11_serializeOpDocumentStartMatchBackfillInput(input, jsonEncoder.Value); err != nil {
3528		return out, metadata, &smithy.SerializationError{Err: err}
3529	}
3530
3531	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3532		return out, metadata, &smithy.SerializationError{Err: err}
3533	}
3534
3535	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3536		return out, metadata, &smithy.SerializationError{Err: err}
3537	}
3538	in.Request = request
3539
3540	return next.HandleSerialize(ctx, in)
3541}
3542
3543type awsAwsjson11_serializeOpStartMatchmaking struct {
3544}
3545
3546func (*awsAwsjson11_serializeOpStartMatchmaking) ID() string {
3547	return "OperationSerializer"
3548}
3549
3550func (m *awsAwsjson11_serializeOpStartMatchmaking) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3551	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3552) {
3553	request, ok := in.Request.(*smithyhttp.Request)
3554	if !ok {
3555		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3556	}
3557
3558	input, ok := in.Parameters.(*StartMatchmakingInput)
3559	_ = input
3560	if !ok {
3561		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3562	}
3563
3564	request.Request.URL.Path = "/"
3565	request.Request.Method = "POST"
3566	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3567	if err != nil {
3568		return out, metadata, &smithy.SerializationError{Err: err}
3569	}
3570	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3571	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StartMatchmaking")
3572
3573	jsonEncoder := smithyjson.NewEncoder()
3574	if err := awsAwsjson11_serializeOpDocumentStartMatchmakingInput(input, jsonEncoder.Value); err != nil {
3575		return out, metadata, &smithy.SerializationError{Err: err}
3576	}
3577
3578	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3579		return out, metadata, &smithy.SerializationError{Err: err}
3580	}
3581
3582	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3583		return out, metadata, &smithy.SerializationError{Err: err}
3584	}
3585	in.Request = request
3586
3587	return next.HandleSerialize(ctx, in)
3588}
3589
3590type awsAwsjson11_serializeOpStopFleetActions struct {
3591}
3592
3593func (*awsAwsjson11_serializeOpStopFleetActions) ID() string {
3594	return "OperationSerializer"
3595}
3596
3597func (m *awsAwsjson11_serializeOpStopFleetActions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3598	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3599) {
3600	request, ok := in.Request.(*smithyhttp.Request)
3601	if !ok {
3602		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3603	}
3604
3605	input, ok := in.Parameters.(*StopFleetActionsInput)
3606	_ = input
3607	if !ok {
3608		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3609	}
3610
3611	request.Request.URL.Path = "/"
3612	request.Request.Method = "POST"
3613	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3614	if err != nil {
3615		return out, metadata, &smithy.SerializationError{Err: err}
3616	}
3617	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3618	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StopFleetActions")
3619
3620	jsonEncoder := smithyjson.NewEncoder()
3621	if err := awsAwsjson11_serializeOpDocumentStopFleetActionsInput(input, jsonEncoder.Value); err != nil {
3622		return out, metadata, &smithy.SerializationError{Err: err}
3623	}
3624
3625	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3626		return out, metadata, &smithy.SerializationError{Err: err}
3627	}
3628
3629	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3630		return out, metadata, &smithy.SerializationError{Err: err}
3631	}
3632	in.Request = request
3633
3634	return next.HandleSerialize(ctx, in)
3635}
3636
3637type awsAwsjson11_serializeOpStopGameSessionPlacement struct {
3638}
3639
3640func (*awsAwsjson11_serializeOpStopGameSessionPlacement) ID() string {
3641	return "OperationSerializer"
3642}
3643
3644func (m *awsAwsjson11_serializeOpStopGameSessionPlacement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3645	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3646) {
3647	request, ok := in.Request.(*smithyhttp.Request)
3648	if !ok {
3649		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3650	}
3651
3652	input, ok := in.Parameters.(*StopGameSessionPlacementInput)
3653	_ = input
3654	if !ok {
3655		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3656	}
3657
3658	request.Request.URL.Path = "/"
3659	request.Request.Method = "POST"
3660	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3661	if err != nil {
3662		return out, metadata, &smithy.SerializationError{Err: err}
3663	}
3664	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3665	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StopGameSessionPlacement")
3666
3667	jsonEncoder := smithyjson.NewEncoder()
3668	if err := awsAwsjson11_serializeOpDocumentStopGameSessionPlacementInput(input, jsonEncoder.Value); err != nil {
3669		return out, metadata, &smithy.SerializationError{Err: err}
3670	}
3671
3672	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3673		return out, metadata, &smithy.SerializationError{Err: err}
3674	}
3675
3676	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3677		return out, metadata, &smithy.SerializationError{Err: err}
3678	}
3679	in.Request = request
3680
3681	return next.HandleSerialize(ctx, in)
3682}
3683
3684type awsAwsjson11_serializeOpStopMatchmaking struct {
3685}
3686
3687func (*awsAwsjson11_serializeOpStopMatchmaking) ID() string {
3688	return "OperationSerializer"
3689}
3690
3691func (m *awsAwsjson11_serializeOpStopMatchmaking) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3692	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3693) {
3694	request, ok := in.Request.(*smithyhttp.Request)
3695	if !ok {
3696		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3697	}
3698
3699	input, ok := in.Parameters.(*StopMatchmakingInput)
3700	_ = input
3701	if !ok {
3702		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3703	}
3704
3705	request.Request.URL.Path = "/"
3706	request.Request.Method = "POST"
3707	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3708	if err != nil {
3709		return out, metadata, &smithy.SerializationError{Err: err}
3710	}
3711	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3712	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.StopMatchmaking")
3713
3714	jsonEncoder := smithyjson.NewEncoder()
3715	if err := awsAwsjson11_serializeOpDocumentStopMatchmakingInput(input, jsonEncoder.Value); err != nil {
3716		return out, metadata, &smithy.SerializationError{Err: err}
3717	}
3718
3719	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3720		return out, metadata, &smithy.SerializationError{Err: err}
3721	}
3722
3723	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3724		return out, metadata, &smithy.SerializationError{Err: err}
3725	}
3726	in.Request = request
3727
3728	return next.HandleSerialize(ctx, in)
3729}
3730
3731type awsAwsjson11_serializeOpSuspendGameServerGroup struct {
3732}
3733
3734func (*awsAwsjson11_serializeOpSuspendGameServerGroup) ID() string {
3735	return "OperationSerializer"
3736}
3737
3738func (m *awsAwsjson11_serializeOpSuspendGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3739	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3740) {
3741	request, ok := in.Request.(*smithyhttp.Request)
3742	if !ok {
3743		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3744	}
3745
3746	input, ok := in.Parameters.(*SuspendGameServerGroupInput)
3747	_ = input
3748	if !ok {
3749		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3750	}
3751
3752	request.Request.URL.Path = "/"
3753	request.Request.Method = "POST"
3754	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3755	if err != nil {
3756		return out, metadata, &smithy.SerializationError{Err: err}
3757	}
3758	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3759	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.SuspendGameServerGroup")
3760
3761	jsonEncoder := smithyjson.NewEncoder()
3762	if err := awsAwsjson11_serializeOpDocumentSuspendGameServerGroupInput(input, jsonEncoder.Value); err != nil {
3763		return out, metadata, &smithy.SerializationError{Err: err}
3764	}
3765
3766	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3767		return out, metadata, &smithy.SerializationError{Err: err}
3768	}
3769
3770	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3771		return out, metadata, &smithy.SerializationError{Err: err}
3772	}
3773	in.Request = request
3774
3775	return next.HandleSerialize(ctx, in)
3776}
3777
3778type awsAwsjson11_serializeOpTagResource struct {
3779}
3780
3781func (*awsAwsjson11_serializeOpTagResource) ID() string {
3782	return "OperationSerializer"
3783}
3784
3785func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3786	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3787) {
3788	request, ok := in.Request.(*smithyhttp.Request)
3789	if !ok {
3790		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3791	}
3792
3793	input, ok := in.Parameters.(*TagResourceInput)
3794	_ = input
3795	if !ok {
3796		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3797	}
3798
3799	request.Request.URL.Path = "/"
3800	request.Request.Method = "POST"
3801	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3802	if err != nil {
3803		return out, metadata, &smithy.SerializationError{Err: err}
3804	}
3805	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3806	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.TagResource")
3807
3808	jsonEncoder := smithyjson.NewEncoder()
3809	if err := awsAwsjson11_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil {
3810		return out, metadata, &smithy.SerializationError{Err: err}
3811	}
3812
3813	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3814		return out, metadata, &smithy.SerializationError{Err: err}
3815	}
3816
3817	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3818		return out, metadata, &smithy.SerializationError{Err: err}
3819	}
3820	in.Request = request
3821
3822	return next.HandleSerialize(ctx, in)
3823}
3824
3825type awsAwsjson11_serializeOpUntagResource struct {
3826}
3827
3828func (*awsAwsjson11_serializeOpUntagResource) ID() string {
3829	return "OperationSerializer"
3830}
3831
3832func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3833	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3834) {
3835	request, ok := in.Request.(*smithyhttp.Request)
3836	if !ok {
3837		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3838	}
3839
3840	input, ok := in.Parameters.(*UntagResourceInput)
3841	_ = input
3842	if !ok {
3843		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3844	}
3845
3846	request.Request.URL.Path = "/"
3847	request.Request.Method = "POST"
3848	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3849	if err != nil {
3850		return out, metadata, &smithy.SerializationError{Err: err}
3851	}
3852	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3853	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UntagResource")
3854
3855	jsonEncoder := smithyjson.NewEncoder()
3856	if err := awsAwsjson11_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil {
3857		return out, metadata, &smithy.SerializationError{Err: err}
3858	}
3859
3860	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3861		return out, metadata, &smithy.SerializationError{Err: err}
3862	}
3863
3864	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3865		return out, metadata, &smithy.SerializationError{Err: err}
3866	}
3867	in.Request = request
3868
3869	return next.HandleSerialize(ctx, in)
3870}
3871
3872type awsAwsjson11_serializeOpUpdateAlias struct {
3873}
3874
3875func (*awsAwsjson11_serializeOpUpdateAlias) ID() string {
3876	return "OperationSerializer"
3877}
3878
3879func (m *awsAwsjson11_serializeOpUpdateAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3880	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3881) {
3882	request, ok := in.Request.(*smithyhttp.Request)
3883	if !ok {
3884		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3885	}
3886
3887	input, ok := in.Parameters.(*UpdateAliasInput)
3888	_ = input
3889	if !ok {
3890		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3891	}
3892
3893	request.Request.URL.Path = "/"
3894	request.Request.Method = "POST"
3895	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3896	if err != nil {
3897		return out, metadata, &smithy.SerializationError{Err: err}
3898	}
3899	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3900	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateAlias")
3901
3902	jsonEncoder := smithyjson.NewEncoder()
3903	if err := awsAwsjson11_serializeOpDocumentUpdateAliasInput(input, jsonEncoder.Value); err != nil {
3904		return out, metadata, &smithy.SerializationError{Err: err}
3905	}
3906
3907	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3908		return out, metadata, &smithy.SerializationError{Err: err}
3909	}
3910
3911	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3912		return out, metadata, &smithy.SerializationError{Err: err}
3913	}
3914	in.Request = request
3915
3916	return next.HandleSerialize(ctx, in)
3917}
3918
3919type awsAwsjson11_serializeOpUpdateBuild struct {
3920}
3921
3922func (*awsAwsjson11_serializeOpUpdateBuild) ID() string {
3923	return "OperationSerializer"
3924}
3925
3926func (m *awsAwsjson11_serializeOpUpdateBuild) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3927	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3928) {
3929	request, ok := in.Request.(*smithyhttp.Request)
3930	if !ok {
3931		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3932	}
3933
3934	input, ok := in.Parameters.(*UpdateBuildInput)
3935	_ = input
3936	if !ok {
3937		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3938	}
3939
3940	request.Request.URL.Path = "/"
3941	request.Request.Method = "POST"
3942	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3943	if err != nil {
3944		return out, metadata, &smithy.SerializationError{Err: err}
3945	}
3946	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3947	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateBuild")
3948
3949	jsonEncoder := smithyjson.NewEncoder()
3950	if err := awsAwsjson11_serializeOpDocumentUpdateBuildInput(input, jsonEncoder.Value); err != nil {
3951		return out, metadata, &smithy.SerializationError{Err: err}
3952	}
3953
3954	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
3955		return out, metadata, &smithy.SerializationError{Err: err}
3956	}
3957
3958	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
3959		return out, metadata, &smithy.SerializationError{Err: err}
3960	}
3961	in.Request = request
3962
3963	return next.HandleSerialize(ctx, in)
3964}
3965
3966type awsAwsjson11_serializeOpUpdateFleetAttributes struct {
3967}
3968
3969func (*awsAwsjson11_serializeOpUpdateFleetAttributes) ID() string {
3970	return "OperationSerializer"
3971}
3972
3973func (m *awsAwsjson11_serializeOpUpdateFleetAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
3974	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
3975) {
3976	request, ok := in.Request.(*smithyhttp.Request)
3977	if !ok {
3978		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
3979	}
3980
3981	input, ok := in.Parameters.(*UpdateFleetAttributesInput)
3982	_ = input
3983	if !ok {
3984		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
3985	}
3986
3987	request.Request.URL.Path = "/"
3988	request.Request.Method = "POST"
3989	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
3990	if err != nil {
3991		return out, metadata, &smithy.SerializationError{Err: err}
3992	}
3993	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
3994	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateFleetAttributes")
3995
3996	jsonEncoder := smithyjson.NewEncoder()
3997	if err := awsAwsjson11_serializeOpDocumentUpdateFleetAttributesInput(input, jsonEncoder.Value); err != nil {
3998		return out, metadata, &smithy.SerializationError{Err: err}
3999	}
4000
4001	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4002		return out, metadata, &smithy.SerializationError{Err: err}
4003	}
4004
4005	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4006		return out, metadata, &smithy.SerializationError{Err: err}
4007	}
4008	in.Request = request
4009
4010	return next.HandleSerialize(ctx, in)
4011}
4012
4013type awsAwsjson11_serializeOpUpdateFleetCapacity struct {
4014}
4015
4016func (*awsAwsjson11_serializeOpUpdateFleetCapacity) ID() string {
4017	return "OperationSerializer"
4018}
4019
4020func (m *awsAwsjson11_serializeOpUpdateFleetCapacity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4021	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4022) {
4023	request, ok := in.Request.(*smithyhttp.Request)
4024	if !ok {
4025		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4026	}
4027
4028	input, ok := in.Parameters.(*UpdateFleetCapacityInput)
4029	_ = input
4030	if !ok {
4031		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4032	}
4033
4034	request.Request.URL.Path = "/"
4035	request.Request.Method = "POST"
4036	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4037	if err != nil {
4038		return out, metadata, &smithy.SerializationError{Err: err}
4039	}
4040	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4041	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateFleetCapacity")
4042
4043	jsonEncoder := smithyjson.NewEncoder()
4044	if err := awsAwsjson11_serializeOpDocumentUpdateFleetCapacityInput(input, jsonEncoder.Value); err != nil {
4045		return out, metadata, &smithy.SerializationError{Err: err}
4046	}
4047
4048	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4049		return out, metadata, &smithy.SerializationError{Err: err}
4050	}
4051
4052	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4053		return out, metadata, &smithy.SerializationError{Err: err}
4054	}
4055	in.Request = request
4056
4057	return next.HandleSerialize(ctx, in)
4058}
4059
4060type awsAwsjson11_serializeOpUpdateFleetPortSettings struct {
4061}
4062
4063func (*awsAwsjson11_serializeOpUpdateFleetPortSettings) ID() string {
4064	return "OperationSerializer"
4065}
4066
4067func (m *awsAwsjson11_serializeOpUpdateFleetPortSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4068	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4069) {
4070	request, ok := in.Request.(*smithyhttp.Request)
4071	if !ok {
4072		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4073	}
4074
4075	input, ok := in.Parameters.(*UpdateFleetPortSettingsInput)
4076	_ = input
4077	if !ok {
4078		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4079	}
4080
4081	request.Request.URL.Path = "/"
4082	request.Request.Method = "POST"
4083	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4084	if err != nil {
4085		return out, metadata, &smithy.SerializationError{Err: err}
4086	}
4087	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4088	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateFleetPortSettings")
4089
4090	jsonEncoder := smithyjson.NewEncoder()
4091	if err := awsAwsjson11_serializeOpDocumentUpdateFleetPortSettingsInput(input, jsonEncoder.Value); err != nil {
4092		return out, metadata, &smithy.SerializationError{Err: err}
4093	}
4094
4095	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4096		return out, metadata, &smithy.SerializationError{Err: err}
4097	}
4098
4099	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4100		return out, metadata, &smithy.SerializationError{Err: err}
4101	}
4102	in.Request = request
4103
4104	return next.HandleSerialize(ctx, in)
4105}
4106
4107type awsAwsjson11_serializeOpUpdateGameServer struct {
4108}
4109
4110func (*awsAwsjson11_serializeOpUpdateGameServer) ID() string {
4111	return "OperationSerializer"
4112}
4113
4114func (m *awsAwsjson11_serializeOpUpdateGameServer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4115	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4116) {
4117	request, ok := in.Request.(*smithyhttp.Request)
4118	if !ok {
4119		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4120	}
4121
4122	input, ok := in.Parameters.(*UpdateGameServerInput)
4123	_ = input
4124	if !ok {
4125		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4126	}
4127
4128	request.Request.URL.Path = "/"
4129	request.Request.Method = "POST"
4130	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4131	if err != nil {
4132		return out, metadata, &smithy.SerializationError{Err: err}
4133	}
4134	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4135	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateGameServer")
4136
4137	jsonEncoder := smithyjson.NewEncoder()
4138	if err := awsAwsjson11_serializeOpDocumentUpdateGameServerInput(input, jsonEncoder.Value); err != nil {
4139		return out, metadata, &smithy.SerializationError{Err: err}
4140	}
4141
4142	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4143		return out, metadata, &smithy.SerializationError{Err: err}
4144	}
4145
4146	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4147		return out, metadata, &smithy.SerializationError{Err: err}
4148	}
4149	in.Request = request
4150
4151	return next.HandleSerialize(ctx, in)
4152}
4153
4154type awsAwsjson11_serializeOpUpdateGameServerGroup struct {
4155}
4156
4157func (*awsAwsjson11_serializeOpUpdateGameServerGroup) ID() string {
4158	return "OperationSerializer"
4159}
4160
4161func (m *awsAwsjson11_serializeOpUpdateGameServerGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4162	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4163) {
4164	request, ok := in.Request.(*smithyhttp.Request)
4165	if !ok {
4166		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4167	}
4168
4169	input, ok := in.Parameters.(*UpdateGameServerGroupInput)
4170	_ = input
4171	if !ok {
4172		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4173	}
4174
4175	request.Request.URL.Path = "/"
4176	request.Request.Method = "POST"
4177	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4178	if err != nil {
4179		return out, metadata, &smithy.SerializationError{Err: err}
4180	}
4181	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4182	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateGameServerGroup")
4183
4184	jsonEncoder := smithyjson.NewEncoder()
4185	if err := awsAwsjson11_serializeOpDocumentUpdateGameServerGroupInput(input, jsonEncoder.Value); err != nil {
4186		return out, metadata, &smithy.SerializationError{Err: err}
4187	}
4188
4189	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4190		return out, metadata, &smithy.SerializationError{Err: err}
4191	}
4192
4193	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4194		return out, metadata, &smithy.SerializationError{Err: err}
4195	}
4196	in.Request = request
4197
4198	return next.HandleSerialize(ctx, in)
4199}
4200
4201type awsAwsjson11_serializeOpUpdateGameSession struct {
4202}
4203
4204func (*awsAwsjson11_serializeOpUpdateGameSession) ID() string {
4205	return "OperationSerializer"
4206}
4207
4208func (m *awsAwsjson11_serializeOpUpdateGameSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4209	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4210) {
4211	request, ok := in.Request.(*smithyhttp.Request)
4212	if !ok {
4213		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4214	}
4215
4216	input, ok := in.Parameters.(*UpdateGameSessionInput)
4217	_ = input
4218	if !ok {
4219		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4220	}
4221
4222	request.Request.URL.Path = "/"
4223	request.Request.Method = "POST"
4224	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4225	if err != nil {
4226		return out, metadata, &smithy.SerializationError{Err: err}
4227	}
4228	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4229	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateGameSession")
4230
4231	jsonEncoder := smithyjson.NewEncoder()
4232	if err := awsAwsjson11_serializeOpDocumentUpdateGameSessionInput(input, jsonEncoder.Value); err != nil {
4233		return out, metadata, &smithy.SerializationError{Err: err}
4234	}
4235
4236	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4237		return out, metadata, &smithy.SerializationError{Err: err}
4238	}
4239
4240	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4241		return out, metadata, &smithy.SerializationError{Err: err}
4242	}
4243	in.Request = request
4244
4245	return next.HandleSerialize(ctx, in)
4246}
4247
4248type awsAwsjson11_serializeOpUpdateGameSessionQueue struct {
4249}
4250
4251func (*awsAwsjson11_serializeOpUpdateGameSessionQueue) ID() string {
4252	return "OperationSerializer"
4253}
4254
4255func (m *awsAwsjson11_serializeOpUpdateGameSessionQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4256	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4257) {
4258	request, ok := in.Request.(*smithyhttp.Request)
4259	if !ok {
4260		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4261	}
4262
4263	input, ok := in.Parameters.(*UpdateGameSessionQueueInput)
4264	_ = input
4265	if !ok {
4266		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4267	}
4268
4269	request.Request.URL.Path = "/"
4270	request.Request.Method = "POST"
4271	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4272	if err != nil {
4273		return out, metadata, &smithy.SerializationError{Err: err}
4274	}
4275	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4276	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateGameSessionQueue")
4277
4278	jsonEncoder := smithyjson.NewEncoder()
4279	if err := awsAwsjson11_serializeOpDocumentUpdateGameSessionQueueInput(input, jsonEncoder.Value); err != nil {
4280		return out, metadata, &smithy.SerializationError{Err: err}
4281	}
4282
4283	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4284		return out, metadata, &smithy.SerializationError{Err: err}
4285	}
4286
4287	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4288		return out, metadata, &smithy.SerializationError{Err: err}
4289	}
4290	in.Request = request
4291
4292	return next.HandleSerialize(ctx, in)
4293}
4294
4295type awsAwsjson11_serializeOpUpdateMatchmakingConfiguration struct {
4296}
4297
4298func (*awsAwsjson11_serializeOpUpdateMatchmakingConfiguration) ID() string {
4299	return "OperationSerializer"
4300}
4301
4302func (m *awsAwsjson11_serializeOpUpdateMatchmakingConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4303	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4304) {
4305	request, ok := in.Request.(*smithyhttp.Request)
4306	if !ok {
4307		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4308	}
4309
4310	input, ok := in.Parameters.(*UpdateMatchmakingConfigurationInput)
4311	_ = input
4312	if !ok {
4313		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4314	}
4315
4316	request.Request.URL.Path = "/"
4317	request.Request.Method = "POST"
4318	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4319	if err != nil {
4320		return out, metadata, &smithy.SerializationError{Err: err}
4321	}
4322	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4323	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateMatchmakingConfiguration")
4324
4325	jsonEncoder := smithyjson.NewEncoder()
4326	if err := awsAwsjson11_serializeOpDocumentUpdateMatchmakingConfigurationInput(input, jsonEncoder.Value); err != nil {
4327		return out, metadata, &smithy.SerializationError{Err: err}
4328	}
4329
4330	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4331		return out, metadata, &smithy.SerializationError{Err: err}
4332	}
4333
4334	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4335		return out, metadata, &smithy.SerializationError{Err: err}
4336	}
4337	in.Request = request
4338
4339	return next.HandleSerialize(ctx, in)
4340}
4341
4342type awsAwsjson11_serializeOpUpdateRuntimeConfiguration struct {
4343}
4344
4345func (*awsAwsjson11_serializeOpUpdateRuntimeConfiguration) ID() string {
4346	return "OperationSerializer"
4347}
4348
4349func (m *awsAwsjson11_serializeOpUpdateRuntimeConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4350	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4351) {
4352	request, ok := in.Request.(*smithyhttp.Request)
4353	if !ok {
4354		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4355	}
4356
4357	input, ok := in.Parameters.(*UpdateRuntimeConfigurationInput)
4358	_ = input
4359	if !ok {
4360		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4361	}
4362
4363	request.Request.URL.Path = "/"
4364	request.Request.Method = "POST"
4365	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4366	if err != nil {
4367		return out, metadata, &smithy.SerializationError{Err: err}
4368	}
4369	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4370	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateRuntimeConfiguration")
4371
4372	jsonEncoder := smithyjson.NewEncoder()
4373	if err := awsAwsjson11_serializeOpDocumentUpdateRuntimeConfigurationInput(input, jsonEncoder.Value); err != nil {
4374		return out, metadata, &smithy.SerializationError{Err: err}
4375	}
4376
4377	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4378		return out, metadata, &smithy.SerializationError{Err: err}
4379	}
4380
4381	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4382		return out, metadata, &smithy.SerializationError{Err: err}
4383	}
4384	in.Request = request
4385
4386	return next.HandleSerialize(ctx, in)
4387}
4388
4389type awsAwsjson11_serializeOpUpdateScript struct {
4390}
4391
4392func (*awsAwsjson11_serializeOpUpdateScript) ID() string {
4393	return "OperationSerializer"
4394}
4395
4396func (m *awsAwsjson11_serializeOpUpdateScript) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4397	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4398) {
4399	request, ok := in.Request.(*smithyhttp.Request)
4400	if !ok {
4401		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4402	}
4403
4404	input, ok := in.Parameters.(*UpdateScriptInput)
4405	_ = input
4406	if !ok {
4407		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4408	}
4409
4410	request.Request.URL.Path = "/"
4411	request.Request.Method = "POST"
4412	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4413	if err != nil {
4414		return out, metadata, &smithy.SerializationError{Err: err}
4415	}
4416	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4417	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.UpdateScript")
4418
4419	jsonEncoder := smithyjson.NewEncoder()
4420	if err := awsAwsjson11_serializeOpDocumentUpdateScriptInput(input, jsonEncoder.Value); err != nil {
4421		return out, metadata, &smithy.SerializationError{Err: err}
4422	}
4423
4424	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4425		return out, metadata, &smithy.SerializationError{Err: err}
4426	}
4427
4428	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4429		return out, metadata, &smithy.SerializationError{Err: err}
4430	}
4431	in.Request = request
4432
4433	return next.HandleSerialize(ctx, in)
4434}
4435
4436type awsAwsjson11_serializeOpValidateMatchmakingRuleSet struct {
4437}
4438
4439func (*awsAwsjson11_serializeOpValidateMatchmakingRuleSet) ID() string {
4440	return "OperationSerializer"
4441}
4442
4443func (m *awsAwsjson11_serializeOpValidateMatchmakingRuleSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
4444	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
4445) {
4446	request, ok := in.Request.(*smithyhttp.Request)
4447	if !ok {
4448		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
4449	}
4450
4451	input, ok := in.Parameters.(*ValidateMatchmakingRuleSetInput)
4452	_ = input
4453	if !ok {
4454		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
4455	}
4456
4457	request.Request.URL.Path = "/"
4458	request.Request.Method = "POST"
4459	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
4460	if err != nil {
4461		return out, metadata, &smithy.SerializationError{Err: err}
4462	}
4463	httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
4464	httpBindingEncoder.SetHeader("X-Amz-Target").String("GameLift.ValidateMatchmakingRuleSet")
4465
4466	jsonEncoder := smithyjson.NewEncoder()
4467	if err := awsAwsjson11_serializeOpDocumentValidateMatchmakingRuleSetInput(input, jsonEncoder.Value); err != nil {
4468		return out, metadata, &smithy.SerializationError{Err: err}
4469	}
4470
4471	if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
4472		return out, metadata, &smithy.SerializationError{Err: err}
4473	}
4474
4475	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
4476		return out, metadata, &smithy.SerializationError{Err: err}
4477	}
4478	in.Request = request
4479
4480	return next.HandleSerialize(ctx, in)
4481}
4482func awsAwsjson11_serializeDocumentAttributeValue(v *types.AttributeValue, value smithyjson.Value) error {
4483	object := value.Object()
4484	defer object.Close()
4485
4486	if v.N != nil {
4487		ok := object.Key("N")
4488		ok.Double(*v.N)
4489	}
4490
4491	if v.S != nil {
4492		ok := object.Key("S")
4493		ok.String(*v.S)
4494	}
4495
4496	if v.SDM != nil {
4497		ok := object.Key("SDM")
4498		if err := awsAwsjson11_serializeDocumentStringDoubleMap(v.SDM, ok); err != nil {
4499			return err
4500		}
4501	}
4502
4503	if v.SL != nil {
4504		ok := object.Key("SL")
4505		if err := awsAwsjson11_serializeDocumentStringList(v.SL, ok); err != nil {
4506			return err
4507		}
4508	}
4509
4510	return nil
4511}
4512
4513func awsAwsjson11_serializeDocumentCertificateConfiguration(v *types.CertificateConfiguration, value smithyjson.Value) error {
4514	object := value.Object()
4515	defer object.Close()
4516
4517	if len(v.CertificateType) > 0 {
4518		ok := object.Key("CertificateType")
4519		ok.String(string(v.CertificateType))
4520	}
4521
4522	return nil
4523}
4524
4525func awsAwsjson11_serializeDocumentDesiredPlayerSession(v *types.DesiredPlayerSession, value smithyjson.Value) error {
4526	object := value.Object()
4527	defer object.Close()
4528
4529	if v.PlayerData != nil {
4530		ok := object.Key("PlayerData")
4531		ok.String(*v.PlayerData)
4532	}
4533
4534	if v.PlayerId != nil {
4535		ok := object.Key("PlayerId")
4536		ok.String(*v.PlayerId)
4537	}
4538
4539	return nil
4540}
4541
4542func awsAwsjson11_serializeDocumentDesiredPlayerSessionList(v []types.DesiredPlayerSession, value smithyjson.Value) error {
4543	array := value.Array()
4544	defer array.Close()
4545
4546	for i := range v {
4547		av := array.Value()
4548		if err := awsAwsjson11_serializeDocumentDesiredPlayerSession(&v[i], av); err != nil {
4549			return err
4550		}
4551	}
4552	return nil
4553}
4554
4555func awsAwsjson11_serializeDocumentFilterConfiguration(v *types.FilterConfiguration, value smithyjson.Value) error {
4556	object := value.Object()
4557	defer object.Close()
4558
4559	if v.AllowedLocations != nil {
4560		ok := object.Key("AllowedLocations")
4561		if err := awsAwsjson11_serializeDocumentLocationList(v.AllowedLocations, ok); err != nil {
4562			return err
4563		}
4564	}
4565
4566	return nil
4567}
4568
4569func awsAwsjson11_serializeDocumentFleetActionList(v []types.FleetAction, value smithyjson.Value) error {
4570	array := value.Array()
4571	defer array.Close()
4572
4573	for i := range v {
4574		av := array.Value()
4575		av.String(string(v[i]))
4576	}
4577	return nil
4578}
4579
4580func awsAwsjson11_serializeDocumentFleetIdOrArnList(v []string, value smithyjson.Value) error {
4581	array := value.Array()
4582	defer array.Close()
4583
4584	for i := range v {
4585		av := array.Value()
4586		av.String(v[i])
4587	}
4588	return nil
4589}
4590
4591func awsAwsjson11_serializeDocumentGameProperty(v *types.GameProperty, value smithyjson.Value) error {
4592	object := value.Object()
4593	defer object.Close()
4594
4595	if v.Key != nil {
4596		ok := object.Key("Key")
4597		ok.String(*v.Key)
4598	}
4599
4600	if v.Value != nil {
4601		ok := object.Key("Value")
4602		ok.String(*v.Value)
4603	}
4604
4605	return nil
4606}
4607
4608func awsAwsjson11_serializeDocumentGamePropertyList(v []types.GameProperty, value smithyjson.Value) error {
4609	array := value.Array()
4610	defer array.Close()
4611
4612	for i := range v {
4613		av := array.Value()
4614		if err := awsAwsjson11_serializeDocumentGameProperty(&v[i], av); err != nil {
4615			return err
4616		}
4617	}
4618	return nil
4619}
4620
4621func awsAwsjson11_serializeDocumentGameServerGroupActions(v []types.GameServerGroupAction, value smithyjson.Value) error {
4622	array := value.Array()
4623	defer array.Close()
4624
4625	for i := range v {
4626		av := array.Value()
4627		av.String(string(v[i]))
4628	}
4629	return nil
4630}
4631
4632func awsAwsjson11_serializeDocumentGameServerGroupAutoScalingPolicy(v *types.GameServerGroupAutoScalingPolicy, value smithyjson.Value) error {
4633	object := value.Object()
4634	defer object.Close()
4635
4636	if v.EstimatedInstanceWarmup != nil {
4637		ok := object.Key("EstimatedInstanceWarmup")
4638		ok.Integer(*v.EstimatedInstanceWarmup)
4639	}
4640
4641	if v.TargetTrackingConfiguration != nil {
4642		ok := object.Key("TargetTrackingConfiguration")
4643		if err := awsAwsjson11_serializeDocumentTargetTrackingConfiguration(v.TargetTrackingConfiguration, ok); err != nil {
4644			return err
4645		}
4646	}
4647
4648	return nil
4649}
4650
4651func awsAwsjson11_serializeDocumentGameServerInstanceIds(v []string, value smithyjson.Value) error {
4652	array := value.Array()
4653	defer array.Close()
4654
4655	for i := range v {
4656		av := array.Value()
4657		av.String(v[i])
4658	}
4659	return nil
4660}
4661
4662func awsAwsjson11_serializeDocumentGameSessionQueueDestination(v *types.GameSessionQueueDestination, value smithyjson.Value) error {
4663	object := value.Object()
4664	defer object.Close()
4665
4666	if v.DestinationArn != nil {
4667		ok := object.Key("DestinationArn")
4668		ok.String(*v.DestinationArn)
4669	}
4670
4671	return nil
4672}
4673
4674func awsAwsjson11_serializeDocumentGameSessionQueueDestinationList(v []types.GameSessionQueueDestination, value smithyjson.Value) error {
4675	array := value.Array()
4676	defer array.Close()
4677
4678	for i := range v {
4679		av := array.Value()
4680		if err := awsAwsjson11_serializeDocumentGameSessionQueueDestination(&v[i], av); err != nil {
4681			return err
4682		}
4683	}
4684	return nil
4685}
4686
4687func awsAwsjson11_serializeDocumentGameSessionQueueNameOrArnList(v []string, value smithyjson.Value) error {
4688	array := value.Array()
4689	defer array.Close()
4690
4691	for i := range v {
4692		av := array.Value()
4693		av.String(v[i])
4694	}
4695	return nil
4696}
4697
4698func awsAwsjson11_serializeDocumentInstanceDefinition(v *types.InstanceDefinition, value smithyjson.Value) error {
4699	object := value.Object()
4700	defer object.Close()
4701
4702	if len(v.InstanceType) > 0 {
4703		ok := object.Key("InstanceType")
4704		ok.String(string(v.InstanceType))
4705	}
4706
4707	if v.WeightedCapacity != nil {
4708		ok := object.Key("WeightedCapacity")
4709		ok.String(*v.WeightedCapacity)
4710	}
4711
4712	return nil
4713}
4714
4715func awsAwsjson11_serializeDocumentInstanceDefinitions(v []types.InstanceDefinition, value smithyjson.Value) error {
4716	array := value.Array()
4717	defer array.Close()
4718
4719	for i := range v {
4720		av := array.Value()
4721		if err := awsAwsjson11_serializeDocumentInstanceDefinition(&v[i], av); err != nil {
4722			return err
4723		}
4724	}
4725	return nil
4726}
4727
4728func awsAwsjson11_serializeDocumentIpPermission(v *types.IpPermission, value smithyjson.Value) error {
4729	object := value.Object()
4730	defer object.Close()
4731
4732	if v.FromPort != nil {
4733		ok := object.Key("FromPort")
4734		ok.Integer(*v.FromPort)
4735	}
4736
4737	if v.IpRange != nil {
4738		ok := object.Key("IpRange")
4739		ok.String(*v.IpRange)
4740	}
4741
4742	if len(v.Protocol) > 0 {
4743		ok := object.Key("Protocol")
4744		ok.String(string(v.Protocol))
4745	}
4746
4747	if v.ToPort != nil {
4748		ok := object.Key("ToPort")
4749		ok.Integer(*v.ToPort)
4750	}
4751
4752	return nil
4753}
4754
4755func awsAwsjson11_serializeDocumentIpPermissionsList(v []types.IpPermission, value smithyjson.Value) error {
4756	array := value.Array()
4757	defer array.Close()
4758
4759	for i := range v {
4760		av := array.Value()
4761		if err := awsAwsjson11_serializeDocumentIpPermission(&v[i], av); err != nil {
4762			return err
4763		}
4764	}
4765	return nil
4766}
4767
4768func awsAwsjson11_serializeDocumentLatencyMap(v map[string]int32, value smithyjson.Value) error {
4769	object := value.Object()
4770	defer object.Close()
4771
4772	for key := range v {
4773		om := object.Key(key)
4774		om.Integer(v[key])
4775	}
4776	return nil
4777}
4778
4779func awsAwsjson11_serializeDocumentLaunchTemplateSpecification(v *types.LaunchTemplateSpecification, value smithyjson.Value) error {
4780	object := value.Object()
4781	defer object.Close()
4782
4783	if v.LaunchTemplateId != nil {
4784		ok := object.Key("LaunchTemplateId")
4785		ok.String(*v.LaunchTemplateId)
4786	}
4787
4788	if v.LaunchTemplateName != nil {
4789		ok := object.Key("LaunchTemplateName")
4790		ok.String(*v.LaunchTemplateName)
4791	}
4792
4793	if v.Version != nil {
4794		ok := object.Key("Version")
4795		ok.String(*v.Version)
4796	}
4797
4798	return nil
4799}
4800
4801func awsAwsjson11_serializeDocumentLocationConfiguration(v *types.LocationConfiguration, value smithyjson.Value) error {
4802	object := value.Object()
4803	defer object.Close()
4804
4805	if v.Location != nil {
4806		ok := object.Key("Location")
4807		ok.String(*v.Location)
4808	}
4809
4810	return nil
4811}
4812
4813func awsAwsjson11_serializeDocumentLocationConfigurationList(v []types.LocationConfiguration, value smithyjson.Value) error {
4814	array := value.Array()
4815	defer array.Close()
4816
4817	for i := range v {
4818		av := array.Value()
4819		if err := awsAwsjson11_serializeDocumentLocationConfiguration(&v[i], av); err != nil {
4820			return err
4821		}
4822	}
4823	return nil
4824}
4825
4826func awsAwsjson11_serializeDocumentLocationList(v []string, value smithyjson.Value) error {
4827	array := value.Array()
4828	defer array.Close()
4829
4830	for i := range v {
4831		av := array.Value()
4832		av.String(v[i])
4833	}
4834	return nil
4835}
4836
4837func awsAwsjson11_serializeDocumentMatchmakingConfigurationNameList(v []string, value smithyjson.Value) error {
4838	array := value.Array()
4839	defer array.Close()
4840
4841	for i := range v {
4842		av := array.Value()
4843		av.String(v[i])
4844	}
4845	return nil
4846}
4847
4848func awsAwsjson11_serializeDocumentMatchmakingIdList(v []string, value smithyjson.Value) error {
4849	array := value.Array()
4850	defer array.Close()
4851
4852	for i := range v {
4853		av := array.Value()
4854		av.String(v[i])
4855	}
4856	return nil
4857}
4858
4859func awsAwsjson11_serializeDocumentMatchmakingRuleSetNameList(v []string, value smithyjson.Value) error {
4860	array := value.Array()
4861	defer array.Close()
4862
4863	for i := range v {
4864		av := array.Value()
4865		av.String(v[i])
4866	}
4867	return nil
4868}
4869
4870func awsAwsjson11_serializeDocumentMetricGroupList(v []string, value smithyjson.Value) error {
4871	array := value.Array()
4872	defer array.Close()
4873
4874	for i := range v {
4875		av := array.Value()
4876		av.String(v[i])
4877	}
4878	return nil
4879}
4880
4881func awsAwsjson11_serializeDocumentPlayer(v *types.Player, value smithyjson.Value) error {
4882	object := value.Object()
4883	defer object.Close()
4884
4885	if v.LatencyInMs != nil {
4886		ok := object.Key("LatencyInMs")
4887		if err := awsAwsjson11_serializeDocumentLatencyMap(v.LatencyInMs, ok); err != nil {
4888			return err
4889		}
4890	}
4891
4892	if v.PlayerAttributes != nil {
4893		ok := object.Key("PlayerAttributes")
4894		if err := awsAwsjson11_serializeDocumentPlayerAttributeMap(v.PlayerAttributes, ok); err != nil {
4895			return err
4896		}
4897	}
4898
4899	if v.PlayerId != nil {
4900		ok := object.Key("PlayerId")
4901		ok.String(*v.PlayerId)
4902	}
4903
4904	if v.Team != nil {
4905		ok := object.Key("Team")
4906		ok.String(*v.Team)
4907	}
4908
4909	return nil
4910}
4911
4912func awsAwsjson11_serializeDocumentPlayerAttributeMap(v map[string]types.AttributeValue, value smithyjson.Value) error {
4913	object := value.Object()
4914	defer object.Close()
4915
4916	for key := range v {
4917		om := object.Key(key)
4918		mapVar := v[key]
4919		if err := awsAwsjson11_serializeDocumentAttributeValue(&mapVar, om); err != nil {
4920			return err
4921		}
4922	}
4923	return nil
4924}
4925
4926func awsAwsjson11_serializeDocumentPlayerDataMap(v map[string]string, value smithyjson.Value) error {
4927	object := value.Object()
4928	defer object.Close()
4929
4930	for key := range v {
4931		om := object.Key(key)
4932		om.String(v[key])
4933	}
4934	return nil
4935}
4936
4937func awsAwsjson11_serializeDocumentPlayerIdList(v []string, value smithyjson.Value) error {
4938	array := value.Array()
4939	defer array.Close()
4940
4941	for i := range v {
4942		av := array.Value()
4943		av.String(v[i])
4944	}
4945	return nil
4946}
4947
4948func awsAwsjson11_serializeDocumentPlayerLatency(v *types.PlayerLatency, value smithyjson.Value) error {
4949	object := value.Object()
4950	defer object.Close()
4951
4952	if v.LatencyInMilliseconds != 0 {
4953		ok := object.Key("LatencyInMilliseconds")
4954		ok.Float(v.LatencyInMilliseconds)
4955	}
4956
4957	if v.PlayerId != nil {
4958		ok := object.Key("PlayerId")
4959		ok.String(*v.PlayerId)
4960	}
4961
4962	if v.RegionIdentifier != nil {
4963		ok := object.Key("RegionIdentifier")
4964		ok.String(*v.RegionIdentifier)
4965	}
4966
4967	return nil
4968}
4969
4970func awsAwsjson11_serializeDocumentPlayerLatencyList(v []types.PlayerLatency, value smithyjson.Value) error {
4971	array := value.Array()
4972	defer array.Close()
4973
4974	for i := range v {
4975		av := array.Value()
4976		if err := awsAwsjson11_serializeDocumentPlayerLatency(&v[i], av); err != nil {
4977			return err
4978		}
4979	}
4980	return nil
4981}
4982
4983func awsAwsjson11_serializeDocumentPlayerLatencyPolicy(v *types.PlayerLatencyPolicy, value smithyjson.Value) error {
4984	object := value.Object()
4985	defer object.Close()
4986
4987	if v.MaximumIndividualPlayerLatencyMilliseconds != nil {
4988		ok := object.Key("MaximumIndividualPlayerLatencyMilliseconds")
4989		ok.Integer(*v.MaximumIndividualPlayerLatencyMilliseconds)
4990	}
4991
4992	if v.PolicyDurationSeconds != nil {
4993		ok := object.Key("PolicyDurationSeconds")
4994		ok.Integer(*v.PolicyDurationSeconds)
4995	}
4996
4997	return nil
4998}
4999
5000func awsAwsjson11_serializeDocumentPlayerLatencyPolicyList(v []types.PlayerLatencyPolicy, value smithyjson.Value) error {
5001	array := value.Array()
5002	defer array.Close()
5003
5004	for i := range v {
5005		av := array.Value()
5006		if err := awsAwsjson11_serializeDocumentPlayerLatencyPolicy(&v[i], av); err != nil {
5007			return err
5008		}
5009	}
5010	return nil
5011}
5012
5013func awsAwsjson11_serializeDocumentPlayerList(v []types.Player, value smithyjson.Value) error {
5014	array := value.Array()
5015	defer array.Close()
5016
5017	for i := range v {
5018		av := array.Value()
5019		if err := awsAwsjson11_serializeDocumentPlayer(&v[i], av); err != nil {
5020			return err
5021		}
5022	}
5023	return nil
5024}
5025
5026func awsAwsjson11_serializeDocumentPriorityConfiguration(v *types.PriorityConfiguration, value smithyjson.Value) error {
5027	object := value.Object()
5028	defer object.Close()
5029
5030	if v.LocationOrder != nil {
5031		ok := object.Key("LocationOrder")
5032		if err := awsAwsjson11_serializeDocumentLocationList(v.LocationOrder, ok); err != nil {
5033			return err
5034		}
5035	}
5036
5037	if v.PriorityOrder != nil {
5038		ok := object.Key("PriorityOrder")
5039		if err := awsAwsjson11_serializeDocumentPriorityTypeList(v.PriorityOrder, ok); err != nil {
5040			return err
5041		}
5042	}
5043
5044	return nil
5045}
5046
5047func awsAwsjson11_serializeDocumentPriorityTypeList(v []types.PriorityType, value smithyjson.Value) error {
5048	array := value.Array()
5049	defer array.Close()
5050
5051	for i := range v {
5052		av := array.Value()
5053		av.String(string(v[i]))
5054	}
5055	return nil
5056}
5057
5058func awsAwsjson11_serializeDocumentQueueArnsList(v []string, value smithyjson.Value) error {
5059	array := value.Array()
5060	defer array.Close()
5061
5062	for i := range v {
5063		av := array.Value()
5064		av.String(v[i])
5065	}
5066	return nil
5067}
5068
5069func awsAwsjson11_serializeDocumentResourceCreationLimitPolicy(v *types.ResourceCreationLimitPolicy, value smithyjson.Value) error {
5070	object := value.Object()
5071	defer object.Close()
5072
5073	if v.NewGameSessionsPerCreator != nil {
5074		ok := object.Key("NewGameSessionsPerCreator")
5075		ok.Integer(*v.NewGameSessionsPerCreator)
5076	}
5077
5078	if v.PolicyPeriodInMinutes != nil {
5079		ok := object.Key("PolicyPeriodInMinutes")
5080		ok.Integer(*v.PolicyPeriodInMinutes)
5081	}
5082
5083	return nil
5084}
5085
5086func awsAwsjson11_serializeDocumentRoutingStrategy(v *types.RoutingStrategy, value smithyjson.Value) error {
5087	object := value.Object()
5088	defer object.Close()
5089
5090	if v.FleetId != nil {
5091		ok := object.Key("FleetId")
5092		ok.String(*v.FleetId)
5093	}
5094
5095	if v.Message != nil {
5096		ok := object.Key("Message")
5097		ok.String(*v.Message)
5098	}
5099
5100	if len(v.Type) > 0 {
5101		ok := object.Key("Type")
5102		ok.String(string(v.Type))
5103	}
5104
5105	return nil
5106}
5107
5108func awsAwsjson11_serializeDocumentRuntimeConfiguration(v *types.RuntimeConfiguration, value smithyjson.Value) error {
5109	object := value.Object()
5110	defer object.Close()
5111
5112	if v.GameSessionActivationTimeoutSeconds != nil {
5113		ok := object.Key("GameSessionActivationTimeoutSeconds")
5114		ok.Integer(*v.GameSessionActivationTimeoutSeconds)
5115	}
5116
5117	if v.MaxConcurrentGameSessionActivations != nil {
5118		ok := object.Key("MaxConcurrentGameSessionActivations")
5119		ok.Integer(*v.MaxConcurrentGameSessionActivations)
5120	}
5121
5122	if v.ServerProcesses != nil {
5123		ok := object.Key("ServerProcesses")
5124		if err := awsAwsjson11_serializeDocumentServerProcessList(v.ServerProcesses, ok); err != nil {
5125			return err
5126		}
5127	}
5128
5129	return nil
5130}
5131
5132func awsAwsjson11_serializeDocumentS3Location(v *types.S3Location, value smithyjson.Value) error {
5133	object := value.Object()
5134	defer object.Close()
5135
5136	if v.Bucket != nil {
5137		ok := object.Key("Bucket")
5138		ok.String(*v.Bucket)
5139	}
5140
5141	if v.Key != nil {
5142		ok := object.Key("Key")
5143		ok.String(*v.Key)
5144	}
5145
5146	if v.ObjectVersion != nil {
5147		ok := object.Key("ObjectVersion")
5148		ok.String(*v.ObjectVersion)
5149	}
5150
5151	if v.RoleArn != nil {
5152		ok := object.Key("RoleArn")
5153		ok.String(*v.RoleArn)
5154	}
5155
5156	return nil
5157}
5158
5159func awsAwsjson11_serializeDocumentServerProcess(v *types.ServerProcess, value smithyjson.Value) error {
5160	object := value.Object()
5161	defer object.Close()
5162
5163	if v.ConcurrentExecutions != nil {
5164		ok := object.Key("ConcurrentExecutions")
5165		ok.Integer(*v.ConcurrentExecutions)
5166	}
5167
5168	if v.LaunchPath != nil {
5169		ok := object.Key("LaunchPath")
5170		ok.String(*v.LaunchPath)
5171	}
5172
5173	if v.Parameters != nil {
5174		ok := object.Key("Parameters")
5175		ok.String(*v.Parameters)
5176	}
5177
5178	return nil
5179}
5180
5181func awsAwsjson11_serializeDocumentServerProcessList(v []types.ServerProcess, value smithyjson.Value) error {
5182	array := value.Array()
5183	defer array.Close()
5184
5185	for i := range v {
5186		av := array.Value()
5187		if err := awsAwsjson11_serializeDocumentServerProcess(&v[i], av); err != nil {
5188			return err
5189		}
5190	}
5191	return nil
5192}
5193
5194func awsAwsjson11_serializeDocumentStringDoubleMap(v map[string]float64, value smithyjson.Value) error {
5195	object := value.Object()
5196	defer object.Close()
5197
5198	for key := range v {
5199		om := object.Key(key)
5200		om.Double(v[key])
5201	}
5202	return nil
5203}
5204
5205func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error {
5206	array := value.Array()
5207	defer array.Close()
5208
5209	for i := range v {
5210		av := array.Value()
5211		av.String(v[i])
5212	}
5213	return nil
5214}
5215
5216func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error {
5217	object := value.Object()
5218	defer object.Close()
5219
5220	if v.Key != nil {
5221		ok := object.Key("Key")
5222		ok.String(*v.Key)
5223	}
5224
5225	if v.Value != nil {
5226		ok := object.Key("Value")
5227		ok.String(*v.Value)
5228	}
5229
5230	return nil
5231}
5232
5233func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error {
5234	array := value.Array()
5235	defer array.Close()
5236
5237	for i := range v {
5238		av := array.Value()
5239		av.String(v[i])
5240	}
5241	return nil
5242}
5243
5244func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error {
5245	array := value.Array()
5246	defer array.Close()
5247
5248	for i := range v {
5249		av := array.Value()
5250		if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil {
5251			return err
5252		}
5253	}
5254	return nil
5255}
5256
5257func awsAwsjson11_serializeDocumentTargetConfiguration(v *types.TargetConfiguration, value smithyjson.Value) error {
5258	object := value.Object()
5259	defer object.Close()
5260
5261	{
5262		ok := object.Key("TargetValue")
5263		ok.Double(v.TargetValue)
5264	}
5265
5266	return nil
5267}
5268
5269func awsAwsjson11_serializeDocumentTargetTrackingConfiguration(v *types.TargetTrackingConfiguration, value smithyjson.Value) error {
5270	object := value.Object()
5271	defer object.Close()
5272
5273	if v.TargetValue != nil {
5274		ok := object.Key("TargetValue")
5275		ok.Double(*v.TargetValue)
5276	}
5277
5278	return nil
5279}
5280
5281func awsAwsjson11_serializeDocumentVpcSubnets(v []string, value smithyjson.Value) error {
5282	array := value.Array()
5283	defer array.Close()
5284
5285	for i := range v {
5286		av := array.Value()
5287		av.String(v[i])
5288	}
5289	return nil
5290}
5291
5292func awsAwsjson11_serializeOpDocumentAcceptMatchInput(v *AcceptMatchInput, value smithyjson.Value) error {
5293	object := value.Object()
5294	defer object.Close()
5295
5296	if len(v.AcceptanceType) > 0 {
5297		ok := object.Key("AcceptanceType")
5298		ok.String(string(v.AcceptanceType))
5299	}
5300
5301	if v.PlayerIds != nil {
5302		ok := object.Key("PlayerIds")
5303		if err := awsAwsjson11_serializeDocumentStringList(v.PlayerIds, ok); err != nil {
5304			return err
5305		}
5306	}
5307
5308	if v.TicketId != nil {
5309		ok := object.Key("TicketId")
5310		ok.String(*v.TicketId)
5311	}
5312
5313	return nil
5314}
5315
5316func awsAwsjson11_serializeOpDocumentClaimGameServerInput(v *ClaimGameServerInput, value smithyjson.Value) error {
5317	object := value.Object()
5318	defer object.Close()
5319
5320	if v.GameServerData != nil {
5321		ok := object.Key("GameServerData")
5322		ok.String(*v.GameServerData)
5323	}
5324
5325	if v.GameServerGroupName != nil {
5326		ok := object.Key("GameServerGroupName")
5327		ok.String(*v.GameServerGroupName)
5328	}
5329
5330	if v.GameServerId != nil {
5331		ok := object.Key("GameServerId")
5332		ok.String(*v.GameServerId)
5333	}
5334
5335	return nil
5336}
5337
5338func awsAwsjson11_serializeOpDocumentCreateAliasInput(v *CreateAliasInput, value smithyjson.Value) error {
5339	object := value.Object()
5340	defer object.Close()
5341
5342	if v.Description != nil {
5343		ok := object.Key("Description")
5344		ok.String(*v.Description)
5345	}
5346
5347	if v.Name != nil {
5348		ok := object.Key("Name")
5349		ok.String(*v.Name)
5350	}
5351
5352	if v.RoutingStrategy != nil {
5353		ok := object.Key("RoutingStrategy")
5354		if err := awsAwsjson11_serializeDocumentRoutingStrategy(v.RoutingStrategy, ok); err != nil {
5355			return err
5356		}
5357	}
5358
5359	if v.Tags != nil {
5360		ok := object.Key("Tags")
5361		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5362			return err
5363		}
5364	}
5365
5366	return nil
5367}
5368
5369func awsAwsjson11_serializeOpDocumentCreateBuildInput(v *CreateBuildInput, value smithyjson.Value) error {
5370	object := value.Object()
5371	defer object.Close()
5372
5373	if v.Name != nil {
5374		ok := object.Key("Name")
5375		ok.String(*v.Name)
5376	}
5377
5378	if len(v.OperatingSystem) > 0 {
5379		ok := object.Key("OperatingSystem")
5380		ok.String(string(v.OperatingSystem))
5381	}
5382
5383	if v.StorageLocation != nil {
5384		ok := object.Key("StorageLocation")
5385		if err := awsAwsjson11_serializeDocumentS3Location(v.StorageLocation, ok); err != nil {
5386			return err
5387		}
5388	}
5389
5390	if v.Tags != nil {
5391		ok := object.Key("Tags")
5392		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5393			return err
5394		}
5395	}
5396
5397	if v.Version != nil {
5398		ok := object.Key("Version")
5399		ok.String(*v.Version)
5400	}
5401
5402	return nil
5403}
5404
5405func awsAwsjson11_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value smithyjson.Value) error {
5406	object := value.Object()
5407	defer object.Close()
5408
5409	if v.BuildId != nil {
5410		ok := object.Key("BuildId")
5411		ok.String(*v.BuildId)
5412	}
5413
5414	if v.CertificateConfiguration != nil {
5415		ok := object.Key("CertificateConfiguration")
5416		if err := awsAwsjson11_serializeDocumentCertificateConfiguration(v.CertificateConfiguration, ok); err != nil {
5417			return err
5418		}
5419	}
5420
5421	if v.Description != nil {
5422		ok := object.Key("Description")
5423		ok.String(*v.Description)
5424	}
5425
5426	if v.EC2InboundPermissions != nil {
5427		ok := object.Key("EC2InboundPermissions")
5428		if err := awsAwsjson11_serializeDocumentIpPermissionsList(v.EC2InboundPermissions, ok); err != nil {
5429			return err
5430		}
5431	}
5432
5433	if len(v.EC2InstanceType) > 0 {
5434		ok := object.Key("EC2InstanceType")
5435		ok.String(string(v.EC2InstanceType))
5436	}
5437
5438	if len(v.FleetType) > 0 {
5439		ok := object.Key("FleetType")
5440		ok.String(string(v.FleetType))
5441	}
5442
5443	if v.InstanceRoleArn != nil {
5444		ok := object.Key("InstanceRoleArn")
5445		ok.String(*v.InstanceRoleArn)
5446	}
5447
5448	if v.Locations != nil {
5449		ok := object.Key("Locations")
5450		if err := awsAwsjson11_serializeDocumentLocationConfigurationList(v.Locations, ok); err != nil {
5451			return err
5452		}
5453	}
5454
5455	if v.LogPaths != nil {
5456		ok := object.Key("LogPaths")
5457		if err := awsAwsjson11_serializeDocumentStringList(v.LogPaths, ok); err != nil {
5458			return err
5459		}
5460	}
5461
5462	if v.MetricGroups != nil {
5463		ok := object.Key("MetricGroups")
5464		if err := awsAwsjson11_serializeDocumentMetricGroupList(v.MetricGroups, ok); err != nil {
5465			return err
5466		}
5467	}
5468
5469	if v.Name != nil {
5470		ok := object.Key("Name")
5471		ok.String(*v.Name)
5472	}
5473
5474	if len(v.NewGameSessionProtectionPolicy) > 0 {
5475		ok := object.Key("NewGameSessionProtectionPolicy")
5476		ok.String(string(v.NewGameSessionProtectionPolicy))
5477	}
5478
5479	if v.PeerVpcAwsAccountId != nil {
5480		ok := object.Key("PeerVpcAwsAccountId")
5481		ok.String(*v.PeerVpcAwsAccountId)
5482	}
5483
5484	if v.PeerVpcId != nil {
5485		ok := object.Key("PeerVpcId")
5486		ok.String(*v.PeerVpcId)
5487	}
5488
5489	if v.ResourceCreationLimitPolicy != nil {
5490		ok := object.Key("ResourceCreationLimitPolicy")
5491		if err := awsAwsjson11_serializeDocumentResourceCreationLimitPolicy(v.ResourceCreationLimitPolicy, ok); err != nil {
5492			return err
5493		}
5494	}
5495
5496	if v.RuntimeConfiguration != nil {
5497		ok := object.Key("RuntimeConfiguration")
5498		if err := awsAwsjson11_serializeDocumentRuntimeConfiguration(v.RuntimeConfiguration, ok); err != nil {
5499			return err
5500		}
5501	}
5502
5503	if v.ScriptId != nil {
5504		ok := object.Key("ScriptId")
5505		ok.String(*v.ScriptId)
5506	}
5507
5508	if v.ServerLaunchParameters != nil {
5509		ok := object.Key("ServerLaunchParameters")
5510		ok.String(*v.ServerLaunchParameters)
5511	}
5512
5513	if v.ServerLaunchPath != nil {
5514		ok := object.Key("ServerLaunchPath")
5515		ok.String(*v.ServerLaunchPath)
5516	}
5517
5518	if v.Tags != nil {
5519		ok := object.Key("Tags")
5520		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5521			return err
5522		}
5523	}
5524
5525	return nil
5526}
5527
5528func awsAwsjson11_serializeOpDocumentCreateFleetLocationsInput(v *CreateFleetLocationsInput, value smithyjson.Value) error {
5529	object := value.Object()
5530	defer object.Close()
5531
5532	if v.FleetId != nil {
5533		ok := object.Key("FleetId")
5534		ok.String(*v.FleetId)
5535	}
5536
5537	if v.Locations != nil {
5538		ok := object.Key("Locations")
5539		if err := awsAwsjson11_serializeDocumentLocationConfigurationList(v.Locations, ok); err != nil {
5540			return err
5541		}
5542	}
5543
5544	return nil
5545}
5546
5547func awsAwsjson11_serializeOpDocumentCreateGameServerGroupInput(v *CreateGameServerGroupInput, value smithyjson.Value) error {
5548	object := value.Object()
5549	defer object.Close()
5550
5551	if v.AutoScalingPolicy != nil {
5552		ok := object.Key("AutoScalingPolicy")
5553		if err := awsAwsjson11_serializeDocumentGameServerGroupAutoScalingPolicy(v.AutoScalingPolicy, ok); err != nil {
5554			return err
5555		}
5556	}
5557
5558	if len(v.BalancingStrategy) > 0 {
5559		ok := object.Key("BalancingStrategy")
5560		ok.String(string(v.BalancingStrategy))
5561	}
5562
5563	if v.GameServerGroupName != nil {
5564		ok := object.Key("GameServerGroupName")
5565		ok.String(*v.GameServerGroupName)
5566	}
5567
5568	if len(v.GameServerProtectionPolicy) > 0 {
5569		ok := object.Key("GameServerProtectionPolicy")
5570		ok.String(string(v.GameServerProtectionPolicy))
5571	}
5572
5573	if v.InstanceDefinitions != nil {
5574		ok := object.Key("InstanceDefinitions")
5575		if err := awsAwsjson11_serializeDocumentInstanceDefinitions(v.InstanceDefinitions, ok); err != nil {
5576			return err
5577		}
5578	}
5579
5580	if v.LaunchTemplate != nil {
5581		ok := object.Key("LaunchTemplate")
5582		if err := awsAwsjson11_serializeDocumentLaunchTemplateSpecification(v.LaunchTemplate, ok); err != nil {
5583			return err
5584		}
5585	}
5586
5587	if v.MaxSize != nil {
5588		ok := object.Key("MaxSize")
5589		ok.Integer(*v.MaxSize)
5590	}
5591
5592	if v.MinSize != nil {
5593		ok := object.Key("MinSize")
5594		ok.Integer(*v.MinSize)
5595	}
5596
5597	if v.RoleArn != nil {
5598		ok := object.Key("RoleArn")
5599		ok.String(*v.RoleArn)
5600	}
5601
5602	if v.Tags != nil {
5603		ok := object.Key("Tags")
5604		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5605			return err
5606		}
5607	}
5608
5609	if v.VpcSubnets != nil {
5610		ok := object.Key("VpcSubnets")
5611		if err := awsAwsjson11_serializeDocumentVpcSubnets(v.VpcSubnets, ok); err != nil {
5612			return err
5613		}
5614	}
5615
5616	return nil
5617}
5618
5619func awsAwsjson11_serializeOpDocumentCreateGameSessionInput(v *CreateGameSessionInput, value smithyjson.Value) error {
5620	object := value.Object()
5621	defer object.Close()
5622
5623	if v.AliasId != nil {
5624		ok := object.Key("AliasId")
5625		ok.String(*v.AliasId)
5626	}
5627
5628	if v.CreatorId != nil {
5629		ok := object.Key("CreatorId")
5630		ok.String(*v.CreatorId)
5631	}
5632
5633	if v.FleetId != nil {
5634		ok := object.Key("FleetId")
5635		ok.String(*v.FleetId)
5636	}
5637
5638	if v.GameProperties != nil {
5639		ok := object.Key("GameProperties")
5640		if err := awsAwsjson11_serializeDocumentGamePropertyList(v.GameProperties, ok); err != nil {
5641			return err
5642		}
5643	}
5644
5645	if v.GameSessionData != nil {
5646		ok := object.Key("GameSessionData")
5647		ok.String(*v.GameSessionData)
5648	}
5649
5650	if v.GameSessionId != nil {
5651		ok := object.Key("GameSessionId")
5652		ok.String(*v.GameSessionId)
5653	}
5654
5655	if v.IdempotencyToken != nil {
5656		ok := object.Key("IdempotencyToken")
5657		ok.String(*v.IdempotencyToken)
5658	}
5659
5660	if v.Location != nil {
5661		ok := object.Key("Location")
5662		ok.String(*v.Location)
5663	}
5664
5665	if v.MaximumPlayerSessionCount != nil {
5666		ok := object.Key("MaximumPlayerSessionCount")
5667		ok.Integer(*v.MaximumPlayerSessionCount)
5668	}
5669
5670	if v.Name != nil {
5671		ok := object.Key("Name")
5672		ok.String(*v.Name)
5673	}
5674
5675	return nil
5676}
5677
5678func awsAwsjson11_serializeOpDocumentCreateGameSessionQueueInput(v *CreateGameSessionQueueInput, value smithyjson.Value) error {
5679	object := value.Object()
5680	defer object.Close()
5681
5682	if v.CustomEventData != nil {
5683		ok := object.Key("CustomEventData")
5684		ok.String(*v.CustomEventData)
5685	}
5686
5687	if v.Destinations != nil {
5688		ok := object.Key("Destinations")
5689		if err := awsAwsjson11_serializeDocumentGameSessionQueueDestinationList(v.Destinations, ok); err != nil {
5690			return err
5691		}
5692	}
5693
5694	if v.FilterConfiguration != nil {
5695		ok := object.Key("FilterConfiguration")
5696		if err := awsAwsjson11_serializeDocumentFilterConfiguration(v.FilterConfiguration, ok); err != nil {
5697			return err
5698		}
5699	}
5700
5701	if v.Name != nil {
5702		ok := object.Key("Name")
5703		ok.String(*v.Name)
5704	}
5705
5706	if v.NotificationTarget != nil {
5707		ok := object.Key("NotificationTarget")
5708		ok.String(*v.NotificationTarget)
5709	}
5710
5711	if v.PlayerLatencyPolicies != nil {
5712		ok := object.Key("PlayerLatencyPolicies")
5713		if err := awsAwsjson11_serializeDocumentPlayerLatencyPolicyList(v.PlayerLatencyPolicies, ok); err != nil {
5714			return err
5715		}
5716	}
5717
5718	if v.PriorityConfiguration != nil {
5719		ok := object.Key("PriorityConfiguration")
5720		if err := awsAwsjson11_serializeDocumentPriorityConfiguration(v.PriorityConfiguration, ok); err != nil {
5721			return err
5722		}
5723	}
5724
5725	if v.Tags != nil {
5726		ok := object.Key("Tags")
5727		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5728			return err
5729		}
5730	}
5731
5732	if v.TimeoutInSeconds != nil {
5733		ok := object.Key("TimeoutInSeconds")
5734		ok.Integer(*v.TimeoutInSeconds)
5735	}
5736
5737	return nil
5738}
5739
5740func awsAwsjson11_serializeOpDocumentCreateMatchmakingConfigurationInput(v *CreateMatchmakingConfigurationInput, value smithyjson.Value) error {
5741	object := value.Object()
5742	defer object.Close()
5743
5744	if v.AcceptanceRequired != nil {
5745		ok := object.Key("AcceptanceRequired")
5746		ok.Boolean(*v.AcceptanceRequired)
5747	}
5748
5749	if v.AcceptanceTimeoutSeconds != nil {
5750		ok := object.Key("AcceptanceTimeoutSeconds")
5751		ok.Integer(*v.AcceptanceTimeoutSeconds)
5752	}
5753
5754	if v.AdditionalPlayerCount != nil {
5755		ok := object.Key("AdditionalPlayerCount")
5756		ok.Integer(*v.AdditionalPlayerCount)
5757	}
5758
5759	if len(v.BackfillMode) > 0 {
5760		ok := object.Key("BackfillMode")
5761		ok.String(string(v.BackfillMode))
5762	}
5763
5764	if v.CustomEventData != nil {
5765		ok := object.Key("CustomEventData")
5766		ok.String(*v.CustomEventData)
5767	}
5768
5769	if v.Description != nil {
5770		ok := object.Key("Description")
5771		ok.String(*v.Description)
5772	}
5773
5774	if len(v.FlexMatchMode) > 0 {
5775		ok := object.Key("FlexMatchMode")
5776		ok.String(string(v.FlexMatchMode))
5777	}
5778
5779	if v.GameProperties != nil {
5780		ok := object.Key("GameProperties")
5781		if err := awsAwsjson11_serializeDocumentGamePropertyList(v.GameProperties, ok); err != nil {
5782			return err
5783		}
5784	}
5785
5786	if v.GameSessionData != nil {
5787		ok := object.Key("GameSessionData")
5788		ok.String(*v.GameSessionData)
5789	}
5790
5791	if v.GameSessionQueueArns != nil {
5792		ok := object.Key("GameSessionQueueArns")
5793		if err := awsAwsjson11_serializeDocumentQueueArnsList(v.GameSessionQueueArns, ok); err != nil {
5794			return err
5795		}
5796	}
5797
5798	if v.Name != nil {
5799		ok := object.Key("Name")
5800		ok.String(*v.Name)
5801	}
5802
5803	if v.NotificationTarget != nil {
5804		ok := object.Key("NotificationTarget")
5805		ok.String(*v.NotificationTarget)
5806	}
5807
5808	if v.RequestTimeoutSeconds != nil {
5809		ok := object.Key("RequestTimeoutSeconds")
5810		ok.Integer(*v.RequestTimeoutSeconds)
5811	}
5812
5813	if v.RuleSetName != nil {
5814		ok := object.Key("RuleSetName")
5815		ok.String(*v.RuleSetName)
5816	}
5817
5818	if v.Tags != nil {
5819		ok := object.Key("Tags")
5820		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5821			return err
5822		}
5823	}
5824
5825	return nil
5826}
5827
5828func awsAwsjson11_serializeOpDocumentCreateMatchmakingRuleSetInput(v *CreateMatchmakingRuleSetInput, value smithyjson.Value) error {
5829	object := value.Object()
5830	defer object.Close()
5831
5832	if v.Name != nil {
5833		ok := object.Key("Name")
5834		ok.String(*v.Name)
5835	}
5836
5837	if v.RuleSetBody != nil {
5838		ok := object.Key("RuleSetBody")
5839		ok.String(*v.RuleSetBody)
5840	}
5841
5842	if v.Tags != nil {
5843		ok := object.Key("Tags")
5844		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5845			return err
5846		}
5847	}
5848
5849	return nil
5850}
5851
5852func awsAwsjson11_serializeOpDocumentCreatePlayerSessionInput(v *CreatePlayerSessionInput, value smithyjson.Value) error {
5853	object := value.Object()
5854	defer object.Close()
5855
5856	if v.GameSessionId != nil {
5857		ok := object.Key("GameSessionId")
5858		ok.String(*v.GameSessionId)
5859	}
5860
5861	if v.PlayerData != nil {
5862		ok := object.Key("PlayerData")
5863		ok.String(*v.PlayerData)
5864	}
5865
5866	if v.PlayerId != nil {
5867		ok := object.Key("PlayerId")
5868		ok.String(*v.PlayerId)
5869	}
5870
5871	return nil
5872}
5873
5874func awsAwsjson11_serializeOpDocumentCreatePlayerSessionsInput(v *CreatePlayerSessionsInput, value smithyjson.Value) error {
5875	object := value.Object()
5876	defer object.Close()
5877
5878	if v.GameSessionId != nil {
5879		ok := object.Key("GameSessionId")
5880		ok.String(*v.GameSessionId)
5881	}
5882
5883	if v.PlayerDataMap != nil {
5884		ok := object.Key("PlayerDataMap")
5885		if err := awsAwsjson11_serializeDocumentPlayerDataMap(v.PlayerDataMap, ok); err != nil {
5886			return err
5887		}
5888	}
5889
5890	if v.PlayerIds != nil {
5891		ok := object.Key("PlayerIds")
5892		if err := awsAwsjson11_serializeDocumentPlayerIdList(v.PlayerIds, ok); err != nil {
5893			return err
5894		}
5895	}
5896
5897	return nil
5898}
5899
5900func awsAwsjson11_serializeOpDocumentCreateScriptInput(v *CreateScriptInput, value smithyjson.Value) error {
5901	object := value.Object()
5902	defer object.Close()
5903
5904	if v.Name != nil {
5905		ok := object.Key("Name")
5906		ok.String(*v.Name)
5907	}
5908
5909	if v.StorageLocation != nil {
5910		ok := object.Key("StorageLocation")
5911		if err := awsAwsjson11_serializeDocumentS3Location(v.StorageLocation, ok); err != nil {
5912			return err
5913		}
5914	}
5915
5916	if v.Tags != nil {
5917		ok := object.Key("Tags")
5918		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
5919			return err
5920		}
5921	}
5922
5923	if v.Version != nil {
5924		ok := object.Key("Version")
5925		ok.String(*v.Version)
5926	}
5927
5928	if v.ZipFile != nil {
5929		ok := object.Key("ZipFile")
5930		ok.Base64EncodeBytes(v.ZipFile)
5931	}
5932
5933	return nil
5934}
5935
5936func awsAwsjson11_serializeOpDocumentCreateVpcPeeringAuthorizationInput(v *CreateVpcPeeringAuthorizationInput, value smithyjson.Value) error {
5937	object := value.Object()
5938	defer object.Close()
5939
5940	if v.GameLiftAwsAccountId != nil {
5941		ok := object.Key("GameLiftAwsAccountId")
5942		ok.String(*v.GameLiftAwsAccountId)
5943	}
5944
5945	if v.PeerVpcId != nil {
5946		ok := object.Key("PeerVpcId")
5947		ok.String(*v.PeerVpcId)
5948	}
5949
5950	return nil
5951}
5952
5953func awsAwsjson11_serializeOpDocumentCreateVpcPeeringConnectionInput(v *CreateVpcPeeringConnectionInput, value smithyjson.Value) error {
5954	object := value.Object()
5955	defer object.Close()
5956
5957	if v.FleetId != nil {
5958		ok := object.Key("FleetId")
5959		ok.String(*v.FleetId)
5960	}
5961
5962	if v.PeerVpcAwsAccountId != nil {
5963		ok := object.Key("PeerVpcAwsAccountId")
5964		ok.String(*v.PeerVpcAwsAccountId)
5965	}
5966
5967	if v.PeerVpcId != nil {
5968		ok := object.Key("PeerVpcId")
5969		ok.String(*v.PeerVpcId)
5970	}
5971
5972	return nil
5973}
5974
5975func awsAwsjson11_serializeOpDocumentDeleteAliasInput(v *DeleteAliasInput, value smithyjson.Value) error {
5976	object := value.Object()
5977	defer object.Close()
5978
5979	if v.AliasId != nil {
5980		ok := object.Key("AliasId")
5981		ok.String(*v.AliasId)
5982	}
5983
5984	return nil
5985}
5986
5987func awsAwsjson11_serializeOpDocumentDeleteBuildInput(v *DeleteBuildInput, value smithyjson.Value) error {
5988	object := value.Object()
5989	defer object.Close()
5990
5991	if v.BuildId != nil {
5992		ok := object.Key("BuildId")
5993		ok.String(*v.BuildId)
5994	}
5995
5996	return nil
5997}
5998
5999func awsAwsjson11_serializeOpDocumentDeleteFleetInput(v *DeleteFleetInput, value smithyjson.Value) error {
6000	object := value.Object()
6001	defer object.Close()
6002
6003	if v.FleetId != nil {
6004		ok := object.Key("FleetId")
6005		ok.String(*v.FleetId)
6006	}
6007
6008	return nil
6009}
6010
6011func awsAwsjson11_serializeOpDocumentDeleteFleetLocationsInput(v *DeleteFleetLocationsInput, value smithyjson.Value) error {
6012	object := value.Object()
6013	defer object.Close()
6014
6015	if v.FleetId != nil {
6016		ok := object.Key("FleetId")
6017		ok.String(*v.FleetId)
6018	}
6019
6020	if v.Locations != nil {
6021		ok := object.Key("Locations")
6022		if err := awsAwsjson11_serializeDocumentLocationList(v.Locations, ok); err != nil {
6023			return err
6024		}
6025	}
6026
6027	return nil
6028}
6029
6030func awsAwsjson11_serializeOpDocumentDeleteGameServerGroupInput(v *DeleteGameServerGroupInput, value smithyjson.Value) error {
6031	object := value.Object()
6032	defer object.Close()
6033
6034	if len(v.DeleteOption) > 0 {
6035		ok := object.Key("DeleteOption")
6036		ok.String(string(v.DeleteOption))
6037	}
6038
6039	if v.GameServerGroupName != nil {
6040		ok := object.Key("GameServerGroupName")
6041		ok.String(*v.GameServerGroupName)
6042	}
6043
6044	return nil
6045}
6046
6047func awsAwsjson11_serializeOpDocumentDeleteGameSessionQueueInput(v *DeleteGameSessionQueueInput, value smithyjson.Value) error {
6048	object := value.Object()
6049	defer object.Close()
6050
6051	if v.Name != nil {
6052		ok := object.Key("Name")
6053		ok.String(*v.Name)
6054	}
6055
6056	return nil
6057}
6058
6059func awsAwsjson11_serializeOpDocumentDeleteMatchmakingConfigurationInput(v *DeleteMatchmakingConfigurationInput, value smithyjson.Value) error {
6060	object := value.Object()
6061	defer object.Close()
6062
6063	if v.Name != nil {
6064		ok := object.Key("Name")
6065		ok.String(*v.Name)
6066	}
6067
6068	return nil
6069}
6070
6071func awsAwsjson11_serializeOpDocumentDeleteMatchmakingRuleSetInput(v *DeleteMatchmakingRuleSetInput, value smithyjson.Value) error {
6072	object := value.Object()
6073	defer object.Close()
6074
6075	if v.Name != nil {
6076		ok := object.Key("Name")
6077		ok.String(*v.Name)
6078	}
6079
6080	return nil
6081}
6082
6083func awsAwsjson11_serializeOpDocumentDeleteScalingPolicyInput(v *DeleteScalingPolicyInput, value smithyjson.Value) error {
6084	object := value.Object()
6085	defer object.Close()
6086
6087	if v.FleetId != nil {
6088		ok := object.Key("FleetId")
6089		ok.String(*v.FleetId)
6090	}
6091
6092	if v.Name != nil {
6093		ok := object.Key("Name")
6094		ok.String(*v.Name)
6095	}
6096
6097	return nil
6098}
6099
6100func awsAwsjson11_serializeOpDocumentDeleteScriptInput(v *DeleteScriptInput, value smithyjson.Value) error {
6101	object := value.Object()
6102	defer object.Close()
6103
6104	if v.ScriptId != nil {
6105		ok := object.Key("ScriptId")
6106		ok.String(*v.ScriptId)
6107	}
6108
6109	return nil
6110}
6111
6112func awsAwsjson11_serializeOpDocumentDeleteVpcPeeringAuthorizationInput(v *DeleteVpcPeeringAuthorizationInput, value smithyjson.Value) error {
6113	object := value.Object()
6114	defer object.Close()
6115
6116	if v.GameLiftAwsAccountId != nil {
6117		ok := object.Key("GameLiftAwsAccountId")
6118		ok.String(*v.GameLiftAwsAccountId)
6119	}
6120
6121	if v.PeerVpcId != nil {
6122		ok := object.Key("PeerVpcId")
6123		ok.String(*v.PeerVpcId)
6124	}
6125
6126	return nil
6127}
6128
6129func awsAwsjson11_serializeOpDocumentDeleteVpcPeeringConnectionInput(v *DeleteVpcPeeringConnectionInput, value smithyjson.Value) error {
6130	object := value.Object()
6131	defer object.Close()
6132
6133	if v.FleetId != nil {
6134		ok := object.Key("FleetId")
6135		ok.String(*v.FleetId)
6136	}
6137
6138	if v.VpcPeeringConnectionId != nil {
6139		ok := object.Key("VpcPeeringConnectionId")
6140		ok.String(*v.VpcPeeringConnectionId)
6141	}
6142
6143	return nil
6144}
6145
6146func awsAwsjson11_serializeOpDocumentDeregisterGameServerInput(v *DeregisterGameServerInput, value smithyjson.Value) error {
6147	object := value.Object()
6148	defer object.Close()
6149
6150	if v.GameServerGroupName != nil {
6151		ok := object.Key("GameServerGroupName")
6152		ok.String(*v.GameServerGroupName)
6153	}
6154
6155	if v.GameServerId != nil {
6156		ok := object.Key("GameServerId")
6157		ok.String(*v.GameServerId)
6158	}
6159
6160	return nil
6161}
6162
6163func awsAwsjson11_serializeOpDocumentDescribeAliasInput(v *DescribeAliasInput, value smithyjson.Value) error {
6164	object := value.Object()
6165	defer object.Close()
6166
6167	if v.AliasId != nil {
6168		ok := object.Key("AliasId")
6169		ok.String(*v.AliasId)
6170	}
6171
6172	return nil
6173}
6174
6175func awsAwsjson11_serializeOpDocumentDescribeBuildInput(v *DescribeBuildInput, value smithyjson.Value) error {
6176	object := value.Object()
6177	defer object.Close()
6178
6179	if v.BuildId != nil {
6180		ok := object.Key("BuildId")
6181		ok.String(*v.BuildId)
6182	}
6183
6184	return nil
6185}
6186
6187func awsAwsjson11_serializeOpDocumentDescribeEC2InstanceLimitsInput(v *DescribeEC2InstanceLimitsInput, value smithyjson.Value) error {
6188	object := value.Object()
6189	defer object.Close()
6190
6191	if len(v.EC2InstanceType) > 0 {
6192		ok := object.Key("EC2InstanceType")
6193		ok.String(string(v.EC2InstanceType))
6194	}
6195
6196	if v.Location != nil {
6197		ok := object.Key("Location")
6198		ok.String(*v.Location)
6199	}
6200
6201	return nil
6202}
6203
6204func awsAwsjson11_serializeOpDocumentDescribeFleetAttributesInput(v *DescribeFleetAttributesInput, value smithyjson.Value) error {
6205	object := value.Object()
6206	defer object.Close()
6207
6208	if v.FleetIds != nil {
6209		ok := object.Key("FleetIds")
6210		if err := awsAwsjson11_serializeDocumentFleetIdOrArnList(v.FleetIds, ok); err != nil {
6211			return err
6212		}
6213	}
6214
6215	if v.Limit != nil {
6216		ok := object.Key("Limit")
6217		ok.Integer(*v.Limit)
6218	}
6219
6220	if v.NextToken != nil {
6221		ok := object.Key("NextToken")
6222		ok.String(*v.NextToken)
6223	}
6224
6225	return nil
6226}
6227
6228func awsAwsjson11_serializeOpDocumentDescribeFleetCapacityInput(v *DescribeFleetCapacityInput, value smithyjson.Value) error {
6229	object := value.Object()
6230	defer object.Close()
6231
6232	if v.FleetIds != nil {
6233		ok := object.Key("FleetIds")
6234		if err := awsAwsjson11_serializeDocumentFleetIdOrArnList(v.FleetIds, ok); err != nil {
6235			return err
6236		}
6237	}
6238
6239	if v.Limit != nil {
6240		ok := object.Key("Limit")
6241		ok.Integer(*v.Limit)
6242	}
6243
6244	if v.NextToken != nil {
6245		ok := object.Key("NextToken")
6246		ok.String(*v.NextToken)
6247	}
6248
6249	return nil
6250}
6251
6252func awsAwsjson11_serializeOpDocumentDescribeFleetEventsInput(v *DescribeFleetEventsInput, value smithyjson.Value) error {
6253	object := value.Object()
6254	defer object.Close()
6255
6256	if v.EndTime != nil {
6257		ok := object.Key("EndTime")
6258		ok.Double(smithytime.FormatEpochSeconds(*v.EndTime))
6259	}
6260
6261	if v.FleetId != nil {
6262		ok := object.Key("FleetId")
6263		ok.String(*v.FleetId)
6264	}
6265
6266	if v.Limit != nil {
6267		ok := object.Key("Limit")
6268		ok.Integer(*v.Limit)
6269	}
6270
6271	if v.NextToken != nil {
6272		ok := object.Key("NextToken")
6273		ok.String(*v.NextToken)
6274	}
6275
6276	if v.StartTime != nil {
6277		ok := object.Key("StartTime")
6278		ok.Double(smithytime.FormatEpochSeconds(*v.StartTime))
6279	}
6280
6281	return nil
6282}
6283
6284func awsAwsjson11_serializeOpDocumentDescribeFleetLocationAttributesInput(v *DescribeFleetLocationAttributesInput, value smithyjson.Value) error {
6285	object := value.Object()
6286	defer object.Close()
6287
6288	if v.FleetId != nil {
6289		ok := object.Key("FleetId")
6290		ok.String(*v.FleetId)
6291	}
6292
6293	if v.Limit != nil {
6294		ok := object.Key("Limit")
6295		ok.Integer(*v.Limit)
6296	}
6297
6298	if v.Locations != nil {
6299		ok := object.Key("Locations")
6300		if err := awsAwsjson11_serializeDocumentLocationList(v.Locations, ok); err != nil {
6301			return err
6302		}
6303	}
6304
6305	if v.NextToken != nil {
6306		ok := object.Key("NextToken")
6307		ok.String(*v.NextToken)
6308	}
6309
6310	return nil
6311}
6312
6313func awsAwsjson11_serializeOpDocumentDescribeFleetLocationCapacityInput(v *DescribeFleetLocationCapacityInput, value smithyjson.Value) error {
6314	object := value.Object()
6315	defer object.Close()
6316
6317	if v.FleetId != nil {
6318		ok := object.Key("FleetId")
6319		ok.String(*v.FleetId)
6320	}
6321
6322	if v.Location != nil {
6323		ok := object.Key("Location")
6324		ok.String(*v.Location)
6325	}
6326
6327	return nil
6328}
6329
6330func awsAwsjson11_serializeOpDocumentDescribeFleetLocationUtilizationInput(v *DescribeFleetLocationUtilizationInput, value smithyjson.Value) error {
6331	object := value.Object()
6332	defer object.Close()
6333
6334	if v.FleetId != nil {
6335		ok := object.Key("FleetId")
6336		ok.String(*v.FleetId)
6337	}
6338
6339	if v.Location != nil {
6340		ok := object.Key("Location")
6341		ok.String(*v.Location)
6342	}
6343
6344	return nil
6345}
6346
6347func awsAwsjson11_serializeOpDocumentDescribeFleetPortSettingsInput(v *DescribeFleetPortSettingsInput, value smithyjson.Value) error {
6348	object := value.Object()
6349	defer object.Close()
6350
6351	if v.FleetId != nil {
6352		ok := object.Key("FleetId")
6353		ok.String(*v.FleetId)
6354	}
6355
6356	if v.Location != nil {
6357		ok := object.Key("Location")
6358		ok.String(*v.Location)
6359	}
6360
6361	return nil
6362}
6363
6364func awsAwsjson11_serializeOpDocumentDescribeFleetUtilizationInput(v *DescribeFleetUtilizationInput, value smithyjson.Value) error {
6365	object := value.Object()
6366	defer object.Close()
6367
6368	if v.FleetIds != nil {
6369		ok := object.Key("FleetIds")
6370		if err := awsAwsjson11_serializeDocumentFleetIdOrArnList(v.FleetIds, ok); err != nil {
6371			return err
6372		}
6373	}
6374
6375	if v.Limit != nil {
6376		ok := object.Key("Limit")
6377		ok.Integer(*v.Limit)
6378	}
6379
6380	if v.NextToken != nil {
6381		ok := object.Key("NextToken")
6382		ok.String(*v.NextToken)
6383	}
6384
6385	return nil
6386}
6387
6388func awsAwsjson11_serializeOpDocumentDescribeGameServerGroupInput(v *DescribeGameServerGroupInput, value smithyjson.Value) error {
6389	object := value.Object()
6390	defer object.Close()
6391
6392	if v.GameServerGroupName != nil {
6393		ok := object.Key("GameServerGroupName")
6394		ok.String(*v.GameServerGroupName)
6395	}
6396
6397	return nil
6398}
6399
6400func awsAwsjson11_serializeOpDocumentDescribeGameServerInput(v *DescribeGameServerInput, value smithyjson.Value) error {
6401	object := value.Object()
6402	defer object.Close()
6403
6404	if v.GameServerGroupName != nil {
6405		ok := object.Key("GameServerGroupName")
6406		ok.String(*v.GameServerGroupName)
6407	}
6408
6409	if v.GameServerId != nil {
6410		ok := object.Key("GameServerId")
6411		ok.String(*v.GameServerId)
6412	}
6413
6414	return nil
6415}
6416
6417func awsAwsjson11_serializeOpDocumentDescribeGameServerInstancesInput(v *DescribeGameServerInstancesInput, value smithyjson.Value) error {
6418	object := value.Object()
6419	defer object.Close()
6420
6421	if v.GameServerGroupName != nil {
6422		ok := object.Key("GameServerGroupName")
6423		ok.String(*v.GameServerGroupName)
6424	}
6425
6426	if v.InstanceIds != nil {
6427		ok := object.Key("InstanceIds")
6428		if err := awsAwsjson11_serializeDocumentGameServerInstanceIds(v.InstanceIds, ok); err != nil {
6429			return err
6430		}
6431	}
6432
6433	if v.Limit != nil {
6434		ok := object.Key("Limit")
6435		ok.Integer(*v.Limit)
6436	}
6437
6438	if v.NextToken != nil {
6439		ok := object.Key("NextToken")
6440		ok.String(*v.NextToken)
6441	}
6442
6443	return nil
6444}
6445
6446func awsAwsjson11_serializeOpDocumentDescribeGameSessionDetailsInput(v *DescribeGameSessionDetailsInput, value smithyjson.Value) error {
6447	object := value.Object()
6448	defer object.Close()
6449
6450	if v.AliasId != nil {
6451		ok := object.Key("AliasId")
6452		ok.String(*v.AliasId)
6453	}
6454
6455	if v.FleetId != nil {
6456		ok := object.Key("FleetId")
6457		ok.String(*v.FleetId)
6458	}
6459
6460	if v.GameSessionId != nil {
6461		ok := object.Key("GameSessionId")
6462		ok.String(*v.GameSessionId)
6463	}
6464
6465	if v.Limit != nil {
6466		ok := object.Key("Limit")
6467		ok.Integer(*v.Limit)
6468	}
6469
6470	if v.Location != nil {
6471		ok := object.Key("Location")
6472		ok.String(*v.Location)
6473	}
6474
6475	if v.NextToken != nil {
6476		ok := object.Key("NextToken")
6477		ok.String(*v.NextToken)
6478	}
6479
6480	if v.StatusFilter != nil {
6481		ok := object.Key("StatusFilter")
6482		ok.String(*v.StatusFilter)
6483	}
6484
6485	return nil
6486}
6487
6488func awsAwsjson11_serializeOpDocumentDescribeGameSessionPlacementInput(v *DescribeGameSessionPlacementInput, value smithyjson.Value) error {
6489	object := value.Object()
6490	defer object.Close()
6491
6492	if v.PlacementId != nil {
6493		ok := object.Key("PlacementId")
6494		ok.String(*v.PlacementId)
6495	}
6496
6497	return nil
6498}
6499
6500func awsAwsjson11_serializeOpDocumentDescribeGameSessionQueuesInput(v *DescribeGameSessionQueuesInput, value smithyjson.Value) error {
6501	object := value.Object()
6502	defer object.Close()
6503
6504	if v.Limit != nil {
6505		ok := object.Key("Limit")
6506		ok.Integer(*v.Limit)
6507	}
6508
6509	if v.Names != nil {
6510		ok := object.Key("Names")
6511		if err := awsAwsjson11_serializeDocumentGameSessionQueueNameOrArnList(v.Names, ok); err != nil {
6512			return err
6513		}
6514	}
6515
6516	if v.NextToken != nil {
6517		ok := object.Key("NextToken")
6518		ok.String(*v.NextToken)
6519	}
6520
6521	return nil
6522}
6523
6524func awsAwsjson11_serializeOpDocumentDescribeGameSessionsInput(v *DescribeGameSessionsInput, value smithyjson.Value) error {
6525	object := value.Object()
6526	defer object.Close()
6527
6528	if v.AliasId != nil {
6529		ok := object.Key("AliasId")
6530		ok.String(*v.AliasId)
6531	}
6532
6533	if v.FleetId != nil {
6534		ok := object.Key("FleetId")
6535		ok.String(*v.FleetId)
6536	}
6537
6538	if v.GameSessionId != nil {
6539		ok := object.Key("GameSessionId")
6540		ok.String(*v.GameSessionId)
6541	}
6542
6543	if v.Limit != nil {
6544		ok := object.Key("Limit")
6545		ok.Integer(*v.Limit)
6546	}
6547
6548	if v.Location != nil {
6549		ok := object.Key("Location")
6550		ok.String(*v.Location)
6551	}
6552
6553	if v.NextToken != nil {
6554		ok := object.Key("NextToken")
6555		ok.String(*v.NextToken)
6556	}
6557
6558	if v.StatusFilter != nil {
6559		ok := object.Key("StatusFilter")
6560		ok.String(*v.StatusFilter)
6561	}
6562
6563	return nil
6564}
6565
6566func awsAwsjson11_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesInput, value smithyjson.Value) error {
6567	object := value.Object()
6568	defer object.Close()
6569
6570	if v.FleetId != nil {
6571		ok := object.Key("FleetId")
6572		ok.String(*v.FleetId)
6573	}
6574
6575	if v.InstanceId != nil {
6576		ok := object.Key("InstanceId")
6577		ok.String(*v.InstanceId)
6578	}
6579
6580	if v.Limit != nil {
6581		ok := object.Key("Limit")
6582		ok.Integer(*v.Limit)
6583	}
6584
6585	if v.Location != nil {
6586		ok := object.Key("Location")
6587		ok.String(*v.Location)
6588	}
6589
6590	if v.NextToken != nil {
6591		ok := object.Key("NextToken")
6592		ok.String(*v.NextToken)
6593	}
6594
6595	return nil
6596}
6597
6598func awsAwsjson11_serializeOpDocumentDescribeMatchmakingConfigurationsInput(v *DescribeMatchmakingConfigurationsInput, value smithyjson.Value) error {
6599	object := value.Object()
6600	defer object.Close()
6601
6602	if v.Limit != nil {
6603		ok := object.Key("Limit")
6604		ok.Integer(*v.Limit)
6605	}
6606
6607	if v.Names != nil {
6608		ok := object.Key("Names")
6609		if err := awsAwsjson11_serializeDocumentMatchmakingConfigurationNameList(v.Names, ok); err != nil {
6610			return err
6611		}
6612	}
6613
6614	if v.NextToken != nil {
6615		ok := object.Key("NextToken")
6616		ok.String(*v.NextToken)
6617	}
6618
6619	if v.RuleSetName != nil {
6620		ok := object.Key("RuleSetName")
6621		ok.String(*v.RuleSetName)
6622	}
6623
6624	return nil
6625}
6626
6627func awsAwsjson11_serializeOpDocumentDescribeMatchmakingInput(v *DescribeMatchmakingInput, value smithyjson.Value) error {
6628	object := value.Object()
6629	defer object.Close()
6630
6631	if v.TicketIds != nil {
6632		ok := object.Key("TicketIds")
6633		if err := awsAwsjson11_serializeDocumentMatchmakingIdList(v.TicketIds, ok); err != nil {
6634			return err
6635		}
6636	}
6637
6638	return nil
6639}
6640
6641func awsAwsjson11_serializeOpDocumentDescribeMatchmakingRuleSetsInput(v *DescribeMatchmakingRuleSetsInput, value smithyjson.Value) error {
6642	object := value.Object()
6643	defer object.Close()
6644
6645	if v.Limit != nil {
6646		ok := object.Key("Limit")
6647		ok.Integer(*v.Limit)
6648	}
6649
6650	if v.Names != nil {
6651		ok := object.Key("Names")
6652		if err := awsAwsjson11_serializeDocumentMatchmakingRuleSetNameList(v.Names, ok); err != nil {
6653			return err
6654		}
6655	}
6656
6657	if v.NextToken != nil {
6658		ok := object.Key("NextToken")
6659		ok.String(*v.NextToken)
6660	}
6661
6662	return nil
6663}
6664
6665func awsAwsjson11_serializeOpDocumentDescribePlayerSessionsInput(v *DescribePlayerSessionsInput, value smithyjson.Value) error {
6666	object := value.Object()
6667	defer object.Close()
6668
6669	if v.GameSessionId != nil {
6670		ok := object.Key("GameSessionId")
6671		ok.String(*v.GameSessionId)
6672	}
6673
6674	if v.Limit != nil {
6675		ok := object.Key("Limit")
6676		ok.Integer(*v.Limit)
6677	}
6678
6679	if v.NextToken != nil {
6680		ok := object.Key("NextToken")
6681		ok.String(*v.NextToken)
6682	}
6683
6684	if v.PlayerId != nil {
6685		ok := object.Key("PlayerId")
6686		ok.String(*v.PlayerId)
6687	}
6688
6689	if v.PlayerSessionId != nil {
6690		ok := object.Key("PlayerSessionId")
6691		ok.String(*v.PlayerSessionId)
6692	}
6693
6694	if v.PlayerSessionStatusFilter != nil {
6695		ok := object.Key("PlayerSessionStatusFilter")
6696		ok.String(*v.PlayerSessionStatusFilter)
6697	}
6698
6699	return nil
6700}
6701
6702func awsAwsjson11_serializeOpDocumentDescribeRuntimeConfigurationInput(v *DescribeRuntimeConfigurationInput, value smithyjson.Value) error {
6703	object := value.Object()
6704	defer object.Close()
6705
6706	if v.FleetId != nil {
6707		ok := object.Key("FleetId")
6708		ok.String(*v.FleetId)
6709	}
6710
6711	return nil
6712}
6713
6714func awsAwsjson11_serializeOpDocumentDescribeScalingPoliciesInput(v *DescribeScalingPoliciesInput, value smithyjson.Value) error {
6715	object := value.Object()
6716	defer object.Close()
6717
6718	if v.FleetId != nil {
6719		ok := object.Key("FleetId")
6720		ok.String(*v.FleetId)
6721	}
6722
6723	if v.Limit != nil {
6724		ok := object.Key("Limit")
6725		ok.Integer(*v.Limit)
6726	}
6727
6728	if v.Location != nil {
6729		ok := object.Key("Location")
6730		ok.String(*v.Location)
6731	}
6732
6733	if v.NextToken != nil {
6734		ok := object.Key("NextToken")
6735		ok.String(*v.NextToken)
6736	}
6737
6738	if len(v.StatusFilter) > 0 {
6739		ok := object.Key("StatusFilter")
6740		ok.String(string(v.StatusFilter))
6741	}
6742
6743	return nil
6744}
6745
6746func awsAwsjson11_serializeOpDocumentDescribeScriptInput(v *DescribeScriptInput, value smithyjson.Value) error {
6747	object := value.Object()
6748	defer object.Close()
6749
6750	if v.ScriptId != nil {
6751		ok := object.Key("ScriptId")
6752		ok.String(*v.ScriptId)
6753	}
6754
6755	return nil
6756}
6757
6758func awsAwsjson11_serializeOpDocumentDescribeVpcPeeringAuthorizationsInput(v *DescribeVpcPeeringAuthorizationsInput, value smithyjson.Value) error {
6759	object := value.Object()
6760	defer object.Close()
6761
6762	return nil
6763}
6764
6765func awsAwsjson11_serializeOpDocumentDescribeVpcPeeringConnectionsInput(v *DescribeVpcPeeringConnectionsInput, value smithyjson.Value) error {
6766	object := value.Object()
6767	defer object.Close()
6768
6769	if v.FleetId != nil {
6770		ok := object.Key("FleetId")
6771		ok.String(*v.FleetId)
6772	}
6773
6774	return nil
6775}
6776
6777func awsAwsjson11_serializeOpDocumentGetGameSessionLogUrlInput(v *GetGameSessionLogUrlInput, value smithyjson.Value) error {
6778	object := value.Object()
6779	defer object.Close()
6780
6781	if v.GameSessionId != nil {
6782		ok := object.Key("GameSessionId")
6783		ok.String(*v.GameSessionId)
6784	}
6785
6786	return nil
6787}
6788
6789func awsAwsjson11_serializeOpDocumentGetInstanceAccessInput(v *GetInstanceAccessInput, value smithyjson.Value) error {
6790	object := value.Object()
6791	defer object.Close()
6792
6793	if v.FleetId != nil {
6794		ok := object.Key("FleetId")
6795		ok.String(*v.FleetId)
6796	}
6797
6798	if v.InstanceId != nil {
6799		ok := object.Key("InstanceId")
6800		ok.String(*v.InstanceId)
6801	}
6802
6803	return nil
6804}
6805
6806func awsAwsjson11_serializeOpDocumentListAliasesInput(v *ListAliasesInput, value smithyjson.Value) error {
6807	object := value.Object()
6808	defer object.Close()
6809
6810	if v.Limit != nil {
6811		ok := object.Key("Limit")
6812		ok.Integer(*v.Limit)
6813	}
6814
6815	if v.Name != nil {
6816		ok := object.Key("Name")
6817		ok.String(*v.Name)
6818	}
6819
6820	if v.NextToken != nil {
6821		ok := object.Key("NextToken")
6822		ok.String(*v.NextToken)
6823	}
6824
6825	if len(v.RoutingStrategyType) > 0 {
6826		ok := object.Key("RoutingStrategyType")
6827		ok.String(string(v.RoutingStrategyType))
6828	}
6829
6830	return nil
6831}
6832
6833func awsAwsjson11_serializeOpDocumentListBuildsInput(v *ListBuildsInput, value smithyjson.Value) error {
6834	object := value.Object()
6835	defer object.Close()
6836
6837	if v.Limit != nil {
6838		ok := object.Key("Limit")
6839		ok.Integer(*v.Limit)
6840	}
6841
6842	if v.NextToken != nil {
6843		ok := object.Key("NextToken")
6844		ok.String(*v.NextToken)
6845	}
6846
6847	if len(v.Status) > 0 {
6848		ok := object.Key("Status")
6849		ok.String(string(v.Status))
6850	}
6851
6852	return nil
6853}
6854
6855func awsAwsjson11_serializeOpDocumentListFleetsInput(v *ListFleetsInput, value smithyjson.Value) error {
6856	object := value.Object()
6857	defer object.Close()
6858
6859	if v.BuildId != nil {
6860		ok := object.Key("BuildId")
6861		ok.String(*v.BuildId)
6862	}
6863
6864	if v.Limit != nil {
6865		ok := object.Key("Limit")
6866		ok.Integer(*v.Limit)
6867	}
6868
6869	if v.NextToken != nil {
6870		ok := object.Key("NextToken")
6871		ok.String(*v.NextToken)
6872	}
6873
6874	if v.ScriptId != nil {
6875		ok := object.Key("ScriptId")
6876		ok.String(*v.ScriptId)
6877	}
6878
6879	return nil
6880}
6881
6882func awsAwsjson11_serializeOpDocumentListGameServerGroupsInput(v *ListGameServerGroupsInput, value smithyjson.Value) error {
6883	object := value.Object()
6884	defer object.Close()
6885
6886	if v.Limit != nil {
6887		ok := object.Key("Limit")
6888		ok.Integer(*v.Limit)
6889	}
6890
6891	if v.NextToken != nil {
6892		ok := object.Key("NextToken")
6893		ok.String(*v.NextToken)
6894	}
6895
6896	return nil
6897}
6898
6899func awsAwsjson11_serializeOpDocumentListGameServersInput(v *ListGameServersInput, value smithyjson.Value) error {
6900	object := value.Object()
6901	defer object.Close()
6902
6903	if v.GameServerGroupName != nil {
6904		ok := object.Key("GameServerGroupName")
6905		ok.String(*v.GameServerGroupName)
6906	}
6907
6908	if v.Limit != nil {
6909		ok := object.Key("Limit")
6910		ok.Integer(*v.Limit)
6911	}
6912
6913	if v.NextToken != nil {
6914		ok := object.Key("NextToken")
6915		ok.String(*v.NextToken)
6916	}
6917
6918	if len(v.SortOrder) > 0 {
6919		ok := object.Key("SortOrder")
6920		ok.String(string(v.SortOrder))
6921	}
6922
6923	return nil
6924}
6925
6926func awsAwsjson11_serializeOpDocumentListScriptsInput(v *ListScriptsInput, value smithyjson.Value) error {
6927	object := value.Object()
6928	defer object.Close()
6929
6930	if v.Limit != nil {
6931		ok := object.Key("Limit")
6932		ok.Integer(*v.Limit)
6933	}
6934
6935	if v.NextToken != nil {
6936		ok := object.Key("NextToken")
6937		ok.String(*v.NextToken)
6938	}
6939
6940	return nil
6941}
6942
6943func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForResourceInput, value smithyjson.Value) error {
6944	object := value.Object()
6945	defer object.Close()
6946
6947	if v.ResourceARN != nil {
6948		ok := object.Key("ResourceARN")
6949		ok.String(*v.ResourceARN)
6950	}
6951
6952	return nil
6953}
6954
6955func awsAwsjson11_serializeOpDocumentPutScalingPolicyInput(v *PutScalingPolicyInput, value smithyjson.Value) error {
6956	object := value.Object()
6957	defer object.Close()
6958
6959	if len(v.ComparisonOperator) > 0 {
6960		ok := object.Key("ComparisonOperator")
6961		ok.String(string(v.ComparisonOperator))
6962	}
6963
6964	if v.EvaluationPeriods != nil {
6965		ok := object.Key("EvaluationPeriods")
6966		ok.Integer(*v.EvaluationPeriods)
6967	}
6968
6969	if v.FleetId != nil {
6970		ok := object.Key("FleetId")
6971		ok.String(*v.FleetId)
6972	}
6973
6974	if len(v.MetricName) > 0 {
6975		ok := object.Key("MetricName")
6976		ok.String(string(v.MetricName))
6977	}
6978
6979	if v.Name != nil {
6980		ok := object.Key("Name")
6981		ok.String(*v.Name)
6982	}
6983
6984	if len(v.PolicyType) > 0 {
6985		ok := object.Key("PolicyType")
6986		ok.String(string(v.PolicyType))
6987	}
6988
6989	if v.ScalingAdjustment != 0 {
6990		ok := object.Key("ScalingAdjustment")
6991		ok.Integer(v.ScalingAdjustment)
6992	}
6993
6994	if len(v.ScalingAdjustmentType) > 0 {
6995		ok := object.Key("ScalingAdjustmentType")
6996		ok.String(string(v.ScalingAdjustmentType))
6997	}
6998
6999	if v.TargetConfiguration != nil {
7000		ok := object.Key("TargetConfiguration")
7001		if err := awsAwsjson11_serializeDocumentTargetConfiguration(v.TargetConfiguration, ok); err != nil {
7002			return err
7003		}
7004	}
7005
7006	if v.Threshold != 0 {
7007		ok := object.Key("Threshold")
7008		ok.Double(v.Threshold)
7009	}
7010
7011	return nil
7012}
7013
7014func awsAwsjson11_serializeOpDocumentRegisterGameServerInput(v *RegisterGameServerInput, value smithyjson.Value) error {
7015	object := value.Object()
7016	defer object.Close()
7017
7018	if v.ConnectionInfo != nil {
7019		ok := object.Key("ConnectionInfo")
7020		ok.String(*v.ConnectionInfo)
7021	}
7022
7023	if v.GameServerData != nil {
7024		ok := object.Key("GameServerData")
7025		ok.String(*v.GameServerData)
7026	}
7027
7028	if v.GameServerGroupName != nil {
7029		ok := object.Key("GameServerGroupName")
7030		ok.String(*v.GameServerGroupName)
7031	}
7032
7033	if v.GameServerId != nil {
7034		ok := object.Key("GameServerId")
7035		ok.String(*v.GameServerId)
7036	}
7037
7038	if v.InstanceId != nil {
7039		ok := object.Key("InstanceId")
7040		ok.String(*v.InstanceId)
7041	}
7042
7043	return nil
7044}
7045
7046func awsAwsjson11_serializeOpDocumentRequestUploadCredentialsInput(v *RequestUploadCredentialsInput, value smithyjson.Value) error {
7047	object := value.Object()
7048	defer object.Close()
7049
7050	if v.BuildId != nil {
7051		ok := object.Key("BuildId")
7052		ok.String(*v.BuildId)
7053	}
7054
7055	return nil
7056}
7057
7058func awsAwsjson11_serializeOpDocumentResolveAliasInput(v *ResolveAliasInput, value smithyjson.Value) error {
7059	object := value.Object()
7060	defer object.Close()
7061
7062	if v.AliasId != nil {
7063		ok := object.Key("AliasId")
7064		ok.String(*v.AliasId)
7065	}
7066
7067	return nil
7068}
7069
7070func awsAwsjson11_serializeOpDocumentResumeGameServerGroupInput(v *ResumeGameServerGroupInput, value smithyjson.Value) error {
7071	object := value.Object()
7072	defer object.Close()
7073
7074	if v.GameServerGroupName != nil {
7075		ok := object.Key("GameServerGroupName")
7076		ok.String(*v.GameServerGroupName)
7077	}
7078
7079	if v.ResumeActions != nil {
7080		ok := object.Key("ResumeActions")
7081		if err := awsAwsjson11_serializeDocumentGameServerGroupActions(v.ResumeActions, ok); err != nil {
7082			return err
7083		}
7084	}
7085
7086	return nil
7087}
7088
7089func awsAwsjson11_serializeOpDocumentSearchGameSessionsInput(v *SearchGameSessionsInput, value smithyjson.Value) error {
7090	object := value.Object()
7091	defer object.Close()
7092
7093	if v.AliasId != nil {
7094		ok := object.Key("AliasId")
7095		ok.String(*v.AliasId)
7096	}
7097
7098	if v.FilterExpression != nil {
7099		ok := object.Key("FilterExpression")
7100		ok.String(*v.FilterExpression)
7101	}
7102
7103	if v.FleetId != nil {
7104		ok := object.Key("FleetId")
7105		ok.String(*v.FleetId)
7106	}
7107
7108	if v.Limit != nil {
7109		ok := object.Key("Limit")
7110		ok.Integer(*v.Limit)
7111	}
7112
7113	if v.Location != nil {
7114		ok := object.Key("Location")
7115		ok.String(*v.Location)
7116	}
7117
7118	if v.NextToken != nil {
7119		ok := object.Key("NextToken")
7120		ok.String(*v.NextToken)
7121	}
7122
7123	if v.SortExpression != nil {
7124		ok := object.Key("SortExpression")
7125		ok.String(*v.SortExpression)
7126	}
7127
7128	return nil
7129}
7130
7131func awsAwsjson11_serializeOpDocumentStartFleetActionsInput(v *StartFleetActionsInput, value smithyjson.Value) error {
7132	object := value.Object()
7133	defer object.Close()
7134
7135	if v.Actions != nil {
7136		ok := object.Key("Actions")
7137		if err := awsAwsjson11_serializeDocumentFleetActionList(v.Actions, ok); err != nil {
7138			return err
7139		}
7140	}
7141
7142	if v.FleetId != nil {
7143		ok := object.Key("FleetId")
7144		ok.String(*v.FleetId)
7145	}
7146
7147	if v.Location != nil {
7148		ok := object.Key("Location")
7149		ok.String(*v.Location)
7150	}
7151
7152	return nil
7153}
7154
7155func awsAwsjson11_serializeOpDocumentStartGameSessionPlacementInput(v *StartGameSessionPlacementInput, value smithyjson.Value) error {
7156	object := value.Object()
7157	defer object.Close()
7158
7159	if v.DesiredPlayerSessions != nil {
7160		ok := object.Key("DesiredPlayerSessions")
7161		if err := awsAwsjson11_serializeDocumentDesiredPlayerSessionList(v.DesiredPlayerSessions, ok); err != nil {
7162			return err
7163		}
7164	}
7165
7166	if v.GameProperties != nil {
7167		ok := object.Key("GameProperties")
7168		if err := awsAwsjson11_serializeDocumentGamePropertyList(v.GameProperties, ok); err != nil {
7169			return err
7170		}
7171	}
7172
7173	if v.GameSessionData != nil {
7174		ok := object.Key("GameSessionData")
7175		ok.String(*v.GameSessionData)
7176	}
7177
7178	if v.GameSessionName != nil {
7179		ok := object.Key("GameSessionName")
7180		ok.String(*v.GameSessionName)
7181	}
7182
7183	if v.GameSessionQueueName != nil {
7184		ok := object.Key("GameSessionQueueName")
7185		ok.String(*v.GameSessionQueueName)
7186	}
7187
7188	if v.MaximumPlayerSessionCount != nil {
7189		ok := object.Key("MaximumPlayerSessionCount")
7190		ok.Integer(*v.MaximumPlayerSessionCount)
7191	}
7192
7193	if v.PlacementId != nil {
7194		ok := object.Key("PlacementId")
7195		ok.String(*v.PlacementId)
7196	}
7197
7198	if v.PlayerLatencies != nil {
7199		ok := object.Key("PlayerLatencies")
7200		if err := awsAwsjson11_serializeDocumentPlayerLatencyList(v.PlayerLatencies, ok); err != nil {
7201			return err
7202		}
7203	}
7204
7205	return nil
7206}
7207
7208func awsAwsjson11_serializeOpDocumentStartMatchBackfillInput(v *StartMatchBackfillInput, value smithyjson.Value) error {
7209	object := value.Object()
7210	defer object.Close()
7211
7212	if v.ConfigurationName != nil {
7213		ok := object.Key("ConfigurationName")
7214		ok.String(*v.ConfigurationName)
7215	}
7216
7217	if v.GameSessionArn != nil {
7218		ok := object.Key("GameSessionArn")
7219		ok.String(*v.GameSessionArn)
7220	}
7221
7222	if v.Players != nil {
7223		ok := object.Key("Players")
7224		if err := awsAwsjson11_serializeDocumentPlayerList(v.Players, ok); err != nil {
7225			return err
7226		}
7227	}
7228
7229	if v.TicketId != nil {
7230		ok := object.Key("TicketId")
7231		ok.String(*v.TicketId)
7232	}
7233
7234	return nil
7235}
7236
7237func awsAwsjson11_serializeOpDocumentStartMatchmakingInput(v *StartMatchmakingInput, value smithyjson.Value) error {
7238	object := value.Object()
7239	defer object.Close()
7240
7241	if v.ConfigurationName != nil {
7242		ok := object.Key("ConfigurationName")
7243		ok.String(*v.ConfigurationName)
7244	}
7245
7246	if v.Players != nil {
7247		ok := object.Key("Players")
7248		if err := awsAwsjson11_serializeDocumentPlayerList(v.Players, ok); err != nil {
7249			return err
7250		}
7251	}
7252
7253	if v.TicketId != nil {
7254		ok := object.Key("TicketId")
7255		ok.String(*v.TicketId)
7256	}
7257
7258	return nil
7259}
7260
7261func awsAwsjson11_serializeOpDocumentStopFleetActionsInput(v *StopFleetActionsInput, value smithyjson.Value) error {
7262	object := value.Object()
7263	defer object.Close()
7264
7265	if v.Actions != nil {
7266		ok := object.Key("Actions")
7267		if err := awsAwsjson11_serializeDocumentFleetActionList(v.Actions, ok); err != nil {
7268			return err
7269		}
7270	}
7271
7272	if v.FleetId != nil {
7273		ok := object.Key("FleetId")
7274		ok.String(*v.FleetId)
7275	}
7276
7277	if v.Location != nil {
7278		ok := object.Key("Location")
7279		ok.String(*v.Location)
7280	}
7281
7282	return nil
7283}
7284
7285func awsAwsjson11_serializeOpDocumentStopGameSessionPlacementInput(v *StopGameSessionPlacementInput, value smithyjson.Value) error {
7286	object := value.Object()
7287	defer object.Close()
7288
7289	if v.PlacementId != nil {
7290		ok := object.Key("PlacementId")
7291		ok.String(*v.PlacementId)
7292	}
7293
7294	return nil
7295}
7296
7297func awsAwsjson11_serializeOpDocumentStopMatchmakingInput(v *StopMatchmakingInput, value smithyjson.Value) error {
7298	object := value.Object()
7299	defer object.Close()
7300
7301	if v.TicketId != nil {
7302		ok := object.Key("TicketId")
7303		ok.String(*v.TicketId)
7304	}
7305
7306	return nil
7307}
7308
7309func awsAwsjson11_serializeOpDocumentSuspendGameServerGroupInput(v *SuspendGameServerGroupInput, value smithyjson.Value) error {
7310	object := value.Object()
7311	defer object.Close()
7312
7313	if v.GameServerGroupName != nil {
7314		ok := object.Key("GameServerGroupName")
7315		ok.String(*v.GameServerGroupName)
7316	}
7317
7318	if v.SuspendActions != nil {
7319		ok := object.Key("SuspendActions")
7320		if err := awsAwsjson11_serializeDocumentGameServerGroupActions(v.SuspendActions, ok); err != nil {
7321			return err
7322		}
7323	}
7324
7325	return nil
7326}
7327
7328func awsAwsjson11_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error {
7329	object := value.Object()
7330	defer object.Close()
7331
7332	if v.ResourceARN != nil {
7333		ok := object.Key("ResourceARN")
7334		ok.String(*v.ResourceARN)
7335	}
7336
7337	if v.Tags != nil {
7338		ok := object.Key("Tags")
7339		if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
7340			return err
7341		}
7342	}
7343
7344	return nil
7345}
7346
7347func awsAwsjson11_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, value smithyjson.Value) error {
7348	object := value.Object()
7349	defer object.Close()
7350
7351	if v.ResourceARN != nil {
7352		ok := object.Key("ResourceARN")
7353		ok.String(*v.ResourceARN)
7354	}
7355
7356	if v.TagKeys != nil {
7357		ok := object.Key("TagKeys")
7358		if err := awsAwsjson11_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil {
7359			return err
7360		}
7361	}
7362
7363	return nil
7364}
7365
7366func awsAwsjson11_serializeOpDocumentUpdateAliasInput(v *UpdateAliasInput, value smithyjson.Value) error {
7367	object := value.Object()
7368	defer object.Close()
7369
7370	if v.AliasId != nil {
7371		ok := object.Key("AliasId")
7372		ok.String(*v.AliasId)
7373	}
7374
7375	if v.Description != nil {
7376		ok := object.Key("Description")
7377		ok.String(*v.Description)
7378	}
7379
7380	if v.Name != nil {
7381		ok := object.Key("Name")
7382		ok.String(*v.Name)
7383	}
7384
7385	if v.RoutingStrategy != nil {
7386		ok := object.Key("RoutingStrategy")
7387		if err := awsAwsjson11_serializeDocumentRoutingStrategy(v.RoutingStrategy, ok); err != nil {
7388			return err
7389		}
7390	}
7391
7392	return nil
7393}
7394
7395func awsAwsjson11_serializeOpDocumentUpdateBuildInput(v *UpdateBuildInput, value smithyjson.Value) error {
7396	object := value.Object()
7397	defer object.Close()
7398
7399	if v.BuildId != nil {
7400		ok := object.Key("BuildId")
7401		ok.String(*v.BuildId)
7402	}
7403
7404	if v.Name != nil {
7405		ok := object.Key("Name")
7406		ok.String(*v.Name)
7407	}
7408
7409	if v.Version != nil {
7410		ok := object.Key("Version")
7411		ok.String(*v.Version)
7412	}
7413
7414	return nil
7415}
7416
7417func awsAwsjson11_serializeOpDocumentUpdateFleetAttributesInput(v *UpdateFleetAttributesInput, value smithyjson.Value) error {
7418	object := value.Object()
7419	defer object.Close()
7420
7421	if v.Description != nil {
7422		ok := object.Key("Description")
7423		ok.String(*v.Description)
7424	}
7425
7426	if v.FleetId != nil {
7427		ok := object.Key("FleetId")
7428		ok.String(*v.FleetId)
7429	}
7430
7431	if v.MetricGroups != nil {
7432		ok := object.Key("MetricGroups")
7433		if err := awsAwsjson11_serializeDocumentMetricGroupList(v.MetricGroups, ok); err != nil {
7434			return err
7435		}
7436	}
7437
7438	if v.Name != nil {
7439		ok := object.Key("Name")
7440		ok.String(*v.Name)
7441	}
7442
7443	if len(v.NewGameSessionProtectionPolicy) > 0 {
7444		ok := object.Key("NewGameSessionProtectionPolicy")
7445		ok.String(string(v.NewGameSessionProtectionPolicy))
7446	}
7447
7448	if v.ResourceCreationLimitPolicy != nil {
7449		ok := object.Key("ResourceCreationLimitPolicy")
7450		if err := awsAwsjson11_serializeDocumentResourceCreationLimitPolicy(v.ResourceCreationLimitPolicy, ok); err != nil {
7451			return err
7452		}
7453	}
7454
7455	return nil
7456}
7457
7458func awsAwsjson11_serializeOpDocumentUpdateFleetCapacityInput(v *UpdateFleetCapacityInput, value smithyjson.Value) error {
7459	object := value.Object()
7460	defer object.Close()
7461
7462	if v.DesiredInstances != nil {
7463		ok := object.Key("DesiredInstances")
7464		ok.Integer(*v.DesiredInstances)
7465	}
7466
7467	if v.FleetId != nil {
7468		ok := object.Key("FleetId")
7469		ok.String(*v.FleetId)
7470	}
7471
7472	if v.Location != nil {
7473		ok := object.Key("Location")
7474		ok.String(*v.Location)
7475	}
7476
7477	if v.MaxSize != nil {
7478		ok := object.Key("MaxSize")
7479		ok.Integer(*v.MaxSize)
7480	}
7481
7482	if v.MinSize != nil {
7483		ok := object.Key("MinSize")
7484		ok.Integer(*v.MinSize)
7485	}
7486
7487	return nil
7488}
7489
7490func awsAwsjson11_serializeOpDocumentUpdateFleetPortSettingsInput(v *UpdateFleetPortSettingsInput, value smithyjson.Value) error {
7491	object := value.Object()
7492	defer object.Close()
7493
7494	if v.FleetId != nil {
7495		ok := object.Key("FleetId")
7496		ok.String(*v.FleetId)
7497	}
7498
7499	if v.InboundPermissionAuthorizations != nil {
7500		ok := object.Key("InboundPermissionAuthorizations")
7501		if err := awsAwsjson11_serializeDocumentIpPermissionsList(v.InboundPermissionAuthorizations, ok); err != nil {
7502			return err
7503		}
7504	}
7505
7506	if v.InboundPermissionRevocations != nil {
7507		ok := object.Key("InboundPermissionRevocations")
7508		if err := awsAwsjson11_serializeDocumentIpPermissionsList(v.InboundPermissionRevocations, ok); err != nil {
7509			return err
7510		}
7511	}
7512
7513	return nil
7514}
7515
7516func awsAwsjson11_serializeOpDocumentUpdateGameServerGroupInput(v *UpdateGameServerGroupInput, value smithyjson.Value) error {
7517	object := value.Object()
7518	defer object.Close()
7519
7520	if len(v.BalancingStrategy) > 0 {
7521		ok := object.Key("BalancingStrategy")
7522		ok.String(string(v.BalancingStrategy))
7523	}
7524
7525	if v.GameServerGroupName != nil {
7526		ok := object.Key("GameServerGroupName")
7527		ok.String(*v.GameServerGroupName)
7528	}
7529
7530	if len(v.GameServerProtectionPolicy) > 0 {
7531		ok := object.Key("GameServerProtectionPolicy")
7532		ok.String(string(v.GameServerProtectionPolicy))
7533	}
7534
7535	if v.InstanceDefinitions != nil {
7536		ok := object.Key("InstanceDefinitions")
7537		if err := awsAwsjson11_serializeDocumentInstanceDefinitions(v.InstanceDefinitions, ok); err != nil {
7538			return err
7539		}
7540	}
7541
7542	if v.RoleArn != nil {
7543		ok := object.Key("RoleArn")
7544		ok.String(*v.RoleArn)
7545	}
7546
7547	return nil
7548}
7549
7550func awsAwsjson11_serializeOpDocumentUpdateGameServerInput(v *UpdateGameServerInput, value smithyjson.Value) error {
7551	object := value.Object()
7552	defer object.Close()
7553
7554	if v.GameServerData != nil {
7555		ok := object.Key("GameServerData")
7556		ok.String(*v.GameServerData)
7557	}
7558
7559	if v.GameServerGroupName != nil {
7560		ok := object.Key("GameServerGroupName")
7561		ok.String(*v.GameServerGroupName)
7562	}
7563
7564	if v.GameServerId != nil {
7565		ok := object.Key("GameServerId")
7566		ok.String(*v.GameServerId)
7567	}
7568
7569	if len(v.HealthCheck) > 0 {
7570		ok := object.Key("HealthCheck")
7571		ok.String(string(v.HealthCheck))
7572	}
7573
7574	if len(v.UtilizationStatus) > 0 {
7575		ok := object.Key("UtilizationStatus")
7576		ok.String(string(v.UtilizationStatus))
7577	}
7578
7579	return nil
7580}
7581
7582func awsAwsjson11_serializeOpDocumentUpdateGameSessionInput(v *UpdateGameSessionInput, value smithyjson.Value) error {
7583	object := value.Object()
7584	defer object.Close()
7585
7586	if v.GameSessionId != nil {
7587		ok := object.Key("GameSessionId")
7588		ok.String(*v.GameSessionId)
7589	}
7590
7591	if v.MaximumPlayerSessionCount != nil {
7592		ok := object.Key("MaximumPlayerSessionCount")
7593		ok.Integer(*v.MaximumPlayerSessionCount)
7594	}
7595
7596	if v.Name != nil {
7597		ok := object.Key("Name")
7598		ok.String(*v.Name)
7599	}
7600
7601	if len(v.PlayerSessionCreationPolicy) > 0 {
7602		ok := object.Key("PlayerSessionCreationPolicy")
7603		ok.String(string(v.PlayerSessionCreationPolicy))
7604	}
7605
7606	if len(v.ProtectionPolicy) > 0 {
7607		ok := object.Key("ProtectionPolicy")
7608		ok.String(string(v.ProtectionPolicy))
7609	}
7610
7611	return nil
7612}
7613
7614func awsAwsjson11_serializeOpDocumentUpdateGameSessionQueueInput(v *UpdateGameSessionQueueInput, value smithyjson.Value) error {
7615	object := value.Object()
7616	defer object.Close()
7617
7618	if v.CustomEventData != nil {
7619		ok := object.Key("CustomEventData")
7620		ok.String(*v.CustomEventData)
7621	}
7622
7623	if v.Destinations != nil {
7624		ok := object.Key("Destinations")
7625		if err := awsAwsjson11_serializeDocumentGameSessionQueueDestinationList(v.Destinations, ok); err != nil {
7626			return err
7627		}
7628	}
7629
7630	if v.FilterConfiguration != nil {
7631		ok := object.Key("FilterConfiguration")
7632		if err := awsAwsjson11_serializeDocumentFilterConfiguration(v.FilterConfiguration, ok); err != nil {
7633			return err
7634		}
7635	}
7636
7637	if v.Name != nil {
7638		ok := object.Key("Name")
7639		ok.String(*v.Name)
7640	}
7641
7642	if v.NotificationTarget != nil {
7643		ok := object.Key("NotificationTarget")
7644		ok.String(*v.NotificationTarget)
7645	}
7646
7647	if v.PlayerLatencyPolicies != nil {
7648		ok := object.Key("PlayerLatencyPolicies")
7649		if err := awsAwsjson11_serializeDocumentPlayerLatencyPolicyList(v.PlayerLatencyPolicies, ok); err != nil {
7650			return err
7651		}
7652	}
7653
7654	if v.PriorityConfiguration != nil {
7655		ok := object.Key("PriorityConfiguration")
7656		if err := awsAwsjson11_serializeDocumentPriorityConfiguration(v.PriorityConfiguration, ok); err != nil {
7657			return err
7658		}
7659	}
7660
7661	if v.TimeoutInSeconds != nil {
7662		ok := object.Key("TimeoutInSeconds")
7663		ok.Integer(*v.TimeoutInSeconds)
7664	}
7665
7666	return nil
7667}
7668
7669func awsAwsjson11_serializeOpDocumentUpdateMatchmakingConfigurationInput(v *UpdateMatchmakingConfigurationInput, value smithyjson.Value) error {
7670	object := value.Object()
7671	defer object.Close()
7672
7673	if v.AcceptanceRequired != nil {
7674		ok := object.Key("AcceptanceRequired")
7675		ok.Boolean(*v.AcceptanceRequired)
7676	}
7677
7678	if v.AcceptanceTimeoutSeconds != nil {
7679		ok := object.Key("AcceptanceTimeoutSeconds")
7680		ok.Integer(*v.AcceptanceTimeoutSeconds)
7681	}
7682
7683	if v.AdditionalPlayerCount != nil {
7684		ok := object.Key("AdditionalPlayerCount")
7685		ok.Integer(*v.AdditionalPlayerCount)
7686	}
7687
7688	if len(v.BackfillMode) > 0 {
7689		ok := object.Key("BackfillMode")
7690		ok.String(string(v.BackfillMode))
7691	}
7692
7693	if v.CustomEventData != nil {
7694		ok := object.Key("CustomEventData")
7695		ok.String(*v.CustomEventData)
7696	}
7697
7698	if v.Description != nil {
7699		ok := object.Key("Description")
7700		ok.String(*v.Description)
7701	}
7702
7703	if len(v.FlexMatchMode) > 0 {
7704		ok := object.Key("FlexMatchMode")
7705		ok.String(string(v.FlexMatchMode))
7706	}
7707
7708	if v.GameProperties != nil {
7709		ok := object.Key("GameProperties")
7710		if err := awsAwsjson11_serializeDocumentGamePropertyList(v.GameProperties, ok); err != nil {
7711			return err
7712		}
7713	}
7714
7715	if v.GameSessionData != nil {
7716		ok := object.Key("GameSessionData")
7717		ok.String(*v.GameSessionData)
7718	}
7719
7720	if v.GameSessionQueueArns != nil {
7721		ok := object.Key("GameSessionQueueArns")
7722		if err := awsAwsjson11_serializeDocumentQueueArnsList(v.GameSessionQueueArns, ok); err != nil {
7723			return err
7724		}
7725	}
7726
7727	if v.Name != nil {
7728		ok := object.Key("Name")
7729		ok.String(*v.Name)
7730	}
7731
7732	if v.NotificationTarget != nil {
7733		ok := object.Key("NotificationTarget")
7734		ok.String(*v.NotificationTarget)
7735	}
7736
7737	if v.RequestTimeoutSeconds != nil {
7738		ok := object.Key("RequestTimeoutSeconds")
7739		ok.Integer(*v.RequestTimeoutSeconds)
7740	}
7741
7742	if v.RuleSetName != nil {
7743		ok := object.Key("RuleSetName")
7744		ok.String(*v.RuleSetName)
7745	}
7746
7747	return nil
7748}
7749
7750func awsAwsjson11_serializeOpDocumentUpdateRuntimeConfigurationInput(v *UpdateRuntimeConfigurationInput, value smithyjson.Value) error {
7751	object := value.Object()
7752	defer object.Close()
7753
7754	if v.FleetId != nil {
7755		ok := object.Key("FleetId")
7756		ok.String(*v.FleetId)
7757	}
7758
7759	if v.RuntimeConfiguration != nil {
7760		ok := object.Key("RuntimeConfiguration")
7761		if err := awsAwsjson11_serializeDocumentRuntimeConfiguration(v.RuntimeConfiguration, ok); err != nil {
7762			return err
7763		}
7764	}
7765
7766	return nil
7767}
7768
7769func awsAwsjson11_serializeOpDocumentUpdateScriptInput(v *UpdateScriptInput, value smithyjson.Value) error {
7770	object := value.Object()
7771	defer object.Close()
7772
7773	if v.Name != nil {
7774		ok := object.Key("Name")
7775		ok.String(*v.Name)
7776	}
7777
7778	if v.ScriptId != nil {
7779		ok := object.Key("ScriptId")
7780		ok.String(*v.ScriptId)
7781	}
7782
7783	if v.StorageLocation != nil {
7784		ok := object.Key("StorageLocation")
7785		if err := awsAwsjson11_serializeDocumentS3Location(v.StorageLocation, ok); err != nil {
7786			return err
7787		}
7788	}
7789
7790	if v.Version != nil {
7791		ok := object.Key("Version")
7792		ok.String(*v.Version)
7793	}
7794
7795	if v.ZipFile != nil {
7796		ok := object.Key("ZipFile")
7797		ok.Base64EncodeBytes(v.ZipFile)
7798	}
7799
7800	return nil
7801}
7802
7803func awsAwsjson11_serializeOpDocumentValidateMatchmakingRuleSetInput(v *ValidateMatchmakingRuleSetInput, value smithyjson.Value) error {
7804	object := value.Object()
7805	defer object.Close()
7806
7807	if v.RuleSetBody != nil {
7808		ok := object.Key("RuleSetBody")
7809		ok.String(*v.RuleSetBody)
7810	}
7811
7812	return nil
7813}
7814