1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package workmail 4 5import ( 6 "context" 7 "fmt" 8 "github.com/aws/aws-sdk-go-v2/service/workmail/types" 9 smithy "github.com/aws/smithy-go" 10 "github.com/aws/smithy-go/middleware" 11) 12 13type validateOpAssociateDelegateToResource struct { 14} 15 16func (*validateOpAssociateDelegateToResource) ID() string { 17 return "OperationInputValidation" 18} 19 20func (m *validateOpAssociateDelegateToResource) 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.(*AssociateDelegateToResourceInput) 24 if !ok { 25 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 26 } 27 if err := validateOpAssociateDelegateToResourceInput(input); err != nil { 28 return out, metadata, err 29 } 30 return next.HandleInitialize(ctx, in) 31} 32 33type validateOpAssociateMemberToGroup struct { 34} 35 36func (*validateOpAssociateMemberToGroup) ID() string { 37 return "OperationInputValidation" 38} 39 40func (m *validateOpAssociateMemberToGroup) 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.(*AssociateMemberToGroupInput) 44 if !ok { 45 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 46 } 47 if err := validateOpAssociateMemberToGroupInput(input); err != nil { 48 return out, metadata, err 49 } 50 return next.HandleInitialize(ctx, in) 51} 52 53type validateOpCancelMailboxExportJob struct { 54} 55 56func (*validateOpCancelMailboxExportJob) ID() string { 57 return "OperationInputValidation" 58} 59 60func (m *validateOpCancelMailboxExportJob) 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.(*CancelMailboxExportJobInput) 64 if !ok { 65 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 66 } 67 if err := validateOpCancelMailboxExportJobInput(input); err != nil { 68 return out, metadata, err 69 } 70 return next.HandleInitialize(ctx, in) 71} 72 73type validateOpCreateAlias struct { 74} 75 76func (*validateOpCreateAlias) ID() string { 77 return "OperationInputValidation" 78} 79 80func (m *validateOpCreateAlias) 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.(*CreateAliasInput) 84 if !ok { 85 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 86 } 87 if err := validateOpCreateAliasInput(input); err != nil { 88 return out, metadata, err 89 } 90 return next.HandleInitialize(ctx, in) 91} 92 93type validateOpCreateGroup struct { 94} 95 96func (*validateOpCreateGroup) ID() string { 97 return "OperationInputValidation" 98} 99 100func (m *validateOpCreateGroup) 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.(*CreateGroupInput) 104 if !ok { 105 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 106 } 107 if err := validateOpCreateGroupInput(input); err != nil { 108 return out, metadata, err 109 } 110 return next.HandleInitialize(ctx, in) 111} 112 113type validateOpCreateMobileDeviceAccessRule struct { 114} 115 116func (*validateOpCreateMobileDeviceAccessRule) ID() string { 117 return "OperationInputValidation" 118} 119 120func (m *validateOpCreateMobileDeviceAccessRule) 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.(*CreateMobileDeviceAccessRuleInput) 124 if !ok { 125 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 126 } 127 if err := validateOpCreateMobileDeviceAccessRuleInput(input); err != nil { 128 return out, metadata, err 129 } 130 return next.HandleInitialize(ctx, in) 131} 132 133type validateOpCreateOrganization struct { 134} 135 136func (*validateOpCreateOrganization) ID() string { 137 return "OperationInputValidation" 138} 139 140func (m *validateOpCreateOrganization) 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.(*CreateOrganizationInput) 144 if !ok { 145 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 146 } 147 if err := validateOpCreateOrganizationInput(input); err != nil { 148 return out, metadata, err 149 } 150 return next.HandleInitialize(ctx, in) 151} 152 153type validateOpCreateResource struct { 154} 155 156func (*validateOpCreateResource) ID() string { 157 return "OperationInputValidation" 158} 159 160func (m *validateOpCreateResource) 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.(*CreateResourceInput) 164 if !ok { 165 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 166 } 167 if err := validateOpCreateResourceInput(input); err != nil { 168 return out, metadata, err 169 } 170 return next.HandleInitialize(ctx, in) 171} 172 173type validateOpCreateUser struct { 174} 175 176func (*validateOpCreateUser) ID() string { 177 return "OperationInputValidation" 178} 179 180func (m *validateOpCreateUser) 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.(*CreateUserInput) 184 if !ok { 185 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 186 } 187 if err := validateOpCreateUserInput(input); err != nil { 188 return out, metadata, err 189 } 190 return next.HandleInitialize(ctx, in) 191} 192 193type validateOpDeleteAccessControlRule struct { 194} 195 196func (*validateOpDeleteAccessControlRule) ID() string { 197 return "OperationInputValidation" 198} 199 200func (m *validateOpDeleteAccessControlRule) 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.(*DeleteAccessControlRuleInput) 204 if !ok { 205 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 206 } 207 if err := validateOpDeleteAccessControlRuleInput(input); err != nil { 208 return out, metadata, err 209 } 210 return next.HandleInitialize(ctx, in) 211} 212 213type validateOpDeleteAlias struct { 214} 215 216func (*validateOpDeleteAlias) ID() string { 217 return "OperationInputValidation" 218} 219 220func (m *validateOpDeleteAlias) 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.(*DeleteAliasInput) 224 if !ok { 225 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 226 } 227 if err := validateOpDeleteAliasInput(input); err != nil { 228 return out, metadata, err 229 } 230 return next.HandleInitialize(ctx, in) 231} 232 233type validateOpDeleteGroup struct { 234} 235 236func (*validateOpDeleteGroup) ID() string { 237 return "OperationInputValidation" 238} 239 240func (m *validateOpDeleteGroup) 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.(*DeleteGroupInput) 244 if !ok { 245 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 246 } 247 if err := validateOpDeleteGroupInput(input); err != nil { 248 return out, metadata, err 249 } 250 return next.HandleInitialize(ctx, in) 251} 252 253type validateOpDeleteMailboxPermissions struct { 254} 255 256func (*validateOpDeleteMailboxPermissions) ID() string { 257 return "OperationInputValidation" 258} 259 260func (m *validateOpDeleteMailboxPermissions) 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.(*DeleteMailboxPermissionsInput) 264 if !ok { 265 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 266 } 267 if err := validateOpDeleteMailboxPermissionsInput(input); err != nil { 268 return out, metadata, err 269 } 270 return next.HandleInitialize(ctx, in) 271} 272 273type validateOpDeleteMobileDeviceAccessRule struct { 274} 275 276func (*validateOpDeleteMobileDeviceAccessRule) ID() string { 277 return "OperationInputValidation" 278} 279 280func (m *validateOpDeleteMobileDeviceAccessRule) 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.(*DeleteMobileDeviceAccessRuleInput) 284 if !ok { 285 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 286 } 287 if err := validateOpDeleteMobileDeviceAccessRuleInput(input); err != nil { 288 return out, metadata, err 289 } 290 return next.HandleInitialize(ctx, in) 291} 292 293type validateOpDeleteOrganization struct { 294} 295 296func (*validateOpDeleteOrganization) ID() string { 297 return "OperationInputValidation" 298} 299 300func (m *validateOpDeleteOrganization) 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.(*DeleteOrganizationInput) 304 if !ok { 305 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 306 } 307 if err := validateOpDeleteOrganizationInput(input); err != nil { 308 return out, metadata, err 309 } 310 return next.HandleInitialize(ctx, in) 311} 312 313type validateOpDeleteResource struct { 314} 315 316func (*validateOpDeleteResource) ID() string { 317 return "OperationInputValidation" 318} 319 320func (m *validateOpDeleteResource) 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.(*DeleteResourceInput) 324 if !ok { 325 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 326 } 327 if err := validateOpDeleteResourceInput(input); err != nil { 328 return out, metadata, err 329 } 330 return next.HandleInitialize(ctx, in) 331} 332 333type validateOpDeleteRetentionPolicy struct { 334} 335 336func (*validateOpDeleteRetentionPolicy) ID() string { 337 return "OperationInputValidation" 338} 339 340func (m *validateOpDeleteRetentionPolicy) 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.(*DeleteRetentionPolicyInput) 344 if !ok { 345 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 346 } 347 if err := validateOpDeleteRetentionPolicyInput(input); err != nil { 348 return out, metadata, err 349 } 350 return next.HandleInitialize(ctx, in) 351} 352 353type validateOpDeleteUser struct { 354} 355 356func (*validateOpDeleteUser) ID() string { 357 return "OperationInputValidation" 358} 359 360func (m *validateOpDeleteUser) 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.(*DeleteUserInput) 364 if !ok { 365 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 366 } 367 if err := validateOpDeleteUserInput(input); err != nil { 368 return out, metadata, err 369 } 370 return next.HandleInitialize(ctx, in) 371} 372 373type validateOpDeregisterFromWorkMail struct { 374} 375 376func (*validateOpDeregisterFromWorkMail) ID() string { 377 return "OperationInputValidation" 378} 379 380func (m *validateOpDeregisterFromWorkMail) 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.(*DeregisterFromWorkMailInput) 384 if !ok { 385 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 386 } 387 if err := validateOpDeregisterFromWorkMailInput(input); err != nil { 388 return out, metadata, err 389 } 390 return next.HandleInitialize(ctx, in) 391} 392 393type validateOpDescribeGroup struct { 394} 395 396func (*validateOpDescribeGroup) ID() string { 397 return "OperationInputValidation" 398} 399 400func (m *validateOpDescribeGroup) 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.(*DescribeGroupInput) 404 if !ok { 405 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 406 } 407 if err := validateOpDescribeGroupInput(input); err != nil { 408 return out, metadata, err 409 } 410 return next.HandleInitialize(ctx, in) 411} 412 413type validateOpDescribeMailboxExportJob struct { 414} 415 416func (*validateOpDescribeMailboxExportJob) ID() string { 417 return "OperationInputValidation" 418} 419 420func (m *validateOpDescribeMailboxExportJob) 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.(*DescribeMailboxExportJobInput) 424 if !ok { 425 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 426 } 427 if err := validateOpDescribeMailboxExportJobInput(input); err != nil { 428 return out, metadata, err 429 } 430 return next.HandleInitialize(ctx, in) 431} 432 433type validateOpDescribeOrganization struct { 434} 435 436func (*validateOpDescribeOrganization) ID() string { 437 return "OperationInputValidation" 438} 439 440func (m *validateOpDescribeOrganization) 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.(*DescribeOrganizationInput) 444 if !ok { 445 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 446 } 447 if err := validateOpDescribeOrganizationInput(input); err != nil { 448 return out, metadata, err 449 } 450 return next.HandleInitialize(ctx, in) 451} 452 453type validateOpDescribeResource struct { 454} 455 456func (*validateOpDescribeResource) ID() string { 457 return "OperationInputValidation" 458} 459 460func (m *validateOpDescribeResource) 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.(*DescribeResourceInput) 464 if !ok { 465 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 466 } 467 if err := validateOpDescribeResourceInput(input); err != nil { 468 return out, metadata, err 469 } 470 return next.HandleInitialize(ctx, in) 471} 472 473type validateOpDescribeUser struct { 474} 475 476func (*validateOpDescribeUser) ID() string { 477 return "OperationInputValidation" 478} 479 480func (m *validateOpDescribeUser) 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.(*DescribeUserInput) 484 if !ok { 485 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 486 } 487 if err := validateOpDescribeUserInput(input); err != nil { 488 return out, metadata, err 489 } 490 return next.HandleInitialize(ctx, in) 491} 492 493type validateOpDisassociateDelegateFromResource struct { 494} 495 496func (*validateOpDisassociateDelegateFromResource) ID() string { 497 return "OperationInputValidation" 498} 499 500func (m *validateOpDisassociateDelegateFromResource) 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.(*DisassociateDelegateFromResourceInput) 504 if !ok { 505 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 506 } 507 if err := validateOpDisassociateDelegateFromResourceInput(input); err != nil { 508 return out, metadata, err 509 } 510 return next.HandleInitialize(ctx, in) 511} 512 513type validateOpDisassociateMemberFromGroup struct { 514} 515 516func (*validateOpDisassociateMemberFromGroup) ID() string { 517 return "OperationInputValidation" 518} 519 520func (m *validateOpDisassociateMemberFromGroup) 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.(*DisassociateMemberFromGroupInput) 524 if !ok { 525 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 526 } 527 if err := validateOpDisassociateMemberFromGroupInput(input); err != nil { 528 return out, metadata, err 529 } 530 return next.HandleInitialize(ctx, in) 531} 532 533type validateOpGetAccessControlEffect struct { 534} 535 536func (*validateOpGetAccessControlEffect) ID() string { 537 return "OperationInputValidation" 538} 539 540func (m *validateOpGetAccessControlEffect) 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.(*GetAccessControlEffectInput) 544 if !ok { 545 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 546 } 547 if err := validateOpGetAccessControlEffectInput(input); err != nil { 548 return out, metadata, err 549 } 550 return next.HandleInitialize(ctx, in) 551} 552 553type validateOpGetDefaultRetentionPolicy struct { 554} 555 556func (*validateOpGetDefaultRetentionPolicy) ID() string { 557 return "OperationInputValidation" 558} 559 560func (m *validateOpGetDefaultRetentionPolicy) 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.(*GetDefaultRetentionPolicyInput) 564 if !ok { 565 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 566 } 567 if err := validateOpGetDefaultRetentionPolicyInput(input); err != nil { 568 return out, metadata, err 569 } 570 return next.HandleInitialize(ctx, in) 571} 572 573type validateOpGetMailboxDetails struct { 574} 575 576func (*validateOpGetMailboxDetails) ID() string { 577 return "OperationInputValidation" 578} 579 580func (m *validateOpGetMailboxDetails) 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.(*GetMailboxDetailsInput) 584 if !ok { 585 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 586 } 587 if err := validateOpGetMailboxDetailsInput(input); err != nil { 588 return out, metadata, err 589 } 590 return next.HandleInitialize(ctx, in) 591} 592 593type validateOpGetMobileDeviceAccessEffect struct { 594} 595 596func (*validateOpGetMobileDeviceAccessEffect) ID() string { 597 return "OperationInputValidation" 598} 599 600func (m *validateOpGetMobileDeviceAccessEffect) 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.(*GetMobileDeviceAccessEffectInput) 604 if !ok { 605 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 606 } 607 if err := validateOpGetMobileDeviceAccessEffectInput(input); err != nil { 608 return out, metadata, err 609 } 610 return next.HandleInitialize(ctx, in) 611} 612 613type validateOpListAccessControlRules struct { 614} 615 616func (*validateOpListAccessControlRules) ID() string { 617 return "OperationInputValidation" 618} 619 620func (m *validateOpListAccessControlRules) 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.(*ListAccessControlRulesInput) 624 if !ok { 625 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 626 } 627 if err := validateOpListAccessControlRulesInput(input); err != nil { 628 return out, metadata, err 629 } 630 return next.HandleInitialize(ctx, in) 631} 632 633type validateOpListAliases struct { 634} 635 636func (*validateOpListAliases) ID() string { 637 return "OperationInputValidation" 638} 639 640func (m *validateOpListAliases) 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.(*ListAliasesInput) 644 if !ok { 645 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 646 } 647 if err := validateOpListAliasesInput(input); err != nil { 648 return out, metadata, err 649 } 650 return next.HandleInitialize(ctx, in) 651} 652 653type validateOpListGroupMembers struct { 654} 655 656func (*validateOpListGroupMembers) ID() string { 657 return "OperationInputValidation" 658} 659 660func (m *validateOpListGroupMembers) 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.(*ListGroupMembersInput) 664 if !ok { 665 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 666 } 667 if err := validateOpListGroupMembersInput(input); err != nil { 668 return out, metadata, err 669 } 670 return next.HandleInitialize(ctx, in) 671} 672 673type validateOpListGroups struct { 674} 675 676func (*validateOpListGroups) ID() string { 677 return "OperationInputValidation" 678} 679 680func (m *validateOpListGroups) 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.(*ListGroupsInput) 684 if !ok { 685 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 686 } 687 if err := validateOpListGroupsInput(input); err != nil { 688 return out, metadata, err 689 } 690 return next.HandleInitialize(ctx, in) 691} 692 693type validateOpListMailboxExportJobs struct { 694} 695 696func (*validateOpListMailboxExportJobs) ID() string { 697 return "OperationInputValidation" 698} 699 700func (m *validateOpListMailboxExportJobs) 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.(*ListMailboxExportJobsInput) 704 if !ok { 705 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 706 } 707 if err := validateOpListMailboxExportJobsInput(input); err != nil { 708 return out, metadata, err 709 } 710 return next.HandleInitialize(ctx, in) 711} 712 713type validateOpListMailboxPermissions struct { 714} 715 716func (*validateOpListMailboxPermissions) ID() string { 717 return "OperationInputValidation" 718} 719 720func (m *validateOpListMailboxPermissions) 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.(*ListMailboxPermissionsInput) 724 if !ok { 725 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 726 } 727 if err := validateOpListMailboxPermissionsInput(input); err != nil { 728 return out, metadata, err 729 } 730 return next.HandleInitialize(ctx, in) 731} 732 733type validateOpListMobileDeviceAccessRules struct { 734} 735 736func (*validateOpListMobileDeviceAccessRules) ID() string { 737 return "OperationInputValidation" 738} 739 740func (m *validateOpListMobileDeviceAccessRules) 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.(*ListMobileDeviceAccessRulesInput) 744 if !ok { 745 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 746 } 747 if err := validateOpListMobileDeviceAccessRulesInput(input); err != nil { 748 return out, metadata, err 749 } 750 return next.HandleInitialize(ctx, in) 751} 752 753type validateOpListResourceDelegates struct { 754} 755 756func (*validateOpListResourceDelegates) ID() string { 757 return "OperationInputValidation" 758} 759 760func (m *validateOpListResourceDelegates) 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.(*ListResourceDelegatesInput) 764 if !ok { 765 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 766 } 767 if err := validateOpListResourceDelegatesInput(input); err != nil { 768 return out, metadata, err 769 } 770 return next.HandleInitialize(ctx, in) 771} 772 773type validateOpListResources struct { 774} 775 776func (*validateOpListResources) ID() string { 777 return "OperationInputValidation" 778} 779 780func (m *validateOpListResources) 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.(*ListResourcesInput) 784 if !ok { 785 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 786 } 787 if err := validateOpListResourcesInput(input); err != nil { 788 return out, metadata, err 789 } 790 return next.HandleInitialize(ctx, in) 791} 792 793type validateOpListTagsForResource struct { 794} 795 796func (*validateOpListTagsForResource) ID() string { 797 return "OperationInputValidation" 798} 799 800func (m *validateOpListTagsForResource) 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.(*ListTagsForResourceInput) 804 if !ok { 805 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 806 } 807 if err := validateOpListTagsForResourceInput(input); err != nil { 808 return out, metadata, err 809 } 810 return next.HandleInitialize(ctx, in) 811} 812 813type validateOpListUsers struct { 814} 815 816func (*validateOpListUsers) ID() string { 817 return "OperationInputValidation" 818} 819 820func (m *validateOpListUsers) 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.(*ListUsersInput) 824 if !ok { 825 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 826 } 827 if err := validateOpListUsersInput(input); err != nil { 828 return out, metadata, err 829 } 830 return next.HandleInitialize(ctx, in) 831} 832 833type validateOpPutAccessControlRule struct { 834} 835 836func (*validateOpPutAccessControlRule) ID() string { 837 return "OperationInputValidation" 838} 839 840func (m *validateOpPutAccessControlRule) 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.(*PutAccessControlRuleInput) 844 if !ok { 845 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 846 } 847 if err := validateOpPutAccessControlRuleInput(input); err != nil { 848 return out, metadata, err 849 } 850 return next.HandleInitialize(ctx, in) 851} 852 853type validateOpPutMailboxPermissions struct { 854} 855 856func (*validateOpPutMailboxPermissions) ID() string { 857 return "OperationInputValidation" 858} 859 860func (m *validateOpPutMailboxPermissions) 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.(*PutMailboxPermissionsInput) 864 if !ok { 865 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 866 } 867 if err := validateOpPutMailboxPermissionsInput(input); err != nil { 868 return out, metadata, err 869 } 870 return next.HandleInitialize(ctx, in) 871} 872 873type validateOpPutRetentionPolicy struct { 874} 875 876func (*validateOpPutRetentionPolicy) ID() string { 877 return "OperationInputValidation" 878} 879 880func (m *validateOpPutRetentionPolicy) 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.(*PutRetentionPolicyInput) 884 if !ok { 885 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 886 } 887 if err := validateOpPutRetentionPolicyInput(input); err != nil { 888 return out, metadata, err 889 } 890 return next.HandleInitialize(ctx, in) 891} 892 893type validateOpRegisterToWorkMail struct { 894} 895 896func (*validateOpRegisterToWorkMail) ID() string { 897 return "OperationInputValidation" 898} 899 900func (m *validateOpRegisterToWorkMail) 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.(*RegisterToWorkMailInput) 904 if !ok { 905 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 906 } 907 if err := validateOpRegisterToWorkMailInput(input); err != nil { 908 return out, metadata, err 909 } 910 return next.HandleInitialize(ctx, in) 911} 912 913type validateOpResetPassword struct { 914} 915 916func (*validateOpResetPassword) ID() string { 917 return "OperationInputValidation" 918} 919 920func (m *validateOpResetPassword) 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.(*ResetPasswordInput) 924 if !ok { 925 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 926 } 927 if err := validateOpResetPasswordInput(input); err != nil { 928 return out, metadata, err 929 } 930 return next.HandleInitialize(ctx, in) 931} 932 933type validateOpStartMailboxExportJob struct { 934} 935 936func (*validateOpStartMailboxExportJob) ID() string { 937 return "OperationInputValidation" 938} 939 940func (m *validateOpStartMailboxExportJob) 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.(*StartMailboxExportJobInput) 944 if !ok { 945 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 946 } 947 if err := validateOpStartMailboxExportJobInput(input); err != nil { 948 return out, metadata, err 949 } 950 return next.HandleInitialize(ctx, in) 951} 952 953type validateOpTagResource struct { 954} 955 956func (*validateOpTagResource) ID() string { 957 return "OperationInputValidation" 958} 959 960func (m *validateOpTagResource) 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.(*TagResourceInput) 964 if !ok { 965 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 966 } 967 if err := validateOpTagResourceInput(input); err != nil { 968 return out, metadata, err 969 } 970 return next.HandleInitialize(ctx, in) 971} 972 973type validateOpUntagResource struct { 974} 975 976func (*validateOpUntagResource) ID() string { 977 return "OperationInputValidation" 978} 979 980func (m *validateOpUntagResource) 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.(*UntagResourceInput) 984 if !ok { 985 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 986 } 987 if err := validateOpUntagResourceInput(input); err != nil { 988 return out, metadata, err 989 } 990 return next.HandleInitialize(ctx, in) 991} 992 993type validateOpUpdateMailboxQuota struct { 994} 995 996func (*validateOpUpdateMailboxQuota) ID() string { 997 return "OperationInputValidation" 998} 999 1000func (m *validateOpUpdateMailboxQuota) 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.(*UpdateMailboxQuotaInput) 1004 if !ok { 1005 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1006 } 1007 if err := validateOpUpdateMailboxQuotaInput(input); err != nil { 1008 return out, metadata, err 1009 } 1010 return next.HandleInitialize(ctx, in) 1011} 1012 1013type validateOpUpdateMobileDeviceAccessRule struct { 1014} 1015 1016func (*validateOpUpdateMobileDeviceAccessRule) ID() string { 1017 return "OperationInputValidation" 1018} 1019 1020func (m *validateOpUpdateMobileDeviceAccessRule) 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.(*UpdateMobileDeviceAccessRuleInput) 1024 if !ok { 1025 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1026 } 1027 if err := validateOpUpdateMobileDeviceAccessRuleInput(input); err != nil { 1028 return out, metadata, err 1029 } 1030 return next.HandleInitialize(ctx, in) 1031} 1032 1033type validateOpUpdatePrimaryEmailAddress struct { 1034} 1035 1036func (*validateOpUpdatePrimaryEmailAddress) ID() string { 1037 return "OperationInputValidation" 1038} 1039 1040func (m *validateOpUpdatePrimaryEmailAddress) 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.(*UpdatePrimaryEmailAddressInput) 1044 if !ok { 1045 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1046 } 1047 if err := validateOpUpdatePrimaryEmailAddressInput(input); err != nil { 1048 return out, metadata, err 1049 } 1050 return next.HandleInitialize(ctx, in) 1051} 1052 1053type validateOpUpdateResource struct { 1054} 1055 1056func (*validateOpUpdateResource) ID() string { 1057 return "OperationInputValidation" 1058} 1059 1060func (m *validateOpUpdateResource) 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.(*UpdateResourceInput) 1064 if !ok { 1065 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1066 } 1067 if err := validateOpUpdateResourceInput(input); err != nil { 1068 return out, metadata, err 1069 } 1070 return next.HandleInitialize(ctx, in) 1071} 1072 1073func addOpAssociateDelegateToResourceValidationMiddleware(stack *middleware.Stack) error { 1074 return stack.Initialize.Add(&validateOpAssociateDelegateToResource{}, middleware.After) 1075} 1076 1077func addOpAssociateMemberToGroupValidationMiddleware(stack *middleware.Stack) error { 1078 return stack.Initialize.Add(&validateOpAssociateMemberToGroup{}, middleware.After) 1079} 1080 1081func addOpCancelMailboxExportJobValidationMiddleware(stack *middleware.Stack) error { 1082 return stack.Initialize.Add(&validateOpCancelMailboxExportJob{}, middleware.After) 1083} 1084 1085func addOpCreateAliasValidationMiddleware(stack *middleware.Stack) error { 1086 return stack.Initialize.Add(&validateOpCreateAlias{}, middleware.After) 1087} 1088 1089func addOpCreateGroupValidationMiddleware(stack *middleware.Stack) error { 1090 return stack.Initialize.Add(&validateOpCreateGroup{}, middleware.After) 1091} 1092 1093func addOpCreateMobileDeviceAccessRuleValidationMiddleware(stack *middleware.Stack) error { 1094 return stack.Initialize.Add(&validateOpCreateMobileDeviceAccessRule{}, middleware.After) 1095} 1096 1097func addOpCreateOrganizationValidationMiddleware(stack *middleware.Stack) error { 1098 return stack.Initialize.Add(&validateOpCreateOrganization{}, middleware.After) 1099} 1100 1101func addOpCreateResourceValidationMiddleware(stack *middleware.Stack) error { 1102 return stack.Initialize.Add(&validateOpCreateResource{}, middleware.After) 1103} 1104 1105func addOpCreateUserValidationMiddleware(stack *middleware.Stack) error { 1106 return stack.Initialize.Add(&validateOpCreateUser{}, middleware.After) 1107} 1108 1109func addOpDeleteAccessControlRuleValidationMiddleware(stack *middleware.Stack) error { 1110 return stack.Initialize.Add(&validateOpDeleteAccessControlRule{}, middleware.After) 1111} 1112 1113func addOpDeleteAliasValidationMiddleware(stack *middleware.Stack) error { 1114 return stack.Initialize.Add(&validateOpDeleteAlias{}, middleware.After) 1115} 1116 1117func addOpDeleteGroupValidationMiddleware(stack *middleware.Stack) error { 1118 return stack.Initialize.Add(&validateOpDeleteGroup{}, middleware.After) 1119} 1120 1121func addOpDeleteMailboxPermissionsValidationMiddleware(stack *middleware.Stack) error { 1122 return stack.Initialize.Add(&validateOpDeleteMailboxPermissions{}, middleware.After) 1123} 1124 1125func addOpDeleteMobileDeviceAccessRuleValidationMiddleware(stack *middleware.Stack) error { 1126 return stack.Initialize.Add(&validateOpDeleteMobileDeviceAccessRule{}, middleware.After) 1127} 1128 1129func addOpDeleteOrganizationValidationMiddleware(stack *middleware.Stack) error { 1130 return stack.Initialize.Add(&validateOpDeleteOrganization{}, middleware.After) 1131} 1132 1133func addOpDeleteResourceValidationMiddleware(stack *middleware.Stack) error { 1134 return stack.Initialize.Add(&validateOpDeleteResource{}, middleware.After) 1135} 1136 1137func addOpDeleteRetentionPolicyValidationMiddleware(stack *middleware.Stack) error { 1138 return stack.Initialize.Add(&validateOpDeleteRetentionPolicy{}, middleware.After) 1139} 1140 1141func addOpDeleteUserValidationMiddleware(stack *middleware.Stack) error { 1142 return stack.Initialize.Add(&validateOpDeleteUser{}, middleware.After) 1143} 1144 1145func addOpDeregisterFromWorkMailValidationMiddleware(stack *middleware.Stack) error { 1146 return stack.Initialize.Add(&validateOpDeregisterFromWorkMail{}, middleware.After) 1147} 1148 1149func addOpDescribeGroupValidationMiddleware(stack *middleware.Stack) error { 1150 return stack.Initialize.Add(&validateOpDescribeGroup{}, middleware.After) 1151} 1152 1153func addOpDescribeMailboxExportJobValidationMiddleware(stack *middleware.Stack) error { 1154 return stack.Initialize.Add(&validateOpDescribeMailboxExportJob{}, middleware.After) 1155} 1156 1157func addOpDescribeOrganizationValidationMiddleware(stack *middleware.Stack) error { 1158 return stack.Initialize.Add(&validateOpDescribeOrganization{}, middleware.After) 1159} 1160 1161func addOpDescribeResourceValidationMiddleware(stack *middleware.Stack) error { 1162 return stack.Initialize.Add(&validateOpDescribeResource{}, middleware.After) 1163} 1164 1165func addOpDescribeUserValidationMiddleware(stack *middleware.Stack) error { 1166 return stack.Initialize.Add(&validateOpDescribeUser{}, middleware.After) 1167} 1168 1169func addOpDisassociateDelegateFromResourceValidationMiddleware(stack *middleware.Stack) error { 1170 return stack.Initialize.Add(&validateOpDisassociateDelegateFromResource{}, middleware.After) 1171} 1172 1173func addOpDisassociateMemberFromGroupValidationMiddleware(stack *middleware.Stack) error { 1174 return stack.Initialize.Add(&validateOpDisassociateMemberFromGroup{}, middleware.After) 1175} 1176 1177func addOpGetAccessControlEffectValidationMiddleware(stack *middleware.Stack) error { 1178 return stack.Initialize.Add(&validateOpGetAccessControlEffect{}, middleware.After) 1179} 1180 1181func addOpGetDefaultRetentionPolicyValidationMiddleware(stack *middleware.Stack) error { 1182 return stack.Initialize.Add(&validateOpGetDefaultRetentionPolicy{}, middleware.After) 1183} 1184 1185func addOpGetMailboxDetailsValidationMiddleware(stack *middleware.Stack) error { 1186 return stack.Initialize.Add(&validateOpGetMailboxDetails{}, middleware.After) 1187} 1188 1189func addOpGetMobileDeviceAccessEffectValidationMiddleware(stack *middleware.Stack) error { 1190 return stack.Initialize.Add(&validateOpGetMobileDeviceAccessEffect{}, middleware.After) 1191} 1192 1193func addOpListAccessControlRulesValidationMiddleware(stack *middleware.Stack) error { 1194 return stack.Initialize.Add(&validateOpListAccessControlRules{}, middleware.After) 1195} 1196 1197func addOpListAliasesValidationMiddleware(stack *middleware.Stack) error { 1198 return stack.Initialize.Add(&validateOpListAliases{}, middleware.After) 1199} 1200 1201func addOpListGroupMembersValidationMiddleware(stack *middleware.Stack) error { 1202 return stack.Initialize.Add(&validateOpListGroupMembers{}, middleware.After) 1203} 1204 1205func addOpListGroupsValidationMiddleware(stack *middleware.Stack) error { 1206 return stack.Initialize.Add(&validateOpListGroups{}, middleware.After) 1207} 1208 1209func addOpListMailboxExportJobsValidationMiddleware(stack *middleware.Stack) error { 1210 return stack.Initialize.Add(&validateOpListMailboxExportJobs{}, middleware.After) 1211} 1212 1213func addOpListMailboxPermissionsValidationMiddleware(stack *middleware.Stack) error { 1214 return stack.Initialize.Add(&validateOpListMailboxPermissions{}, middleware.After) 1215} 1216 1217func addOpListMobileDeviceAccessRulesValidationMiddleware(stack *middleware.Stack) error { 1218 return stack.Initialize.Add(&validateOpListMobileDeviceAccessRules{}, middleware.After) 1219} 1220 1221func addOpListResourceDelegatesValidationMiddleware(stack *middleware.Stack) error { 1222 return stack.Initialize.Add(&validateOpListResourceDelegates{}, middleware.After) 1223} 1224 1225func addOpListResourcesValidationMiddleware(stack *middleware.Stack) error { 1226 return stack.Initialize.Add(&validateOpListResources{}, middleware.After) 1227} 1228 1229func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { 1230 return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) 1231} 1232 1233func addOpListUsersValidationMiddleware(stack *middleware.Stack) error { 1234 return stack.Initialize.Add(&validateOpListUsers{}, middleware.After) 1235} 1236 1237func addOpPutAccessControlRuleValidationMiddleware(stack *middleware.Stack) error { 1238 return stack.Initialize.Add(&validateOpPutAccessControlRule{}, middleware.After) 1239} 1240 1241func addOpPutMailboxPermissionsValidationMiddleware(stack *middleware.Stack) error { 1242 return stack.Initialize.Add(&validateOpPutMailboxPermissions{}, middleware.After) 1243} 1244 1245func addOpPutRetentionPolicyValidationMiddleware(stack *middleware.Stack) error { 1246 return stack.Initialize.Add(&validateOpPutRetentionPolicy{}, middleware.After) 1247} 1248 1249func addOpRegisterToWorkMailValidationMiddleware(stack *middleware.Stack) error { 1250 return stack.Initialize.Add(&validateOpRegisterToWorkMail{}, middleware.After) 1251} 1252 1253func addOpResetPasswordValidationMiddleware(stack *middleware.Stack) error { 1254 return stack.Initialize.Add(&validateOpResetPassword{}, middleware.After) 1255} 1256 1257func addOpStartMailboxExportJobValidationMiddleware(stack *middleware.Stack) error { 1258 return stack.Initialize.Add(&validateOpStartMailboxExportJob{}, middleware.After) 1259} 1260 1261func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { 1262 return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) 1263} 1264 1265func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { 1266 return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) 1267} 1268 1269func addOpUpdateMailboxQuotaValidationMiddleware(stack *middleware.Stack) error { 1270 return stack.Initialize.Add(&validateOpUpdateMailboxQuota{}, middleware.After) 1271} 1272 1273func addOpUpdateMobileDeviceAccessRuleValidationMiddleware(stack *middleware.Stack) error { 1274 return stack.Initialize.Add(&validateOpUpdateMobileDeviceAccessRule{}, middleware.After) 1275} 1276 1277func addOpUpdatePrimaryEmailAddressValidationMiddleware(stack *middleware.Stack) error { 1278 return stack.Initialize.Add(&validateOpUpdatePrimaryEmailAddress{}, middleware.After) 1279} 1280 1281func addOpUpdateResourceValidationMiddleware(stack *middleware.Stack) error { 1282 return stack.Initialize.Add(&validateOpUpdateResource{}, middleware.After) 1283} 1284 1285func validateFolderConfiguration(v *types.FolderConfiguration) error { 1286 if v == nil { 1287 return nil 1288 } 1289 invalidParams := smithy.InvalidParamsError{Context: "FolderConfiguration"} 1290 if len(v.Name) == 0 { 1291 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1292 } 1293 if len(v.Action) == 0 { 1294 invalidParams.Add(smithy.NewErrParamRequired("Action")) 1295 } 1296 if invalidParams.Len() > 0 { 1297 return invalidParams 1298 } else { 1299 return nil 1300 } 1301} 1302 1303func validateFolderConfigurations(v []types.FolderConfiguration) error { 1304 if v == nil { 1305 return nil 1306 } 1307 invalidParams := smithy.InvalidParamsError{Context: "FolderConfigurations"} 1308 for i := range v { 1309 if err := validateFolderConfiguration(&v[i]); err != nil { 1310 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 1311 } 1312 } 1313 if invalidParams.Len() > 0 { 1314 return invalidParams 1315 } else { 1316 return nil 1317 } 1318} 1319 1320func validateTag(v *types.Tag) error { 1321 if v == nil { 1322 return nil 1323 } 1324 invalidParams := smithy.InvalidParamsError{Context: "Tag"} 1325 if v.Key == nil { 1326 invalidParams.Add(smithy.NewErrParamRequired("Key")) 1327 } 1328 if v.Value == nil { 1329 invalidParams.Add(smithy.NewErrParamRequired("Value")) 1330 } 1331 if invalidParams.Len() > 0 { 1332 return invalidParams 1333 } else { 1334 return nil 1335 } 1336} 1337 1338func validateTagList(v []types.Tag) error { 1339 if v == nil { 1340 return nil 1341 } 1342 invalidParams := smithy.InvalidParamsError{Context: "TagList"} 1343 for i := range v { 1344 if err := validateTag(&v[i]); err != nil { 1345 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 1346 } 1347 } 1348 if invalidParams.Len() > 0 { 1349 return invalidParams 1350 } else { 1351 return nil 1352 } 1353} 1354 1355func validateOpAssociateDelegateToResourceInput(v *AssociateDelegateToResourceInput) error { 1356 if v == nil { 1357 return nil 1358 } 1359 invalidParams := smithy.InvalidParamsError{Context: "AssociateDelegateToResourceInput"} 1360 if v.OrganizationId == nil { 1361 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1362 } 1363 if v.ResourceId == nil { 1364 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 1365 } 1366 if v.EntityId == nil { 1367 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1368 } 1369 if invalidParams.Len() > 0 { 1370 return invalidParams 1371 } else { 1372 return nil 1373 } 1374} 1375 1376func validateOpAssociateMemberToGroupInput(v *AssociateMemberToGroupInput) error { 1377 if v == nil { 1378 return nil 1379 } 1380 invalidParams := smithy.InvalidParamsError{Context: "AssociateMemberToGroupInput"} 1381 if v.OrganizationId == nil { 1382 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1383 } 1384 if v.GroupId == nil { 1385 invalidParams.Add(smithy.NewErrParamRequired("GroupId")) 1386 } 1387 if v.MemberId == nil { 1388 invalidParams.Add(smithy.NewErrParamRequired("MemberId")) 1389 } 1390 if invalidParams.Len() > 0 { 1391 return invalidParams 1392 } else { 1393 return nil 1394 } 1395} 1396 1397func validateOpCancelMailboxExportJobInput(v *CancelMailboxExportJobInput) error { 1398 if v == nil { 1399 return nil 1400 } 1401 invalidParams := smithy.InvalidParamsError{Context: "CancelMailboxExportJobInput"} 1402 if v.ClientToken == nil { 1403 invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) 1404 } 1405 if v.JobId == nil { 1406 invalidParams.Add(smithy.NewErrParamRequired("JobId")) 1407 } 1408 if v.OrganizationId == nil { 1409 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1410 } 1411 if invalidParams.Len() > 0 { 1412 return invalidParams 1413 } else { 1414 return nil 1415 } 1416} 1417 1418func validateOpCreateAliasInput(v *CreateAliasInput) error { 1419 if v == nil { 1420 return nil 1421 } 1422 invalidParams := smithy.InvalidParamsError{Context: "CreateAliasInput"} 1423 if v.OrganizationId == nil { 1424 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1425 } 1426 if v.EntityId == nil { 1427 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1428 } 1429 if v.Alias == nil { 1430 invalidParams.Add(smithy.NewErrParamRequired("Alias")) 1431 } 1432 if invalidParams.Len() > 0 { 1433 return invalidParams 1434 } else { 1435 return nil 1436 } 1437} 1438 1439func validateOpCreateGroupInput(v *CreateGroupInput) error { 1440 if v == nil { 1441 return nil 1442 } 1443 invalidParams := smithy.InvalidParamsError{Context: "CreateGroupInput"} 1444 if v.OrganizationId == nil { 1445 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1446 } 1447 if v.Name == nil { 1448 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1449 } 1450 if invalidParams.Len() > 0 { 1451 return invalidParams 1452 } else { 1453 return nil 1454 } 1455} 1456 1457func validateOpCreateMobileDeviceAccessRuleInput(v *CreateMobileDeviceAccessRuleInput) error { 1458 if v == nil { 1459 return nil 1460 } 1461 invalidParams := smithy.InvalidParamsError{Context: "CreateMobileDeviceAccessRuleInput"} 1462 if v.OrganizationId == nil { 1463 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1464 } 1465 if v.Name == nil { 1466 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1467 } 1468 if len(v.Effect) == 0 { 1469 invalidParams.Add(smithy.NewErrParamRequired("Effect")) 1470 } 1471 if invalidParams.Len() > 0 { 1472 return invalidParams 1473 } else { 1474 return nil 1475 } 1476} 1477 1478func validateOpCreateOrganizationInput(v *CreateOrganizationInput) error { 1479 if v == nil { 1480 return nil 1481 } 1482 invalidParams := smithy.InvalidParamsError{Context: "CreateOrganizationInput"} 1483 if v.Alias == nil { 1484 invalidParams.Add(smithy.NewErrParamRequired("Alias")) 1485 } 1486 if invalidParams.Len() > 0 { 1487 return invalidParams 1488 } else { 1489 return nil 1490 } 1491} 1492 1493func validateOpCreateResourceInput(v *CreateResourceInput) error { 1494 if v == nil { 1495 return nil 1496 } 1497 invalidParams := smithy.InvalidParamsError{Context: "CreateResourceInput"} 1498 if v.OrganizationId == nil { 1499 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1500 } 1501 if v.Name == nil { 1502 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1503 } 1504 if len(v.Type) == 0 { 1505 invalidParams.Add(smithy.NewErrParamRequired("Type")) 1506 } 1507 if invalidParams.Len() > 0 { 1508 return invalidParams 1509 } else { 1510 return nil 1511 } 1512} 1513 1514func validateOpCreateUserInput(v *CreateUserInput) error { 1515 if v == nil { 1516 return nil 1517 } 1518 invalidParams := smithy.InvalidParamsError{Context: "CreateUserInput"} 1519 if v.OrganizationId == nil { 1520 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1521 } 1522 if v.Name == nil { 1523 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1524 } 1525 if v.DisplayName == nil { 1526 invalidParams.Add(smithy.NewErrParamRequired("DisplayName")) 1527 } 1528 if v.Password == nil { 1529 invalidParams.Add(smithy.NewErrParamRequired("Password")) 1530 } 1531 if invalidParams.Len() > 0 { 1532 return invalidParams 1533 } else { 1534 return nil 1535 } 1536} 1537 1538func validateOpDeleteAccessControlRuleInput(v *DeleteAccessControlRuleInput) error { 1539 if v == nil { 1540 return nil 1541 } 1542 invalidParams := smithy.InvalidParamsError{Context: "DeleteAccessControlRuleInput"} 1543 if v.OrganizationId == nil { 1544 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1545 } 1546 if v.Name == nil { 1547 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1548 } 1549 if invalidParams.Len() > 0 { 1550 return invalidParams 1551 } else { 1552 return nil 1553 } 1554} 1555 1556func validateOpDeleteAliasInput(v *DeleteAliasInput) error { 1557 if v == nil { 1558 return nil 1559 } 1560 invalidParams := smithy.InvalidParamsError{Context: "DeleteAliasInput"} 1561 if v.OrganizationId == nil { 1562 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1563 } 1564 if v.EntityId == nil { 1565 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1566 } 1567 if v.Alias == nil { 1568 invalidParams.Add(smithy.NewErrParamRequired("Alias")) 1569 } 1570 if invalidParams.Len() > 0 { 1571 return invalidParams 1572 } else { 1573 return nil 1574 } 1575} 1576 1577func validateOpDeleteGroupInput(v *DeleteGroupInput) error { 1578 if v == nil { 1579 return nil 1580 } 1581 invalidParams := smithy.InvalidParamsError{Context: "DeleteGroupInput"} 1582 if v.OrganizationId == nil { 1583 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1584 } 1585 if v.GroupId == nil { 1586 invalidParams.Add(smithy.NewErrParamRequired("GroupId")) 1587 } 1588 if invalidParams.Len() > 0 { 1589 return invalidParams 1590 } else { 1591 return nil 1592 } 1593} 1594 1595func validateOpDeleteMailboxPermissionsInput(v *DeleteMailboxPermissionsInput) error { 1596 if v == nil { 1597 return nil 1598 } 1599 invalidParams := smithy.InvalidParamsError{Context: "DeleteMailboxPermissionsInput"} 1600 if v.OrganizationId == nil { 1601 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1602 } 1603 if v.EntityId == nil { 1604 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1605 } 1606 if v.GranteeId == nil { 1607 invalidParams.Add(smithy.NewErrParamRequired("GranteeId")) 1608 } 1609 if invalidParams.Len() > 0 { 1610 return invalidParams 1611 } else { 1612 return nil 1613 } 1614} 1615 1616func validateOpDeleteMobileDeviceAccessRuleInput(v *DeleteMobileDeviceAccessRuleInput) error { 1617 if v == nil { 1618 return nil 1619 } 1620 invalidParams := smithy.InvalidParamsError{Context: "DeleteMobileDeviceAccessRuleInput"} 1621 if v.OrganizationId == nil { 1622 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1623 } 1624 if v.MobileDeviceAccessRuleId == nil { 1625 invalidParams.Add(smithy.NewErrParamRequired("MobileDeviceAccessRuleId")) 1626 } 1627 if invalidParams.Len() > 0 { 1628 return invalidParams 1629 } else { 1630 return nil 1631 } 1632} 1633 1634func validateOpDeleteOrganizationInput(v *DeleteOrganizationInput) error { 1635 if v == nil { 1636 return nil 1637 } 1638 invalidParams := smithy.InvalidParamsError{Context: "DeleteOrganizationInput"} 1639 if v.OrganizationId == nil { 1640 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1641 } 1642 if invalidParams.Len() > 0 { 1643 return invalidParams 1644 } else { 1645 return nil 1646 } 1647} 1648 1649func validateOpDeleteResourceInput(v *DeleteResourceInput) error { 1650 if v == nil { 1651 return nil 1652 } 1653 invalidParams := smithy.InvalidParamsError{Context: "DeleteResourceInput"} 1654 if v.OrganizationId == nil { 1655 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1656 } 1657 if v.ResourceId == nil { 1658 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 1659 } 1660 if invalidParams.Len() > 0 { 1661 return invalidParams 1662 } else { 1663 return nil 1664 } 1665} 1666 1667func validateOpDeleteRetentionPolicyInput(v *DeleteRetentionPolicyInput) error { 1668 if v == nil { 1669 return nil 1670 } 1671 invalidParams := smithy.InvalidParamsError{Context: "DeleteRetentionPolicyInput"} 1672 if v.OrganizationId == nil { 1673 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1674 } 1675 if v.Id == nil { 1676 invalidParams.Add(smithy.NewErrParamRequired("Id")) 1677 } 1678 if invalidParams.Len() > 0 { 1679 return invalidParams 1680 } else { 1681 return nil 1682 } 1683} 1684 1685func validateOpDeleteUserInput(v *DeleteUserInput) error { 1686 if v == nil { 1687 return nil 1688 } 1689 invalidParams := smithy.InvalidParamsError{Context: "DeleteUserInput"} 1690 if v.OrganizationId == nil { 1691 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1692 } 1693 if v.UserId == nil { 1694 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 1695 } 1696 if invalidParams.Len() > 0 { 1697 return invalidParams 1698 } else { 1699 return nil 1700 } 1701} 1702 1703func validateOpDeregisterFromWorkMailInput(v *DeregisterFromWorkMailInput) error { 1704 if v == nil { 1705 return nil 1706 } 1707 invalidParams := smithy.InvalidParamsError{Context: "DeregisterFromWorkMailInput"} 1708 if v.OrganizationId == nil { 1709 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1710 } 1711 if v.EntityId == nil { 1712 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1713 } 1714 if invalidParams.Len() > 0 { 1715 return invalidParams 1716 } else { 1717 return nil 1718 } 1719} 1720 1721func validateOpDescribeGroupInput(v *DescribeGroupInput) error { 1722 if v == nil { 1723 return nil 1724 } 1725 invalidParams := smithy.InvalidParamsError{Context: "DescribeGroupInput"} 1726 if v.OrganizationId == nil { 1727 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1728 } 1729 if v.GroupId == nil { 1730 invalidParams.Add(smithy.NewErrParamRequired("GroupId")) 1731 } 1732 if invalidParams.Len() > 0 { 1733 return invalidParams 1734 } else { 1735 return nil 1736 } 1737} 1738 1739func validateOpDescribeMailboxExportJobInput(v *DescribeMailboxExportJobInput) error { 1740 if v == nil { 1741 return nil 1742 } 1743 invalidParams := smithy.InvalidParamsError{Context: "DescribeMailboxExportJobInput"} 1744 if v.JobId == nil { 1745 invalidParams.Add(smithy.NewErrParamRequired("JobId")) 1746 } 1747 if v.OrganizationId == nil { 1748 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1749 } 1750 if invalidParams.Len() > 0 { 1751 return invalidParams 1752 } else { 1753 return nil 1754 } 1755} 1756 1757func validateOpDescribeOrganizationInput(v *DescribeOrganizationInput) error { 1758 if v == nil { 1759 return nil 1760 } 1761 invalidParams := smithy.InvalidParamsError{Context: "DescribeOrganizationInput"} 1762 if v.OrganizationId == nil { 1763 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1764 } 1765 if invalidParams.Len() > 0 { 1766 return invalidParams 1767 } else { 1768 return nil 1769 } 1770} 1771 1772func validateOpDescribeResourceInput(v *DescribeResourceInput) error { 1773 if v == nil { 1774 return nil 1775 } 1776 invalidParams := smithy.InvalidParamsError{Context: "DescribeResourceInput"} 1777 if v.OrganizationId == nil { 1778 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1779 } 1780 if v.ResourceId == nil { 1781 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 1782 } 1783 if invalidParams.Len() > 0 { 1784 return invalidParams 1785 } else { 1786 return nil 1787 } 1788} 1789 1790func validateOpDescribeUserInput(v *DescribeUserInput) error { 1791 if v == nil { 1792 return nil 1793 } 1794 invalidParams := smithy.InvalidParamsError{Context: "DescribeUserInput"} 1795 if v.OrganizationId == nil { 1796 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1797 } 1798 if v.UserId == nil { 1799 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 1800 } 1801 if invalidParams.Len() > 0 { 1802 return invalidParams 1803 } else { 1804 return nil 1805 } 1806} 1807 1808func validateOpDisassociateDelegateFromResourceInput(v *DisassociateDelegateFromResourceInput) error { 1809 if v == nil { 1810 return nil 1811 } 1812 invalidParams := smithy.InvalidParamsError{Context: "DisassociateDelegateFromResourceInput"} 1813 if v.OrganizationId == nil { 1814 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1815 } 1816 if v.ResourceId == nil { 1817 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 1818 } 1819 if v.EntityId == nil { 1820 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1821 } 1822 if invalidParams.Len() > 0 { 1823 return invalidParams 1824 } else { 1825 return nil 1826 } 1827} 1828 1829func validateOpDisassociateMemberFromGroupInput(v *DisassociateMemberFromGroupInput) error { 1830 if v == nil { 1831 return nil 1832 } 1833 invalidParams := smithy.InvalidParamsError{Context: "DisassociateMemberFromGroupInput"} 1834 if v.OrganizationId == nil { 1835 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1836 } 1837 if v.GroupId == nil { 1838 invalidParams.Add(smithy.NewErrParamRequired("GroupId")) 1839 } 1840 if v.MemberId == nil { 1841 invalidParams.Add(smithy.NewErrParamRequired("MemberId")) 1842 } 1843 if invalidParams.Len() > 0 { 1844 return invalidParams 1845 } else { 1846 return nil 1847 } 1848} 1849 1850func validateOpGetAccessControlEffectInput(v *GetAccessControlEffectInput) error { 1851 if v == nil { 1852 return nil 1853 } 1854 invalidParams := smithy.InvalidParamsError{Context: "GetAccessControlEffectInput"} 1855 if v.OrganizationId == nil { 1856 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1857 } 1858 if v.IpAddress == nil { 1859 invalidParams.Add(smithy.NewErrParamRequired("IpAddress")) 1860 } 1861 if v.Action == nil { 1862 invalidParams.Add(smithy.NewErrParamRequired("Action")) 1863 } 1864 if v.UserId == nil { 1865 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 1866 } 1867 if invalidParams.Len() > 0 { 1868 return invalidParams 1869 } else { 1870 return nil 1871 } 1872} 1873 1874func validateOpGetDefaultRetentionPolicyInput(v *GetDefaultRetentionPolicyInput) error { 1875 if v == nil { 1876 return nil 1877 } 1878 invalidParams := smithy.InvalidParamsError{Context: "GetDefaultRetentionPolicyInput"} 1879 if v.OrganizationId == nil { 1880 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1881 } 1882 if invalidParams.Len() > 0 { 1883 return invalidParams 1884 } else { 1885 return nil 1886 } 1887} 1888 1889func validateOpGetMailboxDetailsInput(v *GetMailboxDetailsInput) error { 1890 if v == nil { 1891 return nil 1892 } 1893 invalidParams := smithy.InvalidParamsError{Context: "GetMailboxDetailsInput"} 1894 if v.OrganizationId == nil { 1895 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1896 } 1897 if v.UserId == nil { 1898 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 1899 } 1900 if invalidParams.Len() > 0 { 1901 return invalidParams 1902 } else { 1903 return nil 1904 } 1905} 1906 1907func validateOpGetMobileDeviceAccessEffectInput(v *GetMobileDeviceAccessEffectInput) error { 1908 if v == nil { 1909 return nil 1910 } 1911 invalidParams := smithy.InvalidParamsError{Context: "GetMobileDeviceAccessEffectInput"} 1912 if v.OrganizationId == nil { 1913 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1914 } 1915 if invalidParams.Len() > 0 { 1916 return invalidParams 1917 } else { 1918 return nil 1919 } 1920} 1921 1922func validateOpListAccessControlRulesInput(v *ListAccessControlRulesInput) error { 1923 if v == nil { 1924 return nil 1925 } 1926 invalidParams := smithy.InvalidParamsError{Context: "ListAccessControlRulesInput"} 1927 if v.OrganizationId == nil { 1928 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1929 } 1930 if invalidParams.Len() > 0 { 1931 return invalidParams 1932 } else { 1933 return nil 1934 } 1935} 1936 1937func validateOpListAliasesInput(v *ListAliasesInput) error { 1938 if v == nil { 1939 return nil 1940 } 1941 invalidParams := smithy.InvalidParamsError{Context: "ListAliasesInput"} 1942 if v.OrganizationId == nil { 1943 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1944 } 1945 if v.EntityId == nil { 1946 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 1947 } 1948 if invalidParams.Len() > 0 { 1949 return invalidParams 1950 } else { 1951 return nil 1952 } 1953} 1954 1955func validateOpListGroupMembersInput(v *ListGroupMembersInput) error { 1956 if v == nil { 1957 return nil 1958 } 1959 invalidParams := smithy.InvalidParamsError{Context: "ListGroupMembersInput"} 1960 if v.OrganizationId == nil { 1961 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1962 } 1963 if v.GroupId == nil { 1964 invalidParams.Add(smithy.NewErrParamRequired("GroupId")) 1965 } 1966 if invalidParams.Len() > 0 { 1967 return invalidParams 1968 } else { 1969 return nil 1970 } 1971} 1972 1973func validateOpListGroupsInput(v *ListGroupsInput) error { 1974 if v == nil { 1975 return nil 1976 } 1977 invalidParams := smithy.InvalidParamsError{Context: "ListGroupsInput"} 1978 if v.OrganizationId == nil { 1979 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1980 } 1981 if invalidParams.Len() > 0 { 1982 return invalidParams 1983 } else { 1984 return nil 1985 } 1986} 1987 1988func validateOpListMailboxExportJobsInput(v *ListMailboxExportJobsInput) error { 1989 if v == nil { 1990 return nil 1991 } 1992 invalidParams := smithy.InvalidParamsError{Context: "ListMailboxExportJobsInput"} 1993 if v.OrganizationId == nil { 1994 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 1995 } 1996 if invalidParams.Len() > 0 { 1997 return invalidParams 1998 } else { 1999 return nil 2000 } 2001} 2002 2003func validateOpListMailboxPermissionsInput(v *ListMailboxPermissionsInput) error { 2004 if v == nil { 2005 return nil 2006 } 2007 invalidParams := smithy.InvalidParamsError{Context: "ListMailboxPermissionsInput"} 2008 if v.OrganizationId == nil { 2009 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2010 } 2011 if v.EntityId == nil { 2012 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 2013 } 2014 if invalidParams.Len() > 0 { 2015 return invalidParams 2016 } else { 2017 return nil 2018 } 2019} 2020 2021func validateOpListMobileDeviceAccessRulesInput(v *ListMobileDeviceAccessRulesInput) error { 2022 if v == nil { 2023 return nil 2024 } 2025 invalidParams := smithy.InvalidParamsError{Context: "ListMobileDeviceAccessRulesInput"} 2026 if v.OrganizationId == nil { 2027 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2028 } 2029 if invalidParams.Len() > 0 { 2030 return invalidParams 2031 } else { 2032 return nil 2033 } 2034} 2035 2036func validateOpListResourceDelegatesInput(v *ListResourceDelegatesInput) error { 2037 if v == nil { 2038 return nil 2039 } 2040 invalidParams := smithy.InvalidParamsError{Context: "ListResourceDelegatesInput"} 2041 if v.OrganizationId == nil { 2042 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2043 } 2044 if v.ResourceId == nil { 2045 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 2046 } 2047 if invalidParams.Len() > 0 { 2048 return invalidParams 2049 } else { 2050 return nil 2051 } 2052} 2053 2054func validateOpListResourcesInput(v *ListResourcesInput) error { 2055 if v == nil { 2056 return nil 2057 } 2058 invalidParams := smithy.InvalidParamsError{Context: "ListResourcesInput"} 2059 if v.OrganizationId == nil { 2060 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2061 } 2062 if invalidParams.Len() > 0 { 2063 return invalidParams 2064 } else { 2065 return nil 2066 } 2067} 2068 2069func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { 2070 if v == nil { 2071 return nil 2072 } 2073 invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} 2074 if v.ResourceARN == nil { 2075 invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) 2076 } 2077 if invalidParams.Len() > 0 { 2078 return invalidParams 2079 } else { 2080 return nil 2081 } 2082} 2083 2084func validateOpListUsersInput(v *ListUsersInput) error { 2085 if v == nil { 2086 return nil 2087 } 2088 invalidParams := smithy.InvalidParamsError{Context: "ListUsersInput"} 2089 if v.OrganizationId == nil { 2090 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2091 } 2092 if invalidParams.Len() > 0 { 2093 return invalidParams 2094 } else { 2095 return nil 2096 } 2097} 2098 2099func validateOpPutAccessControlRuleInput(v *PutAccessControlRuleInput) error { 2100 if v == nil { 2101 return nil 2102 } 2103 invalidParams := smithy.InvalidParamsError{Context: "PutAccessControlRuleInput"} 2104 if v.Name == nil { 2105 invalidParams.Add(smithy.NewErrParamRequired("Name")) 2106 } 2107 if len(v.Effect) == 0 { 2108 invalidParams.Add(smithy.NewErrParamRequired("Effect")) 2109 } 2110 if v.Description == nil { 2111 invalidParams.Add(smithy.NewErrParamRequired("Description")) 2112 } 2113 if v.OrganizationId == nil { 2114 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2115 } 2116 if invalidParams.Len() > 0 { 2117 return invalidParams 2118 } else { 2119 return nil 2120 } 2121} 2122 2123func validateOpPutMailboxPermissionsInput(v *PutMailboxPermissionsInput) error { 2124 if v == nil { 2125 return nil 2126 } 2127 invalidParams := smithy.InvalidParamsError{Context: "PutMailboxPermissionsInput"} 2128 if v.OrganizationId == nil { 2129 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2130 } 2131 if v.EntityId == nil { 2132 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 2133 } 2134 if v.GranteeId == nil { 2135 invalidParams.Add(smithy.NewErrParamRequired("GranteeId")) 2136 } 2137 if v.PermissionValues == nil { 2138 invalidParams.Add(smithy.NewErrParamRequired("PermissionValues")) 2139 } 2140 if invalidParams.Len() > 0 { 2141 return invalidParams 2142 } else { 2143 return nil 2144 } 2145} 2146 2147func validateOpPutRetentionPolicyInput(v *PutRetentionPolicyInput) error { 2148 if v == nil { 2149 return nil 2150 } 2151 invalidParams := smithy.InvalidParamsError{Context: "PutRetentionPolicyInput"} 2152 if v.OrganizationId == nil { 2153 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2154 } 2155 if v.Name == nil { 2156 invalidParams.Add(smithy.NewErrParamRequired("Name")) 2157 } 2158 if v.FolderConfigurations == nil { 2159 invalidParams.Add(smithy.NewErrParamRequired("FolderConfigurations")) 2160 } else if v.FolderConfigurations != nil { 2161 if err := validateFolderConfigurations(v.FolderConfigurations); err != nil { 2162 invalidParams.AddNested("FolderConfigurations", err.(smithy.InvalidParamsError)) 2163 } 2164 } 2165 if invalidParams.Len() > 0 { 2166 return invalidParams 2167 } else { 2168 return nil 2169 } 2170} 2171 2172func validateOpRegisterToWorkMailInput(v *RegisterToWorkMailInput) error { 2173 if v == nil { 2174 return nil 2175 } 2176 invalidParams := smithy.InvalidParamsError{Context: "RegisterToWorkMailInput"} 2177 if v.OrganizationId == nil { 2178 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2179 } 2180 if v.EntityId == nil { 2181 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 2182 } 2183 if v.Email == nil { 2184 invalidParams.Add(smithy.NewErrParamRequired("Email")) 2185 } 2186 if invalidParams.Len() > 0 { 2187 return invalidParams 2188 } else { 2189 return nil 2190 } 2191} 2192 2193func validateOpResetPasswordInput(v *ResetPasswordInput) error { 2194 if v == nil { 2195 return nil 2196 } 2197 invalidParams := smithy.InvalidParamsError{Context: "ResetPasswordInput"} 2198 if v.OrganizationId == nil { 2199 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2200 } 2201 if v.UserId == nil { 2202 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 2203 } 2204 if v.Password == nil { 2205 invalidParams.Add(smithy.NewErrParamRequired("Password")) 2206 } 2207 if invalidParams.Len() > 0 { 2208 return invalidParams 2209 } else { 2210 return nil 2211 } 2212} 2213 2214func validateOpStartMailboxExportJobInput(v *StartMailboxExportJobInput) error { 2215 if v == nil { 2216 return nil 2217 } 2218 invalidParams := smithy.InvalidParamsError{Context: "StartMailboxExportJobInput"} 2219 if v.ClientToken == nil { 2220 invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) 2221 } 2222 if v.OrganizationId == nil { 2223 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2224 } 2225 if v.EntityId == nil { 2226 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 2227 } 2228 if v.RoleArn == nil { 2229 invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) 2230 } 2231 if v.KmsKeyArn == nil { 2232 invalidParams.Add(smithy.NewErrParamRequired("KmsKeyArn")) 2233 } 2234 if v.S3BucketName == nil { 2235 invalidParams.Add(smithy.NewErrParamRequired("S3BucketName")) 2236 } 2237 if v.S3Prefix == nil { 2238 invalidParams.Add(smithy.NewErrParamRequired("S3Prefix")) 2239 } 2240 if invalidParams.Len() > 0 { 2241 return invalidParams 2242 } else { 2243 return nil 2244 } 2245} 2246 2247func validateOpTagResourceInput(v *TagResourceInput) error { 2248 if v == nil { 2249 return nil 2250 } 2251 invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} 2252 if v.ResourceARN == nil { 2253 invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) 2254 } 2255 if v.Tags == nil { 2256 invalidParams.Add(smithy.NewErrParamRequired("Tags")) 2257 } else if v.Tags != nil { 2258 if err := validateTagList(v.Tags); err != nil { 2259 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2260 } 2261 } 2262 if invalidParams.Len() > 0 { 2263 return invalidParams 2264 } else { 2265 return nil 2266 } 2267} 2268 2269func validateOpUntagResourceInput(v *UntagResourceInput) error { 2270 if v == nil { 2271 return nil 2272 } 2273 invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} 2274 if v.ResourceARN == nil { 2275 invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) 2276 } 2277 if v.TagKeys == nil { 2278 invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) 2279 } 2280 if invalidParams.Len() > 0 { 2281 return invalidParams 2282 } else { 2283 return nil 2284 } 2285} 2286 2287func validateOpUpdateMailboxQuotaInput(v *UpdateMailboxQuotaInput) error { 2288 if v == nil { 2289 return nil 2290 } 2291 invalidParams := smithy.InvalidParamsError{Context: "UpdateMailboxQuotaInput"} 2292 if v.OrganizationId == nil { 2293 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2294 } 2295 if v.UserId == nil { 2296 invalidParams.Add(smithy.NewErrParamRequired("UserId")) 2297 } 2298 if v.MailboxQuota == nil { 2299 invalidParams.Add(smithy.NewErrParamRequired("MailboxQuota")) 2300 } 2301 if invalidParams.Len() > 0 { 2302 return invalidParams 2303 } else { 2304 return nil 2305 } 2306} 2307 2308func validateOpUpdateMobileDeviceAccessRuleInput(v *UpdateMobileDeviceAccessRuleInput) error { 2309 if v == nil { 2310 return nil 2311 } 2312 invalidParams := smithy.InvalidParamsError{Context: "UpdateMobileDeviceAccessRuleInput"} 2313 if v.OrganizationId == nil { 2314 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2315 } 2316 if v.MobileDeviceAccessRuleId == nil { 2317 invalidParams.Add(smithy.NewErrParamRequired("MobileDeviceAccessRuleId")) 2318 } 2319 if v.Name == nil { 2320 invalidParams.Add(smithy.NewErrParamRequired("Name")) 2321 } 2322 if len(v.Effect) == 0 { 2323 invalidParams.Add(smithy.NewErrParamRequired("Effect")) 2324 } 2325 if invalidParams.Len() > 0 { 2326 return invalidParams 2327 } else { 2328 return nil 2329 } 2330} 2331 2332func validateOpUpdatePrimaryEmailAddressInput(v *UpdatePrimaryEmailAddressInput) error { 2333 if v == nil { 2334 return nil 2335 } 2336 invalidParams := smithy.InvalidParamsError{Context: "UpdatePrimaryEmailAddressInput"} 2337 if v.OrganizationId == nil { 2338 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2339 } 2340 if v.EntityId == nil { 2341 invalidParams.Add(smithy.NewErrParamRequired("EntityId")) 2342 } 2343 if v.Email == nil { 2344 invalidParams.Add(smithy.NewErrParamRequired("Email")) 2345 } 2346 if invalidParams.Len() > 0 { 2347 return invalidParams 2348 } else { 2349 return nil 2350 } 2351} 2352 2353func validateOpUpdateResourceInput(v *UpdateResourceInput) error { 2354 if v == nil { 2355 return nil 2356 } 2357 invalidParams := smithy.InvalidParamsError{Context: "UpdateResourceInput"} 2358 if v.OrganizationId == nil { 2359 invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) 2360 } 2361 if v.ResourceId == nil { 2362 invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) 2363 } 2364 if invalidParams.Len() > 0 { 2365 return invalidParams 2366 } else { 2367 return nil 2368 } 2369} 2370