1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package sts
4
5import (
6	"bytes"
7	"context"
8	"fmt"
9	"github.com/aws/aws-sdk-go-v2/aws/protocol/query"
10	"github.com/aws/aws-sdk-go-v2/service/sts/types"
11	smithy "github.com/aws/smithy-go"
12	"github.com/aws/smithy-go/encoding/httpbinding"
13	"github.com/aws/smithy-go/middleware"
14	smithyhttp "github.com/aws/smithy-go/transport/http"
15)
16
17type awsAwsquery_serializeOpAssumeRole struct {
18}
19
20func (*awsAwsquery_serializeOpAssumeRole) ID() string {
21	return "OperationSerializer"
22}
23
24func (m *awsAwsquery_serializeOpAssumeRole) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
25	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
26) {
27	request, ok := in.Request.(*smithyhttp.Request)
28	if !ok {
29		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
30	}
31
32	input, ok := in.Parameters.(*AssumeRoleInput)
33	_ = input
34	if !ok {
35		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
36	}
37
38	request.Request.URL.Path = "/"
39	request.Request.Method = "POST"
40	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
41	if err != nil {
42		return out, metadata, &smithy.SerializationError{Err: err}
43	}
44	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
45
46	bodyWriter := bytes.NewBuffer(nil)
47	bodyEncoder := query.NewEncoder(bodyWriter)
48	body := bodyEncoder.Object()
49	body.Key("Action").String("AssumeRole")
50	body.Key("Version").String("2011-06-15")
51
52	if err := awsAwsquery_serializeOpDocumentAssumeRoleInput(input, bodyEncoder.Value); err != nil {
53		return out, metadata, &smithy.SerializationError{Err: err}
54	}
55
56	err = bodyEncoder.Encode()
57	if err != nil {
58		return out, metadata, &smithy.SerializationError{Err: err}
59	}
60
61	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
62		return out, metadata, &smithy.SerializationError{Err: err}
63	}
64
65	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
66		return out, metadata, &smithy.SerializationError{Err: err}
67	}
68	in.Request = request
69
70	return next.HandleSerialize(ctx, in)
71}
72
73type awsAwsquery_serializeOpAssumeRoleWithSAML struct {
74}
75
76func (*awsAwsquery_serializeOpAssumeRoleWithSAML) ID() string {
77	return "OperationSerializer"
78}
79
80func (m *awsAwsquery_serializeOpAssumeRoleWithSAML) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
81	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
82) {
83	request, ok := in.Request.(*smithyhttp.Request)
84	if !ok {
85		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
86	}
87
88	input, ok := in.Parameters.(*AssumeRoleWithSAMLInput)
89	_ = input
90	if !ok {
91		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
92	}
93
94	request.Request.URL.Path = "/"
95	request.Request.Method = "POST"
96	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
97	if err != nil {
98		return out, metadata, &smithy.SerializationError{Err: err}
99	}
100	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
101
102	bodyWriter := bytes.NewBuffer(nil)
103	bodyEncoder := query.NewEncoder(bodyWriter)
104	body := bodyEncoder.Object()
105	body.Key("Action").String("AssumeRoleWithSAML")
106	body.Key("Version").String("2011-06-15")
107
108	if err := awsAwsquery_serializeOpDocumentAssumeRoleWithSAMLInput(input, bodyEncoder.Value); err != nil {
109		return out, metadata, &smithy.SerializationError{Err: err}
110	}
111
112	err = bodyEncoder.Encode()
113	if err != nil {
114		return out, metadata, &smithy.SerializationError{Err: err}
115	}
116
117	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
118		return out, metadata, &smithy.SerializationError{Err: err}
119	}
120
121	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
122		return out, metadata, &smithy.SerializationError{Err: err}
123	}
124	in.Request = request
125
126	return next.HandleSerialize(ctx, in)
127}
128
129type awsAwsquery_serializeOpAssumeRoleWithWebIdentity struct {
130}
131
132func (*awsAwsquery_serializeOpAssumeRoleWithWebIdentity) ID() string {
133	return "OperationSerializer"
134}
135
136func (m *awsAwsquery_serializeOpAssumeRoleWithWebIdentity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
137	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
138) {
139	request, ok := in.Request.(*smithyhttp.Request)
140	if !ok {
141		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
142	}
143
144	input, ok := in.Parameters.(*AssumeRoleWithWebIdentityInput)
145	_ = input
146	if !ok {
147		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
148	}
149
150	request.Request.URL.Path = "/"
151	request.Request.Method = "POST"
152	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
153	if err != nil {
154		return out, metadata, &smithy.SerializationError{Err: err}
155	}
156	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
157
158	bodyWriter := bytes.NewBuffer(nil)
159	bodyEncoder := query.NewEncoder(bodyWriter)
160	body := bodyEncoder.Object()
161	body.Key("Action").String("AssumeRoleWithWebIdentity")
162	body.Key("Version").String("2011-06-15")
163
164	if err := awsAwsquery_serializeOpDocumentAssumeRoleWithWebIdentityInput(input, bodyEncoder.Value); err != nil {
165		return out, metadata, &smithy.SerializationError{Err: err}
166	}
167
168	err = bodyEncoder.Encode()
169	if err != nil {
170		return out, metadata, &smithy.SerializationError{Err: err}
171	}
172
173	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
174		return out, metadata, &smithy.SerializationError{Err: err}
175	}
176
177	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
178		return out, metadata, &smithy.SerializationError{Err: err}
179	}
180	in.Request = request
181
182	return next.HandleSerialize(ctx, in)
183}
184
185type awsAwsquery_serializeOpDecodeAuthorizationMessage struct {
186}
187
188func (*awsAwsquery_serializeOpDecodeAuthorizationMessage) ID() string {
189	return "OperationSerializer"
190}
191
192func (m *awsAwsquery_serializeOpDecodeAuthorizationMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
193	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
194) {
195	request, ok := in.Request.(*smithyhttp.Request)
196	if !ok {
197		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
198	}
199
200	input, ok := in.Parameters.(*DecodeAuthorizationMessageInput)
201	_ = input
202	if !ok {
203		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
204	}
205
206	request.Request.URL.Path = "/"
207	request.Request.Method = "POST"
208	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
209	if err != nil {
210		return out, metadata, &smithy.SerializationError{Err: err}
211	}
212	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
213
214	bodyWriter := bytes.NewBuffer(nil)
215	bodyEncoder := query.NewEncoder(bodyWriter)
216	body := bodyEncoder.Object()
217	body.Key("Action").String("DecodeAuthorizationMessage")
218	body.Key("Version").String("2011-06-15")
219
220	if err := awsAwsquery_serializeOpDocumentDecodeAuthorizationMessageInput(input, bodyEncoder.Value); err != nil {
221		return out, metadata, &smithy.SerializationError{Err: err}
222	}
223
224	err = bodyEncoder.Encode()
225	if err != nil {
226		return out, metadata, &smithy.SerializationError{Err: err}
227	}
228
229	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
230		return out, metadata, &smithy.SerializationError{Err: err}
231	}
232
233	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
234		return out, metadata, &smithy.SerializationError{Err: err}
235	}
236	in.Request = request
237
238	return next.HandleSerialize(ctx, in)
239}
240
241type awsAwsquery_serializeOpGetAccessKeyInfo struct {
242}
243
244func (*awsAwsquery_serializeOpGetAccessKeyInfo) ID() string {
245	return "OperationSerializer"
246}
247
248func (m *awsAwsquery_serializeOpGetAccessKeyInfo) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
249	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
250) {
251	request, ok := in.Request.(*smithyhttp.Request)
252	if !ok {
253		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
254	}
255
256	input, ok := in.Parameters.(*GetAccessKeyInfoInput)
257	_ = input
258	if !ok {
259		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
260	}
261
262	request.Request.URL.Path = "/"
263	request.Request.Method = "POST"
264	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
265	if err != nil {
266		return out, metadata, &smithy.SerializationError{Err: err}
267	}
268	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
269
270	bodyWriter := bytes.NewBuffer(nil)
271	bodyEncoder := query.NewEncoder(bodyWriter)
272	body := bodyEncoder.Object()
273	body.Key("Action").String("GetAccessKeyInfo")
274	body.Key("Version").String("2011-06-15")
275
276	if err := awsAwsquery_serializeOpDocumentGetAccessKeyInfoInput(input, bodyEncoder.Value); err != nil {
277		return out, metadata, &smithy.SerializationError{Err: err}
278	}
279
280	err = bodyEncoder.Encode()
281	if err != nil {
282		return out, metadata, &smithy.SerializationError{Err: err}
283	}
284
285	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
286		return out, metadata, &smithy.SerializationError{Err: err}
287	}
288
289	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
290		return out, metadata, &smithy.SerializationError{Err: err}
291	}
292	in.Request = request
293
294	return next.HandleSerialize(ctx, in)
295}
296
297type awsAwsquery_serializeOpGetCallerIdentity struct {
298}
299
300func (*awsAwsquery_serializeOpGetCallerIdentity) ID() string {
301	return "OperationSerializer"
302}
303
304func (m *awsAwsquery_serializeOpGetCallerIdentity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
305	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
306) {
307	request, ok := in.Request.(*smithyhttp.Request)
308	if !ok {
309		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
310	}
311
312	input, ok := in.Parameters.(*GetCallerIdentityInput)
313	_ = input
314	if !ok {
315		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
316	}
317
318	request.Request.URL.Path = "/"
319	request.Request.Method = "POST"
320	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
321	if err != nil {
322		return out, metadata, &smithy.SerializationError{Err: err}
323	}
324	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
325
326	bodyWriter := bytes.NewBuffer(nil)
327	bodyEncoder := query.NewEncoder(bodyWriter)
328	body := bodyEncoder.Object()
329	body.Key("Action").String("GetCallerIdentity")
330	body.Key("Version").String("2011-06-15")
331
332	err = bodyEncoder.Encode()
333	if err != nil {
334		return out, metadata, &smithy.SerializationError{Err: err}
335	}
336
337	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
338		return out, metadata, &smithy.SerializationError{Err: err}
339	}
340
341	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
342		return out, metadata, &smithy.SerializationError{Err: err}
343	}
344	in.Request = request
345
346	return next.HandleSerialize(ctx, in)
347}
348
349type awsAwsquery_serializeOpGetFederationToken struct {
350}
351
352func (*awsAwsquery_serializeOpGetFederationToken) ID() string {
353	return "OperationSerializer"
354}
355
356func (m *awsAwsquery_serializeOpGetFederationToken) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
357	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
358) {
359	request, ok := in.Request.(*smithyhttp.Request)
360	if !ok {
361		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
362	}
363
364	input, ok := in.Parameters.(*GetFederationTokenInput)
365	_ = input
366	if !ok {
367		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
368	}
369
370	request.Request.URL.Path = "/"
371	request.Request.Method = "POST"
372	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
373	if err != nil {
374		return out, metadata, &smithy.SerializationError{Err: err}
375	}
376	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
377
378	bodyWriter := bytes.NewBuffer(nil)
379	bodyEncoder := query.NewEncoder(bodyWriter)
380	body := bodyEncoder.Object()
381	body.Key("Action").String("GetFederationToken")
382	body.Key("Version").String("2011-06-15")
383
384	if err := awsAwsquery_serializeOpDocumentGetFederationTokenInput(input, bodyEncoder.Value); err != nil {
385		return out, metadata, &smithy.SerializationError{Err: err}
386	}
387
388	err = bodyEncoder.Encode()
389	if err != nil {
390		return out, metadata, &smithy.SerializationError{Err: err}
391	}
392
393	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
394		return out, metadata, &smithy.SerializationError{Err: err}
395	}
396
397	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
398		return out, metadata, &smithy.SerializationError{Err: err}
399	}
400	in.Request = request
401
402	return next.HandleSerialize(ctx, in)
403}
404
405type awsAwsquery_serializeOpGetSessionToken struct {
406}
407
408func (*awsAwsquery_serializeOpGetSessionToken) ID() string {
409	return "OperationSerializer"
410}
411
412func (m *awsAwsquery_serializeOpGetSessionToken) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
413	out middleware.SerializeOutput, metadata middleware.Metadata, err error,
414) {
415	request, ok := in.Request.(*smithyhttp.Request)
416	if !ok {
417		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
418	}
419
420	input, ok := in.Parameters.(*GetSessionTokenInput)
421	_ = input
422	if !ok {
423		return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
424	}
425
426	request.Request.URL.Path = "/"
427	request.Request.Method = "POST"
428	httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
429	if err != nil {
430		return out, metadata, &smithy.SerializationError{Err: err}
431	}
432	httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
433
434	bodyWriter := bytes.NewBuffer(nil)
435	bodyEncoder := query.NewEncoder(bodyWriter)
436	body := bodyEncoder.Object()
437	body.Key("Action").String("GetSessionToken")
438	body.Key("Version").String("2011-06-15")
439
440	if err := awsAwsquery_serializeOpDocumentGetSessionTokenInput(input, bodyEncoder.Value); err != nil {
441		return out, metadata, &smithy.SerializationError{Err: err}
442	}
443
444	err = bodyEncoder.Encode()
445	if err != nil {
446		return out, metadata, &smithy.SerializationError{Err: err}
447	}
448
449	if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
450		return out, metadata, &smithy.SerializationError{Err: err}
451	}
452
453	if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
454		return out, metadata, &smithy.SerializationError{Err: err}
455	}
456	in.Request = request
457
458	return next.HandleSerialize(ctx, in)
459}
460func awsAwsquery_serializeDocumentPolicyDescriptorListType(v []types.PolicyDescriptorType, value query.Value) error {
461	if len(v) == 0 {
462		return nil
463	}
464	array := value.Array("member")
465
466	for i := range v {
467		av := array.Value()
468		if err := awsAwsquery_serializeDocumentPolicyDescriptorType(&v[i], av); err != nil {
469			return err
470		}
471	}
472	return nil
473}
474
475func awsAwsquery_serializeDocumentPolicyDescriptorType(v *types.PolicyDescriptorType, value query.Value) error {
476	object := value.Object()
477	_ = object
478
479	if v.Arn != nil {
480		objectKey := object.Key("arn")
481		objectKey.String(*v.Arn)
482	}
483
484	return nil
485}
486
487func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error {
488	object := value.Object()
489	_ = object
490
491	if v.Key != nil {
492		objectKey := object.Key("Key")
493		objectKey.String(*v.Key)
494	}
495
496	if v.Value != nil {
497		objectKey := object.Key("Value")
498		objectKey.String(*v.Value)
499	}
500
501	return nil
502}
503
504func awsAwsquery_serializeDocumentTagKeyListType(v []string, value query.Value) error {
505	if len(v) == 0 {
506		return nil
507	}
508	array := value.Array("member")
509
510	for i := range v {
511		av := array.Value()
512		av.String(v[i])
513	}
514	return nil
515}
516
517func awsAwsquery_serializeDocumentTagListType(v []types.Tag, value query.Value) error {
518	if len(v) == 0 {
519		return nil
520	}
521	array := value.Array("member")
522
523	for i := range v {
524		av := array.Value()
525		if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil {
526			return err
527		}
528	}
529	return nil
530}
531
532func awsAwsquery_serializeOpDocumentAssumeRoleInput(v *AssumeRoleInput, value query.Value) error {
533	object := value.Object()
534	_ = object
535
536	if v.DurationSeconds != nil {
537		objectKey := object.Key("DurationSeconds")
538		objectKey.Integer(*v.DurationSeconds)
539	}
540
541	if v.ExternalId != nil {
542		objectKey := object.Key("ExternalId")
543		objectKey.String(*v.ExternalId)
544	}
545
546	if v.Policy != nil {
547		objectKey := object.Key("Policy")
548		objectKey.String(*v.Policy)
549	}
550
551	if v.PolicyArns != nil {
552		objectKey := object.Key("PolicyArns")
553		if err := awsAwsquery_serializeDocumentPolicyDescriptorListType(v.PolicyArns, objectKey); err != nil {
554			return err
555		}
556	}
557
558	if v.RoleArn != nil {
559		objectKey := object.Key("RoleArn")
560		objectKey.String(*v.RoleArn)
561	}
562
563	if v.RoleSessionName != nil {
564		objectKey := object.Key("RoleSessionName")
565		objectKey.String(*v.RoleSessionName)
566	}
567
568	if v.SerialNumber != nil {
569		objectKey := object.Key("SerialNumber")
570		objectKey.String(*v.SerialNumber)
571	}
572
573	if v.SourceIdentity != nil {
574		objectKey := object.Key("SourceIdentity")
575		objectKey.String(*v.SourceIdentity)
576	}
577
578	if v.Tags != nil {
579		objectKey := object.Key("Tags")
580		if err := awsAwsquery_serializeDocumentTagListType(v.Tags, objectKey); err != nil {
581			return err
582		}
583	}
584
585	if v.TokenCode != nil {
586		objectKey := object.Key("TokenCode")
587		objectKey.String(*v.TokenCode)
588	}
589
590	if v.TransitiveTagKeys != nil {
591		objectKey := object.Key("TransitiveTagKeys")
592		if err := awsAwsquery_serializeDocumentTagKeyListType(v.TransitiveTagKeys, objectKey); err != nil {
593			return err
594		}
595	}
596
597	return nil
598}
599
600func awsAwsquery_serializeOpDocumentAssumeRoleWithSAMLInput(v *AssumeRoleWithSAMLInput, value query.Value) error {
601	object := value.Object()
602	_ = object
603
604	if v.DurationSeconds != nil {
605		objectKey := object.Key("DurationSeconds")
606		objectKey.Integer(*v.DurationSeconds)
607	}
608
609	if v.Policy != nil {
610		objectKey := object.Key("Policy")
611		objectKey.String(*v.Policy)
612	}
613
614	if v.PolicyArns != nil {
615		objectKey := object.Key("PolicyArns")
616		if err := awsAwsquery_serializeDocumentPolicyDescriptorListType(v.PolicyArns, objectKey); err != nil {
617			return err
618		}
619	}
620
621	if v.PrincipalArn != nil {
622		objectKey := object.Key("PrincipalArn")
623		objectKey.String(*v.PrincipalArn)
624	}
625
626	if v.RoleArn != nil {
627		objectKey := object.Key("RoleArn")
628		objectKey.String(*v.RoleArn)
629	}
630
631	if v.SAMLAssertion != nil {
632		objectKey := object.Key("SAMLAssertion")
633		objectKey.String(*v.SAMLAssertion)
634	}
635
636	return nil
637}
638
639func awsAwsquery_serializeOpDocumentAssumeRoleWithWebIdentityInput(v *AssumeRoleWithWebIdentityInput, value query.Value) error {
640	object := value.Object()
641	_ = object
642
643	if v.DurationSeconds != nil {
644		objectKey := object.Key("DurationSeconds")
645		objectKey.Integer(*v.DurationSeconds)
646	}
647
648	if v.Policy != nil {
649		objectKey := object.Key("Policy")
650		objectKey.String(*v.Policy)
651	}
652
653	if v.PolicyArns != nil {
654		objectKey := object.Key("PolicyArns")
655		if err := awsAwsquery_serializeDocumentPolicyDescriptorListType(v.PolicyArns, objectKey); err != nil {
656			return err
657		}
658	}
659
660	if v.ProviderId != nil {
661		objectKey := object.Key("ProviderId")
662		objectKey.String(*v.ProviderId)
663	}
664
665	if v.RoleArn != nil {
666		objectKey := object.Key("RoleArn")
667		objectKey.String(*v.RoleArn)
668	}
669
670	if v.RoleSessionName != nil {
671		objectKey := object.Key("RoleSessionName")
672		objectKey.String(*v.RoleSessionName)
673	}
674
675	if v.WebIdentityToken != nil {
676		objectKey := object.Key("WebIdentityToken")
677		objectKey.String(*v.WebIdentityToken)
678	}
679
680	return nil
681}
682
683func awsAwsquery_serializeOpDocumentDecodeAuthorizationMessageInput(v *DecodeAuthorizationMessageInput, value query.Value) error {
684	object := value.Object()
685	_ = object
686
687	if v.EncodedMessage != nil {
688		objectKey := object.Key("EncodedMessage")
689		objectKey.String(*v.EncodedMessage)
690	}
691
692	return nil
693}
694
695func awsAwsquery_serializeOpDocumentGetAccessKeyInfoInput(v *GetAccessKeyInfoInput, value query.Value) error {
696	object := value.Object()
697	_ = object
698
699	if v.AccessKeyId != nil {
700		objectKey := object.Key("AccessKeyId")
701		objectKey.String(*v.AccessKeyId)
702	}
703
704	return nil
705}
706
707func awsAwsquery_serializeOpDocumentGetCallerIdentityInput(v *GetCallerIdentityInput, value query.Value) error {
708	object := value.Object()
709	_ = object
710
711	return nil
712}
713
714func awsAwsquery_serializeOpDocumentGetFederationTokenInput(v *GetFederationTokenInput, value query.Value) error {
715	object := value.Object()
716	_ = object
717
718	if v.DurationSeconds != nil {
719		objectKey := object.Key("DurationSeconds")
720		objectKey.Integer(*v.DurationSeconds)
721	}
722
723	if v.Name != nil {
724		objectKey := object.Key("Name")
725		objectKey.String(*v.Name)
726	}
727
728	if v.Policy != nil {
729		objectKey := object.Key("Policy")
730		objectKey.String(*v.Policy)
731	}
732
733	if v.PolicyArns != nil {
734		objectKey := object.Key("PolicyArns")
735		if err := awsAwsquery_serializeDocumentPolicyDescriptorListType(v.PolicyArns, objectKey); err != nil {
736			return err
737		}
738	}
739
740	if v.Tags != nil {
741		objectKey := object.Key("Tags")
742		if err := awsAwsquery_serializeDocumentTagListType(v.Tags, objectKey); err != nil {
743			return err
744		}
745	}
746
747	return nil
748}
749
750func awsAwsquery_serializeOpDocumentGetSessionTokenInput(v *GetSessionTokenInput, value query.Value) error {
751	object := value.Object()
752	_ = object
753
754	if v.DurationSeconds != nil {
755		objectKey := object.Key("DurationSeconds")
756		objectKey.Integer(*v.DurationSeconds)
757	}
758
759	if v.SerialNumber != nil {
760		objectKey := object.Key("SerialNumber")
761		objectKey.String(*v.SerialNumber)
762	}
763
764	if v.TokenCode != nil {
765		objectKey := object.Key("TokenCode")
766		objectKey.String(*v.TokenCode)
767	}
768
769	return nil
770}
771