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