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