1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package opsworkscm
4
5import (
6	"bytes"
7	"context"
8	"encoding/json"
9	"fmt"
10	"github.com/aws/aws-sdk-go-v2/aws/protocol/restjson"
11	"github.com/aws/aws-sdk-go-v2/service/opsworkscm/types"
12	smithy "github.com/aws/smithy-go"
13	smithyio "github.com/aws/smithy-go/io"
14	"github.com/aws/smithy-go/middleware"
15	"github.com/aws/smithy-go/ptr"
16	smithytime "github.com/aws/smithy-go/time"
17	smithyhttp "github.com/aws/smithy-go/transport/http"
18	"io"
19	"strings"
20)
21
22type awsAwsjson11_deserializeOpAssociateNode struct {
23}
24
25func (*awsAwsjson11_deserializeOpAssociateNode) ID() string {
26	return "OperationDeserializer"
27}
28
29func (m *awsAwsjson11_deserializeOpAssociateNode) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
30	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
31) {
32	out, metadata, err = next.HandleDeserialize(ctx, in)
33	if err != nil {
34		return out, metadata, err
35	}
36
37	response, ok := out.RawResponse.(*smithyhttp.Response)
38	if !ok {
39		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
40	}
41
42	if response.StatusCode < 200 || response.StatusCode >= 300 {
43		return out, metadata, awsAwsjson11_deserializeOpErrorAssociateNode(response, &metadata)
44	}
45	output := &AssociateNodeOutput{}
46	out.Result = output
47
48	var buff [1024]byte
49	ringBuffer := smithyio.NewRingBuffer(buff[:])
50
51	body := io.TeeReader(response.Body, ringBuffer)
52	decoder := json.NewDecoder(body)
53	decoder.UseNumber()
54	var shape interface{}
55	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
56		var snapshot bytes.Buffer
57		io.Copy(&snapshot, ringBuffer)
58		err = &smithy.DeserializationError{
59			Err:      fmt.Errorf("failed to decode response body, %w", err),
60			Snapshot: snapshot.Bytes(),
61		}
62		return out, metadata, err
63	}
64
65	err = awsAwsjson11_deserializeOpDocumentAssociateNodeOutput(&output, shape)
66	if err != nil {
67		var snapshot bytes.Buffer
68		io.Copy(&snapshot, ringBuffer)
69		err = &smithy.DeserializationError{
70			Err:      fmt.Errorf("failed to decode response body, %w", err),
71			Snapshot: snapshot.Bytes(),
72		}
73		return out, metadata, err
74	}
75
76	return out, metadata, err
77}
78
79func awsAwsjson11_deserializeOpErrorAssociateNode(response *smithyhttp.Response, metadata *middleware.Metadata) error {
80	var errorBuffer bytes.Buffer
81	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
82		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
83	}
84	errorBody := bytes.NewReader(errorBuffer.Bytes())
85
86	errorCode := "UnknownError"
87	errorMessage := errorCode
88
89	code := response.Header.Get("X-Amzn-ErrorType")
90	if len(code) != 0 {
91		errorCode = restjson.SanitizeErrorCode(code)
92	}
93
94	var buff [1024]byte
95	ringBuffer := smithyio.NewRingBuffer(buff[:])
96
97	body := io.TeeReader(errorBody, ringBuffer)
98	decoder := json.NewDecoder(body)
99	decoder.UseNumber()
100	code, message, err := restjson.GetErrorInfo(decoder)
101	if err != nil {
102		var snapshot bytes.Buffer
103		io.Copy(&snapshot, ringBuffer)
104		err = &smithy.DeserializationError{
105			Err:      fmt.Errorf("failed to decode response body, %w", err),
106			Snapshot: snapshot.Bytes(),
107		}
108		return err
109	}
110
111	errorBody.Seek(0, io.SeekStart)
112	if len(code) != 0 {
113		errorCode = restjson.SanitizeErrorCode(code)
114	}
115	if len(message) != 0 {
116		errorMessage = message
117	}
118
119	switch {
120	case strings.EqualFold("InvalidStateException", errorCode):
121		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
122
123	case strings.EqualFold("ResourceNotFoundException", errorCode):
124		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
125
126	case strings.EqualFold("ValidationException", errorCode):
127		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
128
129	default:
130		genericError := &smithy.GenericAPIError{
131			Code:    errorCode,
132			Message: errorMessage,
133		}
134		return genericError
135
136	}
137}
138
139type awsAwsjson11_deserializeOpCreateBackup struct {
140}
141
142func (*awsAwsjson11_deserializeOpCreateBackup) ID() string {
143	return "OperationDeserializer"
144}
145
146func (m *awsAwsjson11_deserializeOpCreateBackup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
147	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
148) {
149	out, metadata, err = next.HandleDeserialize(ctx, in)
150	if err != nil {
151		return out, metadata, err
152	}
153
154	response, ok := out.RawResponse.(*smithyhttp.Response)
155	if !ok {
156		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
157	}
158
159	if response.StatusCode < 200 || response.StatusCode >= 300 {
160		return out, metadata, awsAwsjson11_deserializeOpErrorCreateBackup(response, &metadata)
161	}
162	output := &CreateBackupOutput{}
163	out.Result = output
164
165	var buff [1024]byte
166	ringBuffer := smithyio.NewRingBuffer(buff[:])
167
168	body := io.TeeReader(response.Body, ringBuffer)
169	decoder := json.NewDecoder(body)
170	decoder.UseNumber()
171	var shape interface{}
172	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
173		var snapshot bytes.Buffer
174		io.Copy(&snapshot, ringBuffer)
175		err = &smithy.DeserializationError{
176			Err:      fmt.Errorf("failed to decode response body, %w", err),
177			Snapshot: snapshot.Bytes(),
178		}
179		return out, metadata, err
180	}
181
182	err = awsAwsjson11_deserializeOpDocumentCreateBackupOutput(&output, shape)
183	if err != nil {
184		var snapshot bytes.Buffer
185		io.Copy(&snapshot, ringBuffer)
186		err = &smithy.DeserializationError{
187			Err:      fmt.Errorf("failed to decode response body, %w", err),
188			Snapshot: snapshot.Bytes(),
189		}
190		return out, metadata, err
191	}
192
193	return out, metadata, err
194}
195
196func awsAwsjson11_deserializeOpErrorCreateBackup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
197	var errorBuffer bytes.Buffer
198	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
199		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
200	}
201	errorBody := bytes.NewReader(errorBuffer.Bytes())
202
203	errorCode := "UnknownError"
204	errorMessage := errorCode
205
206	code := response.Header.Get("X-Amzn-ErrorType")
207	if len(code) != 0 {
208		errorCode = restjson.SanitizeErrorCode(code)
209	}
210
211	var buff [1024]byte
212	ringBuffer := smithyio.NewRingBuffer(buff[:])
213
214	body := io.TeeReader(errorBody, ringBuffer)
215	decoder := json.NewDecoder(body)
216	decoder.UseNumber()
217	code, message, err := restjson.GetErrorInfo(decoder)
218	if err != nil {
219		var snapshot bytes.Buffer
220		io.Copy(&snapshot, ringBuffer)
221		err = &smithy.DeserializationError{
222			Err:      fmt.Errorf("failed to decode response body, %w", err),
223			Snapshot: snapshot.Bytes(),
224		}
225		return err
226	}
227
228	errorBody.Seek(0, io.SeekStart)
229	if len(code) != 0 {
230		errorCode = restjson.SanitizeErrorCode(code)
231	}
232	if len(message) != 0 {
233		errorMessage = message
234	}
235
236	switch {
237	case strings.EqualFold("InvalidStateException", errorCode):
238		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
239
240	case strings.EqualFold("LimitExceededException", errorCode):
241		return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody)
242
243	case strings.EqualFold("ResourceNotFoundException", errorCode):
244		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
245
246	case strings.EqualFold("ValidationException", errorCode):
247		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
248
249	default:
250		genericError := &smithy.GenericAPIError{
251			Code:    errorCode,
252			Message: errorMessage,
253		}
254		return genericError
255
256	}
257}
258
259type awsAwsjson11_deserializeOpCreateServer struct {
260}
261
262func (*awsAwsjson11_deserializeOpCreateServer) ID() string {
263	return "OperationDeserializer"
264}
265
266func (m *awsAwsjson11_deserializeOpCreateServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
267	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
268) {
269	out, metadata, err = next.HandleDeserialize(ctx, in)
270	if err != nil {
271		return out, metadata, err
272	}
273
274	response, ok := out.RawResponse.(*smithyhttp.Response)
275	if !ok {
276		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
277	}
278
279	if response.StatusCode < 200 || response.StatusCode >= 300 {
280		return out, metadata, awsAwsjson11_deserializeOpErrorCreateServer(response, &metadata)
281	}
282	output := &CreateServerOutput{}
283	out.Result = output
284
285	var buff [1024]byte
286	ringBuffer := smithyio.NewRingBuffer(buff[:])
287
288	body := io.TeeReader(response.Body, ringBuffer)
289	decoder := json.NewDecoder(body)
290	decoder.UseNumber()
291	var shape interface{}
292	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
293		var snapshot bytes.Buffer
294		io.Copy(&snapshot, ringBuffer)
295		err = &smithy.DeserializationError{
296			Err:      fmt.Errorf("failed to decode response body, %w", err),
297			Snapshot: snapshot.Bytes(),
298		}
299		return out, metadata, err
300	}
301
302	err = awsAwsjson11_deserializeOpDocumentCreateServerOutput(&output, shape)
303	if err != nil {
304		var snapshot bytes.Buffer
305		io.Copy(&snapshot, ringBuffer)
306		err = &smithy.DeserializationError{
307			Err:      fmt.Errorf("failed to decode response body, %w", err),
308			Snapshot: snapshot.Bytes(),
309		}
310		return out, metadata, err
311	}
312
313	return out, metadata, err
314}
315
316func awsAwsjson11_deserializeOpErrorCreateServer(response *smithyhttp.Response, metadata *middleware.Metadata) error {
317	var errorBuffer bytes.Buffer
318	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
319		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
320	}
321	errorBody := bytes.NewReader(errorBuffer.Bytes())
322
323	errorCode := "UnknownError"
324	errorMessage := errorCode
325
326	code := response.Header.Get("X-Amzn-ErrorType")
327	if len(code) != 0 {
328		errorCode = restjson.SanitizeErrorCode(code)
329	}
330
331	var buff [1024]byte
332	ringBuffer := smithyio.NewRingBuffer(buff[:])
333
334	body := io.TeeReader(errorBody, ringBuffer)
335	decoder := json.NewDecoder(body)
336	decoder.UseNumber()
337	code, message, err := restjson.GetErrorInfo(decoder)
338	if err != nil {
339		var snapshot bytes.Buffer
340		io.Copy(&snapshot, ringBuffer)
341		err = &smithy.DeserializationError{
342			Err:      fmt.Errorf("failed to decode response body, %w", err),
343			Snapshot: snapshot.Bytes(),
344		}
345		return err
346	}
347
348	errorBody.Seek(0, io.SeekStart)
349	if len(code) != 0 {
350		errorCode = restjson.SanitizeErrorCode(code)
351	}
352	if len(message) != 0 {
353		errorMessage = message
354	}
355
356	switch {
357	case strings.EqualFold("LimitExceededException", errorCode):
358		return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody)
359
360	case strings.EqualFold("ResourceAlreadyExistsException", errorCode):
361		return awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response, errorBody)
362
363	case strings.EqualFold("ResourceNotFoundException", errorCode):
364		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
365
366	case strings.EqualFold("ValidationException", errorCode):
367		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
368
369	default:
370		genericError := &smithy.GenericAPIError{
371			Code:    errorCode,
372			Message: errorMessage,
373		}
374		return genericError
375
376	}
377}
378
379type awsAwsjson11_deserializeOpDeleteBackup struct {
380}
381
382func (*awsAwsjson11_deserializeOpDeleteBackup) ID() string {
383	return "OperationDeserializer"
384}
385
386func (m *awsAwsjson11_deserializeOpDeleteBackup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
387	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
388) {
389	out, metadata, err = next.HandleDeserialize(ctx, in)
390	if err != nil {
391		return out, metadata, err
392	}
393
394	response, ok := out.RawResponse.(*smithyhttp.Response)
395	if !ok {
396		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
397	}
398
399	if response.StatusCode < 200 || response.StatusCode >= 300 {
400		return out, metadata, awsAwsjson11_deserializeOpErrorDeleteBackup(response, &metadata)
401	}
402	output := &DeleteBackupOutput{}
403	out.Result = output
404
405	var buff [1024]byte
406	ringBuffer := smithyio.NewRingBuffer(buff[:])
407
408	body := io.TeeReader(response.Body, ringBuffer)
409	decoder := json.NewDecoder(body)
410	decoder.UseNumber()
411	var shape interface{}
412	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
413		var snapshot bytes.Buffer
414		io.Copy(&snapshot, ringBuffer)
415		err = &smithy.DeserializationError{
416			Err:      fmt.Errorf("failed to decode response body, %w", err),
417			Snapshot: snapshot.Bytes(),
418		}
419		return out, metadata, err
420	}
421
422	err = awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(&output, shape)
423	if err != nil {
424		var snapshot bytes.Buffer
425		io.Copy(&snapshot, ringBuffer)
426		err = &smithy.DeserializationError{
427			Err:      fmt.Errorf("failed to decode response body, %w", err),
428			Snapshot: snapshot.Bytes(),
429		}
430		return out, metadata, err
431	}
432
433	return out, metadata, err
434}
435
436func awsAwsjson11_deserializeOpErrorDeleteBackup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
437	var errorBuffer bytes.Buffer
438	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
439		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
440	}
441	errorBody := bytes.NewReader(errorBuffer.Bytes())
442
443	errorCode := "UnknownError"
444	errorMessage := errorCode
445
446	code := response.Header.Get("X-Amzn-ErrorType")
447	if len(code) != 0 {
448		errorCode = restjson.SanitizeErrorCode(code)
449	}
450
451	var buff [1024]byte
452	ringBuffer := smithyio.NewRingBuffer(buff[:])
453
454	body := io.TeeReader(errorBody, ringBuffer)
455	decoder := json.NewDecoder(body)
456	decoder.UseNumber()
457	code, message, err := restjson.GetErrorInfo(decoder)
458	if err != nil {
459		var snapshot bytes.Buffer
460		io.Copy(&snapshot, ringBuffer)
461		err = &smithy.DeserializationError{
462			Err:      fmt.Errorf("failed to decode response body, %w", err),
463			Snapshot: snapshot.Bytes(),
464		}
465		return err
466	}
467
468	errorBody.Seek(0, io.SeekStart)
469	if len(code) != 0 {
470		errorCode = restjson.SanitizeErrorCode(code)
471	}
472	if len(message) != 0 {
473		errorMessage = message
474	}
475
476	switch {
477	case strings.EqualFold("InvalidStateException", errorCode):
478		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
479
480	case strings.EqualFold("ResourceNotFoundException", errorCode):
481		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
482
483	case strings.EqualFold("ValidationException", errorCode):
484		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
485
486	default:
487		genericError := &smithy.GenericAPIError{
488			Code:    errorCode,
489			Message: errorMessage,
490		}
491		return genericError
492
493	}
494}
495
496type awsAwsjson11_deserializeOpDeleteServer struct {
497}
498
499func (*awsAwsjson11_deserializeOpDeleteServer) ID() string {
500	return "OperationDeserializer"
501}
502
503func (m *awsAwsjson11_deserializeOpDeleteServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
504	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
505) {
506	out, metadata, err = next.HandleDeserialize(ctx, in)
507	if err != nil {
508		return out, metadata, err
509	}
510
511	response, ok := out.RawResponse.(*smithyhttp.Response)
512	if !ok {
513		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
514	}
515
516	if response.StatusCode < 200 || response.StatusCode >= 300 {
517		return out, metadata, awsAwsjson11_deserializeOpErrorDeleteServer(response, &metadata)
518	}
519	output := &DeleteServerOutput{}
520	out.Result = output
521
522	var buff [1024]byte
523	ringBuffer := smithyio.NewRingBuffer(buff[:])
524
525	body := io.TeeReader(response.Body, ringBuffer)
526	decoder := json.NewDecoder(body)
527	decoder.UseNumber()
528	var shape interface{}
529	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
530		var snapshot bytes.Buffer
531		io.Copy(&snapshot, ringBuffer)
532		err = &smithy.DeserializationError{
533			Err:      fmt.Errorf("failed to decode response body, %w", err),
534			Snapshot: snapshot.Bytes(),
535		}
536		return out, metadata, err
537	}
538
539	err = awsAwsjson11_deserializeOpDocumentDeleteServerOutput(&output, shape)
540	if err != nil {
541		var snapshot bytes.Buffer
542		io.Copy(&snapshot, ringBuffer)
543		err = &smithy.DeserializationError{
544			Err:      fmt.Errorf("failed to decode response body, %w", err),
545			Snapshot: snapshot.Bytes(),
546		}
547		return out, metadata, err
548	}
549
550	return out, metadata, err
551}
552
553func awsAwsjson11_deserializeOpErrorDeleteServer(response *smithyhttp.Response, metadata *middleware.Metadata) error {
554	var errorBuffer bytes.Buffer
555	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
556		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
557	}
558	errorBody := bytes.NewReader(errorBuffer.Bytes())
559
560	errorCode := "UnknownError"
561	errorMessage := errorCode
562
563	code := response.Header.Get("X-Amzn-ErrorType")
564	if len(code) != 0 {
565		errorCode = restjson.SanitizeErrorCode(code)
566	}
567
568	var buff [1024]byte
569	ringBuffer := smithyio.NewRingBuffer(buff[:])
570
571	body := io.TeeReader(errorBody, ringBuffer)
572	decoder := json.NewDecoder(body)
573	decoder.UseNumber()
574	code, message, err := restjson.GetErrorInfo(decoder)
575	if err != nil {
576		var snapshot bytes.Buffer
577		io.Copy(&snapshot, ringBuffer)
578		err = &smithy.DeserializationError{
579			Err:      fmt.Errorf("failed to decode response body, %w", err),
580			Snapshot: snapshot.Bytes(),
581		}
582		return err
583	}
584
585	errorBody.Seek(0, io.SeekStart)
586	if len(code) != 0 {
587		errorCode = restjson.SanitizeErrorCode(code)
588	}
589	if len(message) != 0 {
590		errorMessage = message
591	}
592
593	switch {
594	case strings.EqualFold("InvalidStateException", errorCode):
595		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
596
597	case strings.EqualFold("ResourceNotFoundException", errorCode):
598		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
599
600	case strings.EqualFold("ValidationException", errorCode):
601		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
602
603	default:
604		genericError := &smithy.GenericAPIError{
605			Code:    errorCode,
606			Message: errorMessage,
607		}
608		return genericError
609
610	}
611}
612
613type awsAwsjson11_deserializeOpDescribeAccountAttributes struct {
614}
615
616func (*awsAwsjson11_deserializeOpDescribeAccountAttributes) ID() string {
617	return "OperationDeserializer"
618}
619
620func (m *awsAwsjson11_deserializeOpDescribeAccountAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
621	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
622) {
623	out, metadata, err = next.HandleDeserialize(ctx, in)
624	if err != nil {
625		return out, metadata, err
626	}
627
628	response, ok := out.RawResponse.(*smithyhttp.Response)
629	if !ok {
630		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
631	}
632
633	if response.StatusCode < 200 || response.StatusCode >= 300 {
634		return out, metadata, awsAwsjson11_deserializeOpErrorDescribeAccountAttributes(response, &metadata)
635	}
636	output := &DescribeAccountAttributesOutput{}
637	out.Result = output
638
639	var buff [1024]byte
640	ringBuffer := smithyio.NewRingBuffer(buff[:])
641
642	body := io.TeeReader(response.Body, ringBuffer)
643	decoder := json.NewDecoder(body)
644	decoder.UseNumber()
645	var shape interface{}
646	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
647		var snapshot bytes.Buffer
648		io.Copy(&snapshot, ringBuffer)
649		err = &smithy.DeserializationError{
650			Err:      fmt.Errorf("failed to decode response body, %w", err),
651			Snapshot: snapshot.Bytes(),
652		}
653		return out, metadata, err
654	}
655
656	err = awsAwsjson11_deserializeOpDocumentDescribeAccountAttributesOutput(&output, shape)
657	if err != nil {
658		var snapshot bytes.Buffer
659		io.Copy(&snapshot, ringBuffer)
660		err = &smithy.DeserializationError{
661			Err:      fmt.Errorf("failed to decode response body, %w", err),
662			Snapshot: snapshot.Bytes(),
663		}
664		return out, metadata, err
665	}
666
667	return out, metadata, err
668}
669
670func awsAwsjson11_deserializeOpErrorDescribeAccountAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error {
671	var errorBuffer bytes.Buffer
672	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
673		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
674	}
675	errorBody := bytes.NewReader(errorBuffer.Bytes())
676
677	errorCode := "UnknownError"
678	errorMessage := errorCode
679
680	code := response.Header.Get("X-Amzn-ErrorType")
681	if len(code) != 0 {
682		errorCode = restjson.SanitizeErrorCode(code)
683	}
684
685	var buff [1024]byte
686	ringBuffer := smithyio.NewRingBuffer(buff[:])
687
688	body := io.TeeReader(errorBody, ringBuffer)
689	decoder := json.NewDecoder(body)
690	decoder.UseNumber()
691	code, message, err := restjson.GetErrorInfo(decoder)
692	if err != nil {
693		var snapshot bytes.Buffer
694		io.Copy(&snapshot, ringBuffer)
695		err = &smithy.DeserializationError{
696			Err:      fmt.Errorf("failed to decode response body, %w", err),
697			Snapshot: snapshot.Bytes(),
698		}
699		return err
700	}
701
702	errorBody.Seek(0, io.SeekStart)
703	if len(code) != 0 {
704		errorCode = restjson.SanitizeErrorCode(code)
705	}
706	if len(message) != 0 {
707		errorMessage = message
708	}
709
710	switch {
711	default:
712		genericError := &smithy.GenericAPIError{
713			Code:    errorCode,
714			Message: errorMessage,
715		}
716		return genericError
717
718	}
719}
720
721type awsAwsjson11_deserializeOpDescribeBackups struct {
722}
723
724func (*awsAwsjson11_deserializeOpDescribeBackups) ID() string {
725	return "OperationDeserializer"
726}
727
728func (m *awsAwsjson11_deserializeOpDescribeBackups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
729	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
730) {
731	out, metadata, err = next.HandleDeserialize(ctx, in)
732	if err != nil {
733		return out, metadata, err
734	}
735
736	response, ok := out.RawResponse.(*smithyhttp.Response)
737	if !ok {
738		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
739	}
740
741	if response.StatusCode < 200 || response.StatusCode >= 300 {
742		return out, metadata, awsAwsjson11_deserializeOpErrorDescribeBackups(response, &metadata)
743	}
744	output := &DescribeBackupsOutput{}
745	out.Result = output
746
747	var buff [1024]byte
748	ringBuffer := smithyio.NewRingBuffer(buff[:])
749
750	body := io.TeeReader(response.Body, ringBuffer)
751	decoder := json.NewDecoder(body)
752	decoder.UseNumber()
753	var shape interface{}
754	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
755		var snapshot bytes.Buffer
756		io.Copy(&snapshot, ringBuffer)
757		err = &smithy.DeserializationError{
758			Err:      fmt.Errorf("failed to decode response body, %w", err),
759			Snapshot: snapshot.Bytes(),
760		}
761		return out, metadata, err
762	}
763
764	err = awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(&output, shape)
765	if err != nil {
766		var snapshot bytes.Buffer
767		io.Copy(&snapshot, ringBuffer)
768		err = &smithy.DeserializationError{
769			Err:      fmt.Errorf("failed to decode response body, %w", err),
770			Snapshot: snapshot.Bytes(),
771		}
772		return out, metadata, err
773	}
774
775	return out, metadata, err
776}
777
778func awsAwsjson11_deserializeOpErrorDescribeBackups(response *smithyhttp.Response, metadata *middleware.Metadata) error {
779	var errorBuffer bytes.Buffer
780	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
781		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
782	}
783	errorBody := bytes.NewReader(errorBuffer.Bytes())
784
785	errorCode := "UnknownError"
786	errorMessage := errorCode
787
788	code := response.Header.Get("X-Amzn-ErrorType")
789	if len(code) != 0 {
790		errorCode = restjson.SanitizeErrorCode(code)
791	}
792
793	var buff [1024]byte
794	ringBuffer := smithyio.NewRingBuffer(buff[:])
795
796	body := io.TeeReader(errorBody, ringBuffer)
797	decoder := json.NewDecoder(body)
798	decoder.UseNumber()
799	code, message, err := restjson.GetErrorInfo(decoder)
800	if err != nil {
801		var snapshot bytes.Buffer
802		io.Copy(&snapshot, ringBuffer)
803		err = &smithy.DeserializationError{
804			Err:      fmt.Errorf("failed to decode response body, %w", err),
805			Snapshot: snapshot.Bytes(),
806		}
807		return err
808	}
809
810	errorBody.Seek(0, io.SeekStart)
811	if len(code) != 0 {
812		errorCode = restjson.SanitizeErrorCode(code)
813	}
814	if len(message) != 0 {
815		errorMessage = message
816	}
817
818	switch {
819	case strings.EqualFold("InvalidNextTokenException", errorCode):
820		return awsAwsjson11_deserializeErrorInvalidNextTokenException(response, errorBody)
821
822	case strings.EqualFold("ResourceNotFoundException", errorCode):
823		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
824
825	case strings.EqualFold("ValidationException", errorCode):
826		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
827
828	default:
829		genericError := &smithy.GenericAPIError{
830			Code:    errorCode,
831			Message: errorMessage,
832		}
833		return genericError
834
835	}
836}
837
838type awsAwsjson11_deserializeOpDescribeEvents struct {
839}
840
841func (*awsAwsjson11_deserializeOpDescribeEvents) ID() string {
842	return "OperationDeserializer"
843}
844
845func (m *awsAwsjson11_deserializeOpDescribeEvents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
846	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
847) {
848	out, metadata, err = next.HandleDeserialize(ctx, in)
849	if err != nil {
850		return out, metadata, err
851	}
852
853	response, ok := out.RawResponse.(*smithyhttp.Response)
854	if !ok {
855		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
856	}
857
858	if response.StatusCode < 200 || response.StatusCode >= 300 {
859		return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEvents(response, &metadata)
860	}
861	output := &DescribeEventsOutput{}
862	out.Result = output
863
864	var buff [1024]byte
865	ringBuffer := smithyio.NewRingBuffer(buff[:])
866
867	body := io.TeeReader(response.Body, ringBuffer)
868	decoder := json.NewDecoder(body)
869	decoder.UseNumber()
870	var shape interface{}
871	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
872		var snapshot bytes.Buffer
873		io.Copy(&snapshot, ringBuffer)
874		err = &smithy.DeserializationError{
875			Err:      fmt.Errorf("failed to decode response body, %w", err),
876			Snapshot: snapshot.Bytes(),
877		}
878		return out, metadata, err
879	}
880
881	err = awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(&output, shape)
882	if err != nil {
883		var snapshot bytes.Buffer
884		io.Copy(&snapshot, ringBuffer)
885		err = &smithy.DeserializationError{
886			Err:      fmt.Errorf("failed to decode response body, %w", err),
887			Snapshot: snapshot.Bytes(),
888		}
889		return out, metadata, err
890	}
891
892	return out, metadata, err
893}
894
895func awsAwsjson11_deserializeOpErrorDescribeEvents(response *smithyhttp.Response, metadata *middleware.Metadata) error {
896	var errorBuffer bytes.Buffer
897	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
898		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
899	}
900	errorBody := bytes.NewReader(errorBuffer.Bytes())
901
902	errorCode := "UnknownError"
903	errorMessage := errorCode
904
905	code := response.Header.Get("X-Amzn-ErrorType")
906	if len(code) != 0 {
907		errorCode = restjson.SanitizeErrorCode(code)
908	}
909
910	var buff [1024]byte
911	ringBuffer := smithyio.NewRingBuffer(buff[:])
912
913	body := io.TeeReader(errorBody, ringBuffer)
914	decoder := json.NewDecoder(body)
915	decoder.UseNumber()
916	code, message, err := restjson.GetErrorInfo(decoder)
917	if err != nil {
918		var snapshot bytes.Buffer
919		io.Copy(&snapshot, ringBuffer)
920		err = &smithy.DeserializationError{
921			Err:      fmt.Errorf("failed to decode response body, %w", err),
922			Snapshot: snapshot.Bytes(),
923		}
924		return err
925	}
926
927	errorBody.Seek(0, io.SeekStart)
928	if len(code) != 0 {
929		errorCode = restjson.SanitizeErrorCode(code)
930	}
931	if len(message) != 0 {
932		errorMessage = message
933	}
934
935	switch {
936	case strings.EqualFold("InvalidNextTokenException", errorCode):
937		return awsAwsjson11_deserializeErrorInvalidNextTokenException(response, errorBody)
938
939	case strings.EqualFold("ResourceNotFoundException", errorCode):
940		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
941
942	case strings.EqualFold("ValidationException", errorCode):
943		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
944
945	default:
946		genericError := &smithy.GenericAPIError{
947			Code:    errorCode,
948			Message: errorMessage,
949		}
950		return genericError
951
952	}
953}
954
955type awsAwsjson11_deserializeOpDescribeNodeAssociationStatus struct {
956}
957
958func (*awsAwsjson11_deserializeOpDescribeNodeAssociationStatus) ID() string {
959	return "OperationDeserializer"
960}
961
962func (m *awsAwsjson11_deserializeOpDescribeNodeAssociationStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
963	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
964) {
965	out, metadata, err = next.HandleDeserialize(ctx, in)
966	if err != nil {
967		return out, metadata, err
968	}
969
970	response, ok := out.RawResponse.(*smithyhttp.Response)
971	if !ok {
972		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
973	}
974
975	if response.StatusCode < 200 || response.StatusCode >= 300 {
976		return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNodeAssociationStatus(response, &metadata)
977	}
978	output := &DescribeNodeAssociationStatusOutput{}
979	out.Result = output
980
981	var buff [1024]byte
982	ringBuffer := smithyio.NewRingBuffer(buff[:])
983
984	body := io.TeeReader(response.Body, ringBuffer)
985	decoder := json.NewDecoder(body)
986	decoder.UseNumber()
987	var shape interface{}
988	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
989		var snapshot bytes.Buffer
990		io.Copy(&snapshot, ringBuffer)
991		err = &smithy.DeserializationError{
992			Err:      fmt.Errorf("failed to decode response body, %w", err),
993			Snapshot: snapshot.Bytes(),
994		}
995		return out, metadata, err
996	}
997
998	err = awsAwsjson11_deserializeOpDocumentDescribeNodeAssociationStatusOutput(&output, shape)
999	if err != nil {
1000		var snapshot bytes.Buffer
1001		io.Copy(&snapshot, ringBuffer)
1002		err = &smithy.DeserializationError{
1003			Err:      fmt.Errorf("failed to decode response body, %w", err),
1004			Snapshot: snapshot.Bytes(),
1005		}
1006		return out, metadata, err
1007	}
1008
1009	return out, metadata, err
1010}
1011
1012func awsAwsjson11_deserializeOpErrorDescribeNodeAssociationStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1013	var errorBuffer bytes.Buffer
1014	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1015		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1016	}
1017	errorBody := bytes.NewReader(errorBuffer.Bytes())
1018
1019	errorCode := "UnknownError"
1020	errorMessage := errorCode
1021
1022	code := response.Header.Get("X-Amzn-ErrorType")
1023	if len(code) != 0 {
1024		errorCode = restjson.SanitizeErrorCode(code)
1025	}
1026
1027	var buff [1024]byte
1028	ringBuffer := smithyio.NewRingBuffer(buff[:])
1029
1030	body := io.TeeReader(errorBody, ringBuffer)
1031	decoder := json.NewDecoder(body)
1032	decoder.UseNumber()
1033	code, message, err := restjson.GetErrorInfo(decoder)
1034	if err != nil {
1035		var snapshot bytes.Buffer
1036		io.Copy(&snapshot, ringBuffer)
1037		err = &smithy.DeserializationError{
1038			Err:      fmt.Errorf("failed to decode response body, %w", err),
1039			Snapshot: snapshot.Bytes(),
1040		}
1041		return err
1042	}
1043
1044	errorBody.Seek(0, io.SeekStart)
1045	if len(code) != 0 {
1046		errorCode = restjson.SanitizeErrorCode(code)
1047	}
1048	if len(message) != 0 {
1049		errorMessage = message
1050	}
1051
1052	switch {
1053	case strings.EqualFold("ResourceNotFoundException", errorCode):
1054		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1055
1056	case strings.EqualFold("ValidationException", errorCode):
1057		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1058
1059	default:
1060		genericError := &smithy.GenericAPIError{
1061			Code:    errorCode,
1062			Message: errorMessage,
1063		}
1064		return genericError
1065
1066	}
1067}
1068
1069type awsAwsjson11_deserializeOpDescribeServers struct {
1070}
1071
1072func (*awsAwsjson11_deserializeOpDescribeServers) ID() string {
1073	return "OperationDeserializer"
1074}
1075
1076func (m *awsAwsjson11_deserializeOpDescribeServers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1077	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1078) {
1079	out, metadata, err = next.HandleDeserialize(ctx, in)
1080	if err != nil {
1081		return out, metadata, err
1082	}
1083
1084	response, ok := out.RawResponse.(*smithyhttp.Response)
1085	if !ok {
1086		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1087	}
1088
1089	if response.StatusCode < 200 || response.StatusCode >= 300 {
1090		return out, metadata, awsAwsjson11_deserializeOpErrorDescribeServers(response, &metadata)
1091	}
1092	output := &DescribeServersOutput{}
1093	out.Result = output
1094
1095	var buff [1024]byte
1096	ringBuffer := smithyio.NewRingBuffer(buff[:])
1097
1098	body := io.TeeReader(response.Body, ringBuffer)
1099	decoder := json.NewDecoder(body)
1100	decoder.UseNumber()
1101	var shape interface{}
1102	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1103		var snapshot bytes.Buffer
1104		io.Copy(&snapshot, ringBuffer)
1105		err = &smithy.DeserializationError{
1106			Err:      fmt.Errorf("failed to decode response body, %w", err),
1107			Snapshot: snapshot.Bytes(),
1108		}
1109		return out, metadata, err
1110	}
1111
1112	err = awsAwsjson11_deserializeOpDocumentDescribeServersOutput(&output, shape)
1113	if err != nil {
1114		var snapshot bytes.Buffer
1115		io.Copy(&snapshot, ringBuffer)
1116		err = &smithy.DeserializationError{
1117			Err:      fmt.Errorf("failed to decode response body, %w", err),
1118			Snapshot: snapshot.Bytes(),
1119		}
1120		return out, metadata, err
1121	}
1122
1123	return out, metadata, err
1124}
1125
1126func awsAwsjson11_deserializeOpErrorDescribeServers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1127	var errorBuffer bytes.Buffer
1128	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1129		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1130	}
1131	errorBody := bytes.NewReader(errorBuffer.Bytes())
1132
1133	errorCode := "UnknownError"
1134	errorMessage := errorCode
1135
1136	code := response.Header.Get("X-Amzn-ErrorType")
1137	if len(code) != 0 {
1138		errorCode = restjson.SanitizeErrorCode(code)
1139	}
1140
1141	var buff [1024]byte
1142	ringBuffer := smithyio.NewRingBuffer(buff[:])
1143
1144	body := io.TeeReader(errorBody, ringBuffer)
1145	decoder := json.NewDecoder(body)
1146	decoder.UseNumber()
1147	code, message, err := restjson.GetErrorInfo(decoder)
1148	if err != nil {
1149		var snapshot bytes.Buffer
1150		io.Copy(&snapshot, ringBuffer)
1151		err = &smithy.DeserializationError{
1152			Err:      fmt.Errorf("failed to decode response body, %w", err),
1153			Snapshot: snapshot.Bytes(),
1154		}
1155		return err
1156	}
1157
1158	errorBody.Seek(0, io.SeekStart)
1159	if len(code) != 0 {
1160		errorCode = restjson.SanitizeErrorCode(code)
1161	}
1162	if len(message) != 0 {
1163		errorMessage = message
1164	}
1165
1166	switch {
1167	case strings.EqualFold("InvalidNextTokenException", errorCode):
1168		return awsAwsjson11_deserializeErrorInvalidNextTokenException(response, errorBody)
1169
1170	case strings.EqualFold("ResourceNotFoundException", errorCode):
1171		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1172
1173	case strings.EqualFold("ValidationException", errorCode):
1174		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1175
1176	default:
1177		genericError := &smithy.GenericAPIError{
1178			Code:    errorCode,
1179			Message: errorMessage,
1180		}
1181		return genericError
1182
1183	}
1184}
1185
1186type awsAwsjson11_deserializeOpDisassociateNode struct {
1187}
1188
1189func (*awsAwsjson11_deserializeOpDisassociateNode) ID() string {
1190	return "OperationDeserializer"
1191}
1192
1193func (m *awsAwsjson11_deserializeOpDisassociateNode) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1194	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1195) {
1196	out, metadata, err = next.HandleDeserialize(ctx, in)
1197	if err != nil {
1198		return out, metadata, err
1199	}
1200
1201	response, ok := out.RawResponse.(*smithyhttp.Response)
1202	if !ok {
1203		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1204	}
1205
1206	if response.StatusCode < 200 || response.StatusCode >= 300 {
1207		return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateNode(response, &metadata)
1208	}
1209	output := &DisassociateNodeOutput{}
1210	out.Result = output
1211
1212	var buff [1024]byte
1213	ringBuffer := smithyio.NewRingBuffer(buff[:])
1214
1215	body := io.TeeReader(response.Body, ringBuffer)
1216	decoder := json.NewDecoder(body)
1217	decoder.UseNumber()
1218	var shape interface{}
1219	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1220		var snapshot bytes.Buffer
1221		io.Copy(&snapshot, ringBuffer)
1222		err = &smithy.DeserializationError{
1223			Err:      fmt.Errorf("failed to decode response body, %w", err),
1224			Snapshot: snapshot.Bytes(),
1225		}
1226		return out, metadata, err
1227	}
1228
1229	err = awsAwsjson11_deserializeOpDocumentDisassociateNodeOutput(&output, shape)
1230	if err != nil {
1231		var snapshot bytes.Buffer
1232		io.Copy(&snapshot, ringBuffer)
1233		err = &smithy.DeserializationError{
1234			Err:      fmt.Errorf("failed to decode response body, %w", err),
1235			Snapshot: snapshot.Bytes(),
1236		}
1237		return out, metadata, err
1238	}
1239
1240	return out, metadata, err
1241}
1242
1243func awsAwsjson11_deserializeOpErrorDisassociateNode(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1244	var errorBuffer bytes.Buffer
1245	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1246		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1247	}
1248	errorBody := bytes.NewReader(errorBuffer.Bytes())
1249
1250	errorCode := "UnknownError"
1251	errorMessage := errorCode
1252
1253	code := response.Header.Get("X-Amzn-ErrorType")
1254	if len(code) != 0 {
1255		errorCode = restjson.SanitizeErrorCode(code)
1256	}
1257
1258	var buff [1024]byte
1259	ringBuffer := smithyio.NewRingBuffer(buff[:])
1260
1261	body := io.TeeReader(errorBody, ringBuffer)
1262	decoder := json.NewDecoder(body)
1263	decoder.UseNumber()
1264	code, message, err := restjson.GetErrorInfo(decoder)
1265	if err != nil {
1266		var snapshot bytes.Buffer
1267		io.Copy(&snapshot, ringBuffer)
1268		err = &smithy.DeserializationError{
1269			Err:      fmt.Errorf("failed to decode response body, %w", err),
1270			Snapshot: snapshot.Bytes(),
1271		}
1272		return err
1273	}
1274
1275	errorBody.Seek(0, io.SeekStart)
1276	if len(code) != 0 {
1277		errorCode = restjson.SanitizeErrorCode(code)
1278	}
1279	if len(message) != 0 {
1280		errorMessage = message
1281	}
1282
1283	switch {
1284	case strings.EqualFold("InvalidStateException", errorCode):
1285		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1286
1287	case strings.EqualFold("ResourceNotFoundException", errorCode):
1288		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1289
1290	case strings.EqualFold("ValidationException", errorCode):
1291		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1292
1293	default:
1294		genericError := &smithy.GenericAPIError{
1295			Code:    errorCode,
1296			Message: errorMessage,
1297		}
1298		return genericError
1299
1300	}
1301}
1302
1303type awsAwsjson11_deserializeOpExportServerEngineAttribute struct {
1304}
1305
1306func (*awsAwsjson11_deserializeOpExportServerEngineAttribute) ID() string {
1307	return "OperationDeserializer"
1308}
1309
1310func (m *awsAwsjson11_deserializeOpExportServerEngineAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1311	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1312) {
1313	out, metadata, err = next.HandleDeserialize(ctx, in)
1314	if err != nil {
1315		return out, metadata, err
1316	}
1317
1318	response, ok := out.RawResponse.(*smithyhttp.Response)
1319	if !ok {
1320		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1321	}
1322
1323	if response.StatusCode < 200 || response.StatusCode >= 300 {
1324		return out, metadata, awsAwsjson11_deserializeOpErrorExportServerEngineAttribute(response, &metadata)
1325	}
1326	output := &ExportServerEngineAttributeOutput{}
1327	out.Result = output
1328
1329	var buff [1024]byte
1330	ringBuffer := smithyio.NewRingBuffer(buff[:])
1331
1332	body := io.TeeReader(response.Body, ringBuffer)
1333	decoder := json.NewDecoder(body)
1334	decoder.UseNumber()
1335	var shape interface{}
1336	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1337		var snapshot bytes.Buffer
1338		io.Copy(&snapshot, ringBuffer)
1339		err = &smithy.DeserializationError{
1340			Err:      fmt.Errorf("failed to decode response body, %w", err),
1341			Snapshot: snapshot.Bytes(),
1342		}
1343		return out, metadata, err
1344	}
1345
1346	err = awsAwsjson11_deserializeOpDocumentExportServerEngineAttributeOutput(&output, shape)
1347	if err != nil {
1348		var snapshot bytes.Buffer
1349		io.Copy(&snapshot, ringBuffer)
1350		err = &smithy.DeserializationError{
1351			Err:      fmt.Errorf("failed to decode response body, %w", err),
1352			Snapshot: snapshot.Bytes(),
1353		}
1354		return out, metadata, err
1355	}
1356
1357	return out, metadata, err
1358}
1359
1360func awsAwsjson11_deserializeOpErrorExportServerEngineAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1361	var errorBuffer bytes.Buffer
1362	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1363		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1364	}
1365	errorBody := bytes.NewReader(errorBuffer.Bytes())
1366
1367	errorCode := "UnknownError"
1368	errorMessage := errorCode
1369
1370	code := response.Header.Get("X-Amzn-ErrorType")
1371	if len(code) != 0 {
1372		errorCode = restjson.SanitizeErrorCode(code)
1373	}
1374
1375	var buff [1024]byte
1376	ringBuffer := smithyio.NewRingBuffer(buff[:])
1377
1378	body := io.TeeReader(errorBody, ringBuffer)
1379	decoder := json.NewDecoder(body)
1380	decoder.UseNumber()
1381	code, message, err := restjson.GetErrorInfo(decoder)
1382	if err != nil {
1383		var snapshot bytes.Buffer
1384		io.Copy(&snapshot, ringBuffer)
1385		err = &smithy.DeserializationError{
1386			Err:      fmt.Errorf("failed to decode response body, %w", err),
1387			Snapshot: snapshot.Bytes(),
1388		}
1389		return err
1390	}
1391
1392	errorBody.Seek(0, io.SeekStart)
1393	if len(code) != 0 {
1394		errorCode = restjson.SanitizeErrorCode(code)
1395	}
1396	if len(message) != 0 {
1397		errorMessage = message
1398	}
1399
1400	switch {
1401	case strings.EqualFold("InvalidStateException", errorCode):
1402		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1403
1404	case strings.EqualFold("ResourceNotFoundException", errorCode):
1405		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1406
1407	case strings.EqualFold("ValidationException", errorCode):
1408		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1409
1410	default:
1411		genericError := &smithy.GenericAPIError{
1412			Code:    errorCode,
1413			Message: errorMessage,
1414		}
1415		return genericError
1416
1417	}
1418}
1419
1420type awsAwsjson11_deserializeOpListTagsForResource struct {
1421}
1422
1423func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string {
1424	return "OperationDeserializer"
1425}
1426
1427func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1428	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1429) {
1430	out, metadata, err = next.HandleDeserialize(ctx, in)
1431	if err != nil {
1432		return out, metadata, err
1433	}
1434
1435	response, ok := out.RawResponse.(*smithyhttp.Response)
1436	if !ok {
1437		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1438	}
1439
1440	if response.StatusCode < 200 || response.StatusCode >= 300 {
1441		return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata)
1442	}
1443	output := &ListTagsForResourceOutput{}
1444	out.Result = output
1445
1446	var buff [1024]byte
1447	ringBuffer := smithyio.NewRingBuffer(buff[:])
1448
1449	body := io.TeeReader(response.Body, ringBuffer)
1450	decoder := json.NewDecoder(body)
1451	decoder.UseNumber()
1452	var shape interface{}
1453	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1454		var snapshot bytes.Buffer
1455		io.Copy(&snapshot, ringBuffer)
1456		err = &smithy.DeserializationError{
1457			Err:      fmt.Errorf("failed to decode response body, %w", err),
1458			Snapshot: snapshot.Bytes(),
1459		}
1460		return out, metadata, err
1461	}
1462
1463	err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
1464	if err != nil {
1465		var snapshot bytes.Buffer
1466		io.Copy(&snapshot, ringBuffer)
1467		err = &smithy.DeserializationError{
1468			Err:      fmt.Errorf("failed to decode response body, %w", err),
1469			Snapshot: snapshot.Bytes(),
1470		}
1471		return out, metadata, err
1472	}
1473
1474	return out, metadata, err
1475}
1476
1477func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1478	var errorBuffer bytes.Buffer
1479	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1480		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1481	}
1482	errorBody := bytes.NewReader(errorBuffer.Bytes())
1483
1484	errorCode := "UnknownError"
1485	errorMessage := errorCode
1486
1487	code := response.Header.Get("X-Amzn-ErrorType")
1488	if len(code) != 0 {
1489		errorCode = restjson.SanitizeErrorCode(code)
1490	}
1491
1492	var buff [1024]byte
1493	ringBuffer := smithyio.NewRingBuffer(buff[:])
1494
1495	body := io.TeeReader(errorBody, ringBuffer)
1496	decoder := json.NewDecoder(body)
1497	decoder.UseNumber()
1498	code, message, err := restjson.GetErrorInfo(decoder)
1499	if err != nil {
1500		var snapshot bytes.Buffer
1501		io.Copy(&snapshot, ringBuffer)
1502		err = &smithy.DeserializationError{
1503			Err:      fmt.Errorf("failed to decode response body, %w", err),
1504			Snapshot: snapshot.Bytes(),
1505		}
1506		return err
1507	}
1508
1509	errorBody.Seek(0, io.SeekStart)
1510	if len(code) != 0 {
1511		errorCode = restjson.SanitizeErrorCode(code)
1512	}
1513	if len(message) != 0 {
1514		errorMessage = message
1515	}
1516
1517	switch {
1518	case strings.EqualFold("ResourceNotFoundException", errorCode):
1519		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1520
1521	case strings.EqualFold("ValidationException", errorCode):
1522		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1523
1524	default:
1525		genericError := &smithy.GenericAPIError{
1526			Code:    errorCode,
1527			Message: errorMessage,
1528		}
1529		return genericError
1530
1531	}
1532}
1533
1534type awsAwsjson11_deserializeOpRestoreServer struct {
1535}
1536
1537func (*awsAwsjson11_deserializeOpRestoreServer) ID() string {
1538	return "OperationDeserializer"
1539}
1540
1541func (m *awsAwsjson11_deserializeOpRestoreServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1542	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1543) {
1544	out, metadata, err = next.HandleDeserialize(ctx, in)
1545	if err != nil {
1546		return out, metadata, err
1547	}
1548
1549	response, ok := out.RawResponse.(*smithyhttp.Response)
1550	if !ok {
1551		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1552	}
1553
1554	if response.StatusCode < 200 || response.StatusCode >= 300 {
1555		return out, metadata, awsAwsjson11_deserializeOpErrorRestoreServer(response, &metadata)
1556	}
1557	output := &RestoreServerOutput{}
1558	out.Result = output
1559
1560	var buff [1024]byte
1561	ringBuffer := smithyio.NewRingBuffer(buff[:])
1562
1563	body := io.TeeReader(response.Body, ringBuffer)
1564	decoder := json.NewDecoder(body)
1565	decoder.UseNumber()
1566	var shape interface{}
1567	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1568		var snapshot bytes.Buffer
1569		io.Copy(&snapshot, ringBuffer)
1570		err = &smithy.DeserializationError{
1571			Err:      fmt.Errorf("failed to decode response body, %w", err),
1572			Snapshot: snapshot.Bytes(),
1573		}
1574		return out, metadata, err
1575	}
1576
1577	err = awsAwsjson11_deserializeOpDocumentRestoreServerOutput(&output, shape)
1578	if err != nil {
1579		var snapshot bytes.Buffer
1580		io.Copy(&snapshot, ringBuffer)
1581		err = &smithy.DeserializationError{
1582			Err:      fmt.Errorf("failed to decode response body, %w", err),
1583			Snapshot: snapshot.Bytes(),
1584		}
1585		return out, metadata, err
1586	}
1587
1588	return out, metadata, err
1589}
1590
1591func awsAwsjson11_deserializeOpErrorRestoreServer(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1592	var errorBuffer bytes.Buffer
1593	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1594		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1595	}
1596	errorBody := bytes.NewReader(errorBuffer.Bytes())
1597
1598	errorCode := "UnknownError"
1599	errorMessage := errorCode
1600
1601	code := response.Header.Get("X-Amzn-ErrorType")
1602	if len(code) != 0 {
1603		errorCode = restjson.SanitizeErrorCode(code)
1604	}
1605
1606	var buff [1024]byte
1607	ringBuffer := smithyio.NewRingBuffer(buff[:])
1608
1609	body := io.TeeReader(errorBody, ringBuffer)
1610	decoder := json.NewDecoder(body)
1611	decoder.UseNumber()
1612	code, message, err := restjson.GetErrorInfo(decoder)
1613	if err != nil {
1614		var snapshot bytes.Buffer
1615		io.Copy(&snapshot, ringBuffer)
1616		err = &smithy.DeserializationError{
1617			Err:      fmt.Errorf("failed to decode response body, %w", err),
1618			Snapshot: snapshot.Bytes(),
1619		}
1620		return err
1621	}
1622
1623	errorBody.Seek(0, io.SeekStart)
1624	if len(code) != 0 {
1625		errorCode = restjson.SanitizeErrorCode(code)
1626	}
1627	if len(message) != 0 {
1628		errorMessage = message
1629	}
1630
1631	switch {
1632	case strings.EqualFold("InvalidStateException", errorCode):
1633		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1634
1635	case strings.EqualFold("ResourceNotFoundException", errorCode):
1636		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1637
1638	case strings.EqualFold("ValidationException", errorCode):
1639		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1640
1641	default:
1642		genericError := &smithy.GenericAPIError{
1643			Code:    errorCode,
1644			Message: errorMessage,
1645		}
1646		return genericError
1647
1648	}
1649}
1650
1651type awsAwsjson11_deserializeOpStartMaintenance struct {
1652}
1653
1654func (*awsAwsjson11_deserializeOpStartMaintenance) ID() string {
1655	return "OperationDeserializer"
1656}
1657
1658func (m *awsAwsjson11_deserializeOpStartMaintenance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1659	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1660) {
1661	out, metadata, err = next.HandleDeserialize(ctx, in)
1662	if err != nil {
1663		return out, metadata, err
1664	}
1665
1666	response, ok := out.RawResponse.(*smithyhttp.Response)
1667	if !ok {
1668		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1669	}
1670
1671	if response.StatusCode < 200 || response.StatusCode >= 300 {
1672		return out, metadata, awsAwsjson11_deserializeOpErrorStartMaintenance(response, &metadata)
1673	}
1674	output := &StartMaintenanceOutput{}
1675	out.Result = output
1676
1677	var buff [1024]byte
1678	ringBuffer := smithyio.NewRingBuffer(buff[:])
1679
1680	body := io.TeeReader(response.Body, ringBuffer)
1681	decoder := json.NewDecoder(body)
1682	decoder.UseNumber()
1683	var shape interface{}
1684	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1685		var snapshot bytes.Buffer
1686		io.Copy(&snapshot, ringBuffer)
1687		err = &smithy.DeserializationError{
1688			Err:      fmt.Errorf("failed to decode response body, %w", err),
1689			Snapshot: snapshot.Bytes(),
1690		}
1691		return out, metadata, err
1692	}
1693
1694	err = awsAwsjson11_deserializeOpDocumentStartMaintenanceOutput(&output, shape)
1695	if err != nil {
1696		var snapshot bytes.Buffer
1697		io.Copy(&snapshot, ringBuffer)
1698		err = &smithy.DeserializationError{
1699			Err:      fmt.Errorf("failed to decode response body, %w", err),
1700			Snapshot: snapshot.Bytes(),
1701		}
1702		return out, metadata, err
1703	}
1704
1705	return out, metadata, err
1706}
1707
1708func awsAwsjson11_deserializeOpErrorStartMaintenance(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1709	var errorBuffer bytes.Buffer
1710	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1711		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1712	}
1713	errorBody := bytes.NewReader(errorBuffer.Bytes())
1714
1715	errorCode := "UnknownError"
1716	errorMessage := errorCode
1717
1718	code := response.Header.Get("X-Amzn-ErrorType")
1719	if len(code) != 0 {
1720		errorCode = restjson.SanitizeErrorCode(code)
1721	}
1722
1723	var buff [1024]byte
1724	ringBuffer := smithyio.NewRingBuffer(buff[:])
1725
1726	body := io.TeeReader(errorBody, ringBuffer)
1727	decoder := json.NewDecoder(body)
1728	decoder.UseNumber()
1729	code, message, err := restjson.GetErrorInfo(decoder)
1730	if err != nil {
1731		var snapshot bytes.Buffer
1732		io.Copy(&snapshot, ringBuffer)
1733		err = &smithy.DeserializationError{
1734			Err:      fmt.Errorf("failed to decode response body, %w", err),
1735			Snapshot: snapshot.Bytes(),
1736		}
1737		return err
1738	}
1739
1740	errorBody.Seek(0, io.SeekStart)
1741	if len(code) != 0 {
1742		errorCode = restjson.SanitizeErrorCode(code)
1743	}
1744	if len(message) != 0 {
1745		errorMessage = message
1746	}
1747
1748	switch {
1749	case strings.EqualFold("InvalidStateException", errorCode):
1750		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1751
1752	case strings.EqualFold("ResourceNotFoundException", errorCode):
1753		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1754
1755	case strings.EqualFold("ValidationException", errorCode):
1756		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1757
1758	default:
1759		genericError := &smithy.GenericAPIError{
1760			Code:    errorCode,
1761			Message: errorMessage,
1762		}
1763		return genericError
1764
1765	}
1766}
1767
1768type awsAwsjson11_deserializeOpTagResource struct {
1769}
1770
1771func (*awsAwsjson11_deserializeOpTagResource) ID() string {
1772	return "OperationDeserializer"
1773}
1774
1775func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1776	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1777) {
1778	out, metadata, err = next.HandleDeserialize(ctx, in)
1779	if err != nil {
1780		return out, metadata, err
1781	}
1782
1783	response, ok := out.RawResponse.(*smithyhttp.Response)
1784	if !ok {
1785		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1786	}
1787
1788	if response.StatusCode < 200 || response.StatusCode >= 300 {
1789		return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata)
1790	}
1791	output := &TagResourceOutput{}
1792	out.Result = output
1793
1794	var buff [1024]byte
1795	ringBuffer := smithyio.NewRingBuffer(buff[:])
1796
1797	body := io.TeeReader(response.Body, ringBuffer)
1798	decoder := json.NewDecoder(body)
1799	decoder.UseNumber()
1800	var shape interface{}
1801	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1802		var snapshot bytes.Buffer
1803		io.Copy(&snapshot, ringBuffer)
1804		err = &smithy.DeserializationError{
1805			Err:      fmt.Errorf("failed to decode response body, %w", err),
1806			Snapshot: snapshot.Bytes(),
1807		}
1808		return out, metadata, err
1809	}
1810
1811	err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape)
1812	if err != nil {
1813		var snapshot bytes.Buffer
1814		io.Copy(&snapshot, ringBuffer)
1815		err = &smithy.DeserializationError{
1816			Err:      fmt.Errorf("failed to decode response body, %w", err),
1817			Snapshot: snapshot.Bytes(),
1818		}
1819		return out, metadata, err
1820	}
1821
1822	return out, metadata, err
1823}
1824
1825func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1826	var errorBuffer bytes.Buffer
1827	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1828		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1829	}
1830	errorBody := bytes.NewReader(errorBuffer.Bytes())
1831
1832	errorCode := "UnknownError"
1833	errorMessage := errorCode
1834
1835	code := response.Header.Get("X-Amzn-ErrorType")
1836	if len(code) != 0 {
1837		errorCode = restjson.SanitizeErrorCode(code)
1838	}
1839
1840	var buff [1024]byte
1841	ringBuffer := smithyio.NewRingBuffer(buff[:])
1842
1843	body := io.TeeReader(errorBody, ringBuffer)
1844	decoder := json.NewDecoder(body)
1845	decoder.UseNumber()
1846	code, message, err := restjson.GetErrorInfo(decoder)
1847	if err != nil {
1848		var snapshot bytes.Buffer
1849		io.Copy(&snapshot, ringBuffer)
1850		err = &smithy.DeserializationError{
1851			Err:      fmt.Errorf("failed to decode response body, %w", err),
1852			Snapshot: snapshot.Bytes(),
1853		}
1854		return err
1855	}
1856
1857	errorBody.Seek(0, io.SeekStart)
1858	if len(code) != 0 {
1859		errorCode = restjson.SanitizeErrorCode(code)
1860	}
1861	if len(message) != 0 {
1862		errorMessage = message
1863	}
1864
1865	switch {
1866	case strings.EqualFold("InvalidStateException", errorCode):
1867		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1868
1869	case strings.EqualFold("ResourceNotFoundException", errorCode):
1870		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1871
1872	case strings.EqualFold("ValidationException", errorCode):
1873		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1874
1875	default:
1876		genericError := &smithy.GenericAPIError{
1877			Code:    errorCode,
1878			Message: errorMessage,
1879		}
1880		return genericError
1881
1882	}
1883}
1884
1885type awsAwsjson11_deserializeOpUntagResource struct {
1886}
1887
1888func (*awsAwsjson11_deserializeOpUntagResource) ID() string {
1889	return "OperationDeserializer"
1890}
1891
1892func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
1893	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
1894) {
1895	out, metadata, err = next.HandleDeserialize(ctx, in)
1896	if err != nil {
1897		return out, metadata, err
1898	}
1899
1900	response, ok := out.RawResponse.(*smithyhttp.Response)
1901	if !ok {
1902		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
1903	}
1904
1905	if response.StatusCode < 200 || response.StatusCode >= 300 {
1906		return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata)
1907	}
1908	output := &UntagResourceOutput{}
1909	out.Result = output
1910
1911	var buff [1024]byte
1912	ringBuffer := smithyio.NewRingBuffer(buff[:])
1913
1914	body := io.TeeReader(response.Body, ringBuffer)
1915	decoder := json.NewDecoder(body)
1916	decoder.UseNumber()
1917	var shape interface{}
1918	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
1919		var snapshot bytes.Buffer
1920		io.Copy(&snapshot, ringBuffer)
1921		err = &smithy.DeserializationError{
1922			Err:      fmt.Errorf("failed to decode response body, %w", err),
1923			Snapshot: snapshot.Bytes(),
1924		}
1925		return out, metadata, err
1926	}
1927
1928	err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape)
1929	if err != nil {
1930		var snapshot bytes.Buffer
1931		io.Copy(&snapshot, ringBuffer)
1932		err = &smithy.DeserializationError{
1933			Err:      fmt.Errorf("failed to decode response body, %w", err),
1934			Snapshot: snapshot.Bytes(),
1935		}
1936		return out, metadata, err
1937	}
1938
1939	return out, metadata, err
1940}
1941
1942func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
1943	var errorBuffer bytes.Buffer
1944	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
1945		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
1946	}
1947	errorBody := bytes.NewReader(errorBuffer.Bytes())
1948
1949	errorCode := "UnknownError"
1950	errorMessage := errorCode
1951
1952	code := response.Header.Get("X-Amzn-ErrorType")
1953	if len(code) != 0 {
1954		errorCode = restjson.SanitizeErrorCode(code)
1955	}
1956
1957	var buff [1024]byte
1958	ringBuffer := smithyio.NewRingBuffer(buff[:])
1959
1960	body := io.TeeReader(errorBody, ringBuffer)
1961	decoder := json.NewDecoder(body)
1962	decoder.UseNumber()
1963	code, message, err := restjson.GetErrorInfo(decoder)
1964	if err != nil {
1965		var snapshot bytes.Buffer
1966		io.Copy(&snapshot, ringBuffer)
1967		err = &smithy.DeserializationError{
1968			Err:      fmt.Errorf("failed to decode response body, %w", err),
1969			Snapshot: snapshot.Bytes(),
1970		}
1971		return err
1972	}
1973
1974	errorBody.Seek(0, io.SeekStart)
1975	if len(code) != 0 {
1976		errorCode = restjson.SanitizeErrorCode(code)
1977	}
1978	if len(message) != 0 {
1979		errorMessage = message
1980	}
1981
1982	switch {
1983	case strings.EqualFold("InvalidStateException", errorCode):
1984		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
1985
1986	case strings.EqualFold("ResourceNotFoundException", errorCode):
1987		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
1988
1989	case strings.EqualFold("ValidationException", errorCode):
1990		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
1991
1992	default:
1993		genericError := &smithy.GenericAPIError{
1994			Code:    errorCode,
1995			Message: errorMessage,
1996		}
1997		return genericError
1998
1999	}
2000}
2001
2002type awsAwsjson11_deserializeOpUpdateServer struct {
2003}
2004
2005func (*awsAwsjson11_deserializeOpUpdateServer) ID() string {
2006	return "OperationDeserializer"
2007}
2008
2009func (m *awsAwsjson11_deserializeOpUpdateServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
2010	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
2011) {
2012	out, metadata, err = next.HandleDeserialize(ctx, in)
2013	if err != nil {
2014		return out, metadata, err
2015	}
2016
2017	response, ok := out.RawResponse.(*smithyhttp.Response)
2018	if !ok {
2019		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
2020	}
2021
2022	if response.StatusCode < 200 || response.StatusCode >= 300 {
2023		return out, metadata, awsAwsjson11_deserializeOpErrorUpdateServer(response, &metadata)
2024	}
2025	output := &UpdateServerOutput{}
2026	out.Result = output
2027
2028	var buff [1024]byte
2029	ringBuffer := smithyio.NewRingBuffer(buff[:])
2030
2031	body := io.TeeReader(response.Body, ringBuffer)
2032	decoder := json.NewDecoder(body)
2033	decoder.UseNumber()
2034	var shape interface{}
2035	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2036		var snapshot bytes.Buffer
2037		io.Copy(&snapshot, ringBuffer)
2038		err = &smithy.DeserializationError{
2039			Err:      fmt.Errorf("failed to decode response body, %w", err),
2040			Snapshot: snapshot.Bytes(),
2041		}
2042		return out, metadata, err
2043	}
2044
2045	err = awsAwsjson11_deserializeOpDocumentUpdateServerOutput(&output, shape)
2046	if err != nil {
2047		var snapshot bytes.Buffer
2048		io.Copy(&snapshot, ringBuffer)
2049		err = &smithy.DeserializationError{
2050			Err:      fmt.Errorf("failed to decode response body, %w", err),
2051			Snapshot: snapshot.Bytes(),
2052		}
2053		return out, metadata, err
2054	}
2055
2056	return out, metadata, err
2057}
2058
2059func awsAwsjson11_deserializeOpErrorUpdateServer(response *smithyhttp.Response, metadata *middleware.Metadata) error {
2060	var errorBuffer bytes.Buffer
2061	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
2062		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
2063	}
2064	errorBody := bytes.NewReader(errorBuffer.Bytes())
2065
2066	errorCode := "UnknownError"
2067	errorMessage := errorCode
2068
2069	code := response.Header.Get("X-Amzn-ErrorType")
2070	if len(code) != 0 {
2071		errorCode = restjson.SanitizeErrorCode(code)
2072	}
2073
2074	var buff [1024]byte
2075	ringBuffer := smithyio.NewRingBuffer(buff[:])
2076
2077	body := io.TeeReader(errorBody, ringBuffer)
2078	decoder := json.NewDecoder(body)
2079	decoder.UseNumber()
2080	code, message, err := restjson.GetErrorInfo(decoder)
2081	if err != nil {
2082		var snapshot bytes.Buffer
2083		io.Copy(&snapshot, ringBuffer)
2084		err = &smithy.DeserializationError{
2085			Err:      fmt.Errorf("failed to decode response body, %w", err),
2086			Snapshot: snapshot.Bytes(),
2087		}
2088		return err
2089	}
2090
2091	errorBody.Seek(0, io.SeekStart)
2092	if len(code) != 0 {
2093		errorCode = restjson.SanitizeErrorCode(code)
2094	}
2095	if len(message) != 0 {
2096		errorMessage = message
2097	}
2098
2099	switch {
2100	case strings.EqualFold("InvalidStateException", errorCode):
2101		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
2102
2103	case strings.EqualFold("ResourceNotFoundException", errorCode):
2104		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
2105
2106	case strings.EqualFold("ValidationException", errorCode):
2107		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
2108
2109	default:
2110		genericError := &smithy.GenericAPIError{
2111			Code:    errorCode,
2112			Message: errorMessage,
2113		}
2114		return genericError
2115
2116	}
2117}
2118
2119type awsAwsjson11_deserializeOpUpdateServerEngineAttributes struct {
2120}
2121
2122func (*awsAwsjson11_deserializeOpUpdateServerEngineAttributes) ID() string {
2123	return "OperationDeserializer"
2124}
2125
2126func (m *awsAwsjson11_deserializeOpUpdateServerEngineAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
2127	out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
2128) {
2129	out, metadata, err = next.HandleDeserialize(ctx, in)
2130	if err != nil {
2131		return out, metadata, err
2132	}
2133
2134	response, ok := out.RawResponse.(*smithyhttp.Response)
2135	if !ok {
2136		return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
2137	}
2138
2139	if response.StatusCode < 200 || response.StatusCode >= 300 {
2140		return out, metadata, awsAwsjson11_deserializeOpErrorUpdateServerEngineAttributes(response, &metadata)
2141	}
2142	output := &UpdateServerEngineAttributesOutput{}
2143	out.Result = output
2144
2145	var buff [1024]byte
2146	ringBuffer := smithyio.NewRingBuffer(buff[:])
2147
2148	body := io.TeeReader(response.Body, ringBuffer)
2149	decoder := json.NewDecoder(body)
2150	decoder.UseNumber()
2151	var shape interface{}
2152	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2153		var snapshot bytes.Buffer
2154		io.Copy(&snapshot, ringBuffer)
2155		err = &smithy.DeserializationError{
2156			Err:      fmt.Errorf("failed to decode response body, %w", err),
2157			Snapshot: snapshot.Bytes(),
2158		}
2159		return out, metadata, err
2160	}
2161
2162	err = awsAwsjson11_deserializeOpDocumentUpdateServerEngineAttributesOutput(&output, shape)
2163	if err != nil {
2164		var snapshot bytes.Buffer
2165		io.Copy(&snapshot, ringBuffer)
2166		err = &smithy.DeserializationError{
2167			Err:      fmt.Errorf("failed to decode response body, %w", err),
2168			Snapshot: snapshot.Bytes(),
2169		}
2170		return out, metadata, err
2171	}
2172
2173	return out, metadata, err
2174}
2175
2176func awsAwsjson11_deserializeOpErrorUpdateServerEngineAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error {
2177	var errorBuffer bytes.Buffer
2178	if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
2179		return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
2180	}
2181	errorBody := bytes.NewReader(errorBuffer.Bytes())
2182
2183	errorCode := "UnknownError"
2184	errorMessage := errorCode
2185
2186	code := response.Header.Get("X-Amzn-ErrorType")
2187	if len(code) != 0 {
2188		errorCode = restjson.SanitizeErrorCode(code)
2189	}
2190
2191	var buff [1024]byte
2192	ringBuffer := smithyio.NewRingBuffer(buff[:])
2193
2194	body := io.TeeReader(errorBody, ringBuffer)
2195	decoder := json.NewDecoder(body)
2196	decoder.UseNumber()
2197	code, message, err := restjson.GetErrorInfo(decoder)
2198	if err != nil {
2199		var snapshot bytes.Buffer
2200		io.Copy(&snapshot, ringBuffer)
2201		err = &smithy.DeserializationError{
2202			Err:      fmt.Errorf("failed to decode response body, %w", err),
2203			Snapshot: snapshot.Bytes(),
2204		}
2205		return err
2206	}
2207
2208	errorBody.Seek(0, io.SeekStart)
2209	if len(code) != 0 {
2210		errorCode = restjson.SanitizeErrorCode(code)
2211	}
2212	if len(message) != 0 {
2213		errorMessage = message
2214	}
2215
2216	switch {
2217	case strings.EqualFold("InvalidStateException", errorCode):
2218		return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody)
2219
2220	case strings.EqualFold("ResourceNotFoundException", errorCode):
2221		return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
2222
2223	case strings.EqualFold("ValidationException", errorCode):
2224		return awsAwsjson11_deserializeErrorValidationException(response, errorBody)
2225
2226	default:
2227		genericError := &smithy.GenericAPIError{
2228			Code:    errorCode,
2229			Message: errorMessage,
2230		}
2231		return genericError
2232
2233	}
2234}
2235
2236func awsAwsjson11_deserializeErrorInvalidNextTokenException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2237	var buff [1024]byte
2238	ringBuffer := smithyio.NewRingBuffer(buff[:])
2239
2240	body := io.TeeReader(errorBody, ringBuffer)
2241	decoder := json.NewDecoder(body)
2242	decoder.UseNumber()
2243	var shape interface{}
2244	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2245		var snapshot bytes.Buffer
2246		io.Copy(&snapshot, ringBuffer)
2247		err = &smithy.DeserializationError{
2248			Err:      fmt.Errorf("failed to decode response body, %w", err),
2249			Snapshot: snapshot.Bytes(),
2250		}
2251		return err
2252	}
2253
2254	output := &types.InvalidNextTokenException{}
2255	err := awsAwsjson11_deserializeDocumentInvalidNextTokenException(&output, shape)
2256
2257	if err != nil {
2258		var snapshot bytes.Buffer
2259		io.Copy(&snapshot, ringBuffer)
2260		err = &smithy.DeserializationError{
2261			Err:      fmt.Errorf("failed to decode response body, %w", err),
2262			Snapshot: snapshot.Bytes(),
2263		}
2264		return err
2265	}
2266
2267	errorBody.Seek(0, io.SeekStart)
2268	return output
2269}
2270
2271func awsAwsjson11_deserializeErrorInvalidStateException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2272	var buff [1024]byte
2273	ringBuffer := smithyio.NewRingBuffer(buff[:])
2274
2275	body := io.TeeReader(errorBody, ringBuffer)
2276	decoder := json.NewDecoder(body)
2277	decoder.UseNumber()
2278	var shape interface{}
2279	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2280		var snapshot bytes.Buffer
2281		io.Copy(&snapshot, ringBuffer)
2282		err = &smithy.DeserializationError{
2283			Err:      fmt.Errorf("failed to decode response body, %w", err),
2284			Snapshot: snapshot.Bytes(),
2285		}
2286		return err
2287	}
2288
2289	output := &types.InvalidStateException{}
2290	err := awsAwsjson11_deserializeDocumentInvalidStateException(&output, shape)
2291
2292	if err != nil {
2293		var snapshot bytes.Buffer
2294		io.Copy(&snapshot, ringBuffer)
2295		err = &smithy.DeserializationError{
2296			Err:      fmt.Errorf("failed to decode response body, %w", err),
2297			Snapshot: snapshot.Bytes(),
2298		}
2299		return err
2300	}
2301
2302	errorBody.Seek(0, io.SeekStart)
2303	return output
2304}
2305
2306func awsAwsjson11_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2307	var buff [1024]byte
2308	ringBuffer := smithyio.NewRingBuffer(buff[:])
2309
2310	body := io.TeeReader(errorBody, ringBuffer)
2311	decoder := json.NewDecoder(body)
2312	decoder.UseNumber()
2313	var shape interface{}
2314	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2315		var snapshot bytes.Buffer
2316		io.Copy(&snapshot, ringBuffer)
2317		err = &smithy.DeserializationError{
2318			Err:      fmt.Errorf("failed to decode response body, %w", err),
2319			Snapshot: snapshot.Bytes(),
2320		}
2321		return err
2322	}
2323
2324	output := &types.LimitExceededException{}
2325	err := awsAwsjson11_deserializeDocumentLimitExceededException(&output, shape)
2326
2327	if err != nil {
2328		var snapshot bytes.Buffer
2329		io.Copy(&snapshot, ringBuffer)
2330		err = &smithy.DeserializationError{
2331			Err:      fmt.Errorf("failed to decode response body, %w", err),
2332			Snapshot: snapshot.Bytes(),
2333		}
2334		return err
2335	}
2336
2337	errorBody.Seek(0, io.SeekStart)
2338	return output
2339}
2340
2341func awsAwsjson11_deserializeErrorResourceAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2342	var buff [1024]byte
2343	ringBuffer := smithyio.NewRingBuffer(buff[:])
2344
2345	body := io.TeeReader(errorBody, ringBuffer)
2346	decoder := json.NewDecoder(body)
2347	decoder.UseNumber()
2348	var shape interface{}
2349	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2350		var snapshot bytes.Buffer
2351		io.Copy(&snapshot, ringBuffer)
2352		err = &smithy.DeserializationError{
2353			Err:      fmt.Errorf("failed to decode response body, %w", err),
2354			Snapshot: snapshot.Bytes(),
2355		}
2356		return err
2357	}
2358
2359	output := &types.ResourceAlreadyExistsException{}
2360	err := awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(&output, shape)
2361
2362	if err != nil {
2363		var snapshot bytes.Buffer
2364		io.Copy(&snapshot, ringBuffer)
2365		err = &smithy.DeserializationError{
2366			Err:      fmt.Errorf("failed to decode response body, %w", err),
2367			Snapshot: snapshot.Bytes(),
2368		}
2369		return err
2370	}
2371
2372	errorBody.Seek(0, io.SeekStart)
2373	return output
2374}
2375
2376func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2377	var buff [1024]byte
2378	ringBuffer := smithyio.NewRingBuffer(buff[:])
2379
2380	body := io.TeeReader(errorBody, ringBuffer)
2381	decoder := json.NewDecoder(body)
2382	decoder.UseNumber()
2383	var shape interface{}
2384	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2385		var snapshot bytes.Buffer
2386		io.Copy(&snapshot, ringBuffer)
2387		err = &smithy.DeserializationError{
2388			Err:      fmt.Errorf("failed to decode response body, %w", err),
2389			Snapshot: snapshot.Bytes(),
2390		}
2391		return err
2392	}
2393
2394	output := &types.ResourceNotFoundException{}
2395	err := awsAwsjson11_deserializeDocumentResourceNotFoundException(&output, shape)
2396
2397	if err != nil {
2398		var snapshot bytes.Buffer
2399		io.Copy(&snapshot, ringBuffer)
2400		err = &smithy.DeserializationError{
2401			Err:      fmt.Errorf("failed to decode response body, %w", err),
2402			Snapshot: snapshot.Bytes(),
2403		}
2404		return err
2405	}
2406
2407	errorBody.Seek(0, io.SeekStart)
2408	return output
2409}
2410
2411func awsAwsjson11_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
2412	var buff [1024]byte
2413	ringBuffer := smithyio.NewRingBuffer(buff[:])
2414
2415	body := io.TeeReader(errorBody, ringBuffer)
2416	decoder := json.NewDecoder(body)
2417	decoder.UseNumber()
2418	var shape interface{}
2419	if err := decoder.Decode(&shape); err != nil && err != io.EOF {
2420		var snapshot bytes.Buffer
2421		io.Copy(&snapshot, ringBuffer)
2422		err = &smithy.DeserializationError{
2423			Err:      fmt.Errorf("failed to decode response body, %w", err),
2424			Snapshot: snapshot.Bytes(),
2425		}
2426		return err
2427	}
2428
2429	output := &types.ValidationException{}
2430	err := awsAwsjson11_deserializeDocumentValidationException(&output, shape)
2431
2432	if err != nil {
2433		var snapshot bytes.Buffer
2434		io.Copy(&snapshot, ringBuffer)
2435		err = &smithy.DeserializationError{
2436			Err:      fmt.Errorf("failed to decode response body, %w", err),
2437			Snapshot: snapshot.Bytes(),
2438		}
2439		return err
2440	}
2441
2442	errorBody.Seek(0, io.SeekStart)
2443	return output
2444}
2445
2446func awsAwsjson11_deserializeDocumentAccountAttribute(v **types.AccountAttribute, value interface{}) error {
2447	if v == nil {
2448		return fmt.Errorf("unexpected nil of type %T", v)
2449	}
2450	if value == nil {
2451		return nil
2452	}
2453
2454	shape, ok := value.(map[string]interface{})
2455	if !ok {
2456		return fmt.Errorf("unexpected JSON type %v", value)
2457	}
2458
2459	var sv *types.AccountAttribute
2460	if *v == nil {
2461		sv = &types.AccountAttribute{}
2462	} else {
2463		sv = *v
2464	}
2465
2466	for key, value := range shape {
2467		switch key {
2468		case "Maximum":
2469			if value != nil {
2470				jtv, ok := value.(json.Number)
2471				if !ok {
2472					return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
2473				}
2474				i64, err := jtv.Int64()
2475				if err != nil {
2476					return err
2477				}
2478				sv.Maximum = ptr.Int32(int32(i64))
2479			}
2480
2481		case "Name":
2482			if value != nil {
2483				jtv, ok := value.(string)
2484				if !ok {
2485					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2486				}
2487				sv.Name = ptr.String(jtv)
2488			}
2489
2490		case "Used":
2491			if value != nil {
2492				jtv, ok := value.(json.Number)
2493				if !ok {
2494					return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
2495				}
2496				i64, err := jtv.Int64()
2497				if err != nil {
2498					return err
2499				}
2500				sv.Used = ptr.Int32(int32(i64))
2501			}
2502
2503		default:
2504			_, _ = key, value
2505
2506		}
2507	}
2508	*v = sv
2509	return nil
2510}
2511
2512func awsAwsjson11_deserializeDocumentAccountAttributes(v *[]types.AccountAttribute, value interface{}) error {
2513	if v == nil {
2514		return fmt.Errorf("unexpected nil of type %T", v)
2515	}
2516	if value == nil {
2517		return nil
2518	}
2519
2520	shape, ok := value.([]interface{})
2521	if !ok {
2522		return fmt.Errorf("unexpected JSON type %v", value)
2523	}
2524
2525	var cv []types.AccountAttribute
2526	if *v == nil {
2527		cv = []types.AccountAttribute{}
2528	} else {
2529		cv = *v
2530	}
2531
2532	for _, value := range shape {
2533		var col types.AccountAttribute
2534		destAddr := &col
2535		if err := awsAwsjson11_deserializeDocumentAccountAttribute(&destAddr, value); err != nil {
2536			return err
2537		}
2538		col = *destAddr
2539		cv = append(cv, col)
2540
2541	}
2542	*v = cv
2543	return nil
2544}
2545
2546func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) error {
2547	if v == nil {
2548		return fmt.Errorf("unexpected nil of type %T", v)
2549	}
2550	if value == nil {
2551		return nil
2552	}
2553
2554	shape, ok := value.(map[string]interface{})
2555	if !ok {
2556		return fmt.Errorf("unexpected JSON type %v", value)
2557	}
2558
2559	var sv *types.Backup
2560	if *v == nil {
2561		sv = &types.Backup{}
2562	} else {
2563		sv = *v
2564	}
2565
2566	for key, value := range shape {
2567		switch key {
2568		case "BackupArn":
2569			if value != nil {
2570				jtv, ok := value.(string)
2571				if !ok {
2572					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2573				}
2574				sv.BackupArn = ptr.String(jtv)
2575			}
2576
2577		case "BackupId":
2578			if value != nil {
2579				jtv, ok := value.(string)
2580				if !ok {
2581					return fmt.Errorf("expected BackupId to be of type string, got %T instead", value)
2582				}
2583				sv.BackupId = ptr.String(jtv)
2584			}
2585
2586		case "BackupType":
2587			if value != nil {
2588				jtv, ok := value.(string)
2589				if !ok {
2590					return fmt.Errorf("expected BackupType to be of type string, got %T instead", value)
2591				}
2592				sv.BackupType = types.BackupType(jtv)
2593			}
2594
2595		case "CreatedAt":
2596			if value != nil {
2597				jtv, ok := value.(json.Number)
2598				if !ok {
2599					return fmt.Errorf("expected Timestamp to be json.Number, got %T instead", value)
2600				}
2601				f64, err := jtv.Float64()
2602				if err != nil {
2603					return err
2604				}
2605				sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
2606			}
2607
2608		case "Description":
2609			if value != nil {
2610				jtv, ok := value.(string)
2611				if !ok {
2612					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2613				}
2614				sv.Description = ptr.String(jtv)
2615			}
2616
2617		case "Engine":
2618			if value != nil {
2619				jtv, ok := value.(string)
2620				if !ok {
2621					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2622				}
2623				sv.Engine = ptr.String(jtv)
2624			}
2625
2626		case "EngineModel":
2627			if value != nil {
2628				jtv, ok := value.(string)
2629				if !ok {
2630					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2631				}
2632				sv.EngineModel = ptr.String(jtv)
2633			}
2634
2635		case "EngineVersion":
2636			if value != nil {
2637				jtv, ok := value.(string)
2638				if !ok {
2639					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2640				}
2641				sv.EngineVersion = ptr.String(jtv)
2642			}
2643
2644		case "InstanceProfileArn":
2645			if value != nil {
2646				jtv, ok := value.(string)
2647				if !ok {
2648					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2649				}
2650				sv.InstanceProfileArn = ptr.String(jtv)
2651			}
2652
2653		case "InstanceType":
2654			if value != nil {
2655				jtv, ok := value.(string)
2656				if !ok {
2657					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2658				}
2659				sv.InstanceType = ptr.String(jtv)
2660			}
2661
2662		case "KeyPair":
2663			if value != nil {
2664				jtv, ok := value.(string)
2665				if !ok {
2666					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2667				}
2668				sv.KeyPair = ptr.String(jtv)
2669			}
2670
2671		case "PreferredBackupWindow":
2672			if value != nil {
2673				jtv, ok := value.(string)
2674				if !ok {
2675					return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value)
2676				}
2677				sv.PreferredBackupWindow = ptr.String(jtv)
2678			}
2679
2680		case "PreferredMaintenanceWindow":
2681			if value != nil {
2682				jtv, ok := value.(string)
2683				if !ok {
2684					return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value)
2685				}
2686				sv.PreferredMaintenanceWindow = ptr.String(jtv)
2687			}
2688
2689		case "S3DataSize":
2690			if value != nil {
2691				jtv, ok := value.(json.Number)
2692				if !ok {
2693					return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
2694				}
2695				i64, err := jtv.Int64()
2696				if err != nil {
2697					return err
2698				}
2699				sv.S3DataSize = ptr.Int32(int32(i64))
2700			}
2701
2702		case "S3DataUrl":
2703			if value != nil {
2704				jtv, ok := value.(string)
2705				if !ok {
2706					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2707				}
2708				sv.S3DataUrl = ptr.String(jtv)
2709			}
2710
2711		case "S3LogUrl":
2712			if value != nil {
2713				jtv, ok := value.(string)
2714				if !ok {
2715					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2716				}
2717				sv.S3LogUrl = ptr.String(jtv)
2718			}
2719
2720		case "SecurityGroupIds":
2721			if err := awsAwsjson11_deserializeDocumentStrings(&sv.SecurityGroupIds, value); err != nil {
2722				return err
2723			}
2724
2725		case "ServerName":
2726			if value != nil {
2727				jtv, ok := value.(string)
2728				if !ok {
2729					return fmt.Errorf("expected ServerName to be of type string, got %T instead", value)
2730				}
2731				sv.ServerName = ptr.String(jtv)
2732			}
2733
2734		case "ServiceRoleArn":
2735			if value != nil {
2736				jtv, ok := value.(string)
2737				if !ok {
2738					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2739				}
2740				sv.ServiceRoleArn = ptr.String(jtv)
2741			}
2742
2743		case "Status":
2744			if value != nil {
2745				jtv, ok := value.(string)
2746				if !ok {
2747					return fmt.Errorf("expected BackupStatus to be of type string, got %T instead", value)
2748				}
2749				sv.Status = types.BackupStatus(jtv)
2750			}
2751
2752		case "StatusDescription":
2753			if value != nil {
2754				jtv, ok := value.(string)
2755				if !ok {
2756					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2757				}
2758				sv.StatusDescription = ptr.String(jtv)
2759			}
2760
2761		case "SubnetIds":
2762			if err := awsAwsjson11_deserializeDocumentStrings(&sv.SubnetIds, value); err != nil {
2763				return err
2764			}
2765
2766		case "ToolsVersion":
2767			if value != nil {
2768				jtv, ok := value.(string)
2769				if !ok {
2770					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2771				}
2772				sv.ToolsVersion = ptr.String(jtv)
2773			}
2774
2775		case "UserArn":
2776			if value != nil {
2777				jtv, ok := value.(string)
2778				if !ok {
2779					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2780				}
2781				sv.UserArn = ptr.String(jtv)
2782			}
2783
2784		default:
2785			_, _ = key, value
2786
2787		}
2788	}
2789	*v = sv
2790	return nil
2791}
2792
2793func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{}) error {
2794	if v == nil {
2795		return fmt.Errorf("unexpected nil of type %T", v)
2796	}
2797	if value == nil {
2798		return nil
2799	}
2800
2801	shape, ok := value.([]interface{})
2802	if !ok {
2803		return fmt.Errorf("unexpected JSON type %v", value)
2804	}
2805
2806	var cv []types.Backup
2807	if *v == nil {
2808		cv = []types.Backup{}
2809	} else {
2810		cv = *v
2811	}
2812
2813	for _, value := range shape {
2814		var col types.Backup
2815		destAddr := &col
2816		if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil {
2817			return err
2818		}
2819		col = *destAddr
2820		cv = append(cv, col)
2821
2822	}
2823	*v = cv
2824	return nil
2825}
2826
2827func awsAwsjson11_deserializeDocumentEngineAttribute(v **types.EngineAttribute, value interface{}) error {
2828	if v == nil {
2829		return fmt.Errorf("unexpected nil of type %T", v)
2830	}
2831	if value == nil {
2832		return nil
2833	}
2834
2835	shape, ok := value.(map[string]interface{})
2836	if !ok {
2837		return fmt.Errorf("unexpected JSON type %v", value)
2838	}
2839
2840	var sv *types.EngineAttribute
2841	if *v == nil {
2842		sv = &types.EngineAttribute{}
2843	} else {
2844		sv = *v
2845	}
2846
2847	for key, value := range shape {
2848		switch key {
2849		case "Name":
2850			if value != nil {
2851				jtv, ok := value.(string)
2852				if !ok {
2853					return fmt.Errorf("expected EngineAttributeName to be of type string, got %T instead", value)
2854				}
2855				sv.Name = ptr.String(jtv)
2856			}
2857
2858		case "Value":
2859			if value != nil {
2860				jtv, ok := value.(string)
2861				if !ok {
2862					return fmt.Errorf("expected EngineAttributeValue to be of type string, got %T instead", value)
2863				}
2864				sv.Value = ptr.String(jtv)
2865			}
2866
2867		default:
2868			_, _ = key, value
2869
2870		}
2871	}
2872	*v = sv
2873	return nil
2874}
2875
2876func awsAwsjson11_deserializeDocumentEngineAttributes(v *[]types.EngineAttribute, value interface{}) error {
2877	if v == nil {
2878		return fmt.Errorf("unexpected nil of type %T", v)
2879	}
2880	if value == nil {
2881		return nil
2882	}
2883
2884	shape, ok := value.([]interface{})
2885	if !ok {
2886		return fmt.Errorf("unexpected JSON type %v", value)
2887	}
2888
2889	var cv []types.EngineAttribute
2890	if *v == nil {
2891		cv = []types.EngineAttribute{}
2892	} else {
2893		cv = *v
2894	}
2895
2896	for _, value := range shape {
2897		var col types.EngineAttribute
2898		destAddr := &col
2899		if err := awsAwsjson11_deserializeDocumentEngineAttribute(&destAddr, value); err != nil {
2900			return err
2901		}
2902		col = *destAddr
2903		cv = append(cv, col)
2904
2905	}
2906	*v = cv
2907	return nil
2908}
2909
2910func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.InvalidNextTokenException, value interface{}) error {
2911	if v == nil {
2912		return fmt.Errorf("unexpected nil of type %T", v)
2913	}
2914	if value == nil {
2915		return nil
2916	}
2917
2918	shape, ok := value.(map[string]interface{})
2919	if !ok {
2920		return fmt.Errorf("unexpected JSON type %v", value)
2921	}
2922
2923	var sv *types.InvalidNextTokenException
2924	if *v == nil {
2925		sv = &types.InvalidNextTokenException{}
2926	} else {
2927		sv = *v
2928	}
2929
2930	for key, value := range shape {
2931		switch key {
2932		case "Message":
2933			if value != nil {
2934				jtv, ok := value.(string)
2935				if !ok {
2936					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2937				}
2938				sv.Message = ptr.String(jtv)
2939			}
2940
2941		default:
2942			_, _ = key, value
2943
2944		}
2945	}
2946	*v = sv
2947	return nil
2948}
2949
2950func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStateException, value interface{}) error {
2951	if v == nil {
2952		return fmt.Errorf("unexpected nil of type %T", v)
2953	}
2954	if value == nil {
2955		return nil
2956	}
2957
2958	shape, ok := value.(map[string]interface{})
2959	if !ok {
2960		return fmt.Errorf("unexpected JSON type %v", value)
2961	}
2962
2963	var sv *types.InvalidStateException
2964	if *v == nil {
2965		sv = &types.InvalidStateException{}
2966	} else {
2967		sv = *v
2968	}
2969
2970	for key, value := range shape {
2971		switch key {
2972		case "Message":
2973			if value != nil {
2974				jtv, ok := value.(string)
2975				if !ok {
2976					return fmt.Errorf("expected String to be of type string, got %T instead", value)
2977				}
2978				sv.Message = ptr.String(jtv)
2979			}
2980
2981		default:
2982			_, _ = key, value
2983
2984		}
2985	}
2986	*v = sv
2987	return nil
2988}
2989
2990func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error {
2991	if v == nil {
2992		return fmt.Errorf("unexpected nil of type %T", v)
2993	}
2994	if value == nil {
2995		return nil
2996	}
2997
2998	shape, ok := value.(map[string]interface{})
2999	if !ok {
3000		return fmt.Errorf("unexpected JSON type %v", value)
3001	}
3002
3003	var sv *types.LimitExceededException
3004	if *v == nil {
3005		sv = &types.LimitExceededException{}
3006	} else {
3007		sv = *v
3008	}
3009
3010	for key, value := range shape {
3011		switch key {
3012		case "Message":
3013			if value != nil {
3014				jtv, ok := value.(string)
3015				if !ok {
3016					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3017				}
3018				sv.Message = ptr.String(jtv)
3019			}
3020
3021		default:
3022			_, _ = key, value
3023
3024		}
3025	}
3026	*v = sv
3027	return nil
3028}
3029
3030func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.ResourceAlreadyExistsException, value interface{}) error {
3031	if v == nil {
3032		return fmt.Errorf("unexpected nil of type %T", v)
3033	}
3034	if value == nil {
3035		return nil
3036	}
3037
3038	shape, ok := value.(map[string]interface{})
3039	if !ok {
3040		return fmt.Errorf("unexpected JSON type %v", value)
3041	}
3042
3043	var sv *types.ResourceAlreadyExistsException
3044	if *v == nil {
3045		sv = &types.ResourceAlreadyExistsException{}
3046	} else {
3047		sv = *v
3048	}
3049
3050	for key, value := range shape {
3051		switch key {
3052		case "Message":
3053			if value != nil {
3054				jtv, ok := value.(string)
3055				if !ok {
3056					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3057				}
3058				sv.Message = ptr.String(jtv)
3059			}
3060
3061		default:
3062			_, _ = key, value
3063
3064		}
3065	}
3066	*v = sv
3067	return nil
3068}
3069
3070func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
3071	if v == nil {
3072		return fmt.Errorf("unexpected nil of type %T", v)
3073	}
3074	if value == nil {
3075		return nil
3076	}
3077
3078	shape, ok := value.(map[string]interface{})
3079	if !ok {
3080		return fmt.Errorf("unexpected JSON type %v", value)
3081	}
3082
3083	var sv *types.ResourceNotFoundException
3084	if *v == nil {
3085		sv = &types.ResourceNotFoundException{}
3086	} else {
3087		sv = *v
3088	}
3089
3090	for key, value := range shape {
3091		switch key {
3092		case "Message":
3093			if value != nil {
3094				jtv, ok := value.(string)
3095				if !ok {
3096					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3097				}
3098				sv.Message = ptr.String(jtv)
3099			}
3100
3101		default:
3102			_, _ = key, value
3103
3104		}
3105	}
3106	*v = sv
3107	return nil
3108}
3109
3110func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) error {
3111	if v == nil {
3112		return fmt.Errorf("unexpected nil of type %T", v)
3113	}
3114	if value == nil {
3115		return nil
3116	}
3117
3118	shape, ok := value.(map[string]interface{})
3119	if !ok {
3120		return fmt.Errorf("unexpected JSON type %v", value)
3121	}
3122
3123	var sv *types.Server
3124	if *v == nil {
3125		sv = &types.Server{}
3126	} else {
3127		sv = *v
3128	}
3129
3130	for key, value := range shape {
3131		switch key {
3132		case "AssociatePublicIpAddress":
3133			if value != nil {
3134				jtv, ok := value.(bool)
3135				if !ok {
3136					return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
3137				}
3138				sv.AssociatePublicIpAddress = ptr.Bool(jtv)
3139			}
3140
3141		case "BackupRetentionCount":
3142			if value != nil {
3143				jtv, ok := value.(json.Number)
3144				if !ok {
3145					return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
3146				}
3147				i64, err := jtv.Int64()
3148				if err != nil {
3149					return err
3150				}
3151				sv.BackupRetentionCount = ptr.Int32(int32(i64))
3152			}
3153
3154		case "CloudFormationStackArn":
3155			if value != nil {
3156				jtv, ok := value.(string)
3157				if !ok {
3158					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3159				}
3160				sv.CloudFormationStackArn = ptr.String(jtv)
3161			}
3162
3163		case "CreatedAt":
3164			if value != nil {
3165				jtv, ok := value.(json.Number)
3166				if !ok {
3167					return fmt.Errorf("expected Timestamp to be json.Number, got %T instead", value)
3168				}
3169				f64, err := jtv.Float64()
3170				if err != nil {
3171					return err
3172				}
3173				sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
3174			}
3175
3176		case "CustomDomain":
3177			if value != nil {
3178				jtv, ok := value.(string)
3179				if !ok {
3180					return fmt.Errorf("expected CustomDomain to be of type string, got %T instead", value)
3181				}
3182				sv.CustomDomain = ptr.String(jtv)
3183			}
3184
3185		case "DisableAutomatedBackup":
3186			if value != nil {
3187				jtv, ok := value.(bool)
3188				if !ok {
3189					return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
3190				}
3191				sv.DisableAutomatedBackup = ptr.Bool(jtv)
3192			}
3193
3194		case "Endpoint":
3195			if value != nil {
3196				jtv, ok := value.(string)
3197				if !ok {
3198					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3199				}
3200				sv.Endpoint = ptr.String(jtv)
3201			}
3202
3203		case "Engine":
3204			if value != nil {
3205				jtv, ok := value.(string)
3206				if !ok {
3207					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3208				}
3209				sv.Engine = ptr.String(jtv)
3210			}
3211
3212		case "EngineAttributes":
3213			if err := awsAwsjson11_deserializeDocumentEngineAttributes(&sv.EngineAttributes, value); err != nil {
3214				return err
3215			}
3216
3217		case "EngineModel":
3218			if value != nil {
3219				jtv, ok := value.(string)
3220				if !ok {
3221					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3222				}
3223				sv.EngineModel = ptr.String(jtv)
3224			}
3225
3226		case "EngineVersion":
3227			if value != nil {
3228				jtv, ok := value.(string)
3229				if !ok {
3230					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3231				}
3232				sv.EngineVersion = ptr.String(jtv)
3233			}
3234
3235		case "InstanceProfileArn":
3236			if value != nil {
3237				jtv, ok := value.(string)
3238				if !ok {
3239					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3240				}
3241				sv.InstanceProfileArn = ptr.String(jtv)
3242			}
3243
3244		case "InstanceType":
3245			if value != nil {
3246				jtv, ok := value.(string)
3247				if !ok {
3248					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3249				}
3250				sv.InstanceType = ptr.String(jtv)
3251			}
3252
3253		case "KeyPair":
3254			if value != nil {
3255				jtv, ok := value.(string)
3256				if !ok {
3257					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3258				}
3259				sv.KeyPair = ptr.String(jtv)
3260			}
3261
3262		case "MaintenanceStatus":
3263			if value != nil {
3264				jtv, ok := value.(string)
3265				if !ok {
3266					return fmt.Errorf("expected MaintenanceStatus to be of type string, got %T instead", value)
3267				}
3268				sv.MaintenanceStatus = types.MaintenanceStatus(jtv)
3269			}
3270
3271		case "PreferredBackupWindow":
3272			if value != nil {
3273				jtv, ok := value.(string)
3274				if !ok {
3275					return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value)
3276				}
3277				sv.PreferredBackupWindow = ptr.String(jtv)
3278			}
3279
3280		case "PreferredMaintenanceWindow":
3281			if value != nil {
3282				jtv, ok := value.(string)
3283				if !ok {
3284					return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value)
3285				}
3286				sv.PreferredMaintenanceWindow = ptr.String(jtv)
3287			}
3288
3289		case "SecurityGroupIds":
3290			if err := awsAwsjson11_deserializeDocumentStrings(&sv.SecurityGroupIds, value); err != nil {
3291				return err
3292			}
3293
3294		case "ServerArn":
3295			if value != nil {
3296				jtv, ok := value.(string)
3297				if !ok {
3298					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3299				}
3300				sv.ServerArn = ptr.String(jtv)
3301			}
3302
3303		case "ServerName":
3304			if value != nil {
3305				jtv, ok := value.(string)
3306				if !ok {
3307					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3308				}
3309				sv.ServerName = ptr.String(jtv)
3310			}
3311
3312		case "ServiceRoleArn":
3313			if value != nil {
3314				jtv, ok := value.(string)
3315				if !ok {
3316					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3317				}
3318				sv.ServiceRoleArn = ptr.String(jtv)
3319			}
3320
3321		case "Status":
3322			if value != nil {
3323				jtv, ok := value.(string)
3324				if !ok {
3325					return fmt.Errorf("expected ServerStatus to be of type string, got %T instead", value)
3326				}
3327				sv.Status = types.ServerStatus(jtv)
3328			}
3329
3330		case "StatusReason":
3331			if value != nil {
3332				jtv, ok := value.(string)
3333				if !ok {
3334					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3335				}
3336				sv.StatusReason = ptr.String(jtv)
3337			}
3338
3339		case "SubnetIds":
3340			if err := awsAwsjson11_deserializeDocumentStrings(&sv.SubnetIds, value); err != nil {
3341				return err
3342			}
3343
3344		default:
3345			_, _ = key, value
3346
3347		}
3348	}
3349	*v = sv
3350	return nil
3351}
3352
3353func awsAwsjson11_deserializeDocumentServerEvent(v **types.ServerEvent, value interface{}) error {
3354	if v == nil {
3355		return fmt.Errorf("unexpected nil of type %T", v)
3356	}
3357	if value == nil {
3358		return nil
3359	}
3360
3361	shape, ok := value.(map[string]interface{})
3362	if !ok {
3363		return fmt.Errorf("unexpected JSON type %v", value)
3364	}
3365
3366	var sv *types.ServerEvent
3367	if *v == nil {
3368		sv = &types.ServerEvent{}
3369	} else {
3370		sv = *v
3371	}
3372
3373	for key, value := range shape {
3374		switch key {
3375		case "CreatedAt":
3376			if value != nil {
3377				jtv, ok := value.(json.Number)
3378				if !ok {
3379					return fmt.Errorf("expected Timestamp to be json.Number, got %T instead", value)
3380				}
3381				f64, err := jtv.Float64()
3382				if err != nil {
3383					return err
3384				}
3385				sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
3386			}
3387
3388		case "LogUrl":
3389			if value != nil {
3390				jtv, ok := value.(string)
3391				if !ok {
3392					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3393				}
3394				sv.LogUrl = ptr.String(jtv)
3395			}
3396
3397		case "Message":
3398			if value != nil {
3399				jtv, ok := value.(string)
3400				if !ok {
3401					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3402				}
3403				sv.Message = ptr.String(jtv)
3404			}
3405
3406		case "ServerName":
3407			if value != nil {
3408				jtv, ok := value.(string)
3409				if !ok {
3410					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3411				}
3412				sv.ServerName = ptr.String(jtv)
3413			}
3414
3415		default:
3416			_, _ = key, value
3417
3418		}
3419	}
3420	*v = sv
3421	return nil
3422}
3423
3424func awsAwsjson11_deserializeDocumentServerEvents(v *[]types.ServerEvent, value interface{}) error {
3425	if v == nil {
3426		return fmt.Errorf("unexpected nil of type %T", v)
3427	}
3428	if value == nil {
3429		return nil
3430	}
3431
3432	shape, ok := value.([]interface{})
3433	if !ok {
3434		return fmt.Errorf("unexpected JSON type %v", value)
3435	}
3436
3437	var cv []types.ServerEvent
3438	if *v == nil {
3439		cv = []types.ServerEvent{}
3440	} else {
3441		cv = *v
3442	}
3443
3444	for _, value := range shape {
3445		var col types.ServerEvent
3446		destAddr := &col
3447		if err := awsAwsjson11_deserializeDocumentServerEvent(&destAddr, value); err != nil {
3448			return err
3449		}
3450		col = *destAddr
3451		cv = append(cv, col)
3452
3453	}
3454	*v = cv
3455	return nil
3456}
3457
3458func awsAwsjson11_deserializeDocumentServers(v *[]types.Server, value interface{}) error {
3459	if v == nil {
3460		return fmt.Errorf("unexpected nil of type %T", v)
3461	}
3462	if value == nil {
3463		return nil
3464	}
3465
3466	shape, ok := value.([]interface{})
3467	if !ok {
3468		return fmt.Errorf("unexpected JSON type %v", value)
3469	}
3470
3471	var cv []types.Server
3472	if *v == nil {
3473		cv = []types.Server{}
3474	} else {
3475		cv = *v
3476	}
3477
3478	for _, value := range shape {
3479		var col types.Server
3480		destAddr := &col
3481		if err := awsAwsjson11_deserializeDocumentServer(&destAddr, value); err != nil {
3482			return err
3483		}
3484		col = *destAddr
3485		cv = append(cv, col)
3486
3487	}
3488	*v = cv
3489	return nil
3490}
3491
3492func awsAwsjson11_deserializeDocumentStrings(v *[]string, value interface{}) error {
3493	if v == nil {
3494		return fmt.Errorf("unexpected nil of type %T", v)
3495	}
3496	if value == nil {
3497		return nil
3498	}
3499
3500	shape, ok := value.([]interface{})
3501	if !ok {
3502		return fmt.Errorf("unexpected JSON type %v", value)
3503	}
3504
3505	var cv []string
3506	if *v == nil {
3507		cv = []string{}
3508	} else {
3509		cv = *v
3510	}
3511
3512	for _, value := range shape {
3513		var col string
3514		if value != nil {
3515			jtv, ok := value.(string)
3516			if !ok {
3517				return fmt.Errorf("expected String to be of type string, got %T instead", value)
3518			}
3519			col = jtv
3520		}
3521		cv = append(cv, col)
3522
3523	}
3524	*v = cv
3525	return nil
3526}
3527
3528func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error {
3529	if v == nil {
3530		return fmt.Errorf("unexpected nil of type %T", v)
3531	}
3532	if value == nil {
3533		return nil
3534	}
3535
3536	shape, ok := value.(map[string]interface{})
3537	if !ok {
3538		return fmt.Errorf("unexpected JSON type %v", value)
3539	}
3540
3541	var sv *types.Tag
3542	if *v == nil {
3543		sv = &types.Tag{}
3544	} else {
3545		sv = *v
3546	}
3547
3548	for key, value := range shape {
3549		switch key {
3550		case "Key":
3551			if value != nil {
3552				jtv, ok := value.(string)
3553				if !ok {
3554					return fmt.Errorf("expected TagKey to be of type string, got %T instead", value)
3555				}
3556				sv.Key = ptr.String(jtv)
3557			}
3558
3559		case "Value":
3560			if value != nil {
3561				jtv, ok := value.(string)
3562				if !ok {
3563					return fmt.Errorf("expected TagValue to be of type string, got %T instead", value)
3564				}
3565				sv.Value = ptr.String(jtv)
3566			}
3567
3568		default:
3569			_, _ = key, value
3570
3571		}
3572	}
3573	*v = sv
3574	return nil
3575}
3576
3577func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error {
3578	if v == nil {
3579		return fmt.Errorf("unexpected nil of type %T", v)
3580	}
3581	if value == nil {
3582		return nil
3583	}
3584
3585	shape, ok := value.([]interface{})
3586	if !ok {
3587		return fmt.Errorf("unexpected JSON type %v", value)
3588	}
3589
3590	var cv []types.Tag
3591	if *v == nil {
3592		cv = []types.Tag{}
3593	} else {
3594		cv = *v
3595	}
3596
3597	for _, value := range shape {
3598		var col types.Tag
3599		destAddr := &col
3600		if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil {
3601			return err
3602		}
3603		col = *destAddr
3604		cv = append(cv, col)
3605
3606	}
3607	*v = cv
3608	return nil
3609}
3610
3611func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error {
3612	if v == nil {
3613		return fmt.Errorf("unexpected nil of type %T", v)
3614	}
3615	if value == nil {
3616		return nil
3617	}
3618
3619	shape, ok := value.(map[string]interface{})
3620	if !ok {
3621		return fmt.Errorf("unexpected JSON type %v", value)
3622	}
3623
3624	var sv *types.ValidationException
3625	if *v == nil {
3626		sv = &types.ValidationException{}
3627	} else {
3628		sv = *v
3629	}
3630
3631	for key, value := range shape {
3632		switch key {
3633		case "Message":
3634			if value != nil {
3635				jtv, ok := value.(string)
3636				if !ok {
3637					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3638				}
3639				sv.Message = ptr.String(jtv)
3640			}
3641
3642		default:
3643			_, _ = key, value
3644
3645		}
3646	}
3647	*v = sv
3648	return nil
3649}
3650
3651func awsAwsjson11_deserializeOpDocumentAssociateNodeOutput(v **AssociateNodeOutput, value interface{}) error {
3652	if v == nil {
3653		return fmt.Errorf("unexpected nil of type %T", v)
3654	}
3655	if value == nil {
3656		return nil
3657	}
3658
3659	shape, ok := value.(map[string]interface{})
3660	if !ok {
3661		return fmt.Errorf("unexpected JSON type %v", value)
3662	}
3663
3664	var sv *AssociateNodeOutput
3665	if *v == nil {
3666		sv = &AssociateNodeOutput{}
3667	} else {
3668		sv = *v
3669	}
3670
3671	for key, value := range shape {
3672		switch key {
3673		case "NodeAssociationStatusToken":
3674			if value != nil {
3675				jtv, ok := value.(string)
3676				if !ok {
3677					return fmt.Errorf("expected NodeAssociationStatusToken to be of type string, got %T instead", value)
3678				}
3679				sv.NodeAssociationStatusToken = ptr.String(jtv)
3680			}
3681
3682		default:
3683			_, _ = key, value
3684
3685		}
3686	}
3687	*v = sv
3688	return nil
3689}
3690
3691func awsAwsjson11_deserializeOpDocumentCreateBackupOutput(v **CreateBackupOutput, value interface{}) error {
3692	if v == nil {
3693		return fmt.Errorf("unexpected nil of type %T", v)
3694	}
3695	if value == nil {
3696		return nil
3697	}
3698
3699	shape, ok := value.(map[string]interface{})
3700	if !ok {
3701		return fmt.Errorf("unexpected JSON type %v", value)
3702	}
3703
3704	var sv *CreateBackupOutput
3705	if *v == nil {
3706		sv = &CreateBackupOutput{}
3707	} else {
3708		sv = *v
3709	}
3710
3711	for key, value := range shape {
3712		switch key {
3713		case "Backup":
3714			if err := awsAwsjson11_deserializeDocumentBackup(&sv.Backup, value); err != nil {
3715				return err
3716			}
3717
3718		default:
3719			_, _ = key, value
3720
3721		}
3722	}
3723	*v = sv
3724	return nil
3725}
3726
3727func awsAwsjson11_deserializeOpDocumentCreateServerOutput(v **CreateServerOutput, value interface{}) error {
3728	if v == nil {
3729		return fmt.Errorf("unexpected nil of type %T", v)
3730	}
3731	if value == nil {
3732		return nil
3733	}
3734
3735	shape, ok := value.(map[string]interface{})
3736	if !ok {
3737		return fmt.Errorf("unexpected JSON type %v", value)
3738	}
3739
3740	var sv *CreateServerOutput
3741	if *v == nil {
3742		sv = &CreateServerOutput{}
3743	} else {
3744		sv = *v
3745	}
3746
3747	for key, value := range shape {
3748		switch key {
3749		case "Server":
3750			if err := awsAwsjson11_deserializeDocumentServer(&sv.Server, value); err != nil {
3751				return err
3752			}
3753
3754		default:
3755			_, _ = key, value
3756
3757		}
3758	}
3759	*v = sv
3760	return nil
3761}
3762
3763func awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(v **DeleteBackupOutput, value interface{}) error {
3764	if v == nil {
3765		return fmt.Errorf("unexpected nil of type %T", v)
3766	}
3767	if value == nil {
3768		return nil
3769	}
3770
3771	shape, ok := value.(map[string]interface{})
3772	if !ok {
3773		return fmt.Errorf("unexpected JSON type %v", value)
3774	}
3775
3776	var sv *DeleteBackupOutput
3777	if *v == nil {
3778		sv = &DeleteBackupOutput{}
3779	} else {
3780		sv = *v
3781	}
3782
3783	for key, value := range shape {
3784		switch key {
3785		default:
3786			_, _ = key, value
3787
3788		}
3789	}
3790	*v = sv
3791	return nil
3792}
3793
3794func awsAwsjson11_deserializeOpDocumentDeleteServerOutput(v **DeleteServerOutput, value interface{}) error {
3795	if v == nil {
3796		return fmt.Errorf("unexpected nil of type %T", v)
3797	}
3798	if value == nil {
3799		return nil
3800	}
3801
3802	shape, ok := value.(map[string]interface{})
3803	if !ok {
3804		return fmt.Errorf("unexpected JSON type %v", value)
3805	}
3806
3807	var sv *DeleteServerOutput
3808	if *v == nil {
3809		sv = &DeleteServerOutput{}
3810	} else {
3811		sv = *v
3812	}
3813
3814	for key, value := range shape {
3815		switch key {
3816		default:
3817			_, _ = key, value
3818
3819		}
3820	}
3821	*v = sv
3822	return nil
3823}
3824
3825func awsAwsjson11_deserializeOpDocumentDescribeAccountAttributesOutput(v **DescribeAccountAttributesOutput, value interface{}) error {
3826	if v == nil {
3827		return fmt.Errorf("unexpected nil of type %T", v)
3828	}
3829	if value == nil {
3830		return nil
3831	}
3832
3833	shape, ok := value.(map[string]interface{})
3834	if !ok {
3835		return fmt.Errorf("unexpected JSON type %v", value)
3836	}
3837
3838	var sv *DescribeAccountAttributesOutput
3839	if *v == nil {
3840		sv = &DescribeAccountAttributesOutput{}
3841	} else {
3842		sv = *v
3843	}
3844
3845	for key, value := range shape {
3846		switch key {
3847		case "Attributes":
3848			if err := awsAwsjson11_deserializeDocumentAccountAttributes(&sv.Attributes, value); err != nil {
3849				return err
3850			}
3851
3852		default:
3853			_, _ = key, value
3854
3855		}
3856	}
3857	*v = sv
3858	return nil
3859}
3860
3861func awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(v **DescribeBackupsOutput, value interface{}) error {
3862	if v == nil {
3863		return fmt.Errorf("unexpected nil of type %T", v)
3864	}
3865	if value == nil {
3866		return nil
3867	}
3868
3869	shape, ok := value.(map[string]interface{})
3870	if !ok {
3871		return fmt.Errorf("unexpected JSON type %v", value)
3872	}
3873
3874	var sv *DescribeBackupsOutput
3875	if *v == nil {
3876		sv = &DescribeBackupsOutput{}
3877	} else {
3878		sv = *v
3879	}
3880
3881	for key, value := range shape {
3882		switch key {
3883		case "Backups":
3884			if err := awsAwsjson11_deserializeDocumentBackups(&sv.Backups, value); err != nil {
3885				return err
3886			}
3887
3888		case "NextToken":
3889			if value != nil {
3890				jtv, ok := value.(string)
3891				if !ok {
3892					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3893				}
3894				sv.NextToken = ptr.String(jtv)
3895			}
3896
3897		default:
3898			_, _ = key, value
3899
3900		}
3901	}
3902	*v = sv
3903	return nil
3904}
3905
3906func awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOutput, value interface{}) error {
3907	if v == nil {
3908		return fmt.Errorf("unexpected nil of type %T", v)
3909	}
3910	if value == nil {
3911		return nil
3912	}
3913
3914	shape, ok := value.(map[string]interface{})
3915	if !ok {
3916		return fmt.Errorf("unexpected JSON type %v", value)
3917	}
3918
3919	var sv *DescribeEventsOutput
3920	if *v == nil {
3921		sv = &DescribeEventsOutput{}
3922	} else {
3923		sv = *v
3924	}
3925
3926	for key, value := range shape {
3927		switch key {
3928		case "NextToken":
3929			if value != nil {
3930				jtv, ok := value.(string)
3931				if !ok {
3932					return fmt.Errorf("expected String to be of type string, got %T instead", value)
3933				}
3934				sv.NextToken = ptr.String(jtv)
3935			}
3936
3937		case "ServerEvents":
3938			if err := awsAwsjson11_deserializeDocumentServerEvents(&sv.ServerEvents, value); err != nil {
3939				return err
3940			}
3941
3942		default:
3943			_, _ = key, value
3944
3945		}
3946	}
3947	*v = sv
3948	return nil
3949}
3950
3951func awsAwsjson11_deserializeOpDocumentDescribeNodeAssociationStatusOutput(v **DescribeNodeAssociationStatusOutput, value interface{}) error {
3952	if v == nil {
3953		return fmt.Errorf("unexpected nil of type %T", v)
3954	}
3955	if value == nil {
3956		return nil
3957	}
3958
3959	shape, ok := value.(map[string]interface{})
3960	if !ok {
3961		return fmt.Errorf("unexpected JSON type %v", value)
3962	}
3963
3964	var sv *DescribeNodeAssociationStatusOutput
3965	if *v == nil {
3966		sv = &DescribeNodeAssociationStatusOutput{}
3967	} else {
3968		sv = *v
3969	}
3970
3971	for key, value := range shape {
3972		switch key {
3973		case "EngineAttributes":
3974			if err := awsAwsjson11_deserializeDocumentEngineAttributes(&sv.EngineAttributes, value); err != nil {
3975				return err
3976			}
3977
3978		case "NodeAssociationStatus":
3979			if value != nil {
3980				jtv, ok := value.(string)
3981				if !ok {
3982					return fmt.Errorf("expected NodeAssociationStatus to be of type string, got %T instead", value)
3983				}
3984				sv.NodeAssociationStatus = types.NodeAssociationStatus(jtv)
3985			}
3986
3987		default:
3988			_, _ = key, value
3989
3990		}
3991	}
3992	*v = sv
3993	return nil
3994}
3995
3996func awsAwsjson11_deserializeOpDocumentDescribeServersOutput(v **DescribeServersOutput, value interface{}) error {
3997	if v == nil {
3998		return fmt.Errorf("unexpected nil of type %T", v)
3999	}
4000	if value == nil {
4001		return nil
4002	}
4003
4004	shape, ok := value.(map[string]interface{})
4005	if !ok {
4006		return fmt.Errorf("unexpected JSON type %v", value)
4007	}
4008
4009	var sv *DescribeServersOutput
4010	if *v == nil {
4011		sv = &DescribeServersOutput{}
4012	} else {
4013		sv = *v
4014	}
4015
4016	for key, value := range shape {
4017		switch key {
4018		case "NextToken":
4019			if value != nil {
4020				jtv, ok := value.(string)
4021				if !ok {
4022					return fmt.Errorf("expected String to be of type string, got %T instead", value)
4023				}
4024				sv.NextToken = ptr.String(jtv)
4025			}
4026
4027		case "Servers":
4028			if err := awsAwsjson11_deserializeDocumentServers(&sv.Servers, value); err != nil {
4029				return err
4030			}
4031
4032		default:
4033			_, _ = key, value
4034
4035		}
4036	}
4037	*v = sv
4038	return nil
4039}
4040
4041func awsAwsjson11_deserializeOpDocumentDisassociateNodeOutput(v **DisassociateNodeOutput, value interface{}) error {
4042	if v == nil {
4043		return fmt.Errorf("unexpected nil of type %T", v)
4044	}
4045	if value == nil {
4046		return nil
4047	}
4048
4049	shape, ok := value.(map[string]interface{})
4050	if !ok {
4051		return fmt.Errorf("unexpected JSON type %v", value)
4052	}
4053
4054	var sv *DisassociateNodeOutput
4055	if *v == nil {
4056		sv = &DisassociateNodeOutput{}
4057	} else {
4058		sv = *v
4059	}
4060
4061	for key, value := range shape {
4062		switch key {
4063		case "NodeAssociationStatusToken":
4064			if value != nil {
4065				jtv, ok := value.(string)
4066				if !ok {
4067					return fmt.Errorf("expected NodeAssociationStatusToken to be of type string, got %T instead", value)
4068				}
4069				sv.NodeAssociationStatusToken = ptr.String(jtv)
4070			}
4071
4072		default:
4073			_, _ = key, value
4074
4075		}
4076	}
4077	*v = sv
4078	return nil
4079}
4080
4081func awsAwsjson11_deserializeOpDocumentExportServerEngineAttributeOutput(v **ExportServerEngineAttributeOutput, value interface{}) error {
4082	if v == nil {
4083		return fmt.Errorf("unexpected nil of type %T", v)
4084	}
4085	if value == nil {
4086		return nil
4087	}
4088
4089	shape, ok := value.(map[string]interface{})
4090	if !ok {
4091		return fmt.Errorf("unexpected JSON type %v", value)
4092	}
4093
4094	var sv *ExportServerEngineAttributeOutput
4095	if *v == nil {
4096		sv = &ExportServerEngineAttributeOutput{}
4097	} else {
4098		sv = *v
4099	}
4100
4101	for key, value := range shape {
4102		switch key {
4103		case "EngineAttribute":
4104			if err := awsAwsjson11_deserializeDocumentEngineAttribute(&sv.EngineAttribute, value); err != nil {
4105				return err
4106			}
4107
4108		case "ServerName":
4109			if value != nil {
4110				jtv, ok := value.(string)
4111				if !ok {
4112					return fmt.Errorf("expected ServerName to be of type string, got %T instead", value)
4113				}
4114				sv.ServerName = ptr.String(jtv)
4115			}
4116
4117		default:
4118			_, _ = key, value
4119
4120		}
4121	}
4122	*v = sv
4123	return nil
4124}
4125
4126func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
4127	if v == nil {
4128		return fmt.Errorf("unexpected nil of type %T", v)
4129	}
4130	if value == nil {
4131		return nil
4132	}
4133
4134	shape, ok := value.(map[string]interface{})
4135	if !ok {
4136		return fmt.Errorf("unexpected JSON type %v", value)
4137	}
4138
4139	var sv *ListTagsForResourceOutput
4140	if *v == nil {
4141		sv = &ListTagsForResourceOutput{}
4142	} else {
4143		sv = *v
4144	}
4145
4146	for key, value := range shape {
4147		switch key {
4148		case "NextToken":
4149			if value != nil {
4150				jtv, ok := value.(string)
4151				if !ok {
4152					return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
4153				}
4154				sv.NextToken = ptr.String(jtv)
4155			}
4156
4157		case "Tags":
4158			if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil {
4159				return err
4160			}
4161
4162		default:
4163			_, _ = key, value
4164
4165		}
4166	}
4167	*v = sv
4168	return nil
4169}
4170
4171func awsAwsjson11_deserializeOpDocumentRestoreServerOutput(v **RestoreServerOutput, value interface{}) error {
4172	if v == nil {
4173		return fmt.Errorf("unexpected nil of type %T", v)
4174	}
4175	if value == nil {
4176		return nil
4177	}
4178
4179	shape, ok := value.(map[string]interface{})
4180	if !ok {
4181		return fmt.Errorf("unexpected JSON type %v", value)
4182	}
4183
4184	var sv *RestoreServerOutput
4185	if *v == nil {
4186		sv = &RestoreServerOutput{}
4187	} else {
4188		sv = *v
4189	}
4190
4191	for key, value := range shape {
4192		switch key {
4193		default:
4194			_, _ = key, value
4195
4196		}
4197	}
4198	*v = sv
4199	return nil
4200}
4201
4202func awsAwsjson11_deserializeOpDocumentStartMaintenanceOutput(v **StartMaintenanceOutput, value interface{}) error {
4203	if v == nil {
4204		return fmt.Errorf("unexpected nil of type %T", v)
4205	}
4206	if value == nil {
4207		return nil
4208	}
4209
4210	shape, ok := value.(map[string]interface{})
4211	if !ok {
4212		return fmt.Errorf("unexpected JSON type %v", value)
4213	}
4214
4215	var sv *StartMaintenanceOutput
4216	if *v == nil {
4217		sv = &StartMaintenanceOutput{}
4218	} else {
4219		sv = *v
4220	}
4221
4222	for key, value := range shape {
4223		switch key {
4224		case "Server":
4225			if err := awsAwsjson11_deserializeDocumentServer(&sv.Server, value); err != nil {
4226				return err
4227			}
4228
4229		default:
4230			_, _ = key, value
4231
4232		}
4233	}
4234	*v = sv
4235	return nil
4236}
4237
4238func awsAwsjson11_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error {
4239	if v == nil {
4240		return fmt.Errorf("unexpected nil of type %T", v)
4241	}
4242	if value == nil {
4243		return nil
4244	}
4245
4246	shape, ok := value.(map[string]interface{})
4247	if !ok {
4248		return fmt.Errorf("unexpected JSON type %v", value)
4249	}
4250
4251	var sv *TagResourceOutput
4252	if *v == nil {
4253		sv = &TagResourceOutput{}
4254	} else {
4255		sv = *v
4256	}
4257
4258	for key, value := range shape {
4259		switch key {
4260		default:
4261			_, _ = key, value
4262
4263		}
4264	}
4265	*v = sv
4266	return nil
4267}
4268
4269func awsAwsjson11_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error {
4270	if v == nil {
4271		return fmt.Errorf("unexpected nil of type %T", v)
4272	}
4273	if value == nil {
4274		return nil
4275	}
4276
4277	shape, ok := value.(map[string]interface{})
4278	if !ok {
4279		return fmt.Errorf("unexpected JSON type %v", value)
4280	}
4281
4282	var sv *UntagResourceOutput
4283	if *v == nil {
4284		sv = &UntagResourceOutput{}
4285	} else {
4286		sv = *v
4287	}
4288
4289	for key, value := range shape {
4290		switch key {
4291		default:
4292			_, _ = key, value
4293
4294		}
4295	}
4296	*v = sv
4297	return nil
4298}
4299
4300func awsAwsjson11_deserializeOpDocumentUpdateServerEngineAttributesOutput(v **UpdateServerEngineAttributesOutput, value interface{}) error {
4301	if v == nil {
4302		return fmt.Errorf("unexpected nil of type %T", v)
4303	}
4304	if value == nil {
4305		return nil
4306	}
4307
4308	shape, ok := value.(map[string]interface{})
4309	if !ok {
4310		return fmt.Errorf("unexpected JSON type %v", value)
4311	}
4312
4313	var sv *UpdateServerEngineAttributesOutput
4314	if *v == nil {
4315		sv = &UpdateServerEngineAttributesOutput{}
4316	} else {
4317		sv = *v
4318	}
4319
4320	for key, value := range shape {
4321		switch key {
4322		case "Server":
4323			if err := awsAwsjson11_deserializeDocumentServer(&sv.Server, value); err != nil {
4324				return err
4325			}
4326
4327		default:
4328			_, _ = key, value
4329
4330		}
4331	}
4332	*v = sv
4333	return nil
4334}
4335
4336func awsAwsjson11_deserializeOpDocumentUpdateServerOutput(v **UpdateServerOutput, value interface{}) error {
4337	if v == nil {
4338		return fmt.Errorf("unexpected nil of type %T", v)
4339	}
4340	if value == nil {
4341		return nil
4342	}
4343
4344	shape, ok := value.(map[string]interface{})
4345	if !ok {
4346		return fmt.Errorf("unexpected JSON type %v", value)
4347	}
4348
4349	var sv *UpdateServerOutput
4350	if *v == nil {
4351		sv = &UpdateServerOutput{}
4352	} else {
4353		sv = *v
4354	}
4355
4356	for key, value := range shape {
4357		switch key {
4358		case "Server":
4359			if err := awsAwsjson11_deserializeDocumentServer(&sv.Server, value); err != nil {
4360				return err
4361			}
4362
4363		default:
4364			_, _ = key, value
4365
4366		}
4367	}
4368	*v = sv
4369	return nil
4370}
4371