1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package sesv2 4 5import ( 6 "context" 7 "fmt" 8 "github.com/aws/aws-sdk-go-v2/service/sesv2/types" 9 smithy "github.com/aws/smithy-go" 10 "github.com/aws/smithy-go/middleware" 11) 12 13type validateOpCreateConfigurationSetEventDestination struct { 14} 15 16func (*validateOpCreateConfigurationSetEventDestination) ID() string { 17 return "OperationInputValidation" 18} 19 20func (m *validateOpCreateConfigurationSetEventDestination) 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.(*CreateConfigurationSetEventDestinationInput) 24 if !ok { 25 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 26 } 27 if err := validateOpCreateConfigurationSetEventDestinationInput(input); err != nil { 28 return out, metadata, err 29 } 30 return next.HandleInitialize(ctx, in) 31} 32 33type validateOpCreateConfigurationSet struct { 34} 35 36func (*validateOpCreateConfigurationSet) ID() string { 37 return "OperationInputValidation" 38} 39 40func (m *validateOpCreateConfigurationSet) 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.(*CreateConfigurationSetInput) 44 if !ok { 45 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 46 } 47 if err := validateOpCreateConfigurationSetInput(input); err != nil { 48 return out, metadata, err 49 } 50 return next.HandleInitialize(ctx, in) 51} 52 53type validateOpCreateContact struct { 54} 55 56func (*validateOpCreateContact) ID() string { 57 return "OperationInputValidation" 58} 59 60func (m *validateOpCreateContact) 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.(*CreateContactInput) 64 if !ok { 65 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 66 } 67 if err := validateOpCreateContactInput(input); err != nil { 68 return out, metadata, err 69 } 70 return next.HandleInitialize(ctx, in) 71} 72 73type validateOpCreateContactList struct { 74} 75 76func (*validateOpCreateContactList) ID() string { 77 return "OperationInputValidation" 78} 79 80func (m *validateOpCreateContactList) 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.(*CreateContactListInput) 84 if !ok { 85 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 86 } 87 if err := validateOpCreateContactListInput(input); err != nil { 88 return out, metadata, err 89 } 90 return next.HandleInitialize(ctx, in) 91} 92 93type validateOpCreateCustomVerificationEmailTemplate struct { 94} 95 96func (*validateOpCreateCustomVerificationEmailTemplate) ID() string { 97 return "OperationInputValidation" 98} 99 100func (m *validateOpCreateCustomVerificationEmailTemplate) 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.(*CreateCustomVerificationEmailTemplateInput) 104 if !ok { 105 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 106 } 107 if err := validateOpCreateCustomVerificationEmailTemplateInput(input); err != nil { 108 return out, metadata, err 109 } 110 return next.HandleInitialize(ctx, in) 111} 112 113type validateOpCreateDedicatedIpPool struct { 114} 115 116func (*validateOpCreateDedicatedIpPool) ID() string { 117 return "OperationInputValidation" 118} 119 120func (m *validateOpCreateDedicatedIpPool) 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.(*CreateDedicatedIpPoolInput) 124 if !ok { 125 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 126 } 127 if err := validateOpCreateDedicatedIpPoolInput(input); err != nil { 128 return out, metadata, err 129 } 130 return next.HandleInitialize(ctx, in) 131} 132 133type validateOpCreateDeliverabilityTestReport struct { 134} 135 136func (*validateOpCreateDeliverabilityTestReport) ID() string { 137 return "OperationInputValidation" 138} 139 140func (m *validateOpCreateDeliverabilityTestReport) 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.(*CreateDeliverabilityTestReportInput) 144 if !ok { 145 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 146 } 147 if err := validateOpCreateDeliverabilityTestReportInput(input); err != nil { 148 return out, metadata, err 149 } 150 return next.HandleInitialize(ctx, in) 151} 152 153type validateOpCreateEmailIdentity struct { 154} 155 156func (*validateOpCreateEmailIdentity) ID() string { 157 return "OperationInputValidation" 158} 159 160func (m *validateOpCreateEmailIdentity) 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.(*CreateEmailIdentityInput) 164 if !ok { 165 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 166 } 167 if err := validateOpCreateEmailIdentityInput(input); err != nil { 168 return out, metadata, err 169 } 170 return next.HandleInitialize(ctx, in) 171} 172 173type validateOpCreateEmailIdentityPolicy struct { 174} 175 176func (*validateOpCreateEmailIdentityPolicy) ID() string { 177 return "OperationInputValidation" 178} 179 180func (m *validateOpCreateEmailIdentityPolicy) 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.(*CreateEmailIdentityPolicyInput) 184 if !ok { 185 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 186 } 187 if err := validateOpCreateEmailIdentityPolicyInput(input); err != nil { 188 return out, metadata, err 189 } 190 return next.HandleInitialize(ctx, in) 191} 192 193type validateOpCreateEmailTemplate struct { 194} 195 196func (*validateOpCreateEmailTemplate) ID() string { 197 return "OperationInputValidation" 198} 199 200func (m *validateOpCreateEmailTemplate) 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.(*CreateEmailTemplateInput) 204 if !ok { 205 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 206 } 207 if err := validateOpCreateEmailTemplateInput(input); err != nil { 208 return out, metadata, err 209 } 210 return next.HandleInitialize(ctx, in) 211} 212 213type validateOpCreateImportJob struct { 214} 215 216func (*validateOpCreateImportJob) ID() string { 217 return "OperationInputValidation" 218} 219 220func (m *validateOpCreateImportJob) 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.(*CreateImportJobInput) 224 if !ok { 225 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 226 } 227 if err := validateOpCreateImportJobInput(input); err != nil { 228 return out, metadata, err 229 } 230 return next.HandleInitialize(ctx, in) 231} 232 233type validateOpDeleteConfigurationSetEventDestination struct { 234} 235 236func (*validateOpDeleteConfigurationSetEventDestination) ID() string { 237 return "OperationInputValidation" 238} 239 240func (m *validateOpDeleteConfigurationSetEventDestination) 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.(*DeleteConfigurationSetEventDestinationInput) 244 if !ok { 245 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 246 } 247 if err := validateOpDeleteConfigurationSetEventDestinationInput(input); err != nil { 248 return out, metadata, err 249 } 250 return next.HandleInitialize(ctx, in) 251} 252 253type validateOpDeleteConfigurationSet struct { 254} 255 256func (*validateOpDeleteConfigurationSet) ID() string { 257 return "OperationInputValidation" 258} 259 260func (m *validateOpDeleteConfigurationSet) 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.(*DeleteConfigurationSetInput) 264 if !ok { 265 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 266 } 267 if err := validateOpDeleteConfigurationSetInput(input); err != nil { 268 return out, metadata, err 269 } 270 return next.HandleInitialize(ctx, in) 271} 272 273type validateOpDeleteContact struct { 274} 275 276func (*validateOpDeleteContact) ID() string { 277 return "OperationInputValidation" 278} 279 280func (m *validateOpDeleteContact) 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.(*DeleteContactInput) 284 if !ok { 285 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 286 } 287 if err := validateOpDeleteContactInput(input); err != nil { 288 return out, metadata, err 289 } 290 return next.HandleInitialize(ctx, in) 291} 292 293type validateOpDeleteContactList struct { 294} 295 296func (*validateOpDeleteContactList) ID() string { 297 return "OperationInputValidation" 298} 299 300func (m *validateOpDeleteContactList) 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.(*DeleteContactListInput) 304 if !ok { 305 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 306 } 307 if err := validateOpDeleteContactListInput(input); err != nil { 308 return out, metadata, err 309 } 310 return next.HandleInitialize(ctx, in) 311} 312 313type validateOpDeleteCustomVerificationEmailTemplate struct { 314} 315 316func (*validateOpDeleteCustomVerificationEmailTemplate) ID() string { 317 return "OperationInputValidation" 318} 319 320func (m *validateOpDeleteCustomVerificationEmailTemplate) 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.(*DeleteCustomVerificationEmailTemplateInput) 324 if !ok { 325 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 326 } 327 if err := validateOpDeleteCustomVerificationEmailTemplateInput(input); err != nil { 328 return out, metadata, err 329 } 330 return next.HandleInitialize(ctx, in) 331} 332 333type validateOpDeleteDedicatedIpPool struct { 334} 335 336func (*validateOpDeleteDedicatedIpPool) ID() string { 337 return "OperationInputValidation" 338} 339 340func (m *validateOpDeleteDedicatedIpPool) 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.(*DeleteDedicatedIpPoolInput) 344 if !ok { 345 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 346 } 347 if err := validateOpDeleteDedicatedIpPoolInput(input); err != nil { 348 return out, metadata, err 349 } 350 return next.HandleInitialize(ctx, in) 351} 352 353type validateOpDeleteEmailIdentity struct { 354} 355 356func (*validateOpDeleteEmailIdentity) ID() string { 357 return "OperationInputValidation" 358} 359 360func (m *validateOpDeleteEmailIdentity) 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.(*DeleteEmailIdentityInput) 364 if !ok { 365 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 366 } 367 if err := validateOpDeleteEmailIdentityInput(input); err != nil { 368 return out, metadata, err 369 } 370 return next.HandleInitialize(ctx, in) 371} 372 373type validateOpDeleteEmailIdentityPolicy struct { 374} 375 376func (*validateOpDeleteEmailIdentityPolicy) ID() string { 377 return "OperationInputValidation" 378} 379 380func (m *validateOpDeleteEmailIdentityPolicy) 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.(*DeleteEmailIdentityPolicyInput) 384 if !ok { 385 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 386 } 387 if err := validateOpDeleteEmailIdentityPolicyInput(input); err != nil { 388 return out, metadata, err 389 } 390 return next.HandleInitialize(ctx, in) 391} 392 393type validateOpDeleteEmailTemplate struct { 394} 395 396func (*validateOpDeleteEmailTemplate) ID() string { 397 return "OperationInputValidation" 398} 399 400func (m *validateOpDeleteEmailTemplate) 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.(*DeleteEmailTemplateInput) 404 if !ok { 405 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 406 } 407 if err := validateOpDeleteEmailTemplateInput(input); err != nil { 408 return out, metadata, err 409 } 410 return next.HandleInitialize(ctx, in) 411} 412 413type validateOpDeleteSuppressedDestination struct { 414} 415 416func (*validateOpDeleteSuppressedDestination) ID() string { 417 return "OperationInputValidation" 418} 419 420func (m *validateOpDeleteSuppressedDestination) 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.(*DeleteSuppressedDestinationInput) 424 if !ok { 425 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 426 } 427 if err := validateOpDeleteSuppressedDestinationInput(input); err != nil { 428 return out, metadata, err 429 } 430 return next.HandleInitialize(ctx, in) 431} 432 433type validateOpGetBlacklistReports struct { 434} 435 436func (*validateOpGetBlacklistReports) ID() string { 437 return "OperationInputValidation" 438} 439 440func (m *validateOpGetBlacklistReports) 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.(*GetBlacklistReportsInput) 444 if !ok { 445 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 446 } 447 if err := validateOpGetBlacklistReportsInput(input); err != nil { 448 return out, metadata, err 449 } 450 return next.HandleInitialize(ctx, in) 451} 452 453type validateOpGetConfigurationSetEventDestinations struct { 454} 455 456func (*validateOpGetConfigurationSetEventDestinations) ID() string { 457 return "OperationInputValidation" 458} 459 460func (m *validateOpGetConfigurationSetEventDestinations) 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.(*GetConfigurationSetEventDestinationsInput) 464 if !ok { 465 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 466 } 467 if err := validateOpGetConfigurationSetEventDestinationsInput(input); err != nil { 468 return out, metadata, err 469 } 470 return next.HandleInitialize(ctx, in) 471} 472 473type validateOpGetConfigurationSet struct { 474} 475 476func (*validateOpGetConfigurationSet) ID() string { 477 return "OperationInputValidation" 478} 479 480func (m *validateOpGetConfigurationSet) 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.(*GetConfigurationSetInput) 484 if !ok { 485 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 486 } 487 if err := validateOpGetConfigurationSetInput(input); err != nil { 488 return out, metadata, err 489 } 490 return next.HandleInitialize(ctx, in) 491} 492 493type validateOpGetContact struct { 494} 495 496func (*validateOpGetContact) ID() string { 497 return "OperationInputValidation" 498} 499 500func (m *validateOpGetContact) 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.(*GetContactInput) 504 if !ok { 505 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 506 } 507 if err := validateOpGetContactInput(input); err != nil { 508 return out, metadata, err 509 } 510 return next.HandleInitialize(ctx, in) 511} 512 513type validateOpGetContactList struct { 514} 515 516func (*validateOpGetContactList) ID() string { 517 return "OperationInputValidation" 518} 519 520func (m *validateOpGetContactList) 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.(*GetContactListInput) 524 if !ok { 525 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 526 } 527 if err := validateOpGetContactListInput(input); err != nil { 528 return out, metadata, err 529 } 530 return next.HandleInitialize(ctx, in) 531} 532 533type validateOpGetCustomVerificationEmailTemplate struct { 534} 535 536func (*validateOpGetCustomVerificationEmailTemplate) ID() string { 537 return "OperationInputValidation" 538} 539 540func (m *validateOpGetCustomVerificationEmailTemplate) 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.(*GetCustomVerificationEmailTemplateInput) 544 if !ok { 545 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 546 } 547 if err := validateOpGetCustomVerificationEmailTemplateInput(input); err != nil { 548 return out, metadata, err 549 } 550 return next.HandleInitialize(ctx, in) 551} 552 553type validateOpGetDedicatedIp struct { 554} 555 556func (*validateOpGetDedicatedIp) ID() string { 557 return "OperationInputValidation" 558} 559 560func (m *validateOpGetDedicatedIp) 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.(*GetDedicatedIpInput) 564 if !ok { 565 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 566 } 567 if err := validateOpGetDedicatedIpInput(input); err != nil { 568 return out, metadata, err 569 } 570 return next.HandleInitialize(ctx, in) 571} 572 573type validateOpGetDeliverabilityTestReport struct { 574} 575 576func (*validateOpGetDeliverabilityTestReport) ID() string { 577 return "OperationInputValidation" 578} 579 580func (m *validateOpGetDeliverabilityTestReport) 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.(*GetDeliverabilityTestReportInput) 584 if !ok { 585 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 586 } 587 if err := validateOpGetDeliverabilityTestReportInput(input); err != nil { 588 return out, metadata, err 589 } 590 return next.HandleInitialize(ctx, in) 591} 592 593type validateOpGetDomainDeliverabilityCampaign struct { 594} 595 596func (*validateOpGetDomainDeliverabilityCampaign) ID() string { 597 return "OperationInputValidation" 598} 599 600func (m *validateOpGetDomainDeliverabilityCampaign) 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.(*GetDomainDeliverabilityCampaignInput) 604 if !ok { 605 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 606 } 607 if err := validateOpGetDomainDeliverabilityCampaignInput(input); err != nil { 608 return out, metadata, err 609 } 610 return next.HandleInitialize(ctx, in) 611} 612 613type validateOpGetDomainStatisticsReport struct { 614} 615 616func (*validateOpGetDomainStatisticsReport) ID() string { 617 return "OperationInputValidation" 618} 619 620func (m *validateOpGetDomainStatisticsReport) 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.(*GetDomainStatisticsReportInput) 624 if !ok { 625 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 626 } 627 if err := validateOpGetDomainStatisticsReportInput(input); err != nil { 628 return out, metadata, err 629 } 630 return next.HandleInitialize(ctx, in) 631} 632 633type validateOpGetEmailIdentity struct { 634} 635 636func (*validateOpGetEmailIdentity) ID() string { 637 return "OperationInputValidation" 638} 639 640func (m *validateOpGetEmailIdentity) 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.(*GetEmailIdentityInput) 644 if !ok { 645 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 646 } 647 if err := validateOpGetEmailIdentityInput(input); err != nil { 648 return out, metadata, err 649 } 650 return next.HandleInitialize(ctx, in) 651} 652 653type validateOpGetEmailIdentityPolicies struct { 654} 655 656func (*validateOpGetEmailIdentityPolicies) ID() string { 657 return "OperationInputValidation" 658} 659 660func (m *validateOpGetEmailIdentityPolicies) 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.(*GetEmailIdentityPoliciesInput) 664 if !ok { 665 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 666 } 667 if err := validateOpGetEmailIdentityPoliciesInput(input); err != nil { 668 return out, metadata, err 669 } 670 return next.HandleInitialize(ctx, in) 671} 672 673type validateOpGetEmailTemplate struct { 674} 675 676func (*validateOpGetEmailTemplate) ID() string { 677 return "OperationInputValidation" 678} 679 680func (m *validateOpGetEmailTemplate) 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.(*GetEmailTemplateInput) 684 if !ok { 685 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 686 } 687 if err := validateOpGetEmailTemplateInput(input); err != nil { 688 return out, metadata, err 689 } 690 return next.HandleInitialize(ctx, in) 691} 692 693type validateOpGetImportJob struct { 694} 695 696func (*validateOpGetImportJob) ID() string { 697 return "OperationInputValidation" 698} 699 700func (m *validateOpGetImportJob) 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.(*GetImportJobInput) 704 if !ok { 705 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 706 } 707 if err := validateOpGetImportJobInput(input); err != nil { 708 return out, metadata, err 709 } 710 return next.HandleInitialize(ctx, in) 711} 712 713type validateOpGetSuppressedDestination struct { 714} 715 716func (*validateOpGetSuppressedDestination) ID() string { 717 return "OperationInputValidation" 718} 719 720func (m *validateOpGetSuppressedDestination) 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.(*GetSuppressedDestinationInput) 724 if !ok { 725 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 726 } 727 if err := validateOpGetSuppressedDestinationInput(input); err != nil { 728 return out, metadata, err 729 } 730 return next.HandleInitialize(ctx, in) 731} 732 733type validateOpListContacts struct { 734} 735 736func (*validateOpListContacts) ID() string { 737 return "OperationInputValidation" 738} 739 740func (m *validateOpListContacts) 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.(*ListContactsInput) 744 if !ok { 745 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 746 } 747 if err := validateOpListContactsInput(input); err != nil { 748 return out, metadata, err 749 } 750 return next.HandleInitialize(ctx, in) 751} 752 753type validateOpListDomainDeliverabilityCampaigns struct { 754} 755 756func (*validateOpListDomainDeliverabilityCampaigns) ID() string { 757 return "OperationInputValidation" 758} 759 760func (m *validateOpListDomainDeliverabilityCampaigns) 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.(*ListDomainDeliverabilityCampaignsInput) 764 if !ok { 765 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 766 } 767 if err := validateOpListDomainDeliverabilityCampaignsInput(input); err != nil { 768 return out, metadata, err 769 } 770 return next.HandleInitialize(ctx, in) 771} 772 773type validateOpListTagsForResource struct { 774} 775 776func (*validateOpListTagsForResource) ID() string { 777 return "OperationInputValidation" 778} 779 780func (m *validateOpListTagsForResource) 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.(*ListTagsForResourceInput) 784 if !ok { 785 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 786 } 787 if err := validateOpListTagsForResourceInput(input); err != nil { 788 return out, metadata, err 789 } 790 return next.HandleInitialize(ctx, in) 791} 792 793type validateOpPutAccountDetails struct { 794} 795 796func (*validateOpPutAccountDetails) ID() string { 797 return "OperationInputValidation" 798} 799 800func (m *validateOpPutAccountDetails) 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.(*PutAccountDetailsInput) 804 if !ok { 805 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 806 } 807 if err := validateOpPutAccountDetailsInput(input); err != nil { 808 return out, metadata, err 809 } 810 return next.HandleInitialize(ctx, in) 811} 812 813type validateOpPutConfigurationSetDeliveryOptions struct { 814} 815 816func (*validateOpPutConfigurationSetDeliveryOptions) ID() string { 817 return "OperationInputValidation" 818} 819 820func (m *validateOpPutConfigurationSetDeliveryOptions) 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.(*PutConfigurationSetDeliveryOptionsInput) 824 if !ok { 825 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 826 } 827 if err := validateOpPutConfigurationSetDeliveryOptionsInput(input); err != nil { 828 return out, metadata, err 829 } 830 return next.HandleInitialize(ctx, in) 831} 832 833type validateOpPutConfigurationSetReputationOptions struct { 834} 835 836func (*validateOpPutConfigurationSetReputationOptions) ID() string { 837 return "OperationInputValidation" 838} 839 840func (m *validateOpPutConfigurationSetReputationOptions) 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.(*PutConfigurationSetReputationOptionsInput) 844 if !ok { 845 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 846 } 847 if err := validateOpPutConfigurationSetReputationOptionsInput(input); err != nil { 848 return out, metadata, err 849 } 850 return next.HandleInitialize(ctx, in) 851} 852 853type validateOpPutConfigurationSetSendingOptions struct { 854} 855 856func (*validateOpPutConfigurationSetSendingOptions) ID() string { 857 return "OperationInputValidation" 858} 859 860func (m *validateOpPutConfigurationSetSendingOptions) 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.(*PutConfigurationSetSendingOptionsInput) 864 if !ok { 865 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 866 } 867 if err := validateOpPutConfigurationSetSendingOptionsInput(input); err != nil { 868 return out, metadata, err 869 } 870 return next.HandleInitialize(ctx, in) 871} 872 873type validateOpPutConfigurationSetSuppressionOptions struct { 874} 875 876func (*validateOpPutConfigurationSetSuppressionOptions) ID() string { 877 return "OperationInputValidation" 878} 879 880func (m *validateOpPutConfigurationSetSuppressionOptions) 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.(*PutConfigurationSetSuppressionOptionsInput) 884 if !ok { 885 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 886 } 887 if err := validateOpPutConfigurationSetSuppressionOptionsInput(input); err != nil { 888 return out, metadata, err 889 } 890 return next.HandleInitialize(ctx, in) 891} 892 893type validateOpPutConfigurationSetTrackingOptions struct { 894} 895 896func (*validateOpPutConfigurationSetTrackingOptions) ID() string { 897 return "OperationInputValidation" 898} 899 900func (m *validateOpPutConfigurationSetTrackingOptions) 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.(*PutConfigurationSetTrackingOptionsInput) 904 if !ok { 905 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 906 } 907 if err := validateOpPutConfigurationSetTrackingOptionsInput(input); err != nil { 908 return out, metadata, err 909 } 910 return next.HandleInitialize(ctx, in) 911} 912 913type validateOpPutDedicatedIpInPool struct { 914} 915 916func (*validateOpPutDedicatedIpInPool) ID() string { 917 return "OperationInputValidation" 918} 919 920func (m *validateOpPutDedicatedIpInPool) 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.(*PutDedicatedIpInPoolInput) 924 if !ok { 925 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 926 } 927 if err := validateOpPutDedicatedIpInPoolInput(input); err != nil { 928 return out, metadata, err 929 } 930 return next.HandleInitialize(ctx, in) 931} 932 933type validateOpPutDedicatedIpWarmupAttributes struct { 934} 935 936func (*validateOpPutDedicatedIpWarmupAttributes) ID() string { 937 return "OperationInputValidation" 938} 939 940func (m *validateOpPutDedicatedIpWarmupAttributes) 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.(*PutDedicatedIpWarmupAttributesInput) 944 if !ok { 945 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 946 } 947 if err := validateOpPutDedicatedIpWarmupAttributesInput(input); err != nil { 948 return out, metadata, err 949 } 950 return next.HandleInitialize(ctx, in) 951} 952 953type validateOpPutDeliverabilityDashboardOption struct { 954} 955 956func (*validateOpPutDeliverabilityDashboardOption) ID() string { 957 return "OperationInputValidation" 958} 959 960func (m *validateOpPutDeliverabilityDashboardOption) 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.(*PutDeliverabilityDashboardOptionInput) 964 if !ok { 965 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 966 } 967 if err := validateOpPutDeliverabilityDashboardOptionInput(input); err != nil { 968 return out, metadata, err 969 } 970 return next.HandleInitialize(ctx, in) 971} 972 973type validateOpPutEmailIdentityConfigurationSetAttributes struct { 974} 975 976func (*validateOpPutEmailIdentityConfigurationSetAttributes) ID() string { 977 return "OperationInputValidation" 978} 979 980func (m *validateOpPutEmailIdentityConfigurationSetAttributes) 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.(*PutEmailIdentityConfigurationSetAttributesInput) 984 if !ok { 985 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 986 } 987 if err := validateOpPutEmailIdentityConfigurationSetAttributesInput(input); err != nil { 988 return out, metadata, err 989 } 990 return next.HandleInitialize(ctx, in) 991} 992 993type validateOpPutEmailIdentityDkimAttributes struct { 994} 995 996func (*validateOpPutEmailIdentityDkimAttributes) ID() string { 997 return "OperationInputValidation" 998} 999 1000func (m *validateOpPutEmailIdentityDkimAttributes) 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.(*PutEmailIdentityDkimAttributesInput) 1004 if !ok { 1005 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1006 } 1007 if err := validateOpPutEmailIdentityDkimAttributesInput(input); err != nil { 1008 return out, metadata, err 1009 } 1010 return next.HandleInitialize(ctx, in) 1011} 1012 1013type validateOpPutEmailIdentityDkimSigningAttributes struct { 1014} 1015 1016func (*validateOpPutEmailIdentityDkimSigningAttributes) ID() string { 1017 return "OperationInputValidation" 1018} 1019 1020func (m *validateOpPutEmailIdentityDkimSigningAttributes) 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.(*PutEmailIdentityDkimSigningAttributesInput) 1024 if !ok { 1025 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1026 } 1027 if err := validateOpPutEmailIdentityDkimSigningAttributesInput(input); err != nil { 1028 return out, metadata, err 1029 } 1030 return next.HandleInitialize(ctx, in) 1031} 1032 1033type validateOpPutEmailIdentityFeedbackAttributes struct { 1034} 1035 1036func (*validateOpPutEmailIdentityFeedbackAttributes) ID() string { 1037 return "OperationInputValidation" 1038} 1039 1040func (m *validateOpPutEmailIdentityFeedbackAttributes) 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.(*PutEmailIdentityFeedbackAttributesInput) 1044 if !ok { 1045 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1046 } 1047 if err := validateOpPutEmailIdentityFeedbackAttributesInput(input); err != nil { 1048 return out, metadata, err 1049 } 1050 return next.HandleInitialize(ctx, in) 1051} 1052 1053type validateOpPutEmailIdentityMailFromAttributes struct { 1054} 1055 1056func (*validateOpPutEmailIdentityMailFromAttributes) ID() string { 1057 return "OperationInputValidation" 1058} 1059 1060func (m *validateOpPutEmailIdentityMailFromAttributes) 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.(*PutEmailIdentityMailFromAttributesInput) 1064 if !ok { 1065 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1066 } 1067 if err := validateOpPutEmailIdentityMailFromAttributesInput(input); err != nil { 1068 return out, metadata, err 1069 } 1070 return next.HandleInitialize(ctx, in) 1071} 1072 1073type validateOpPutSuppressedDestination struct { 1074} 1075 1076func (*validateOpPutSuppressedDestination) ID() string { 1077 return "OperationInputValidation" 1078} 1079 1080func (m *validateOpPutSuppressedDestination) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1081 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1082) { 1083 input, ok := in.Parameters.(*PutSuppressedDestinationInput) 1084 if !ok { 1085 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1086 } 1087 if err := validateOpPutSuppressedDestinationInput(input); err != nil { 1088 return out, metadata, err 1089 } 1090 return next.HandleInitialize(ctx, in) 1091} 1092 1093type validateOpSendBulkEmail struct { 1094} 1095 1096func (*validateOpSendBulkEmail) ID() string { 1097 return "OperationInputValidation" 1098} 1099 1100func (m *validateOpSendBulkEmail) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1101 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1102) { 1103 input, ok := in.Parameters.(*SendBulkEmailInput) 1104 if !ok { 1105 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1106 } 1107 if err := validateOpSendBulkEmailInput(input); err != nil { 1108 return out, metadata, err 1109 } 1110 return next.HandleInitialize(ctx, in) 1111} 1112 1113type validateOpSendCustomVerificationEmail struct { 1114} 1115 1116func (*validateOpSendCustomVerificationEmail) ID() string { 1117 return "OperationInputValidation" 1118} 1119 1120func (m *validateOpSendCustomVerificationEmail) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1121 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1122) { 1123 input, ok := in.Parameters.(*SendCustomVerificationEmailInput) 1124 if !ok { 1125 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1126 } 1127 if err := validateOpSendCustomVerificationEmailInput(input); err != nil { 1128 return out, metadata, err 1129 } 1130 return next.HandleInitialize(ctx, in) 1131} 1132 1133type validateOpSendEmail struct { 1134} 1135 1136func (*validateOpSendEmail) ID() string { 1137 return "OperationInputValidation" 1138} 1139 1140func (m *validateOpSendEmail) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1141 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1142) { 1143 input, ok := in.Parameters.(*SendEmailInput) 1144 if !ok { 1145 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1146 } 1147 if err := validateOpSendEmailInput(input); err != nil { 1148 return out, metadata, err 1149 } 1150 return next.HandleInitialize(ctx, in) 1151} 1152 1153type validateOpTagResource struct { 1154} 1155 1156func (*validateOpTagResource) ID() string { 1157 return "OperationInputValidation" 1158} 1159 1160func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1161 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1162) { 1163 input, ok := in.Parameters.(*TagResourceInput) 1164 if !ok { 1165 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1166 } 1167 if err := validateOpTagResourceInput(input); err != nil { 1168 return out, metadata, err 1169 } 1170 return next.HandleInitialize(ctx, in) 1171} 1172 1173type validateOpTestRenderEmailTemplate struct { 1174} 1175 1176func (*validateOpTestRenderEmailTemplate) ID() string { 1177 return "OperationInputValidation" 1178} 1179 1180func (m *validateOpTestRenderEmailTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1181 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1182) { 1183 input, ok := in.Parameters.(*TestRenderEmailTemplateInput) 1184 if !ok { 1185 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1186 } 1187 if err := validateOpTestRenderEmailTemplateInput(input); err != nil { 1188 return out, metadata, err 1189 } 1190 return next.HandleInitialize(ctx, in) 1191} 1192 1193type validateOpUntagResource struct { 1194} 1195 1196func (*validateOpUntagResource) ID() string { 1197 return "OperationInputValidation" 1198} 1199 1200func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1201 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1202) { 1203 input, ok := in.Parameters.(*UntagResourceInput) 1204 if !ok { 1205 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1206 } 1207 if err := validateOpUntagResourceInput(input); err != nil { 1208 return out, metadata, err 1209 } 1210 return next.HandleInitialize(ctx, in) 1211} 1212 1213type validateOpUpdateConfigurationSetEventDestination struct { 1214} 1215 1216func (*validateOpUpdateConfigurationSetEventDestination) ID() string { 1217 return "OperationInputValidation" 1218} 1219 1220func (m *validateOpUpdateConfigurationSetEventDestination) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1221 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1222) { 1223 input, ok := in.Parameters.(*UpdateConfigurationSetEventDestinationInput) 1224 if !ok { 1225 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1226 } 1227 if err := validateOpUpdateConfigurationSetEventDestinationInput(input); err != nil { 1228 return out, metadata, err 1229 } 1230 return next.HandleInitialize(ctx, in) 1231} 1232 1233type validateOpUpdateContact struct { 1234} 1235 1236func (*validateOpUpdateContact) ID() string { 1237 return "OperationInputValidation" 1238} 1239 1240func (m *validateOpUpdateContact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1241 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1242) { 1243 input, ok := in.Parameters.(*UpdateContactInput) 1244 if !ok { 1245 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1246 } 1247 if err := validateOpUpdateContactInput(input); err != nil { 1248 return out, metadata, err 1249 } 1250 return next.HandleInitialize(ctx, in) 1251} 1252 1253type validateOpUpdateContactList struct { 1254} 1255 1256func (*validateOpUpdateContactList) ID() string { 1257 return "OperationInputValidation" 1258} 1259 1260func (m *validateOpUpdateContactList) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1261 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1262) { 1263 input, ok := in.Parameters.(*UpdateContactListInput) 1264 if !ok { 1265 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1266 } 1267 if err := validateOpUpdateContactListInput(input); err != nil { 1268 return out, metadata, err 1269 } 1270 return next.HandleInitialize(ctx, in) 1271} 1272 1273type validateOpUpdateCustomVerificationEmailTemplate struct { 1274} 1275 1276func (*validateOpUpdateCustomVerificationEmailTemplate) ID() string { 1277 return "OperationInputValidation" 1278} 1279 1280func (m *validateOpUpdateCustomVerificationEmailTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1281 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1282) { 1283 input, ok := in.Parameters.(*UpdateCustomVerificationEmailTemplateInput) 1284 if !ok { 1285 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1286 } 1287 if err := validateOpUpdateCustomVerificationEmailTemplateInput(input); err != nil { 1288 return out, metadata, err 1289 } 1290 return next.HandleInitialize(ctx, in) 1291} 1292 1293type validateOpUpdateEmailIdentityPolicy struct { 1294} 1295 1296func (*validateOpUpdateEmailIdentityPolicy) ID() string { 1297 return "OperationInputValidation" 1298} 1299 1300func (m *validateOpUpdateEmailIdentityPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1301 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1302) { 1303 input, ok := in.Parameters.(*UpdateEmailIdentityPolicyInput) 1304 if !ok { 1305 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1306 } 1307 if err := validateOpUpdateEmailIdentityPolicyInput(input); err != nil { 1308 return out, metadata, err 1309 } 1310 return next.HandleInitialize(ctx, in) 1311} 1312 1313type validateOpUpdateEmailTemplate struct { 1314} 1315 1316func (*validateOpUpdateEmailTemplate) ID() string { 1317 return "OperationInputValidation" 1318} 1319 1320func (m *validateOpUpdateEmailTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( 1321 out middleware.InitializeOutput, metadata middleware.Metadata, err error, 1322) { 1323 input, ok := in.Parameters.(*UpdateEmailTemplateInput) 1324 if !ok { 1325 return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) 1326 } 1327 if err := validateOpUpdateEmailTemplateInput(input); err != nil { 1328 return out, metadata, err 1329 } 1330 return next.HandleInitialize(ctx, in) 1331} 1332 1333func addOpCreateConfigurationSetEventDestinationValidationMiddleware(stack *middleware.Stack) error { 1334 return stack.Initialize.Add(&validateOpCreateConfigurationSetEventDestination{}, middleware.After) 1335} 1336 1337func addOpCreateConfigurationSetValidationMiddleware(stack *middleware.Stack) error { 1338 return stack.Initialize.Add(&validateOpCreateConfigurationSet{}, middleware.After) 1339} 1340 1341func addOpCreateContactValidationMiddleware(stack *middleware.Stack) error { 1342 return stack.Initialize.Add(&validateOpCreateContact{}, middleware.After) 1343} 1344 1345func addOpCreateContactListValidationMiddleware(stack *middleware.Stack) error { 1346 return stack.Initialize.Add(&validateOpCreateContactList{}, middleware.After) 1347} 1348 1349func addOpCreateCustomVerificationEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1350 return stack.Initialize.Add(&validateOpCreateCustomVerificationEmailTemplate{}, middleware.After) 1351} 1352 1353func addOpCreateDedicatedIpPoolValidationMiddleware(stack *middleware.Stack) error { 1354 return stack.Initialize.Add(&validateOpCreateDedicatedIpPool{}, middleware.After) 1355} 1356 1357func addOpCreateDeliverabilityTestReportValidationMiddleware(stack *middleware.Stack) error { 1358 return stack.Initialize.Add(&validateOpCreateDeliverabilityTestReport{}, middleware.After) 1359} 1360 1361func addOpCreateEmailIdentityValidationMiddleware(stack *middleware.Stack) error { 1362 return stack.Initialize.Add(&validateOpCreateEmailIdentity{}, middleware.After) 1363} 1364 1365func addOpCreateEmailIdentityPolicyValidationMiddleware(stack *middleware.Stack) error { 1366 return stack.Initialize.Add(&validateOpCreateEmailIdentityPolicy{}, middleware.After) 1367} 1368 1369func addOpCreateEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1370 return stack.Initialize.Add(&validateOpCreateEmailTemplate{}, middleware.After) 1371} 1372 1373func addOpCreateImportJobValidationMiddleware(stack *middleware.Stack) error { 1374 return stack.Initialize.Add(&validateOpCreateImportJob{}, middleware.After) 1375} 1376 1377func addOpDeleteConfigurationSetEventDestinationValidationMiddleware(stack *middleware.Stack) error { 1378 return stack.Initialize.Add(&validateOpDeleteConfigurationSetEventDestination{}, middleware.After) 1379} 1380 1381func addOpDeleteConfigurationSetValidationMiddleware(stack *middleware.Stack) error { 1382 return stack.Initialize.Add(&validateOpDeleteConfigurationSet{}, middleware.After) 1383} 1384 1385func addOpDeleteContactValidationMiddleware(stack *middleware.Stack) error { 1386 return stack.Initialize.Add(&validateOpDeleteContact{}, middleware.After) 1387} 1388 1389func addOpDeleteContactListValidationMiddleware(stack *middleware.Stack) error { 1390 return stack.Initialize.Add(&validateOpDeleteContactList{}, middleware.After) 1391} 1392 1393func addOpDeleteCustomVerificationEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1394 return stack.Initialize.Add(&validateOpDeleteCustomVerificationEmailTemplate{}, middleware.After) 1395} 1396 1397func addOpDeleteDedicatedIpPoolValidationMiddleware(stack *middleware.Stack) error { 1398 return stack.Initialize.Add(&validateOpDeleteDedicatedIpPool{}, middleware.After) 1399} 1400 1401func addOpDeleteEmailIdentityValidationMiddleware(stack *middleware.Stack) error { 1402 return stack.Initialize.Add(&validateOpDeleteEmailIdentity{}, middleware.After) 1403} 1404 1405func addOpDeleteEmailIdentityPolicyValidationMiddleware(stack *middleware.Stack) error { 1406 return stack.Initialize.Add(&validateOpDeleteEmailIdentityPolicy{}, middleware.After) 1407} 1408 1409func addOpDeleteEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1410 return stack.Initialize.Add(&validateOpDeleteEmailTemplate{}, middleware.After) 1411} 1412 1413func addOpDeleteSuppressedDestinationValidationMiddleware(stack *middleware.Stack) error { 1414 return stack.Initialize.Add(&validateOpDeleteSuppressedDestination{}, middleware.After) 1415} 1416 1417func addOpGetBlacklistReportsValidationMiddleware(stack *middleware.Stack) error { 1418 return stack.Initialize.Add(&validateOpGetBlacklistReports{}, middleware.After) 1419} 1420 1421func addOpGetConfigurationSetEventDestinationsValidationMiddleware(stack *middleware.Stack) error { 1422 return stack.Initialize.Add(&validateOpGetConfigurationSetEventDestinations{}, middleware.After) 1423} 1424 1425func addOpGetConfigurationSetValidationMiddleware(stack *middleware.Stack) error { 1426 return stack.Initialize.Add(&validateOpGetConfigurationSet{}, middleware.After) 1427} 1428 1429func addOpGetContactValidationMiddleware(stack *middleware.Stack) error { 1430 return stack.Initialize.Add(&validateOpGetContact{}, middleware.After) 1431} 1432 1433func addOpGetContactListValidationMiddleware(stack *middleware.Stack) error { 1434 return stack.Initialize.Add(&validateOpGetContactList{}, middleware.After) 1435} 1436 1437func addOpGetCustomVerificationEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1438 return stack.Initialize.Add(&validateOpGetCustomVerificationEmailTemplate{}, middleware.After) 1439} 1440 1441func addOpGetDedicatedIpValidationMiddleware(stack *middleware.Stack) error { 1442 return stack.Initialize.Add(&validateOpGetDedicatedIp{}, middleware.After) 1443} 1444 1445func addOpGetDeliverabilityTestReportValidationMiddleware(stack *middleware.Stack) error { 1446 return stack.Initialize.Add(&validateOpGetDeliverabilityTestReport{}, middleware.After) 1447} 1448 1449func addOpGetDomainDeliverabilityCampaignValidationMiddleware(stack *middleware.Stack) error { 1450 return stack.Initialize.Add(&validateOpGetDomainDeliverabilityCampaign{}, middleware.After) 1451} 1452 1453func addOpGetDomainStatisticsReportValidationMiddleware(stack *middleware.Stack) error { 1454 return stack.Initialize.Add(&validateOpGetDomainStatisticsReport{}, middleware.After) 1455} 1456 1457func addOpGetEmailIdentityValidationMiddleware(stack *middleware.Stack) error { 1458 return stack.Initialize.Add(&validateOpGetEmailIdentity{}, middleware.After) 1459} 1460 1461func addOpGetEmailIdentityPoliciesValidationMiddleware(stack *middleware.Stack) error { 1462 return stack.Initialize.Add(&validateOpGetEmailIdentityPolicies{}, middleware.After) 1463} 1464 1465func addOpGetEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1466 return stack.Initialize.Add(&validateOpGetEmailTemplate{}, middleware.After) 1467} 1468 1469func addOpGetImportJobValidationMiddleware(stack *middleware.Stack) error { 1470 return stack.Initialize.Add(&validateOpGetImportJob{}, middleware.After) 1471} 1472 1473func addOpGetSuppressedDestinationValidationMiddleware(stack *middleware.Stack) error { 1474 return stack.Initialize.Add(&validateOpGetSuppressedDestination{}, middleware.After) 1475} 1476 1477func addOpListContactsValidationMiddleware(stack *middleware.Stack) error { 1478 return stack.Initialize.Add(&validateOpListContacts{}, middleware.After) 1479} 1480 1481func addOpListDomainDeliverabilityCampaignsValidationMiddleware(stack *middleware.Stack) error { 1482 return stack.Initialize.Add(&validateOpListDomainDeliverabilityCampaigns{}, middleware.After) 1483} 1484 1485func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { 1486 return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) 1487} 1488 1489func addOpPutAccountDetailsValidationMiddleware(stack *middleware.Stack) error { 1490 return stack.Initialize.Add(&validateOpPutAccountDetails{}, middleware.After) 1491} 1492 1493func addOpPutConfigurationSetDeliveryOptionsValidationMiddleware(stack *middleware.Stack) error { 1494 return stack.Initialize.Add(&validateOpPutConfigurationSetDeliveryOptions{}, middleware.After) 1495} 1496 1497func addOpPutConfigurationSetReputationOptionsValidationMiddleware(stack *middleware.Stack) error { 1498 return stack.Initialize.Add(&validateOpPutConfigurationSetReputationOptions{}, middleware.After) 1499} 1500 1501func addOpPutConfigurationSetSendingOptionsValidationMiddleware(stack *middleware.Stack) error { 1502 return stack.Initialize.Add(&validateOpPutConfigurationSetSendingOptions{}, middleware.After) 1503} 1504 1505func addOpPutConfigurationSetSuppressionOptionsValidationMiddleware(stack *middleware.Stack) error { 1506 return stack.Initialize.Add(&validateOpPutConfigurationSetSuppressionOptions{}, middleware.After) 1507} 1508 1509func addOpPutConfigurationSetTrackingOptionsValidationMiddleware(stack *middleware.Stack) error { 1510 return stack.Initialize.Add(&validateOpPutConfigurationSetTrackingOptions{}, middleware.After) 1511} 1512 1513func addOpPutDedicatedIpInPoolValidationMiddleware(stack *middleware.Stack) error { 1514 return stack.Initialize.Add(&validateOpPutDedicatedIpInPool{}, middleware.After) 1515} 1516 1517func addOpPutDedicatedIpWarmupAttributesValidationMiddleware(stack *middleware.Stack) error { 1518 return stack.Initialize.Add(&validateOpPutDedicatedIpWarmupAttributes{}, middleware.After) 1519} 1520 1521func addOpPutDeliverabilityDashboardOptionValidationMiddleware(stack *middleware.Stack) error { 1522 return stack.Initialize.Add(&validateOpPutDeliverabilityDashboardOption{}, middleware.After) 1523} 1524 1525func addOpPutEmailIdentityConfigurationSetAttributesValidationMiddleware(stack *middleware.Stack) error { 1526 return stack.Initialize.Add(&validateOpPutEmailIdentityConfigurationSetAttributes{}, middleware.After) 1527} 1528 1529func addOpPutEmailIdentityDkimAttributesValidationMiddleware(stack *middleware.Stack) error { 1530 return stack.Initialize.Add(&validateOpPutEmailIdentityDkimAttributes{}, middleware.After) 1531} 1532 1533func addOpPutEmailIdentityDkimSigningAttributesValidationMiddleware(stack *middleware.Stack) error { 1534 return stack.Initialize.Add(&validateOpPutEmailIdentityDkimSigningAttributes{}, middleware.After) 1535} 1536 1537func addOpPutEmailIdentityFeedbackAttributesValidationMiddleware(stack *middleware.Stack) error { 1538 return stack.Initialize.Add(&validateOpPutEmailIdentityFeedbackAttributes{}, middleware.After) 1539} 1540 1541func addOpPutEmailIdentityMailFromAttributesValidationMiddleware(stack *middleware.Stack) error { 1542 return stack.Initialize.Add(&validateOpPutEmailIdentityMailFromAttributes{}, middleware.After) 1543} 1544 1545func addOpPutSuppressedDestinationValidationMiddleware(stack *middleware.Stack) error { 1546 return stack.Initialize.Add(&validateOpPutSuppressedDestination{}, middleware.After) 1547} 1548 1549func addOpSendBulkEmailValidationMiddleware(stack *middleware.Stack) error { 1550 return stack.Initialize.Add(&validateOpSendBulkEmail{}, middleware.After) 1551} 1552 1553func addOpSendCustomVerificationEmailValidationMiddleware(stack *middleware.Stack) error { 1554 return stack.Initialize.Add(&validateOpSendCustomVerificationEmail{}, middleware.After) 1555} 1556 1557func addOpSendEmailValidationMiddleware(stack *middleware.Stack) error { 1558 return stack.Initialize.Add(&validateOpSendEmail{}, middleware.After) 1559} 1560 1561func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { 1562 return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) 1563} 1564 1565func addOpTestRenderEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1566 return stack.Initialize.Add(&validateOpTestRenderEmailTemplate{}, middleware.After) 1567} 1568 1569func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { 1570 return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) 1571} 1572 1573func addOpUpdateConfigurationSetEventDestinationValidationMiddleware(stack *middleware.Stack) error { 1574 return stack.Initialize.Add(&validateOpUpdateConfigurationSetEventDestination{}, middleware.After) 1575} 1576 1577func addOpUpdateContactValidationMiddleware(stack *middleware.Stack) error { 1578 return stack.Initialize.Add(&validateOpUpdateContact{}, middleware.After) 1579} 1580 1581func addOpUpdateContactListValidationMiddleware(stack *middleware.Stack) error { 1582 return stack.Initialize.Add(&validateOpUpdateContactList{}, middleware.After) 1583} 1584 1585func addOpUpdateCustomVerificationEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1586 return stack.Initialize.Add(&validateOpUpdateCustomVerificationEmailTemplate{}, middleware.After) 1587} 1588 1589func addOpUpdateEmailIdentityPolicyValidationMiddleware(stack *middleware.Stack) error { 1590 return stack.Initialize.Add(&validateOpUpdateEmailIdentityPolicy{}, middleware.After) 1591} 1592 1593func addOpUpdateEmailTemplateValidationMiddleware(stack *middleware.Stack) error { 1594 return stack.Initialize.Add(&validateOpUpdateEmailTemplate{}, middleware.After) 1595} 1596 1597func validateBody(v *types.Body) error { 1598 if v == nil { 1599 return nil 1600 } 1601 invalidParams := smithy.InvalidParamsError{Context: "Body"} 1602 if v.Text != nil { 1603 if err := validateContent(v.Text); err != nil { 1604 invalidParams.AddNested("Text", err.(smithy.InvalidParamsError)) 1605 } 1606 } 1607 if v.Html != nil { 1608 if err := validateContent(v.Html); err != nil { 1609 invalidParams.AddNested("Html", err.(smithy.InvalidParamsError)) 1610 } 1611 } 1612 if invalidParams.Len() > 0 { 1613 return invalidParams 1614 } else { 1615 return nil 1616 } 1617} 1618 1619func validateBulkEmailEntry(v *types.BulkEmailEntry) error { 1620 if v == nil { 1621 return nil 1622 } 1623 invalidParams := smithy.InvalidParamsError{Context: "BulkEmailEntry"} 1624 if v.Destination == nil { 1625 invalidParams.Add(smithy.NewErrParamRequired("Destination")) 1626 } 1627 if v.ReplacementTags != nil { 1628 if err := validateMessageTagList(v.ReplacementTags); err != nil { 1629 invalidParams.AddNested("ReplacementTags", err.(smithy.InvalidParamsError)) 1630 } 1631 } 1632 if invalidParams.Len() > 0 { 1633 return invalidParams 1634 } else { 1635 return nil 1636 } 1637} 1638 1639func validateBulkEmailEntryList(v []types.BulkEmailEntry) error { 1640 if v == nil { 1641 return nil 1642 } 1643 invalidParams := smithy.InvalidParamsError{Context: "BulkEmailEntryList"} 1644 for i := range v { 1645 if err := validateBulkEmailEntry(&v[i]); err != nil { 1646 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 1647 } 1648 } 1649 if invalidParams.Len() > 0 { 1650 return invalidParams 1651 } else { 1652 return nil 1653 } 1654} 1655 1656func validateCloudWatchDestination(v *types.CloudWatchDestination) error { 1657 if v == nil { 1658 return nil 1659 } 1660 invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDestination"} 1661 if v.DimensionConfigurations == nil { 1662 invalidParams.Add(smithy.NewErrParamRequired("DimensionConfigurations")) 1663 } else if v.DimensionConfigurations != nil { 1664 if err := validateCloudWatchDimensionConfigurations(v.DimensionConfigurations); err != nil { 1665 invalidParams.AddNested("DimensionConfigurations", err.(smithy.InvalidParamsError)) 1666 } 1667 } 1668 if invalidParams.Len() > 0 { 1669 return invalidParams 1670 } else { 1671 return nil 1672 } 1673} 1674 1675func validateCloudWatchDimensionConfiguration(v *types.CloudWatchDimensionConfiguration) error { 1676 if v == nil { 1677 return nil 1678 } 1679 invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDimensionConfiguration"} 1680 if v.DimensionName == nil { 1681 invalidParams.Add(smithy.NewErrParamRequired("DimensionName")) 1682 } 1683 if len(v.DimensionValueSource) == 0 { 1684 invalidParams.Add(smithy.NewErrParamRequired("DimensionValueSource")) 1685 } 1686 if v.DefaultDimensionValue == nil { 1687 invalidParams.Add(smithy.NewErrParamRequired("DefaultDimensionValue")) 1688 } 1689 if invalidParams.Len() > 0 { 1690 return invalidParams 1691 } else { 1692 return nil 1693 } 1694} 1695 1696func validateCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration) error { 1697 if v == nil { 1698 return nil 1699 } 1700 invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDimensionConfigurations"} 1701 for i := range v { 1702 if err := validateCloudWatchDimensionConfiguration(&v[i]); err != nil { 1703 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 1704 } 1705 } 1706 if invalidParams.Len() > 0 { 1707 return invalidParams 1708 } else { 1709 return nil 1710 } 1711} 1712 1713func validateContactListDestination(v *types.ContactListDestination) error { 1714 if v == nil { 1715 return nil 1716 } 1717 invalidParams := smithy.InvalidParamsError{Context: "ContactListDestination"} 1718 if v.ContactListName == nil { 1719 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 1720 } 1721 if len(v.ContactListImportAction) == 0 { 1722 invalidParams.Add(smithy.NewErrParamRequired("ContactListImportAction")) 1723 } 1724 if invalidParams.Len() > 0 { 1725 return invalidParams 1726 } else { 1727 return nil 1728 } 1729} 1730 1731func validateContent(v *types.Content) error { 1732 if v == nil { 1733 return nil 1734 } 1735 invalidParams := smithy.InvalidParamsError{Context: "Content"} 1736 if v.Data == nil { 1737 invalidParams.Add(smithy.NewErrParamRequired("Data")) 1738 } 1739 if invalidParams.Len() > 0 { 1740 return invalidParams 1741 } else { 1742 return nil 1743 } 1744} 1745 1746func validateDkimSigningAttributes(v *types.DkimSigningAttributes) error { 1747 if v == nil { 1748 return nil 1749 } 1750 invalidParams := smithy.InvalidParamsError{Context: "DkimSigningAttributes"} 1751 if v.DomainSigningSelector == nil { 1752 invalidParams.Add(smithy.NewErrParamRequired("DomainSigningSelector")) 1753 } 1754 if v.DomainSigningPrivateKey == nil { 1755 invalidParams.Add(smithy.NewErrParamRequired("DomainSigningPrivateKey")) 1756 } 1757 if invalidParams.Len() > 0 { 1758 return invalidParams 1759 } else { 1760 return nil 1761 } 1762} 1763 1764func validateEmailContent(v *types.EmailContent) error { 1765 if v == nil { 1766 return nil 1767 } 1768 invalidParams := smithy.InvalidParamsError{Context: "EmailContent"} 1769 if v.Simple != nil { 1770 if err := validateMessage(v.Simple); err != nil { 1771 invalidParams.AddNested("Simple", err.(smithy.InvalidParamsError)) 1772 } 1773 } 1774 if v.Raw != nil { 1775 if err := validateRawMessage(v.Raw); err != nil { 1776 invalidParams.AddNested("Raw", err.(smithy.InvalidParamsError)) 1777 } 1778 } 1779 if invalidParams.Len() > 0 { 1780 return invalidParams 1781 } else { 1782 return nil 1783 } 1784} 1785 1786func validateEventDestinationDefinition(v *types.EventDestinationDefinition) error { 1787 if v == nil { 1788 return nil 1789 } 1790 invalidParams := smithy.InvalidParamsError{Context: "EventDestinationDefinition"} 1791 if v.KinesisFirehoseDestination != nil { 1792 if err := validateKinesisFirehoseDestination(v.KinesisFirehoseDestination); err != nil { 1793 invalidParams.AddNested("KinesisFirehoseDestination", err.(smithy.InvalidParamsError)) 1794 } 1795 } 1796 if v.CloudWatchDestination != nil { 1797 if err := validateCloudWatchDestination(v.CloudWatchDestination); err != nil { 1798 invalidParams.AddNested("CloudWatchDestination", err.(smithy.InvalidParamsError)) 1799 } 1800 } 1801 if v.SnsDestination != nil { 1802 if err := validateSnsDestination(v.SnsDestination); err != nil { 1803 invalidParams.AddNested("SnsDestination", err.(smithy.InvalidParamsError)) 1804 } 1805 } 1806 if invalidParams.Len() > 0 { 1807 return invalidParams 1808 } else { 1809 return nil 1810 } 1811} 1812 1813func validateImportDataSource(v *types.ImportDataSource) error { 1814 if v == nil { 1815 return nil 1816 } 1817 invalidParams := smithy.InvalidParamsError{Context: "ImportDataSource"} 1818 if v.S3Url == nil { 1819 invalidParams.Add(smithy.NewErrParamRequired("S3Url")) 1820 } 1821 if len(v.DataFormat) == 0 { 1822 invalidParams.Add(smithy.NewErrParamRequired("DataFormat")) 1823 } 1824 if invalidParams.Len() > 0 { 1825 return invalidParams 1826 } else { 1827 return nil 1828 } 1829} 1830 1831func validateImportDestination(v *types.ImportDestination) error { 1832 if v == nil { 1833 return nil 1834 } 1835 invalidParams := smithy.InvalidParamsError{Context: "ImportDestination"} 1836 if v.SuppressionListDestination != nil { 1837 if err := validateSuppressionListDestination(v.SuppressionListDestination); err != nil { 1838 invalidParams.AddNested("SuppressionListDestination", err.(smithy.InvalidParamsError)) 1839 } 1840 } 1841 if v.ContactListDestination != nil { 1842 if err := validateContactListDestination(v.ContactListDestination); err != nil { 1843 invalidParams.AddNested("ContactListDestination", err.(smithy.InvalidParamsError)) 1844 } 1845 } 1846 if invalidParams.Len() > 0 { 1847 return invalidParams 1848 } else { 1849 return nil 1850 } 1851} 1852 1853func validateKinesisFirehoseDestination(v *types.KinesisFirehoseDestination) error { 1854 if v == nil { 1855 return nil 1856 } 1857 invalidParams := smithy.InvalidParamsError{Context: "KinesisFirehoseDestination"} 1858 if v.IamRoleArn == nil { 1859 invalidParams.Add(smithy.NewErrParamRequired("IamRoleArn")) 1860 } 1861 if v.DeliveryStreamArn == nil { 1862 invalidParams.Add(smithy.NewErrParamRequired("DeliveryStreamArn")) 1863 } 1864 if invalidParams.Len() > 0 { 1865 return invalidParams 1866 } else { 1867 return nil 1868 } 1869} 1870 1871func validateListManagementOptions(v *types.ListManagementOptions) error { 1872 if v == nil { 1873 return nil 1874 } 1875 invalidParams := smithy.InvalidParamsError{Context: "ListManagementOptions"} 1876 if v.ContactListName == nil { 1877 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 1878 } 1879 if invalidParams.Len() > 0 { 1880 return invalidParams 1881 } else { 1882 return nil 1883 } 1884} 1885 1886func validateMessage(v *types.Message) error { 1887 if v == nil { 1888 return nil 1889 } 1890 invalidParams := smithy.InvalidParamsError{Context: "Message"} 1891 if v.Subject == nil { 1892 invalidParams.Add(smithy.NewErrParamRequired("Subject")) 1893 } else if v.Subject != nil { 1894 if err := validateContent(v.Subject); err != nil { 1895 invalidParams.AddNested("Subject", err.(smithy.InvalidParamsError)) 1896 } 1897 } 1898 if v.Body == nil { 1899 invalidParams.Add(smithy.NewErrParamRequired("Body")) 1900 } else if v.Body != nil { 1901 if err := validateBody(v.Body); err != nil { 1902 invalidParams.AddNested("Body", err.(smithy.InvalidParamsError)) 1903 } 1904 } 1905 if invalidParams.Len() > 0 { 1906 return invalidParams 1907 } else { 1908 return nil 1909 } 1910} 1911 1912func validateMessageTag(v *types.MessageTag) error { 1913 if v == nil { 1914 return nil 1915 } 1916 invalidParams := smithy.InvalidParamsError{Context: "MessageTag"} 1917 if v.Name == nil { 1918 invalidParams.Add(smithy.NewErrParamRequired("Name")) 1919 } 1920 if v.Value == nil { 1921 invalidParams.Add(smithy.NewErrParamRequired("Value")) 1922 } 1923 if invalidParams.Len() > 0 { 1924 return invalidParams 1925 } else { 1926 return nil 1927 } 1928} 1929 1930func validateMessageTagList(v []types.MessageTag) error { 1931 if v == nil { 1932 return nil 1933 } 1934 invalidParams := smithy.InvalidParamsError{Context: "MessageTagList"} 1935 for i := range v { 1936 if err := validateMessageTag(&v[i]); err != nil { 1937 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 1938 } 1939 } 1940 if invalidParams.Len() > 0 { 1941 return invalidParams 1942 } else { 1943 return nil 1944 } 1945} 1946 1947func validateRawMessage(v *types.RawMessage) error { 1948 if v == nil { 1949 return nil 1950 } 1951 invalidParams := smithy.InvalidParamsError{Context: "RawMessage"} 1952 if v.Data == nil { 1953 invalidParams.Add(smithy.NewErrParamRequired("Data")) 1954 } 1955 if invalidParams.Len() > 0 { 1956 return invalidParams 1957 } else { 1958 return nil 1959 } 1960} 1961 1962func validateSnsDestination(v *types.SnsDestination) error { 1963 if v == nil { 1964 return nil 1965 } 1966 invalidParams := smithy.InvalidParamsError{Context: "SnsDestination"} 1967 if v.TopicArn == nil { 1968 invalidParams.Add(smithy.NewErrParamRequired("TopicArn")) 1969 } 1970 if invalidParams.Len() > 0 { 1971 return invalidParams 1972 } else { 1973 return nil 1974 } 1975} 1976 1977func validateSuppressionListDestination(v *types.SuppressionListDestination) error { 1978 if v == nil { 1979 return nil 1980 } 1981 invalidParams := smithy.InvalidParamsError{Context: "SuppressionListDestination"} 1982 if len(v.SuppressionListImportAction) == 0 { 1983 invalidParams.Add(smithy.NewErrParamRequired("SuppressionListImportAction")) 1984 } 1985 if invalidParams.Len() > 0 { 1986 return invalidParams 1987 } else { 1988 return nil 1989 } 1990} 1991 1992func validateTag(v *types.Tag) error { 1993 if v == nil { 1994 return nil 1995 } 1996 invalidParams := smithy.InvalidParamsError{Context: "Tag"} 1997 if v.Key == nil { 1998 invalidParams.Add(smithy.NewErrParamRequired("Key")) 1999 } 2000 if v.Value == nil { 2001 invalidParams.Add(smithy.NewErrParamRequired("Value")) 2002 } 2003 if invalidParams.Len() > 0 { 2004 return invalidParams 2005 } else { 2006 return nil 2007 } 2008} 2009 2010func validateTagList(v []types.Tag) error { 2011 if v == nil { 2012 return nil 2013 } 2014 invalidParams := smithy.InvalidParamsError{Context: "TagList"} 2015 for i := range v { 2016 if err := validateTag(&v[i]); err != nil { 2017 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 2018 } 2019 } 2020 if invalidParams.Len() > 0 { 2021 return invalidParams 2022 } else { 2023 return nil 2024 } 2025} 2026 2027func validateTopic(v *types.Topic) error { 2028 if v == nil { 2029 return nil 2030 } 2031 invalidParams := smithy.InvalidParamsError{Context: "Topic"} 2032 if v.TopicName == nil { 2033 invalidParams.Add(smithy.NewErrParamRequired("TopicName")) 2034 } 2035 if v.DisplayName == nil { 2036 invalidParams.Add(smithy.NewErrParamRequired("DisplayName")) 2037 } 2038 if len(v.DefaultSubscriptionStatus) == 0 { 2039 invalidParams.Add(smithy.NewErrParamRequired("DefaultSubscriptionStatus")) 2040 } 2041 if invalidParams.Len() > 0 { 2042 return invalidParams 2043 } else { 2044 return nil 2045 } 2046} 2047 2048func validateTopicPreference(v *types.TopicPreference) error { 2049 if v == nil { 2050 return nil 2051 } 2052 invalidParams := smithy.InvalidParamsError{Context: "TopicPreference"} 2053 if v.TopicName == nil { 2054 invalidParams.Add(smithy.NewErrParamRequired("TopicName")) 2055 } 2056 if len(v.SubscriptionStatus) == 0 { 2057 invalidParams.Add(smithy.NewErrParamRequired("SubscriptionStatus")) 2058 } 2059 if invalidParams.Len() > 0 { 2060 return invalidParams 2061 } else { 2062 return nil 2063 } 2064} 2065 2066func validateTopicPreferenceList(v []types.TopicPreference) error { 2067 if v == nil { 2068 return nil 2069 } 2070 invalidParams := smithy.InvalidParamsError{Context: "TopicPreferenceList"} 2071 for i := range v { 2072 if err := validateTopicPreference(&v[i]); err != nil { 2073 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 2074 } 2075 } 2076 if invalidParams.Len() > 0 { 2077 return invalidParams 2078 } else { 2079 return nil 2080 } 2081} 2082 2083func validateTopics(v []types.Topic) error { 2084 if v == nil { 2085 return nil 2086 } 2087 invalidParams := smithy.InvalidParamsError{Context: "Topics"} 2088 for i := range v { 2089 if err := validateTopic(&v[i]); err != nil { 2090 invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) 2091 } 2092 } 2093 if invalidParams.Len() > 0 { 2094 return invalidParams 2095 } else { 2096 return nil 2097 } 2098} 2099 2100func validateTrackingOptions(v *types.TrackingOptions) error { 2101 if v == nil { 2102 return nil 2103 } 2104 invalidParams := smithy.InvalidParamsError{Context: "TrackingOptions"} 2105 if v.CustomRedirectDomain == nil { 2106 invalidParams.Add(smithy.NewErrParamRequired("CustomRedirectDomain")) 2107 } 2108 if invalidParams.Len() > 0 { 2109 return invalidParams 2110 } else { 2111 return nil 2112 } 2113} 2114 2115func validateOpCreateConfigurationSetEventDestinationInput(v *CreateConfigurationSetEventDestinationInput) error { 2116 if v == nil { 2117 return nil 2118 } 2119 invalidParams := smithy.InvalidParamsError{Context: "CreateConfigurationSetEventDestinationInput"} 2120 if v.ConfigurationSetName == nil { 2121 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2122 } 2123 if v.EventDestinationName == nil { 2124 invalidParams.Add(smithy.NewErrParamRequired("EventDestinationName")) 2125 } 2126 if v.EventDestination == nil { 2127 invalidParams.Add(smithy.NewErrParamRequired("EventDestination")) 2128 } else if v.EventDestination != nil { 2129 if err := validateEventDestinationDefinition(v.EventDestination); err != nil { 2130 invalidParams.AddNested("EventDestination", err.(smithy.InvalidParamsError)) 2131 } 2132 } 2133 if invalidParams.Len() > 0 { 2134 return invalidParams 2135 } else { 2136 return nil 2137 } 2138} 2139 2140func validateOpCreateConfigurationSetInput(v *CreateConfigurationSetInput) error { 2141 if v == nil { 2142 return nil 2143 } 2144 invalidParams := smithy.InvalidParamsError{Context: "CreateConfigurationSetInput"} 2145 if v.ConfigurationSetName == nil { 2146 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2147 } 2148 if v.TrackingOptions != nil { 2149 if err := validateTrackingOptions(v.TrackingOptions); err != nil { 2150 invalidParams.AddNested("TrackingOptions", err.(smithy.InvalidParamsError)) 2151 } 2152 } 2153 if v.Tags != nil { 2154 if err := validateTagList(v.Tags); err != nil { 2155 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2156 } 2157 } 2158 if invalidParams.Len() > 0 { 2159 return invalidParams 2160 } else { 2161 return nil 2162 } 2163} 2164 2165func validateOpCreateContactInput(v *CreateContactInput) error { 2166 if v == nil { 2167 return nil 2168 } 2169 invalidParams := smithy.InvalidParamsError{Context: "CreateContactInput"} 2170 if v.ContactListName == nil { 2171 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2172 } 2173 if v.EmailAddress == nil { 2174 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 2175 } 2176 if v.TopicPreferences != nil { 2177 if err := validateTopicPreferenceList(v.TopicPreferences); err != nil { 2178 invalidParams.AddNested("TopicPreferences", err.(smithy.InvalidParamsError)) 2179 } 2180 } 2181 if invalidParams.Len() > 0 { 2182 return invalidParams 2183 } else { 2184 return nil 2185 } 2186} 2187 2188func validateOpCreateContactListInput(v *CreateContactListInput) error { 2189 if v == nil { 2190 return nil 2191 } 2192 invalidParams := smithy.InvalidParamsError{Context: "CreateContactListInput"} 2193 if v.ContactListName == nil { 2194 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2195 } 2196 if v.Topics != nil { 2197 if err := validateTopics(v.Topics); err != nil { 2198 invalidParams.AddNested("Topics", err.(smithy.InvalidParamsError)) 2199 } 2200 } 2201 if v.Tags != nil { 2202 if err := validateTagList(v.Tags); err != nil { 2203 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2204 } 2205 } 2206 if invalidParams.Len() > 0 { 2207 return invalidParams 2208 } else { 2209 return nil 2210 } 2211} 2212 2213func validateOpCreateCustomVerificationEmailTemplateInput(v *CreateCustomVerificationEmailTemplateInput) error { 2214 if v == nil { 2215 return nil 2216 } 2217 invalidParams := smithy.InvalidParamsError{Context: "CreateCustomVerificationEmailTemplateInput"} 2218 if v.TemplateName == nil { 2219 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2220 } 2221 if v.FromEmailAddress == nil { 2222 invalidParams.Add(smithy.NewErrParamRequired("FromEmailAddress")) 2223 } 2224 if v.TemplateSubject == nil { 2225 invalidParams.Add(smithy.NewErrParamRequired("TemplateSubject")) 2226 } 2227 if v.TemplateContent == nil { 2228 invalidParams.Add(smithy.NewErrParamRequired("TemplateContent")) 2229 } 2230 if v.SuccessRedirectionURL == nil { 2231 invalidParams.Add(smithy.NewErrParamRequired("SuccessRedirectionURL")) 2232 } 2233 if v.FailureRedirectionURL == nil { 2234 invalidParams.Add(smithy.NewErrParamRequired("FailureRedirectionURL")) 2235 } 2236 if invalidParams.Len() > 0 { 2237 return invalidParams 2238 } else { 2239 return nil 2240 } 2241} 2242 2243func validateOpCreateDedicatedIpPoolInput(v *CreateDedicatedIpPoolInput) error { 2244 if v == nil { 2245 return nil 2246 } 2247 invalidParams := smithy.InvalidParamsError{Context: "CreateDedicatedIpPoolInput"} 2248 if v.PoolName == nil { 2249 invalidParams.Add(smithy.NewErrParamRequired("PoolName")) 2250 } 2251 if v.Tags != nil { 2252 if err := validateTagList(v.Tags); err != nil { 2253 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2254 } 2255 } 2256 if invalidParams.Len() > 0 { 2257 return invalidParams 2258 } else { 2259 return nil 2260 } 2261} 2262 2263func validateOpCreateDeliverabilityTestReportInput(v *CreateDeliverabilityTestReportInput) error { 2264 if v == nil { 2265 return nil 2266 } 2267 invalidParams := smithy.InvalidParamsError{Context: "CreateDeliverabilityTestReportInput"} 2268 if v.FromEmailAddress == nil { 2269 invalidParams.Add(smithy.NewErrParamRequired("FromEmailAddress")) 2270 } 2271 if v.Content == nil { 2272 invalidParams.Add(smithy.NewErrParamRequired("Content")) 2273 } else if v.Content != nil { 2274 if err := validateEmailContent(v.Content); err != nil { 2275 invalidParams.AddNested("Content", err.(smithy.InvalidParamsError)) 2276 } 2277 } 2278 if v.Tags != nil { 2279 if err := validateTagList(v.Tags); err != nil { 2280 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2281 } 2282 } 2283 if invalidParams.Len() > 0 { 2284 return invalidParams 2285 } else { 2286 return nil 2287 } 2288} 2289 2290func validateOpCreateEmailIdentityInput(v *CreateEmailIdentityInput) error { 2291 if v == nil { 2292 return nil 2293 } 2294 invalidParams := smithy.InvalidParamsError{Context: "CreateEmailIdentityInput"} 2295 if v.EmailIdentity == nil { 2296 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2297 } 2298 if v.Tags != nil { 2299 if err := validateTagList(v.Tags); err != nil { 2300 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 2301 } 2302 } 2303 if v.DkimSigningAttributes != nil { 2304 if err := validateDkimSigningAttributes(v.DkimSigningAttributes); err != nil { 2305 invalidParams.AddNested("DkimSigningAttributes", err.(smithy.InvalidParamsError)) 2306 } 2307 } 2308 if invalidParams.Len() > 0 { 2309 return invalidParams 2310 } else { 2311 return nil 2312 } 2313} 2314 2315func validateOpCreateEmailIdentityPolicyInput(v *CreateEmailIdentityPolicyInput) error { 2316 if v == nil { 2317 return nil 2318 } 2319 invalidParams := smithy.InvalidParamsError{Context: "CreateEmailIdentityPolicyInput"} 2320 if v.EmailIdentity == nil { 2321 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2322 } 2323 if v.PolicyName == nil { 2324 invalidParams.Add(smithy.NewErrParamRequired("PolicyName")) 2325 } 2326 if v.Policy == nil { 2327 invalidParams.Add(smithy.NewErrParamRequired("Policy")) 2328 } 2329 if invalidParams.Len() > 0 { 2330 return invalidParams 2331 } else { 2332 return nil 2333 } 2334} 2335 2336func validateOpCreateEmailTemplateInput(v *CreateEmailTemplateInput) error { 2337 if v == nil { 2338 return nil 2339 } 2340 invalidParams := smithy.InvalidParamsError{Context: "CreateEmailTemplateInput"} 2341 if v.TemplateName == nil { 2342 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2343 } 2344 if v.TemplateContent == nil { 2345 invalidParams.Add(smithy.NewErrParamRequired("TemplateContent")) 2346 } 2347 if invalidParams.Len() > 0 { 2348 return invalidParams 2349 } else { 2350 return nil 2351 } 2352} 2353 2354func validateOpCreateImportJobInput(v *CreateImportJobInput) error { 2355 if v == nil { 2356 return nil 2357 } 2358 invalidParams := smithy.InvalidParamsError{Context: "CreateImportJobInput"} 2359 if v.ImportDestination == nil { 2360 invalidParams.Add(smithy.NewErrParamRequired("ImportDestination")) 2361 } else if v.ImportDestination != nil { 2362 if err := validateImportDestination(v.ImportDestination); err != nil { 2363 invalidParams.AddNested("ImportDestination", err.(smithy.InvalidParamsError)) 2364 } 2365 } 2366 if v.ImportDataSource == nil { 2367 invalidParams.Add(smithy.NewErrParamRequired("ImportDataSource")) 2368 } else if v.ImportDataSource != nil { 2369 if err := validateImportDataSource(v.ImportDataSource); err != nil { 2370 invalidParams.AddNested("ImportDataSource", err.(smithy.InvalidParamsError)) 2371 } 2372 } 2373 if invalidParams.Len() > 0 { 2374 return invalidParams 2375 } else { 2376 return nil 2377 } 2378} 2379 2380func validateOpDeleteConfigurationSetEventDestinationInput(v *DeleteConfigurationSetEventDestinationInput) error { 2381 if v == nil { 2382 return nil 2383 } 2384 invalidParams := smithy.InvalidParamsError{Context: "DeleteConfigurationSetEventDestinationInput"} 2385 if v.ConfigurationSetName == nil { 2386 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2387 } 2388 if v.EventDestinationName == nil { 2389 invalidParams.Add(smithy.NewErrParamRequired("EventDestinationName")) 2390 } 2391 if invalidParams.Len() > 0 { 2392 return invalidParams 2393 } else { 2394 return nil 2395 } 2396} 2397 2398func validateOpDeleteConfigurationSetInput(v *DeleteConfigurationSetInput) error { 2399 if v == nil { 2400 return nil 2401 } 2402 invalidParams := smithy.InvalidParamsError{Context: "DeleteConfigurationSetInput"} 2403 if v.ConfigurationSetName == nil { 2404 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2405 } 2406 if invalidParams.Len() > 0 { 2407 return invalidParams 2408 } else { 2409 return nil 2410 } 2411} 2412 2413func validateOpDeleteContactInput(v *DeleteContactInput) error { 2414 if v == nil { 2415 return nil 2416 } 2417 invalidParams := smithy.InvalidParamsError{Context: "DeleteContactInput"} 2418 if v.ContactListName == nil { 2419 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2420 } 2421 if v.EmailAddress == nil { 2422 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 2423 } 2424 if invalidParams.Len() > 0 { 2425 return invalidParams 2426 } else { 2427 return nil 2428 } 2429} 2430 2431func validateOpDeleteContactListInput(v *DeleteContactListInput) error { 2432 if v == nil { 2433 return nil 2434 } 2435 invalidParams := smithy.InvalidParamsError{Context: "DeleteContactListInput"} 2436 if v.ContactListName == nil { 2437 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2438 } 2439 if invalidParams.Len() > 0 { 2440 return invalidParams 2441 } else { 2442 return nil 2443 } 2444} 2445 2446func validateOpDeleteCustomVerificationEmailTemplateInput(v *DeleteCustomVerificationEmailTemplateInput) error { 2447 if v == nil { 2448 return nil 2449 } 2450 invalidParams := smithy.InvalidParamsError{Context: "DeleteCustomVerificationEmailTemplateInput"} 2451 if v.TemplateName == nil { 2452 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2453 } 2454 if invalidParams.Len() > 0 { 2455 return invalidParams 2456 } else { 2457 return nil 2458 } 2459} 2460 2461func validateOpDeleteDedicatedIpPoolInput(v *DeleteDedicatedIpPoolInput) error { 2462 if v == nil { 2463 return nil 2464 } 2465 invalidParams := smithy.InvalidParamsError{Context: "DeleteDedicatedIpPoolInput"} 2466 if v.PoolName == nil { 2467 invalidParams.Add(smithy.NewErrParamRequired("PoolName")) 2468 } 2469 if invalidParams.Len() > 0 { 2470 return invalidParams 2471 } else { 2472 return nil 2473 } 2474} 2475 2476func validateOpDeleteEmailIdentityInput(v *DeleteEmailIdentityInput) error { 2477 if v == nil { 2478 return nil 2479 } 2480 invalidParams := smithy.InvalidParamsError{Context: "DeleteEmailIdentityInput"} 2481 if v.EmailIdentity == nil { 2482 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2483 } 2484 if invalidParams.Len() > 0 { 2485 return invalidParams 2486 } else { 2487 return nil 2488 } 2489} 2490 2491func validateOpDeleteEmailIdentityPolicyInput(v *DeleteEmailIdentityPolicyInput) error { 2492 if v == nil { 2493 return nil 2494 } 2495 invalidParams := smithy.InvalidParamsError{Context: "DeleteEmailIdentityPolicyInput"} 2496 if v.EmailIdentity == nil { 2497 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2498 } 2499 if v.PolicyName == nil { 2500 invalidParams.Add(smithy.NewErrParamRequired("PolicyName")) 2501 } 2502 if invalidParams.Len() > 0 { 2503 return invalidParams 2504 } else { 2505 return nil 2506 } 2507} 2508 2509func validateOpDeleteEmailTemplateInput(v *DeleteEmailTemplateInput) error { 2510 if v == nil { 2511 return nil 2512 } 2513 invalidParams := smithy.InvalidParamsError{Context: "DeleteEmailTemplateInput"} 2514 if v.TemplateName == nil { 2515 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2516 } 2517 if invalidParams.Len() > 0 { 2518 return invalidParams 2519 } else { 2520 return nil 2521 } 2522} 2523 2524func validateOpDeleteSuppressedDestinationInput(v *DeleteSuppressedDestinationInput) error { 2525 if v == nil { 2526 return nil 2527 } 2528 invalidParams := smithy.InvalidParamsError{Context: "DeleteSuppressedDestinationInput"} 2529 if v.EmailAddress == nil { 2530 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 2531 } 2532 if invalidParams.Len() > 0 { 2533 return invalidParams 2534 } else { 2535 return nil 2536 } 2537} 2538 2539func validateOpGetBlacklistReportsInput(v *GetBlacklistReportsInput) error { 2540 if v == nil { 2541 return nil 2542 } 2543 invalidParams := smithy.InvalidParamsError{Context: "GetBlacklistReportsInput"} 2544 if v.BlacklistItemNames == nil { 2545 invalidParams.Add(smithy.NewErrParamRequired("BlacklistItemNames")) 2546 } 2547 if invalidParams.Len() > 0 { 2548 return invalidParams 2549 } else { 2550 return nil 2551 } 2552} 2553 2554func validateOpGetConfigurationSetEventDestinationsInput(v *GetConfigurationSetEventDestinationsInput) error { 2555 if v == nil { 2556 return nil 2557 } 2558 invalidParams := smithy.InvalidParamsError{Context: "GetConfigurationSetEventDestinationsInput"} 2559 if v.ConfigurationSetName == nil { 2560 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2561 } 2562 if invalidParams.Len() > 0 { 2563 return invalidParams 2564 } else { 2565 return nil 2566 } 2567} 2568 2569func validateOpGetConfigurationSetInput(v *GetConfigurationSetInput) error { 2570 if v == nil { 2571 return nil 2572 } 2573 invalidParams := smithy.InvalidParamsError{Context: "GetConfigurationSetInput"} 2574 if v.ConfigurationSetName == nil { 2575 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2576 } 2577 if invalidParams.Len() > 0 { 2578 return invalidParams 2579 } else { 2580 return nil 2581 } 2582} 2583 2584func validateOpGetContactInput(v *GetContactInput) error { 2585 if v == nil { 2586 return nil 2587 } 2588 invalidParams := smithy.InvalidParamsError{Context: "GetContactInput"} 2589 if v.ContactListName == nil { 2590 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2591 } 2592 if v.EmailAddress == nil { 2593 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 2594 } 2595 if invalidParams.Len() > 0 { 2596 return invalidParams 2597 } else { 2598 return nil 2599 } 2600} 2601 2602func validateOpGetContactListInput(v *GetContactListInput) error { 2603 if v == nil { 2604 return nil 2605 } 2606 invalidParams := smithy.InvalidParamsError{Context: "GetContactListInput"} 2607 if v.ContactListName == nil { 2608 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2609 } 2610 if invalidParams.Len() > 0 { 2611 return invalidParams 2612 } else { 2613 return nil 2614 } 2615} 2616 2617func validateOpGetCustomVerificationEmailTemplateInput(v *GetCustomVerificationEmailTemplateInput) error { 2618 if v == nil { 2619 return nil 2620 } 2621 invalidParams := smithy.InvalidParamsError{Context: "GetCustomVerificationEmailTemplateInput"} 2622 if v.TemplateName == nil { 2623 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2624 } 2625 if invalidParams.Len() > 0 { 2626 return invalidParams 2627 } else { 2628 return nil 2629 } 2630} 2631 2632func validateOpGetDedicatedIpInput(v *GetDedicatedIpInput) error { 2633 if v == nil { 2634 return nil 2635 } 2636 invalidParams := smithy.InvalidParamsError{Context: "GetDedicatedIpInput"} 2637 if v.Ip == nil { 2638 invalidParams.Add(smithy.NewErrParamRequired("Ip")) 2639 } 2640 if invalidParams.Len() > 0 { 2641 return invalidParams 2642 } else { 2643 return nil 2644 } 2645} 2646 2647func validateOpGetDeliverabilityTestReportInput(v *GetDeliverabilityTestReportInput) error { 2648 if v == nil { 2649 return nil 2650 } 2651 invalidParams := smithy.InvalidParamsError{Context: "GetDeliverabilityTestReportInput"} 2652 if v.ReportId == nil { 2653 invalidParams.Add(smithy.NewErrParamRequired("ReportId")) 2654 } 2655 if invalidParams.Len() > 0 { 2656 return invalidParams 2657 } else { 2658 return nil 2659 } 2660} 2661 2662func validateOpGetDomainDeliverabilityCampaignInput(v *GetDomainDeliverabilityCampaignInput) error { 2663 if v == nil { 2664 return nil 2665 } 2666 invalidParams := smithy.InvalidParamsError{Context: "GetDomainDeliverabilityCampaignInput"} 2667 if v.CampaignId == nil { 2668 invalidParams.Add(smithy.NewErrParamRequired("CampaignId")) 2669 } 2670 if invalidParams.Len() > 0 { 2671 return invalidParams 2672 } else { 2673 return nil 2674 } 2675} 2676 2677func validateOpGetDomainStatisticsReportInput(v *GetDomainStatisticsReportInput) error { 2678 if v == nil { 2679 return nil 2680 } 2681 invalidParams := smithy.InvalidParamsError{Context: "GetDomainStatisticsReportInput"} 2682 if v.Domain == nil { 2683 invalidParams.Add(smithy.NewErrParamRequired("Domain")) 2684 } 2685 if v.StartDate == nil { 2686 invalidParams.Add(smithy.NewErrParamRequired("StartDate")) 2687 } 2688 if v.EndDate == nil { 2689 invalidParams.Add(smithy.NewErrParamRequired("EndDate")) 2690 } 2691 if invalidParams.Len() > 0 { 2692 return invalidParams 2693 } else { 2694 return nil 2695 } 2696} 2697 2698func validateOpGetEmailIdentityInput(v *GetEmailIdentityInput) error { 2699 if v == nil { 2700 return nil 2701 } 2702 invalidParams := smithy.InvalidParamsError{Context: "GetEmailIdentityInput"} 2703 if v.EmailIdentity == nil { 2704 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2705 } 2706 if invalidParams.Len() > 0 { 2707 return invalidParams 2708 } else { 2709 return nil 2710 } 2711} 2712 2713func validateOpGetEmailIdentityPoliciesInput(v *GetEmailIdentityPoliciesInput) error { 2714 if v == nil { 2715 return nil 2716 } 2717 invalidParams := smithy.InvalidParamsError{Context: "GetEmailIdentityPoliciesInput"} 2718 if v.EmailIdentity == nil { 2719 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2720 } 2721 if invalidParams.Len() > 0 { 2722 return invalidParams 2723 } else { 2724 return nil 2725 } 2726} 2727 2728func validateOpGetEmailTemplateInput(v *GetEmailTemplateInput) error { 2729 if v == nil { 2730 return nil 2731 } 2732 invalidParams := smithy.InvalidParamsError{Context: "GetEmailTemplateInput"} 2733 if v.TemplateName == nil { 2734 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 2735 } 2736 if invalidParams.Len() > 0 { 2737 return invalidParams 2738 } else { 2739 return nil 2740 } 2741} 2742 2743func validateOpGetImportJobInput(v *GetImportJobInput) error { 2744 if v == nil { 2745 return nil 2746 } 2747 invalidParams := smithy.InvalidParamsError{Context: "GetImportJobInput"} 2748 if v.JobId == nil { 2749 invalidParams.Add(smithy.NewErrParamRequired("JobId")) 2750 } 2751 if invalidParams.Len() > 0 { 2752 return invalidParams 2753 } else { 2754 return nil 2755 } 2756} 2757 2758func validateOpGetSuppressedDestinationInput(v *GetSuppressedDestinationInput) error { 2759 if v == nil { 2760 return nil 2761 } 2762 invalidParams := smithy.InvalidParamsError{Context: "GetSuppressedDestinationInput"} 2763 if v.EmailAddress == nil { 2764 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 2765 } 2766 if invalidParams.Len() > 0 { 2767 return invalidParams 2768 } else { 2769 return nil 2770 } 2771} 2772 2773func validateOpListContactsInput(v *ListContactsInput) error { 2774 if v == nil { 2775 return nil 2776 } 2777 invalidParams := smithy.InvalidParamsError{Context: "ListContactsInput"} 2778 if v.ContactListName == nil { 2779 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 2780 } 2781 if invalidParams.Len() > 0 { 2782 return invalidParams 2783 } else { 2784 return nil 2785 } 2786} 2787 2788func validateOpListDomainDeliverabilityCampaignsInput(v *ListDomainDeliverabilityCampaignsInput) error { 2789 if v == nil { 2790 return nil 2791 } 2792 invalidParams := smithy.InvalidParamsError{Context: "ListDomainDeliverabilityCampaignsInput"} 2793 if v.StartDate == nil { 2794 invalidParams.Add(smithy.NewErrParamRequired("StartDate")) 2795 } 2796 if v.EndDate == nil { 2797 invalidParams.Add(smithy.NewErrParamRequired("EndDate")) 2798 } 2799 if v.SubscribedDomain == nil { 2800 invalidParams.Add(smithy.NewErrParamRequired("SubscribedDomain")) 2801 } 2802 if invalidParams.Len() > 0 { 2803 return invalidParams 2804 } else { 2805 return nil 2806 } 2807} 2808 2809func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { 2810 if v == nil { 2811 return nil 2812 } 2813 invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} 2814 if v.ResourceArn == nil { 2815 invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) 2816 } 2817 if invalidParams.Len() > 0 { 2818 return invalidParams 2819 } else { 2820 return nil 2821 } 2822} 2823 2824func validateOpPutAccountDetailsInput(v *PutAccountDetailsInput) error { 2825 if v == nil { 2826 return nil 2827 } 2828 invalidParams := smithy.InvalidParamsError{Context: "PutAccountDetailsInput"} 2829 if len(v.MailType) == 0 { 2830 invalidParams.Add(smithy.NewErrParamRequired("MailType")) 2831 } 2832 if v.WebsiteURL == nil { 2833 invalidParams.Add(smithy.NewErrParamRequired("WebsiteURL")) 2834 } 2835 if v.UseCaseDescription == nil { 2836 invalidParams.Add(smithy.NewErrParamRequired("UseCaseDescription")) 2837 } 2838 if invalidParams.Len() > 0 { 2839 return invalidParams 2840 } else { 2841 return nil 2842 } 2843} 2844 2845func validateOpPutConfigurationSetDeliveryOptionsInput(v *PutConfigurationSetDeliveryOptionsInput) error { 2846 if v == nil { 2847 return nil 2848 } 2849 invalidParams := smithy.InvalidParamsError{Context: "PutConfigurationSetDeliveryOptionsInput"} 2850 if v.ConfigurationSetName == nil { 2851 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2852 } 2853 if invalidParams.Len() > 0 { 2854 return invalidParams 2855 } else { 2856 return nil 2857 } 2858} 2859 2860func validateOpPutConfigurationSetReputationOptionsInput(v *PutConfigurationSetReputationOptionsInput) error { 2861 if v == nil { 2862 return nil 2863 } 2864 invalidParams := smithy.InvalidParamsError{Context: "PutConfigurationSetReputationOptionsInput"} 2865 if v.ConfigurationSetName == nil { 2866 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2867 } 2868 if invalidParams.Len() > 0 { 2869 return invalidParams 2870 } else { 2871 return nil 2872 } 2873} 2874 2875func validateOpPutConfigurationSetSendingOptionsInput(v *PutConfigurationSetSendingOptionsInput) error { 2876 if v == nil { 2877 return nil 2878 } 2879 invalidParams := smithy.InvalidParamsError{Context: "PutConfigurationSetSendingOptionsInput"} 2880 if v.ConfigurationSetName == nil { 2881 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2882 } 2883 if invalidParams.Len() > 0 { 2884 return invalidParams 2885 } else { 2886 return nil 2887 } 2888} 2889 2890func validateOpPutConfigurationSetSuppressionOptionsInput(v *PutConfigurationSetSuppressionOptionsInput) error { 2891 if v == nil { 2892 return nil 2893 } 2894 invalidParams := smithy.InvalidParamsError{Context: "PutConfigurationSetSuppressionOptionsInput"} 2895 if v.ConfigurationSetName == nil { 2896 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2897 } 2898 if invalidParams.Len() > 0 { 2899 return invalidParams 2900 } else { 2901 return nil 2902 } 2903} 2904 2905func validateOpPutConfigurationSetTrackingOptionsInput(v *PutConfigurationSetTrackingOptionsInput) error { 2906 if v == nil { 2907 return nil 2908 } 2909 invalidParams := smithy.InvalidParamsError{Context: "PutConfigurationSetTrackingOptionsInput"} 2910 if v.ConfigurationSetName == nil { 2911 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 2912 } 2913 if invalidParams.Len() > 0 { 2914 return invalidParams 2915 } else { 2916 return nil 2917 } 2918} 2919 2920func validateOpPutDedicatedIpInPoolInput(v *PutDedicatedIpInPoolInput) error { 2921 if v == nil { 2922 return nil 2923 } 2924 invalidParams := smithy.InvalidParamsError{Context: "PutDedicatedIpInPoolInput"} 2925 if v.Ip == nil { 2926 invalidParams.Add(smithy.NewErrParamRequired("Ip")) 2927 } 2928 if v.DestinationPoolName == nil { 2929 invalidParams.Add(smithy.NewErrParamRequired("DestinationPoolName")) 2930 } 2931 if invalidParams.Len() > 0 { 2932 return invalidParams 2933 } else { 2934 return nil 2935 } 2936} 2937 2938func validateOpPutDedicatedIpWarmupAttributesInput(v *PutDedicatedIpWarmupAttributesInput) error { 2939 if v == nil { 2940 return nil 2941 } 2942 invalidParams := smithy.InvalidParamsError{Context: "PutDedicatedIpWarmupAttributesInput"} 2943 if v.Ip == nil { 2944 invalidParams.Add(smithy.NewErrParamRequired("Ip")) 2945 } 2946 if v.WarmupPercentage == nil { 2947 invalidParams.Add(smithy.NewErrParamRequired("WarmupPercentage")) 2948 } 2949 if invalidParams.Len() > 0 { 2950 return invalidParams 2951 } else { 2952 return nil 2953 } 2954} 2955 2956func validateOpPutDeliverabilityDashboardOptionInput(v *PutDeliverabilityDashboardOptionInput) error { 2957 if v == nil { 2958 return nil 2959 } 2960 invalidParams := smithy.InvalidParamsError{Context: "PutDeliverabilityDashboardOptionInput"} 2961 if invalidParams.Len() > 0 { 2962 return invalidParams 2963 } else { 2964 return nil 2965 } 2966} 2967 2968func validateOpPutEmailIdentityConfigurationSetAttributesInput(v *PutEmailIdentityConfigurationSetAttributesInput) error { 2969 if v == nil { 2970 return nil 2971 } 2972 invalidParams := smithy.InvalidParamsError{Context: "PutEmailIdentityConfigurationSetAttributesInput"} 2973 if v.EmailIdentity == nil { 2974 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2975 } 2976 if invalidParams.Len() > 0 { 2977 return invalidParams 2978 } else { 2979 return nil 2980 } 2981} 2982 2983func validateOpPutEmailIdentityDkimAttributesInput(v *PutEmailIdentityDkimAttributesInput) error { 2984 if v == nil { 2985 return nil 2986 } 2987 invalidParams := smithy.InvalidParamsError{Context: "PutEmailIdentityDkimAttributesInput"} 2988 if v.EmailIdentity == nil { 2989 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 2990 } 2991 if invalidParams.Len() > 0 { 2992 return invalidParams 2993 } else { 2994 return nil 2995 } 2996} 2997 2998func validateOpPutEmailIdentityDkimSigningAttributesInput(v *PutEmailIdentityDkimSigningAttributesInput) error { 2999 if v == nil { 3000 return nil 3001 } 3002 invalidParams := smithy.InvalidParamsError{Context: "PutEmailIdentityDkimSigningAttributesInput"} 3003 if v.EmailIdentity == nil { 3004 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 3005 } 3006 if len(v.SigningAttributesOrigin) == 0 { 3007 invalidParams.Add(smithy.NewErrParamRequired("SigningAttributesOrigin")) 3008 } 3009 if v.SigningAttributes != nil { 3010 if err := validateDkimSigningAttributes(v.SigningAttributes); err != nil { 3011 invalidParams.AddNested("SigningAttributes", err.(smithy.InvalidParamsError)) 3012 } 3013 } 3014 if invalidParams.Len() > 0 { 3015 return invalidParams 3016 } else { 3017 return nil 3018 } 3019} 3020 3021func validateOpPutEmailIdentityFeedbackAttributesInput(v *PutEmailIdentityFeedbackAttributesInput) error { 3022 if v == nil { 3023 return nil 3024 } 3025 invalidParams := smithy.InvalidParamsError{Context: "PutEmailIdentityFeedbackAttributesInput"} 3026 if v.EmailIdentity == nil { 3027 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 3028 } 3029 if invalidParams.Len() > 0 { 3030 return invalidParams 3031 } else { 3032 return nil 3033 } 3034} 3035 3036func validateOpPutEmailIdentityMailFromAttributesInput(v *PutEmailIdentityMailFromAttributesInput) error { 3037 if v == nil { 3038 return nil 3039 } 3040 invalidParams := smithy.InvalidParamsError{Context: "PutEmailIdentityMailFromAttributesInput"} 3041 if v.EmailIdentity == nil { 3042 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 3043 } 3044 if invalidParams.Len() > 0 { 3045 return invalidParams 3046 } else { 3047 return nil 3048 } 3049} 3050 3051func validateOpPutSuppressedDestinationInput(v *PutSuppressedDestinationInput) error { 3052 if v == nil { 3053 return nil 3054 } 3055 invalidParams := smithy.InvalidParamsError{Context: "PutSuppressedDestinationInput"} 3056 if v.EmailAddress == nil { 3057 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 3058 } 3059 if len(v.Reason) == 0 { 3060 invalidParams.Add(smithy.NewErrParamRequired("Reason")) 3061 } 3062 if invalidParams.Len() > 0 { 3063 return invalidParams 3064 } else { 3065 return nil 3066 } 3067} 3068 3069func validateOpSendBulkEmailInput(v *SendBulkEmailInput) error { 3070 if v == nil { 3071 return nil 3072 } 3073 invalidParams := smithy.InvalidParamsError{Context: "SendBulkEmailInput"} 3074 if v.DefaultEmailTags != nil { 3075 if err := validateMessageTagList(v.DefaultEmailTags); err != nil { 3076 invalidParams.AddNested("DefaultEmailTags", err.(smithy.InvalidParamsError)) 3077 } 3078 } 3079 if v.DefaultContent == nil { 3080 invalidParams.Add(smithy.NewErrParamRequired("DefaultContent")) 3081 } 3082 if v.BulkEmailEntries == nil { 3083 invalidParams.Add(smithy.NewErrParamRequired("BulkEmailEntries")) 3084 } else if v.BulkEmailEntries != nil { 3085 if err := validateBulkEmailEntryList(v.BulkEmailEntries); err != nil { 3086 invalidParams.AddNested("BulkEmailEntries", err.(smithy.InvalidParamsError)) 3087 } 3088 } 3089 if invalidParams.Len() > 0 { 3090 return invalidParams 3091 } else { 3092 return nil 3093 } 3094} 3095 3096func validateOpSendCustomVerificationEmailInput(v *SendCustomVerificationEmailInput) error { 3097 if v == nil { 3098 return nil 3099 } 3100 invalidParams := smithy.InvalidParamsError{Context: "SendCustomVerificationEmailInput"} 3101 if v.EmailAddress == nil { 3102 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 3103 } 3104 if v.TemplateName == nil { 3105 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 3106 } 3107 if invalidParams.Len() > 0 { 3108 return invalidParams 3109 } else { 3110 return nil 3111 } 3112} 3113 3114func validateOpSendEmailInput(v *SendEmailInput) error { 3115 if v == nil { 3116 return nil 3117 } 3118 invalidParams := smithy.InvalidParamsError{Context: "SendEmailInput"} 3119 if v.Content == nil { 3120 invalidParams.Add(smithy.NewErrParamRequired("Content")) 3121 } else if v.Content != nil { 3122 if err := validateEmailContent(v.Content); err != nil { 3123 invalidParams.AddNested("Content", err.(smithy.InvalidParamsError)) 3124 } 3125 } 3126 if v.EmailTags != nil { 3127 if err := validateMessageTagList(v.EmailTags); err != nil { 3128 invalidParams.AddNested("EmailTags", err.(smithy.InvalidParamsError)) 3129 } 3130 } 3131 if v.ListManagementOptions != nil { 3132 if err := validateListManagementOptions(v.ListManagementOptions); err != nil { 3133 invalidParams.AddNested("ListManagementOptions", err.(smithy.InvalidParamsError)) 3134 } 3135 } 3136 if invalidParams.Len() > 0 { 3137 return invalidParams 3138 } else { 3139 return nil 3140 } 3141} 3142 3143func validateOpTagResourceInput(v *TagResourceInput) error { 3144 if v == nil { 3145 return nil 3146 } 3147 invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} 3148 if v.ResourceArn == nil { 3149 invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) 3150 } 3151 if v.Tags == nil { 3152 invalidParams.Add(smithy.NewErrParamRequired("Tags")) 3153 } else if v.Tags != nil { 3154 if err := validateTagList(v.Tags); err != nil { 3155 invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) 3156 } 3157 } 3158 if invalidParams.Len() > 0 { 3159 return invalidParams 3160 } else { 3161 return nil 3162 } 3163} 3164 3165func validateOpTestRenderEmailTemplateInput(v *TestRenderEmailTemplateInput) error { 3166 if v == nil { 3167 return nil 3168 } 3169 invalidParams := smithy.InvalidParamsError{Context: "TestRenderEmailTemplateInput"} 3170 if v.TemplateName == nil { 3171 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 3172 } 3173 if v.TemplateData == nil { 3174 invalidParams.Add(smithy.NewErrParamRequired("TemplateData")) 3175 } 3176 if invalidParams.Len() > 0 { 3177 return invalidParams 3178 } else { 3179 return nil 3180 } 3181} 3182 3183func validateOpUntagResourceInput(v *UntagResourceInput) error { 3184 if v == nil { 3185 return nil 3186 } 3187 invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} 3188 if v.ResourceArn == nil { 3189 invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) 3190 } 3191 if v.TagKeys == nil { 3192 invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) 3193 } 3194 if invalidParams.Len() > 0 { 3195 return invalidParams 3196 } else { 3197 return nil 3198 } 3199} 3200 3201func validateOpUpdateConfigurationSetEventDestinationInput(v *UpdateConfigurationSetEventDestinationInput) error { 3202 if v == nil { 3203 return nil 3204 } 3205 invalidParams := smithy.InvalidParamsError{Context: "UpdateConfigurationSetEventDestinationInput"} 3206 if v.ConfigurationSetName == nil { 3207 invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) 3208 } 3209 if v.EventDestinationName == nil { 3210 invalidParams.Add(smithy.NewErrParamRequired("EventDestinationName")) 3211 } 3212 if v.EventDestination == nil { 3213 invalidParams.Add(smithy.NewErrParamRequired("EventDestination")) 3214 } else if v.EventDestination != nil { 3215 if err := validateEventDestinationDefinition(v.EventDestination); err != nil { 3216 invalidParams.AddNested("EventDestination", err.(smithy.InvalidParamsError)) 3217 } 3218 } 3219 if invalidParams.Len() > 0 { 3220 return invalidParams 3221 } else { 3222 return nil 3223 } 3224} 3225 3226func validateOpUpdateContactInput(v *UpdateContactInput) error { 3227 if v == nil { 3228 return nil 3229 } 3230 invalidParams := smithy.InvalidParamsError{Context: "UpdateContactInput"} 3231 if v.ContactListName == nil { 3232 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 3233 } 3234 if v.EmailAddress == nil { 3235 invalidParams.Add(smithy.NewErrParamRequired("EmailAddress")) 3236 } 3237 if v.TopicPreferences != nil { 3238 if err := validateTopicPreferenceList(v.TopicPreferences); err != nil { 3239 invalidParams.AddNested("TopicPreferences", err.(smithy.InvalidParamsError)) 3240 } 3241 } 3242 if invalidParams.Len() > 0 { 3243 return invalidParams 3244 } else { 3245 return nil 3246 } 3247} 3248 3249func validateOpUpdateContactListInput(v *UpdateContactListInput) error { 3250 if v == nil { 3251 return nil 3252 } 3253 invalidParams := smithy.InvalidParamsError{Context: "UpdateContactListInput"} 3254 if v.ContactListName == nil { 3255 invalidParams.Add(smithy.NewErrParamRequired("ContactListName")) 3256 } 3257 if v.Topics != nil { 3258 if err := validateTopics(v.Topics); err != nil { 3259 invalidParams.AddNested("Topics", err.(smithy.InvalidParamsError)) 3260 } 3261 } 3262 if invalidParams.Len() > 0 { 3263 return invalidParams 3264 } else { 3265 return nil 3266 } 3267} 3268 3269func validateOpUpdateCustomVerificationEmailTemplateInput(v *UpdateCustomVerificationEmailTemplateInput) error { 3270 if v == nil { 3271 return nil 3272 } 3273 invalidParams := smithy.InvalidParamsError{Context: "UpdateCustomVerificationEmailTemplateInput"} 3274 if v.TemplateName == nil { 3275 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 3276 } 3277 if v.FromEmailAddress == nil { 3278 invalidParams.Add(smithy.NewErrParamRequired("FromEmailAddress")) 3279 } 3280 if v.TemplateSubject == nil { 3281 invalidParams.Add(smithy.NewErrParamRequired("TemplateSubject")) 3282 } 3283 if v.TemplateContent == nil { 3284 invalidParams.Add(smithy.NewErrParamRequired("TemplateContent")) 3285 } 3286 if v.SuccessRedirectionURL == nil { 3287 invalidParams.Add(smithy.NewErrParamRequired("SuccessRedirectionURL")) 3288 } 3289 if v.FailureRedirectionURL == nil { 3290 invalidParams.Add(smithy.NewErrParamRequired("FailureRedirectionURL")) 3291 } 3292 if invalidParams.Len() > 0 { 3293 return invalidParams 3294 } else { 3295 return nil 3296 } 3297} 3298 3299func validateOpUpdateEmailIdentityPolicyInput(v *UpdateEmailIdentityPolicyInput) error { 3300 if v == nil { 3301 return nil 3302 } 3303 invalidParams := smithy.InvalidParamsError{Context: "UpdateEmailIdentityPolicyInput"} 3304 if v.EmailIdentity == nil { 3305 invalidParams.Add(smithy.NewErrParamRequired("EmailIdentity")) 3306 } 3307 if v.PolicyName == nil { 3308 invalidParams.Add(smithy.NewErrParamRequired("PolicyName")) 3309 } 3310 if v.Policy == nil { 3311 invalidParams.Add(smithy.NewErrParamRequired("Policy")) 3312 } 3313 if invalidParams.Len() > 0 { 3314 return invalidParams 3315 } else { 3316 return nil 3317 } 3318} 3319 3320func validateOpUpdateEmailTemplateInput(v *UpdateEmailTemplateInput) error { 3321 if v == nil { 3322 return nil 3323 } 3324 invalidParams := smithy.InvalidParamsError{Context: "UpdateEmailTemplateInput"} 3325 if v.TemplateName == nil { 3326 invalidParams.Add(smithy.NewErrParamRequired("TemplateName")) 3327 } 3328 if v.TemplateContent == nil { 3329 invalidParams.Add(smithy.NewErrParamRequired("TemplateContent")) 3330 } 3331 if invalidParams.Len() > 0 { 3332 return invalidParams 3333 } else { 3334 return nil 3335 } 3336} 3337