1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package customerprofiles
4
5import (
6	"context"
7	"fmt"
8	smithy "github.com/aws/smithy-go"
9	"github.com/aws/smithy-go/middleware"
10)
11
12type validateOpAddProfileKey struct {
13}
14
15func (*validateOpAddProfileKey) ID() string {
16	return "OperationInputValidation"
17}
18
19func (m *validateOpAddProfileKey) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
20	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
21) {
22	input, ok := in.Parameters.(*AddProfileKeyInput)
23	if !ok {
24		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
25	}
26	if err := validateOpAddProfileKeyInput(input); err != nil {
27		return out, metadata, err
28	}
29	return next.HandleInitialize(ctx, in)
30}
31
32type validateOpCreateDomain struct {
33}
34
35func (*validateOpCreateDomain) ID() string {
36	return "OperationInputValidation"
37}
38
39func (m *validateOpCreateDomain) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
40	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
41) {
42	input, ok := in.Parameters.(*CreateDomainInput)
43	if !ok {
44		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
45	}
46	if err := validateOpCreateDomainInput(input); err != nil {
47		return out, metadata, err
48	}
49	return next.HandleInitialize(ctx, in)
50}
51
52type validateOpCreateProfile struct {
53}
54
55func (*validateOpCreateProfile) ID() string {
56	return "OperationInputValidation"
57}
58
59func (m *validateOpCreateProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
60	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
61) {
62	input, ok := in.Parameters.(*CreateProfileInput)
63	if !ok {
64		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
65	}
66	if err := validateOpCreateProfileInput(input); err != nil {
67		return out, metadata, err
68	}
69	return next.HandleInitialize(ctx, in)
70}
71
72type validateOpDeleteDomain struct {
73}
74
75func (*validateOpDeleteDomain) ID() string {
76	return "OperationInputValidation"
77}
78
79func (m *validateOpDeleteDomain) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
80	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
81) {
82	input, ok := in.Parameters.(*DeleteDomainInput)
83	if !ok {
84		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
85	}
86	if err := validateOpDeleteDomainInput(input); err != nil {
87		return out, metadata, err
88	}
89	return next.HandleInitialize(ctx, in)
90}
91
92type validateOpDeleteIntegration struct {
93}
94
95func (*validateOpDeleteIntegration) ID() string {
96	return "OperationInputValidation"
97}
98
99func (m *validateOpDeleteIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
100	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
101) {
102	input, ok := in.Parameters.(*DeleteIntegrationInput)
103	if !ok {
104		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
105	}
106	if err := validateOpDeleteIntegrationInput(input); err != nil {
107		return out, metadata, err
108	}
109	return next.HandleInitialize(ctx, in)
110}
111
112type validateOpDeleteProfile struct {
113}
114
115func (*validateOpDeleteProfile) ID() string {
116	return "OperationInputValidation"
117}
118
119func (m *validateOpDeleteProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
120	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
121) {
122	input, ok := in.Parameters.(*DeleteProfileInput)
123	if !ok {
124		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
125	}
126	if err := validateOpDeleteProfileInput(input); err != nil {
127		return out, metadata, err
128	}
129	return next.HandleInitialize(ctx, in)
130}
131
132type validateOpDeleteProfileKey struct {
133}
134
135func (*validateOpDeleteProfileKey) ID() string {
136	return "OperationInputValidation"
137}
138
139func (m *validateOpDeleteProfileKey) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
140	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
141) {
142	input, ok := in.Parameters.(*DeleteProfileKeyInput)
143	if !ok {
144		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
145	}
146	if err := validateOpDeleteProfileKeyInput(input); err != nil {
147		return out, metadata, err
148	}
149	return next.HandleInitialize(ctx, in)
150}
151
152type validateOpDeleteProfileObject struct {
153}
154
155func (*validateOpDeleteProfileObject) ID() string {
156	return "OperationInputValidation"
157}
158
159func (m *validateOpDeleteProfileObject) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
160	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
161) {
162	input, ok := in.Parameters.(*DeleteProfileObjectInput)
163	if !ok {
164		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
165	}
166	if err := validateOpDeleteProfileObjectInput(input); err != nil {
167		return out, metadata, err
168	}
169	return next.HandleInitialize(ctx, in)
170}
171
172type validateOpDeleteProfileObjectType struct {
173}
174
175func (*validateOpDeleteProfileObjectType) ID() string {
176	return "OperationInputValidation"
177}
178
179func (m *validateOpDeleteProfileObjectType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
180	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
181) {
182	input, ok := in.Parameters.(*DeleteProfileObjectTypeInput)
183	if !ok {
184		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
185	}
186	if err := validateOpDeleteProfileObjectTypeInput(input); err != nil {
187		return out, metadata, err
188	}
189	return next.HandleInitialize(ctx, in)
190}
191
192type validateOpGetDomain struct {
193}
194
195func (*validateOpGetDomain) ID() string {
196	return "OperationInputValidation"
197}
198
199func (m *validateOpGetDomain) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
200	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
201) {
202	input, ok := in.Parameters.(*GetDomainInput)
203	if !ok {
204		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
205	}
206	if err := validateOpGetDomainInput(input); err != nil {
207		return out, metadata, err
208	}
209	return next.HandleInitialize(ctx, in)
210}
211
212type validateOpGetIntegration struct {
213}
214
215func (*validateOpGetIntegration) ID() string {
216	return "OperationInputValidation"
217}
218
219func (m *validateOpGetIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
220	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
221) {
222	input, ok := in.Parameters.(*GetIntegrationInput)
223	if !ok {
224		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
225	}
226	if err := validateOpGetIntegrationInput(input); err != nil {
227		return out, metadata, err
228	}
229	return next.HandleInitialize(ctx, in)
230}
231
232type validateOpGetProfileObjectType struct {
233}
234
235func (*validateOpGetProfileObjectType) ID() string {
236	return "OperationInputValidation"
237}
238
239func (m *validateOpGetProfileObjectType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
240	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
241) {
242	input, ok := in.Parameters.(*GetProfileObjectTypeInput)
243	if !ok {
244		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
245	}
246	if err := validateOpGetProfileObjectTypeInput(input); err != nil {
247		return out, metadata, err
248	}
249	return next.HandleInitialize(ctx, in)
250}
251
252type validateOpGetProfileObjectTypeTemplate struct {
253}
254
255func (*validateOpGetProfileObjectTypeTemplate) ID() string {
256	return "OperationInputValidation"
257}
258
259func (m *validateOpGetProfileObjectTypeTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
260	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
261) {
262	input, ok := in.Parameters.(*GetProfileObjectTypeTemplateInput)
263	if !ok {
264		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
265	}
266	if err := validateOpGetProfileObjectTypeTemplateInput(input); err != nil {
267		return out, metadata, err
268	}
269	return next.HandleInitialize(ctx, in)
270}
271
272type validateOpListAccountIntegrations struct {
273}
274
275func (*validateOpListAccountIntegrations) ID() string {
276	return "OperationInputValidation"
277}
278
279func (m *validateOpListAccountIntegrations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
280	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
281) {
282	input, ok := in.Parameters.(*ListAccountIntegrationsInput)
283	if !ok {
284		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
285	}
286	if err := validateOpListAccountIntegrationsInput(input); err != nil {
287		return out, metadata, err
288	}
289	return next.HandleInitialize(ctx, in)
290}
291
292type validateOpListIntegrations struct {
293}
294
295func (*validateOpListIntegrations) ID() string {
296	return "OperationInputValidation"
297}
298
299func (m *validateOpListIntegrations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
300	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
301) {
302	input, ok := in.Parameters.(*ListIntegrationsInput)
303	if !ok {
304		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
305	}
306	if err := validateOpListIntegrationsInput(input); err != nil {
307		return out, metadata, err
308	}
309	return next.HandleInitialize(ctx, in)
310}
311
312type validateOpListProfileObjects struct {
313}
314
315func (*validateOpListProfileObjects) ID() string {
316	return "OperationInputValidation"
317}
318
319func (m *validateOpListProfileObjects) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
320	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
321) {
322	input, ok := in.Parameters.(*ListProfileObjectsInput)
323	if !ok {
324		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
325	}
326	if err := validateOpListProfileObjectsInput(input); err != nil {
327		return out, metadata, err
328	}
329	return next.HandleInitialize(ctx, in)
330}
331
332type validateOpListProfileObjectTypes struct {
333}
334
335func (*validateOpListProfileObjectTypes) ID() string {
336	return "OperationInputValidation"
337}
338
339func (m *validateOpListProfileObjectTypes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
340	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
341) {
342	input, ok := in.Parameters.(*ListProfileObjectTypesInput)
343	if !ok {
344		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
345	}
346	if err := validateOpListProfileObjectTypesInput(input); err != nil {
347		return out, metadata, err
348	}
349	return next.HandleInitialize(ctx, in)
350}
351
352type validateOpListTagsForResource struct {
353}
354
355func (*validateOpListTagsForResource) ID() string {
356	return "OperationInputValidation"
357}
358
359func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
360	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
361) {
362	input, ok := in.Parameters.(*ListTagsForResourceInput)
363	if !ok {
364		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
365	}
366	if err := validateOpListTagsForResourceInput(input); err != nil {
367		return out, metadata, err
368	}
369	return next.HandleInitialize(ctx, in)
370}
371
372type validateOpPutIntegration struct {
373}
374
375func (*validateOpPutIntegration) ID() string {
376	return "OperationInputValidation"
377}
378
379func (m *validateOpPutIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
380	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
381) {
382	input, ok := in.Parameters.(*PutIntegrationInput)
383	if !ok {
384		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
385	}
386	if err := validateOpPutIntegrationInput(input); err != nil {
387		return out, metadata, err
388	}
389	return next.HandleInitialize(ctx, in)
390}
391
392type validateOpPutProfileObject struct {
393}
394
395func (*validateOpPutProfileObject) ID() string {
396	return "OperationInputValidation"
397}
398
399func (m *validateOpPutProfileObject) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
400	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
401) {
402	input, ok := in.Parameters.(*PutProfileObjectInput)
403	if !ok {
404		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
405	}
406	if err := validateOpPutProfileObjectInput(input); err != nil {
407		return out, metadata, err
408	}
409	return next.HandleInitialize(ctx, in)
410}
411
412type validateOpPutProfileObjectType struct {
413}
414
415func (*validateOpPutProfileObjectType) ID() string {
416	return "OperationInputValidation"
417}
418
419func (m *validateOpPutProfileObjectType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
420	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
421) {
422	input, ok := in.Parameters.(*PutProfileObjectTypeInput)
423	if !ok {
424		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
425	}
426	if err := validateOpPutProfileObjectTypeInput(input); err != nil {
427		return out, metadata, err
428	}
429	return next.HandleInitialize(ctx, in)
430}
431
432type validateOpSearchProfiles struct {
433}
434
435func (*validateOpSearchProfiles) ID() string {
436	return "OperationInputValidation"
437}
438
439func (m *validateOpSearchProfiles) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
440	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
441) {
442	input, ok := in.Parameters.(*SearchProfilesInput)
443	if !ok {
444		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
445	}
446	if err := validateOpSearchProfilesInput(input); err != nil {
447		return out, metadata, err
448	}
449	return next.HandleInitialize(ctx, in)
450}
451
452type validateOpTagResource struct {
453}
454
455func (*validateOpTagResource) ID() string {
456	return "OperationInputValidation"
457}
458
459func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
460	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
461) {
462	input, ok := in.Parameters.(*TagResourceInput)
463	if !ok {
464		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
465	}
466	if err := validateOpTagResourceInput(input); err != nil {
467		return out, metadata, err
468	}
469	return next.HandleInitialize(ctx, in)
470}
471
472type validateOpUntagResource struct {
473}
474
475func (*validateOpUntagResource) ID() string {
476	return "OperationInputValidation"
477}
478
479func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
480	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
481) {
482	input, ok := in.Parameters.(*UntagResourceInput)
483	if !ok {
484		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
485	}
486	if err := validateOpUntagResourceInput(input); err != nil {
487		return out, metadata, err
488	}
489	return next.HandleInitialize(ctx, in)
490}
491
492type validateOpUpdateDomain struct {
493}
494
495func (*validateOpUpdateDomain) ID() string {
496	return "OperationInputValidation"
497}
498
499func (m *validateOpUpdateDomain) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
500	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
501) {
502	input, ok := in.Parameters.(*UpdateDomainInput)
503	if !ok {
504		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
505	}
506	if err := validateOpUpdateDomainInput(input); err != nil {
507		return out, metadata, err
508	}
509	return next.HandleInitialize(ctx, in)
510}
511
512type validateOpUpdateProfile struct {
513}
514
515func (*validateOpUpdateProfile) ID() string {
516	return "OperationInputValidation"
517}
518
519func (m *validateOpUpdateProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
520	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
521) {
522	input, ok := in.Parameters.(*UpdateProfileInput)
523	if !ok {
524		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
525	}
526	if err := validateOpUpdateProfileInput(input); err != nil {
527		return out, metadata, err
528	}
529	return next.HandleInitialize(ctx, in)
530}
531
532func addOpAddProfileKeyValidationMiddleware(stack *middleware.Stack) error {
533	return stack.Initialize.Add(&validateOpAddProfileKey{}, middleware.After)
534}
535
536func addOpCreateDomainValidationMiddleware(stack *middleware.Stack) error {
537	return stack.Initialize.Add(&validateOpCreateDomain{}, middleware.After)
538}
539
540func addOpCreateProfileValidationMiddleware(stack *middleware.Stack) error {
541	return stack.Initialize.Add(&validateOpCreateProfile{}, middleware.After)
542}
543
544func addOpDeleteDomainValidationMiddleware(stack *middleware.Stack) error {
545	return stack.Initialize.Add(&validateOpDeleteDomain{}, middleware.After)
546}
547
548func addOpDeleteIntegrationValidationMiddleware(stack *middleware.Stack) error {
549	return stack.Initialize.Add(&validateOpDeleteIntegration{}, middleware.After)
550}
551
552func addOpDeleteProfileValidationMiddleware(stack *middleware.Stack) error {
553	return stack.Initialize.Add(&validateOpDeleteProfile{}, middleware.After)
554}
555
556func addOpDeleteProfileKeyValidationMiddleware(stack *middleware.Stack) error {
557	return stack.Initialize.Add(&validateOpDeleteProfileKey{}, middleware.After)
558}
559
560func addOpDeleteProfileObjectValidationMiddleware(stack *middleware.Stack) error {
561	return stack.Initialize.Add(&validateOpDeleteProfileObject{}, middleware.After)
562}
563
564func addOpDeleteProfileObjectTypeValidationMiddleware(stack *middleware.Stack) error {
565	return stack.Initialize.Add(&validateOpDeleteProfileObjectType{}, middleware.After)
566}
567
568func addOpGetDomainValidationMiddleware(stack *middleware.Stack) error {
569	return stack.Initialize.Add(&validateOpGetDomain{}, middleware.After)
570}
571
572func addOpGetIntegrationValidationMiddleware(stack *middleware.Stack) error {
573	return stack.Initialize.Add(&validateOpGetIntegration{}, middleware.After)
574}
575
576func addOpGetProfileObjectTypeValidationMiddleware(stack *middleware.Stack) error {
577	return stack.Initialize.Add(&validateOpGetProfileObjectType{}, middleware.After)
578}
579
580func addOpGetProfileObjectTypeTemplateValidationMiddleware(stack *middleware.Stack) error {
581	return stack.Initialize.Add(&validateOpGetProfileObjectTypeTemplate{}, middleware.After)
582}
583
584func addOpListAccountIntegrationsValidationMiddleware(stack *middleware.Stack) error {
585	return stack.Initialize.Add(&validateOpListAccountIntegrations{}, middleware.After)
586}
587
588func addOpListIntegrationsValidationMiddleware(stack *middleware.Stack) error {
589	return stack.Initialize.Add(&validateOpListIntegrations{}, middleware.After)
590}
591
592func addOpListProfileObjectsValidationMiddleware(stack *middleware.Stack) error {
593	return stack.Initialize.Add(&validateOpListProfileObjects{}, middleware.After)
594}
595
596func addOpListProfileObjectTypesValidationMiddleware(stack *middleware.Stack) error {
597	return stack.Initialize.Add(&validateOpListProfileObjectTypes{}, middleware.After)
598}
599
600func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
601	return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
602}
603
604func addOpPutIntegrationValidationMiddleware(stack *middleware.Stack) error {
605	return stack.Initialize.Add(&validateOpPutIntegration{}, middleware.After)
606}
607
608func addOpPutProfileObjectValidationMiddleware(stack *middleware.Stack) error {
609	return stack.Initialize.Add(&validateOpPutProfileObject{}, middleware.After)
610}
611
612func addOpPutProfileObjectTypeValidationMiddleware(stack *middleware.Stack) error {
613	return stack.Initialize.Add(&validateOpPutProfileObjectType{}, middleware.After)
614}
615
616func addOpSearchProfilesValidationMiddleware(stack *middleware.Stack) error {
617	return stack.Initialize.Add(&validateOpSearchProfiles{}, middleware.After)
618}
619
620func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
621	return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
622}
623
624func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
625	return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
626}
627
628func addOpUpdateDomainValidationMiddleware(stack *middleware.Stack) error {
629	return stack.Initialize.Add(&validateOpUpdateDomain{}, middleware.After)
630}
631
632func addOpUpdateProfileValidationMiddleware(stack *middleware.Stack) error {
633	return stack.Initialize.Add(&validateOpUpdateProfile{}, middleware.After)
634}
635
636func validateOpAddProfileKeyInput(v *AddProfileKeyInput) error {
637	if v == nil {
638		return nil
639	}
640	invalidParams := smithy.InvalidParamsError{Context: "AddProfileKeyInput"}
641	if v.ProfileId == nil {
642		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
643	}
644	if v.KeyName == nil {
645		invalidParams.Add(smithy.NewErrParamRequired("KeyName"))
646	}
647	if v.Values == nil {
648		invalidParams.Add(smithy.NewErrParamRequired("Values"))
649	}
650	if v.DomainName == nil {
651		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
652	}
653	if invalidParams.Len() > 0 {
654		return invalidParams
655	} else {
656		return nil
657	}
658}
659
660func validateOpCreateDomainInput(v *CreateDomainInput) error {
661	if v == nil {
662		return nil
663	}
664	invalidParams := smithy.InvalidParamsError{Context: "CreateDomainInput"}
665	if v.DomainName == nil {
666		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
667	}
668	if v.DefaultExpirationDays == nil {
669		invalidParams.Add(smithy.NewErrParamRequired("DefaultExpirationDays"))
670	}
671	if invalidParams.Len() > 0 {
672		return invalidParams
673	} else {
674		return nil
675	}
676}
677
678func validateOpCreateProfileInput(v *CreateProfileInput) error {
679	if v == nil {
680		return nil
681	}
682	invalidParams := smithy.InvalidParamsError{Context: "CreateProfileInput"}
683	if v.DomainName == nil {
684		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
685	}
686	if invalidParams.Len() > 0 {
687		return invalidParams
688	} else {
689		return nil
690	}
691}
692
693func validateOpDeleteDomainInput(v *DeleteDomainInput) error {
694	if v == nil {
695		return nil
696	}
697	invalidParams := smithy.InvalidParamsError{Context: "DeleteDomainInput"}
698	if v.DomainName == nil {
699		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
700	}
701	if invalidParams.Len() > 0 {
702		return invalidParams
703	} else {
704		return nil
705	}
706}
707
708func validateOpDeleteIntegrationInput(v *DeleteIntegrationInput) error {
709	if v == nil {
710		return nil
711	}
712	invalidParams := smithy.InvalidParamsError{Context: "DeleteIntegrationInput"}
713	if v.DomainName == nil {
714		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
715	}
716	if invalidParams.Len() > 0 {
717		return invalidParams
718	} else {
719		return nil
720	}
721}
722
723func validateOpDeleteProfileInput(v *DeleteProfileInput) error {
724	if v == nil {
725		return nil
726	}
727	invalidParams := smithy.InvalidParamsError{Context: "DeleteProfileInput"}
728	if v.ProfileId == nil {
729		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
730	}
731	if v.DomainName == nil {
732		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
733	}
734	if invalidParams.Len() > 0 {
735		return invalidParams
736	} else {
737		return nil
738	}
739}
740
741func validateOpDeleteProfileKeyInput(v *DeleteProfileKeyInput) error {
742	if v == nil {
743		return nil
744	}
745	invalidParams := smithy.InvalidParamsError{Context: "DeleteProfileKeyInput"}
746	if v.ProfileId == nil {
747		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
748	}
749	if v.KeyName == nil {
750		invalidParams.Add(smithy.NewErrParamRequired("KeyName"))
751	}
752	if v.Values == nil {
753		invalidParams.Add(smithy.NewErrParamRequired("Values"))
754	}
755	if v.DomainName == nil {
756		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
757	}
758	if invalidParams.Len() > 0 {
759		return invalidParams
760	} else {
761		return nil
762	}
763}
764
765func validateOpDeleteProfileObjectInput(v *DeleteProfileObjectInput) error {
766	if v == nil {
767		return nil
768	}
769	invalidParams := smithy.InvalidParamsError{Context: "DeleteProfileObjectInput"}
770	if v.ProfileId == nil {
771		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
772	}
773	if v.ProfileObjectUniqueKey == nil {
774		invalidParams.Add(smithy.NewErrParamRequired("ProfileObjectUniqueKey"))
775	}
776	if v.ObjectTypeName == nil {
777		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
778	}
779	if v.DomainName == nil {
780		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
781	}
782	if invalidParams.Len() > 0 {
783		return invalidParams
784	} else {
785		return nil
786	}
787}
788
789func validateOpDeleteProfileObjectTypeInput(v *DeleteProfileObjectTypeInput) error {
790	if v == nil {
791		return nil
792	}
793	invalidParams := smithy.InvalidParamsError{Context: "DeleteProfileObjectTypeInput"}
794	if v.DomainName == nil {
795		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
796	}
797	if v.ObjectTypeName == nil {
798		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
799	}
800	if invalidParams.Len() > 0 {
801		return invalidParams
802	} else {
803		return nil
804	}
805}
806
807func validateOpGetDomainInput(v *GetDomainInput) error {
808	if v == nil {
809		return nil
810	}
811	invalidParams := smithy.InvalidParamsError{Context: "GetDomainInput"}
812	if v.DomainName == nil {
813		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
814	}
815	if invalidParams.Len() > 0 {
816		return invalidParams
817	} else {
818		return nil
819	}
820}
821
822func validateOpGetIntegrationInput(v *GetIntegrationInput) error {
823	if v == nil {
824		return nil
825	}
826	invalidParams := smithy.InvalidParamsError{Context: "GetIntegrationInput"}
827	if v.DomainName == nil {
828		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
829	}
830	if invalidParams.Len() > 0 {
831		return invalidParams
832	} else {
833		return nil
834	}
835}
836
837func validateOpGetProfileObjectTypeInput(v *GetProfileObjectTypeInput) error {
838	if v == nil {
839		return nil
840	}
841	invalidParams := smithy.InvalidParamsError{Context: "GetProfileObjectTypeInput"}
842	if v.DomainName == nil {
843		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
844	}
845	if v.ObjectTypeName == nil {
846		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
847	}
848	if invalidParams.Len() > 0 {
849		return invalidParams
850	} else {
851		return nil
852	}
853}
854
855func validateOpGetProfileObjectTypeTemplateInput(v *GetProfileObjectTypeTemplateInput) error {
856	if v == nil {
857		return nil
858	}
859	invalidParams := smithy.InvalidParamsError{Context: "GetProfileObjectTypeTemplateInput"}
860	if v.TemplateId == nil {
861		invalidParams.Add(smithy.NewErrParamRequired("TemplateId"))
862	}
863	if invalidParams.Len() > 0 {
864		return invalidParams
865	} else {
866		return nil
867	}
868}
869
870func validateOpListAccountIntegrationsInput(v *ListAccountIntegrationsInput) error {
871	if v == nil {
872		return nil
873	}
874	invalidParams := smithy.InvalidParamsError{Context: "ListAccountIntegrationsInput"}
875	if v.Uri == nil {
876		invalidParams.Add(smithy.NewErrParamRequired("Uri"))
877	}
878	if invalidParams.Len() > 0 {
879		return invalidParams
880	} else {
881		return nil
882	}
883}
884
885func validateOpListIntegrationsInput(v *ListIntegrationsInput) error {
886	if v == nil {
887		return nil
888	}
889	invalidParams := smithy.InvalidParamsError{Context: "ListIntegrationsInput"}
890	if v.DomainName == nil {
891		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
892	}
893	if invalidParams.Len() > 0 {
894		return invalidParams
895	} else {
896		return nil
897	}
898}
899
900func validateOpListProfileObjectsInput(v *ListProfileObjectsInput) error {
901	if v == nil {
902		return nil
903	}
904	invalidParams := smithy.InvalidParamsError{Context: "ListProfileObjectsInput"}
905	if v.DomainName == nil {
906		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
907	}
908	if v.ObjectTypeName == nil {
909		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
910	}
911	if v.ProfileId == nil {
912		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
913	}
914	if invalidParams.Len() > 0 {
915		return invalidParams
916	} else {
917		return nil
918	}
919}
920
921func validateOpListProfileObjectTypesInput(v *ListProfileObjectTypesInput) error {
922	if v == nil {
923		return nil
924	}
925	invalidParams := smithy.InvalidParamsError{Context: "ListProfileObjectTypesInput"}
926	if v.DomainName == nil {
927		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
928	}
929	if invalidParams.Len() > 0 {
930		return invalidParams
931	} else {
932		return nil
933	}
934}
935
936func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
937	if v == nil {
938		return nil
939	}
940	invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
941	if v.ResourceArn == nil {
942		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
943	}
944	if invalidParams.Len() > 0 {
945		return invalidParams
946	} else {
947		return nil
948	}
949}
950
951func validateOpPutIntegrationInput(v *PutIntegrationInput) error {
952	if v == nil {
953		return nil
954	}
955	invalidParams := smithy.InvalidParamsError{Context: "PutIntegrationInput"}
956	if v.DomainName == nil {
957		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
958	}
959	if v.Uri == nil {
960		invalidParams.Add(smithy.NewErrParamRequired("Uri"))
961	}
962	if v.ObjectTypeName == nil {
963		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
964	}
965	if invalidParams.Len() > 0 {
966		return invalidParams
967	} else {
968		return nil
969	}
970}
971
972func validateOpPutProfileObjectInput(v *PutProfileObjectInput) error {
973	if v == nil {
974		return nil
975	}
976	invalidParams := smithy.InvalidParamsError{Context: "PutProfileObjectInput"}
977	if v.ObjectTypeName == nil {
978		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
979	}
980	if v.Object == nil {
981		invalidParams.Add(smithy.NewErrParamRequired("Object"))
982	}
983	if v.DomainName == nil {
984		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
985	}
986	if invalidParams.Len() > 0 {
987		return invalidParams
988	} else {
989		return nil
990	}
991}
992
993func validateOpPutProfileObjectTypeInput(v *PutProfileObjectTypeInput) error {
994	if v == nil {
995		return nil
996	}
997	invalidParams := smithy.InvalidParamsError{Context: "PutProfileObjectTypeInput"}
998	if v.DomainName == nil {
999		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
1000	}
1001	if v.ObjectTypeName == nil {
1002		invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName"))
1003	}
1004	if v.Description == nil {
1005		invalidParams.Add(smithy.NewErrParamRequired("Description"))
1006	}
1007	if invalidParams.Len() > 0 {
1008		return invalidParams
1009	} else {
1010		return nil
1011	}
1012}
1013
1014func validateOpSearchProfilesInput(v *SearchProfilesInput) error {
1015	if v == nil {
1016		return nil
1017	}
1018	invalidParams := smithy.InvalidParamsError{Context: "SearchProfilesInput"}
1019	if v.DomainName == nil {
1020		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
1021	}
1022	if v.KeyName == nil {
1023		invalidParams.Add(smithy.NewErrParamRequired("KeyName"))
1024	}
1025	if v.Values == nil {
1026		invalidParams.Add(smithy.NewErrParamRequired("Values"))
1027	}
1028	if invalidParams.Len() > 0 {
1029		return invalidParams
1030	} else {
1031		return nil
1032	}
1033}
1034
1035func validateOpTagResourceInput(v *TagResourceInput) error {
1036	if v == nil {
1037		return nil
1038	}
1039	invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
1040	if v.ResourceArn == nil {
1041		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
1042	}
1043	if v.Tags == nil {
1044		invalidParams.Add(smithy.NewErrParamRequired("Tags"))
1045	}
1046	if invalidParams.Len() > 0 {
1047		return invalidParams
1048	} else {
1049		return nil
1050	}
1051}
1052
1053func validateOpUntagResourceInput(v *UntagResourceInput) error {
1054	if v == nil {
1055		return nil
1056	}
1057	invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
1058	if v.ResourceArn == nil {
1059		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
1060	}
1061	if v.TagKeys == nil {
1062		invalidParams.Add(smithy.NewErrParamRequired("TagKeys"))
1063	}
1064	if invalidParams.Len() > 0 {
1065		return invalidParams
1066	} else {
1067		return nil
1068	}
1069}
1070
1071func validateOpUpdateDomainInput(v *UpdateDomainInput) error {
1072	if v == nil {
1073		return nil
1074	}
1075	invalidParams := smithy.InvalidParamsError{Context: "UpdateDomainInput"}
1076	if v.DomainName == nil {
1077		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
1078	}
1079	if invalidParams.Len() > 0 {
1080		return invalidParams
1081	} else {
1082		return nil
1083	}
1084}
1085
1086func validateOpUpdateProfileInput(v *UpdateProfileInput) error {
1087	if v == nil {
1088		return nil
1089	}
1090	invalidParams := smithy.InvalidParamsError{Context: "UpdateProfileInput"}
1091	if v.DomainName == nil {
1092		invalidParams.Add(smithy.NewErrParamRequired("DomainName"))
1093	}
1094	if v.ProfileId == nil {
1095		invalidParams.Add(smithy.NewErrParamRequired("ProfileId"))
1096	}
1097	if invalidParams.Len() > 0 {
1098		return invalidParams
1099	} else {
1100		return nil
1101	}
1102}
1103