1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package qldb
4
5import (
6	"context"
7	"fmt"
8	"github.com/aws/aws-sdk-go-v2/service/qldb/types"
9	smithy "github.com/aws/smithy-go"
10	"github.com/aws/smithy-go/middleware"
11)
12
13type validateOpCancelJournalKinesisStream struct {
14}
15
16func (*validateOpCancelJournalKinesisStream) ID() string {
17	return "OperationInputValidation"
18}
19
20func (m *validateOpCancelJournalKinesisStream) 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.(*CancelJournalKinesisStreamInput)
24	if !ok {
25		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
26	}
27	if err := validateOpCancelJournalKinesisStreamInput(input); err != nil {
28		return out, metadata, err
29	}
30	return next.HandleInitialize(ctx, in)
31}
32
33type validateOpCreateLedger struct {
34}
35
36func (*validateOpCreateLedger) ID() string {
37	return "OperationInputValidation"
38}
39
40func (m *validateOpCreateLedger) 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.(*CreateLedgerInput)
44	if !ok {
45		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
46	}
47	if err := validateOpCreateLedgerInput(input); err != nil {
48		return out, metadata, err
49	}
50	return next.HandleInitialize(ctx, in)
51}
52
53type validateOpDeleteLedger struct {
54}
55
56func (*validateOpDeleteLedger) ID() string {
57	return "OperationInputValidation"
58}
59
60func (m *validateOpDeleteLedger) 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.(*DeleteLedgerInput)
64	if !ok {
65		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
66	}
67	if err := validateOpDeleteLedgerInput(input); err != nil {
68		return out, metadata, err
69	}
70	return next.HandleInitialize(ctx, in)
71}
72
73type validateOpDescribeJournalKinesisStream struct {
74}
75
76func (*validateOpDescribeJournalKinesisStream) ID() string {
77	return "OperationInputValidation"
78}
79
80func (m *validateOpDescribeJournalKinesisStream) 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.(*DescribeJournalKinesisStreamInput)
84	if !ok {
85		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
86	}
87	if err := validateOpDescribeJournalKinesisStreamInput(input); err != nil {
88		return out, metadata, err
89	}
90	return next.HandleInitialize(ctx, in)
91}
92
93type validateOpDescribeJournalS3Export struct {
94}
95
96func (*validateOpDescribeJournalS3Export) ID() string {
97	return "OperationInputValidation"
98}
99
100func (m *validateOpDescribeJournalS3Export) 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.(*DescribeJournalS3ExportInput)
104	if !ok {
105		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
106	}
107	if err := validateOpDescribeJournalS3ExportInput(input); err != nil {
108		return out, metadata, err
109	}
110	return next.HandleInitialize(ctx, in)
111}
112
113type validateOpDescribeLedger struct {
114}
115
116func (*validateOpDescribeLedger) ID() string {
117	return "OperationInputValidation"
118}
119
120func (m *validateOpDescribeLedger) 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.(*DescribeLedgerInput)
124	if !ok {
125		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
126	}
127	if err := validateOpDescribeLedgerInput(input); err != nil {
128		return out, metadata, err
129	}
130	return next.HandleInitialize(ctx, in)
131}
132
133type validateOpExportJournalToS3 struct {
134}
135
136func (*validateOpExportJournalToS3) ID() string {
137	return "OperationInputValidation"
138}
139
140func (m *validateOpExportJournalToS3) 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.(*ExportJournalToS3Input)
144	if !ok {
145		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
146	}
147	if err := validateOpExportJournalToS3Input(input); err != nil {
148		return out, metadata, err
149	}
150	return next.HandleInitialize(ctx, in)
151}
152
153type validateOpGetBlock struct {
154}
155
156func (*validateOpGetBlock) ID() string {
157	return "OperationInputValidation"
158}
159
160func (m *validateOpGetBlock) 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.(*GetBlockInput)
164	if !ok {
165		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
166	}
167	if err := validateOpGetBlockInput(input); err != nil {
168		return out, metadata, err
169	}
170	return next.HandleInitialize(ctx, in)
171}
172
173type validateOpGetDigest struct {
174}
175
176func (*validateOpGetDigest) ID() string {
177	return "OperationInputValidation"
178}
179
180func (m *validateOpGetDigest) 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.(*GetDigestInput)
184	if !ok {
185		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
186	}
187	if err := validateOpGetDigestInput(input); err != nil {
188		return out, metadata, err
189	}
190	return next.HandleInitialize(ctx, in)
191}
192
193type validateOpGetRevision struct {
194}
195
196func (*validateOpGetRevision) ID() string {
197	return "OperationInputValidation"
198}
199
200func (m *validateOpGetRevision) 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.(*GetRevisionInput)
204	if !ok {
205		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
206	}
207	if err := validateOpGetRevisionInput(input); err != nil {
208		return out, metadata, err
209	}
210	return next.HandleInitialize(ctx, in)
211}
212
213type validateOpListJournalKinesisStreamsForLedger struct {
214}
215
216func (*validateOpListJournalKinesisStreamsForLedger) ID() string {
217	return "OperationInputValidation"
218}
219
220func (m *validateOpListJournalKinesisStreamsForLedger) 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.(*ListJournalKinesisStreamsForLedgerInput)
224	if !ok {
225		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
226	}
227	if err := validateOpListJournalKinesisStreamsForLedgerInput(input); err != nil {
228		return out, metadata, err
229	}
230	return next.HandleInitialize(ctx, in)
231}
232
233type validateOpListJournalS3ExportsForLedger struct {
234}
235
236func (*validateOpListJournalS3ExportsForLedger) ID() string {
237	return "OperationInputValidation"
238}
239
240func (m *validateOpListJournalS3ExportsForLedger) 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.(*ListJournalS3ExportsForLedgerInput)
244	if !ok {
245		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
246	}
247	if err := validateOpListJournalS3ExportsForLedgerInput(input); err != nil {
248		return out, metadata, err
249	}
250	return next.HandleInitialize(ctx, in)
251}
252
253type validateOpListTagsForResource struct {
254}
255
256func (*validateOpListTagsForResource) ID() string {
257	return "OperationInputValidation"
258}
259
260func (m *validateOpListTagsForResource) 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.(*ListTagsForResourceInput)
264	if !ok {
265		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
266	}
267	if err := validateOpListTagsForResourceInput(input); err != nil {
268		return out, metadata, err
269	}
270	return next.HandleInitialize(ctx, in)
271}
272
273type validateOpStreamJournalToKinesis struct {
274}
275
276func (*validateOpStreamJournalToKinesis) ID() string {
277	return "OperationInputValidation"
278}
279
280func (m *validateOpStreamJournalToKinesis) 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.(*StreamJournalToKinesisInput)
284	if !ok {
285		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
286	}
287	if err := validateOpStreamJournalToKinesisInput(input); err != nil {
288		return out, metadata, err
289	}
290	return next.HandleInitialize(ctx, in)
291}
292
293type validateOpTagResource struct {
294}
295
296func (*validateOpTagResource) ID() string {
297	return "OperationInputValidation"
298}
299
300func (m *validateOpTagResource) 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.(*TagResourceInput)
304	if !ok {
305		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
306	}
307	if err := validateOpTagResourceInput(input); err != nil {
308		return out, metadata, err
309	}
310	return next.HandleInitialize(ctx, in)
311}
312
313type validateOpUntagResource struct {
314}
315
316func (*validateOpUntagResource) ID() string {
317	return "OperationInputValidation"
318}
319
320func (m *validateOpUntagResource) 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.(*UntagResourceInput)
324	if !ok {
325		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
326	}
327	if err := validateOpUntagResourceInput(input); err != nil {
328		return out, metadata, err
329	}
330	return next.HandleInitialize(ctx, in)
331}
332
333type validateOpUpdateLedger struct {
334}
335
336func (*validateOpUpdateLedger) ID() string {
337	return "OperationInputValidation"
338}
339
340func (m *validateOpUpdateLedger) 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.(*UpdateLedgerInput)
344	if !ok {
345		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
346	}
347	if err := validateOpUpdateLedgerInput(input); err != nil {
348		return out, metadata, err
349	}
350	return next.HandleInitialize(ctx, in)
351}
352
353func addOpCancelJournalKinesisStreamValidationMiddleware(stack *middleware.Stack) error {
354	return stack.Initialize.Add(&validateOpCancelJournalKinesisStream{}, middleware.After)
355}
356
357func addOpCreateLedgerValidationMiddleware(stack *middleware.Stack) error {
358	return stack.Initialize.Add(&validateOpCreateLedger{}, middleware.After)
359}
360
361func addOpDeleteLedgerValidationMiddleware(stack *middleware.Stack) error {
362	return stack.Initialize.Add(&validateOpDeleteLedger{}, middleware.After)
363}
364
365func addOpDescribeJournalKinesisStreamValidationMiddleware(stack *middleware.Stack) error {
366	return stack.Initialize.Add(&validateOpDescribeJournalKinesisStream{}, middleware.After)
367}
368
369func addOpDescribeJournalS3ExportValidationMiddleware(stack *middleware.Stack) error {
370	return stack.Initialize.Add(&validateOpDescribeJournalS3Export{}, middleware.After)
371}
372
373func addOpDescribeLedgerValidationMiddleware(stack *middleware.Stack) error {
374	return stack.Initialize.Add(&validateOpDescribeLedger{}, middleware.After)
375}
376
377func addOpExportJournalToS3ValidationMiddleware(stack *middleware.Stack) error {
378	return stack.Initialize.Add(&validateOpExportJournalToS3{}, middleware.After)
379}
380
381func addOpGetBlockValidationMiddleware(stack *middleware.Stack) error {
382	return stack.Initialize.Add(&validateOpGetBlock{}, middleware.After)
383}
384
385func addOpGetDigestValidationMiddleware(stack *middleware.Stack) error {
386	return stack.Initialize.Add(&validateOpGetDigest{}, middleware.After)
387}
388
389func addOpGetRevisionValidationMiddleware(stack *middleware.Stack) error {
390	return stack.Initialize.Add(&validateOpGetRevision{}, middleware.After)
391}
392
393func addOpListJournalKinesisStreamsForLedgerValidationMiddleware(stack *middleware.Stack) error {
394	return stack.Initialize.Add(&validateOpListJournalKinesisStreamsForLedger{}, middleware.After)
395}
396
397func addOpListJournalS3ExportsForLedgerValidationMiddleware(stack *middleware.Stack) error {
398	return stack.Initialize.Add(&validateOpListJournalS3ExportsForLedger{}, middleware.After)
399}
400
401func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
402	return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
403}
404
405func addOpStreamJournalToKinesisValidationMiddleware(stack *middleware.Stack) error {
406	return stack.Initialize.Add(&validateOpStreamJournalToKinesis{}, middleware.After)
407}
408
409func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
410	return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
411}
412
413func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
414	return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
415}
416
417func addOpUpdateLedgerValidationMiddleware(stack *middleware.Stack) error {
418	return stack.Initialize.Add(&validateOpUpdateLedger{}, middleware.After)
419}
420
421func validateKinesisConfiguration(v *types.KinesisConfiguration) error {
422	if v == nil {
423		return nil
424	}
425	invalidParams := smithy.InvalidParamsError{Context: "KinesisConfiguration"}
426	if v.StreamArn == nil {
427		invalidParams.Add(smithy.NewErrParamRequired("StreamArn"))
428	}
429	if invalidParams.Len() > 0 {
430		return invalidParams
431	} else {
432		return nil
433	}
434}
435
436func validateS3EncryptionConfiguration(v *types.S3EncryptionConfiguration) error {
437	if v == nil {
438		return nil
439	}
440	invalidParams := smithy.InvalidParamsError{Context: "S3EncryptionConfiguration"}
441	if len(v.ObjectEncryptionType) == 0 {
442		invalidParams.Add(smithy.NewErrParamRequired("ObjectEncryptionType"))
443	}
444	if invalidParams.Len() > 0 {
445		return invalidParams
446	} else {
447		return nil
448	}
449}
450
451func validateS3ExportConfiguration(v *types.S3ExportConfiguration) error {
452	if v == nil {
453		return nil
454	}
455	invalidParams := smithy.InvalidParamsError{Context: "S3ExportConfiguration"}
456	if v.Bucket == nil {
457		invalidParams.Add(smithy.NewErrParamRequired("Bucket"))
458	}
459	if v.Prefix == nil {
460		invalidParams.Add(smithy.NewErrParamRequired("Prefix"))
461	}
462	if v.EncryptionConfiguration == nil {
463		invalidParams.Add(smithy.NewErrParamRequired("EncryptionConfiguration"))
464	} else if v.EncryptionConfiguration != nil {
465		if err := validateS3EncryptionConfiguration(v.EncryptionConfiguration); err != nil {
466			invalidParams.AddNested("EncryptionConfiguration", err.(smithy.InvalidParamsError))
467		}
468	}
469	if invalidParams.Len() > 0 {
470		return invalidParams
471	} else {
472		return nil
473	}
474}
475
476func validateOpCancelJournalKinesisStreamInput(v *CancelJournalKinesisStreamInput) error {
477	if v == nil {
478		return nil
479	}
480	invalidParams := smithy.InvalidParamsError{Context: "CancelJournalKinesisStreamInput"}
481	if v.LedgerName == nil {
482		invalidParams.Add(smithy.NewErrParamRequired("LedgerName"))
483	}
484	if v.StreamId == nil {
485		invalidParams.Add(smithy.NewErrParamRequired("StreamId"))
486	}
487	if invalidParams.Len() > 0 {
488		return invalidParams
489	} else {
490		return nil
491	}
492}
493
494func validateOpCreateLedgerInput(v *CreateLedgerInput) error {
495	if v == nil {
496		return nil
497	}
498	invalidParams := smithy.InvalidParamsError{Context: "CreateLedgerInput"}
499	if v.Name == nil {
500		invalidParams.Add(smithy.NewErrParamRequired("Name"))
501	}
502	if len(v.PermissionsMode) == 0 {
503		invalidParams.Add(smithy.NewErrParamRequired("PermissionsMode"))
504	}
505	if invalidParams.Len() > 0 {
506		return invalidParams
507	} else {
508		return nil
509	}
510}
511
512func validateOpDeleteLedgerInput(v *DeleteLedgerInput) error {
513	if v == nil {
514		return nil
515	}
516	invalidParams := smithy.InvalidParamsError{Context: "DeleteLedgerInput"}
517	if v.Name == nil {
518		invalidParams.Add(smithy.NewErrParamRequired("Name"))
519	}
520	if invalidParams.Len() > 0 {
521		return invalidParams
522	} else {
523		return nil
524	}
525}
526
527func validateOpDescribeJournalKinesisStreamInput(v *DescribeJournalKinesisStreamInput) error {
528	if v == nil {
529		return nil
530	}
531	invalidParams := smithy.InvalidParamsError{Context: "DescribeJournalKinesisStreamInput"}
532	if v.LedgerName == nil {
533		invalidParams.Add(smithy.NewErrParamRequired("LedgerName"))
534	}
535	if v.StreamId == nil {
536		invalidParams.Add(smithy.NewErrParamRequired("StreamId"))
537	}
538	if invalidParams.Len() > 0 {
539		return invalidParams
540	} else {
541		return nil
542	}
543}
544
545func validateOpDescribeJournalS3ExportInput(v *DescribeJournalS3ExportInput) error {
546	if v == nil {
547		return nil
548	}
549	invalidParams := smithy.InvalidParamsError{Context: "DescribeJournalS3ExportInput"}
550	if v.Name == nil {
551		invalidParams.Add(smithy.NewErrParamRequired("Name"))
552	}
553	if v.ExportId == nil {
554		invalidParams.Add(smithy.NewErrParamRequired("ExportId"))
555	}
556	if invalidParams.Len() > 0 {
557		return invalidParams
558	} else {
559		return nil
560	}
561}
562
563func validateOpDescribeLedgerInput(v *DescribeLedgerInput) error {
564	if v == nil {
565		return nil
566	}
567	invalidParams := smithy.InvalidParamsError{Context: "DescribeLedgerInput"}
568	if v.Name == nil {
569		invalidParams.Add(smithy.NewErrParamRequired("Name"))
570	}
571	if invalidParams.Len() > 0 {
572		return invalidParams
573	} else {
574		return nil
575	}
576}
577
578func validateOpExportJournalToS3Input(v *ExportJournalToS3Input) error {
579	if v == nil {
580		return nil
581	}
582	invalidParams := smithy.InvalidParamsError{Context: "ExportJournalToS3Input"}
583	if v.Name == nil {
584		invalidParams.Add(smithy.NewErrParamRequired("Name"))
585	}
586	if v.InclusiveStartTime == nil {
587		invalidParams.Add(smithy.NewErrParamRequired("InclusiveStartTime"))
588	}
589	if v.ExclusiveEndTime == nil {
590		invalidParams.Add(smithy.NewErrParamRequired("ExclusiveEndTime"))
591	}
592	if v.S3ExportConfiguration == nil {
593		invalidParams.Add(smithy.NewErrParamRequired("S3ExportConfiguration"))
594	} else if v.S3ExportConfiguration != nil {
595		if err := validateS3ExportConfiguration(v.S3ExportConfiguration); err != nil {
596			invalidParams.AddNested("S3ExportConfiguration", err.(smithy.InvalidParamsError))
597		}
598	}
599	if v.RoleArn == nil {
600		invalidParams.Add(smithy.NewErrParamRequired("RoleArn"))
601	}
602	if invalidParams.Len() > 0 {
603		return invalidParams
604	} else {
605		return nil
606	}
607}
608
609func validateOpGetBlockInput(v *GetBlockInput) error {
610	if v == nil {
611		return nil
612	}
613	invalidParams := smithy.InvalidParamsError{Context: "GetBlockInput"}
614	if v.Name == nil {
615		invalidParams.Add(smithy.NewErrParamRequired("Name"))
616	}
617	if v.BlockAddress == nil {
618		invalidParams.Add(smithy.NewErrParamRequired("BlockAddress"))
619	}
620	if invalidParams.Len() > 0 {
621		return invalidParams
622	} else {
623		return nil
624	}
625}
626
627func validateOpGetDigestInput(v *GetDigestInput) error {
628	if v == nil {
629		return nil
630	}
631	invalidParams := smithy.InvalidParamsError{Context: "GetDigestInput"}
632	if v.Name == nil {
633		invalidParams.Add(smithy.NewErrParamRequired("Name"))
634	}
635	if invalidParams.Len() > 0 {
636		return invalidParams
637	} else {
638		return nil
639	}
640}
641
642func validateOpGetRevisionInput(v *GetRevisionInput) error {
643	if v == nil {
644		return nil
645	}
646	invalidParams := smithy.InvalidParamsError{Context: "GetRevisionInput"}
647	if v.Name == nil {
648		invalidParams.Add(smithy.NewErrParamRequired("Name"))
649	}
650	if v.BlockAddress == nil {
651		invalidParams.Add(smithy.NewErrParamRequired("BlockAddress"))
652	}
653	if v.DocumentId == nil {
654		invalidParams.Add(smithy.NewErrParamRequired("DocumentId"))
655	}
656	if invalidParams.Len() > 0 {
657		return invalidParams
658	} else {
659		return nil
660	}
661}
662
663func validateOpListJournalKinesisStreamsForLedgerInput(v *ListJournalKinesisStreamsForLedgerInput) error {
664	if v == nil {
665		return nil
666	}
667	invalidParams := smithy.InvalidParamsError{Context: "ListJournalKinesisStreamsForLedgerInput"}
668	if v.LedgerName == nil {
669		invalidParams.Add(smithy.NewErrParamRequired("LedgerName"))
670	}
671	if invalidParams.Len() > 0 {
672		return invalidParams
673	} else {
674		return nil
675	}
676}
677
678func validateOpListJournalS3ExportsForLedgerInput(v *ListJournalS3ExportsForLedgerInput) error {
679	if v == nil {
680		return nil
681	}
682	invalidParams := smithy.InvalidParamsError{Context: "ListJournalS3ExportsForLedgerInput"}
683	if v.Name == nil {
684		invalidParams.Add(smithy.NewErrParamRequired("Name"))
685	}
686	if invalidParams.Len() > 0 {
687		return invalidParams
688	} else {
689		return nil
690	}
691}
692
693func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
694	if v == nil {
695		return nil
696	}
697	invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
698	if v.ResourceArn == nil {
699		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
700	}
701	if invalidParams.Len() > 0 {
702		return invalidParams
703	} else {
704		return nil
705	}
706}
707
708func validateOpStreamJournalToKinesisInput(v *StreamJournalToKinesisInput) error {
709	if v == nil {
710		return nil
711	}
712	invalidParams := smithy.InvalidParamsError{Context: "StreamJournalToKinesisInput"}
713	if v.LedgerName == nil {
714		invalidParams.Add(smithy.NewErrParamRequired("LedgerName"))
715	}
716	if v.RoleArn == nil {
717		invalidParams.Add(smithy.NewErrParamRequired("RoleArn"))
718	}
719	if v.InclusiveStartTime == nil {
720		invalidParams.Add(smithy.NewErrParamRequired("InclusiveStartTime"))
721	}
722	if v.KinesisConfiguration == nil {
723		invalidParams.Add(smithy.NewErrParamRequired("KinesisConfiguration"))
724	} else if v.KinesisConfiguration != nil {
725		if err := validateKinesisConfiguration(v.KinesisConfiguration); err != nil {
726			invalidParams.AddNested("KinesisConfiguration", err.(smithy.InvalidParamsError))
727		}
728	}
729	if v.StreamName == nil {
730		invalidParams.Add(smithy.NewErrParamRequired("StreamName"))
731	}
732	if invalidParams.Len() > 0 {
733		return invalidParams
734	} else {
735		return nil
736	}
737}
738
739func validateOpTagResourceInput(v *TagResourceInput) error {
740	if v == nil {
741		return nil
742	}
743	invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
744	if v.ResourceArn == nil {
745		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
746	}
747	if v.Tags == nil {
748		invalidParams.Add(smithy.NewErrParamRequired("Tags"))
749	}
750	if invalidParams.Len() > 0 {
751		return invalidParams
752	} else {
753		return nil
754	}
755}
756
757func validateOpUntagResourceInput(v *UntagResourceInput) error {
758	if v == nil {
759		return nil
760	}
761	invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
762	if v.ResourceArn == nil {
763		invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
764	}
765	if v.TagKeys == nil {
766		invalidParams.Add(smithy.NewErrParamRequired("TagKeys"))
767	}
768	if invalidParams.Len() > 0 {
769		return invalidParams
770	} else {
771		return nil
772	}
773}
774
775func validateOpUpdateLedgerInput(v *UpdateLedgerInput) error {
776	if v == nil {
777		return nil
778	}
779	invalidParams := smithy.InvalidParamsError{Context: "UpdateLedgerInput"}
780	if v.Name == nil {
781		invalidParams.Add(smithy.NewErrParamRequired("Name"))
782	}
783	if invalidParams.Len() > 0 {
784		return invalidParams
785	} else {
786		return nil
787	}
788}
789