434 434 | "com.amazonaws.ec2.synthetic",
|
435 435 | "RunInstancesInput",
|
436 436 | );
|
437 437 | static RUNINSTANCESINPUT_MEMBER_BLOCK_DEVICE_MAPPINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
438 438 | ::aws_smithy_schema::ShapeId::from_static(
|
439 439 | "com.amazonaws.ec2.synthetic#RunInstancesInput$BlockDeviceMappings",
|
440 440 | "com.amazonaws.ec2.synthetic",
|
441 441 | "RunInstancesInput",
|
442 442 | ),
|
443 443 | ::aws_smithy_schema::ShapeType::List,
|
444 - | "block_device_mappings",
|
444 + | "BlockDeviceMappings",
|
445 445 | 0,
|
446 446 | )
|
447 447 | .with_xml_name("BlockDeviceMapping");
|
448 448 | static RUNINSTANCESINPUT_MEMBER_IMAGE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
449 449 | ::aws_smithy_schema::ShapeId::from_static(
|
450 450 | "com.amazonaws.ec2.synthetic#RunInstancesInput$ImageId",
|
451 451 | "com.amazonaws.ec2.synthetic",
|
452 452 | "RunInstancesInput",
|
453 453 | ),
|
454 454 | ::aws_smithy_schema::ShapeType::String,
|
455 - | "image_id",
|
455 + | "ImageId",
|
456 456 | 1,
|
457 457 | );
|
458 458 | static RUNINSTANCESINPUT_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
459 459 | ::aws_smithy_schema::ShapeId::from_static(
|
460 460 | "com.amazonaws.ec2.synthetic#RunInstancesInput$InstanceType",
|
461 461 | "com.amazonaws.ec2.synthetic",
|
462 462 | "RunInstancesInput",
|
463 463 | ),
|
464 464 | ::aws_smithy_schema::ShapeType::String,
|
465 - | "instance_type",
|
465 + | "InstanceType",
|
466 466 | 2,
|
467 467 | );
|
468 468 | static RUNINSTANCESINPUT_MEMBER_IPV6_ADDRESS_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
469 469 | ::aws_smithy_schema::ShapeId::from_static(
|
470 470 | "com.amazonaws.ec2.synthetic#RunInstancesInput$Ipv6AddressCount",
|
471 471 | "com.amazonaws.ec2.synthetic",
|
472 472 | "RunInstancesInput",
|
473 473 | ),
|
474 474 | ::aws_smithy_schema::ShapeType::Integer,
|
475 - | "ipv6_address_count",
|
475 + | "Ipv6AddressCount",
|
476 476 | 3,
|
477 477 | );
|
478 478 | static RUNINSTANCESINPUT_MEMBER_IPV6_ADDRESSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
479 479 | ::aws_smithy_schema::ShapeId::from_static(
|
480 480 | "com.amazonaws.ec2.synthetic#RunInstancesInput$Ipv6Addresses",
|
481 481 | "com.amazonaws.ec2.synthetic",
|
482 482 | "RunInstancesInput",
|
483 483 | ),
|
484 484 | ::aws_smithy_schema::ShapeType::List,
|
485 - | "ipv6_addresses",
|
485 + | "Ipv6Addresses",
|
486 486 | 4,
|
487 487 | )
|
488 488 | .with_xml_name("Ipv6Address");
|
489 489 | static RUNINSTANCESINPUT_MEMBER_KERNEL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
490 490 | ::aws_smithy_schema::ShapeId::from_static(
|
491 491 | "com.amazonaws.ec2.synthetic#RunInstancesInput$KernelId",
|
492 492 | "com.amazonaws.ec2.synthetic",
|
493 493 | "RunInstancesInput",
|
494 494 | ),
|
495 495 | ::aws_smithy_schema::ShapeType::String,
|
496 - | "kernel_id",
|
496 + | "KernelId",
|
497 497 | 5,
|
498 498 | );
|
499 499 | static RUNINSTANCESINPUT_MEMBER_KEY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
500 500 | ::aws_smithy_schema::ShapeId::from_static(
|
501 501 | "com.amazonaws.ec2.synthetic#RunInstancesInput$KeyName",
|
502 502 | "com.amazonaws.ec2.synthetic",
|
503 503 | "RunInstancesInput",
|
504 504 | ),
|
505 505 | ::aws_smithy_schema::ShapeType::String,
|
506 - | "key_name",
|
506 + | "KeyName",
|
507 507 | 6,
|
508 508 | );
|
509 509 | static RUNINSTANCESINPUT_MEMBER_MAX_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
510 510 | ::aws_smithy_schema::ShapeId::from_static(
|
511 511 | "com.amazonaws.ec2.synthetic#RunInstancesInput$MaxCount",
|
512 512 | "com.amazonaws.ec2.synthetic",
|
513 513 | "RunInstancesInput",
|
514 514 | ),
|
515 515 | ::aws_smithy_schema::ShapeType::Integer,
|
516 - | "max_count",
|
516 + | "MaxCount",
|
517 517 | 7,
|
518 518 | );
|
519 519 | static RUNINSTANCESINPUT_MEMBER_MIN_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
520 520 | ::aws_smithy_schema::ShapeId::from_static(
|
521 521 | "com.amazonaws.ec2.synthetic#RunInstancesInput$MinCount",
|
522 522 | "com.amazonaws.ec2.synthetic",
|
523 523 | "RunInstancesInput",
|
524 524 | ),
|
525 525 | ::aws_smithy_schema::ShapeType::Integer,
|
526 - | "min_count",
|
526 + | "MinCount",
|
527 527 | 8,
|
528 528 | );
|
529 529 | static RUNINSTANCESINPUT_MEMBER_MONITORING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
530 530 | ::aws_smithy_schema::ShapeId::from_static(
|
531 531 | "com.amazonaws.ec2.synthetic#RunInstancesInput$Monitoring",
|
532 532 | "com.amazonaws.ec2.synthetic",
|
533 533 | "RunInstancesInput",
|
534 534 | ),
|
535 535 | ::aws_smithy_schema::ShapeType::Structure,
|
536 - | "monitoring",
|
536 + | "Monitoring",
|
537 537 | 9,
|
538 538 | );
|
539 539 | static RUNINSTANCESINPUT_MEMBER_PLACEMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
540 540 | ::aws_smithy_schema::ShapeId::from_static(
|
541 541 | "com.amazonaws.ec2.synthetic#RunInstancesInput$Placement",
|
542 542 | "com.amazonaws.ec2.synthetic",
|
543 543 | "RunInstancesInput",
|
544 544 | ),
|
545 545 | ::aws_smithy_schema::ShapeType::Structure,
|
546 - | "placement",
|
546 + | "Placement",
|
547 547 | 10,
|
548 548 | );
|
549 549 | static RUNINSTANCESINPUT_MEMBER_RAMDISK_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
550 550 | ::aws_smithy_schema::ShapeId::from_static(
|
551 551 | "com.amazonaws.ec2.synthetic#RunInstancesInput$RamdiskId",
|
552 552 | "com.amazonaws.ec2.synthetic",
|
553 553 | "RunInstancesInput",
|
554 554 | ),
|
555 555 | ::aws_smithy_schema::ShapeType::String,
|
556 - | "ramdisk_id",
|
556 + | "RamdiskId",
|
557 557 | 11,
|
558 558 | );
|
559 559 | static RUNINSTANCESINPUT_MEMBER_SECURITY_GROUP_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
560 560 | ::aws_smithy_schema::ShapeId::from_static(
|
561 561 | "com.amazonaws.ec2.synthetic#RunInstancesInput$SecurityGroupIds",
|
562 562 | "com.amazonaws.ec2.synthetic",
|
563 563 | "RunInstancesInput",
|
564 564 | ),
|
565 565 | ::aws_smithy_schema::ShapeType::List,
|
566 - | "security_group_ids",
|
566 + | "SecurityGroupIds",
|
567 567 | 12,
|
568 568 | )
|
569 569 | .with_xml_name("SecurityGroupId");
|
570 570 | static RUNINSTANCESINPUT_MEMBER_SECURITY_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
571 571 | ::aws_smithy_schema::ShapeId::from_static(
|
572 572 | "com.amazonaws.ec2.synthetic#RunInstancesInput$SecurityGroups",
|
573 573 | "com.amazonaws.ec2.synthetic",
|
574 574 | "RunInstancesInput",
|
575 575 | ),
|
576 576 | ::aws_smithy_schema::ShapeType::List,
|
577 - | "security_groups",
|
577 + | "SecurityGroups",
|
578 578 | 13,
|
579 579 | )
|
580 580 | .with_xml_name("SecurityGroup");
|
581 581 | static RUNINSTANCESINPUT_MEMBER_SUBNET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
582 582 | ::aws_smithy_schema::ShapeId::from_static(
|
583 583 | "com.amazonaws.ec2.synthetic#RunInstancesInput$SubnetId",
|
584 584 | "com.amazonaws.ec2.synthetic",
|
585 585 | "RunInstancesInput",
|
586 586 | ),
|
587 587 | ::aws_smithy_schema::ShapeType::String,
|
588 - | "subnet_id",
|
588 + | "SubnetId",
|
589 589 | 14,
|
590 590 | );
|
591 591 | static RUNINSTANCESINPUT_MEMBER_USER_DATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
592 592 | ::aws_smithy_schema::ShapeId::from_static(
|
593 593 | "com.amazonaws.ec2.synthetic#RunInstancesInput$UserData",
|
594 594 | "com.amazonaws.ec2.synthetic",
|
595 595 | "RunInstancesInput",
|
596 596 | ),
|
597 597 | ::aws_smithy_schema::ShapeType::String,
|
598 - | "user_data",
|
598 + | "UserData",
|
599 599 | 15,
|
600 600 | );
|
601 601 | static RUNINSTANCESINPUT_MEMBER_ELASTIC_GPU_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
602 602 | ::aws_smithy_schema::ShapeId::from_static(
|
603 603 | "com.amazonaws.ec2.synthetic#RunInstancesInput$ElasticGpuSpecification",
|
604 604 | "com.amazonaws.ec2.synthetic",
|
605 605 | "RunInstancesInput",
|
606 606 | ),
|
607 607 | ::aws_smithy_schema::ShapeType::List,
|
608 - | "elastic_gpu_specification",
|
608 + | "ElasticGpuSpecification",
|
609 609 | 16,
|
610 610 | );
|
611 611 | static RUNINSTANCESINPUT_MEMBER_ELASTIC_INFERENCE_ACCELERATORS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
612 612 | ::aws_smithy_schema::ShapeId::from_static(
|
613 613 | "com.amazonaws.ec2.synthetic#RunInstancesInput$ElasticInferenceAccelerators",
|
614 614 | "com.amazonaws.ec2.synthetic",
|
615 615 | "RunInstancesInput",
|
616 616 | ),
|
617 617 | ::aws_smithy_schema::ShapeType::List,
|
618 - | "elastic_inference_accelerators",
|
618 + | "ElasticInferenceAccelerators",
|
619 619 | 17,
|
620 620 | )
|
621 621 | .with_xml_name("ElasticInferenceAccelerator");
|
622 622 | static RUNINSTANCESINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
623 623 | ::aws_smithy_schema::ShapeId::from_static(
|
624 624 | "com.amazonaws.ec2.synthetic#RunInstancesInput$TagSpecifications",
|
625 625 | "com.amazonaws.ec2.synthetic",
|
626 626 | "RunInstancesInput",
|
627 627 | ),
|
628 628 | ::aws_smithy_schema::ShapeType::List,
|
629 - | "tag_specifications",
|
629 + | "TagSpecifications",
|
630 630 | 18,
|
631 631 | )
|
632 632 | .with_xml_name("TagSpecification");
|
633 633 | static RUNINSTANCESINPUT_MEMBER_LAUNCH_TEMPLATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
634 634 | ::aws_smithy_schema::ShapeId::from_static(
|
635 635 | "com.amazonaws.ec2.synthetic#RunInstancesInput$LaunchTemplate",
|
636 636 | "com.amazonaws.ec2.synthetic",
|
637 637 | "RunInstancesInput",
|
638 638 | ),
|
639 639 | ::aws_smithy_schema::ShapeType::Structure,
|
640 - | "launch_template",
|
640 + | "LaunchTemplate",
|
641 641 | 19,
|
642 642 | );
|
643 643 | static RUNINSTANCESINPUT_MEMBER_INSTANCE_MARKET_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
644 644 | ::aws_smithy_schema::ShapeId::from_static(
|
645 645 | "com.amazonaws.ec2.synthetic#RunInstancesInput$InstanceMarketOptions",
|
646 646 | "com.amazonaws.ec2.synthetic",
|
647 647 | "RunInstancesInput",
|
648 648 | ),
|
649 649 | ::aws_smithy_schema::ShapeType::Structure,
|
650 - | "instance_market_options",
|
650 + | "InstanceMarketOptions",
|
651 651 | 20,
|
652 652 | );
|
653 653 | static RUNINSTANCESINPUT_MEMBER_CREDIT_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
654 654 | ::aws_smithy_schema::ShapeId::from_static(
|
655 655 | "com.amazonaws.ec2.synthetic#RunInstancesInput$CreditSpecification",
|
656 656 | "com.amazonaws.ec2.synthetic",
|
657 657 | "RunInstancesInput",
|
658 658 | ),
|
659 659 | ::aws_smithy_schema::ShapeType::Structure,
|
660 - | "credit_specification",
|
660 + | "CreditSpecification",
|
661 661 | 21,
|
662 662 | );
|
663 663 | static RUNINSTANCESINPUT_MEMBER_CPU_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
664 664 | ::aws_smithy_schema::ShapeId::from_static(
|
665 665 | "com.amazonaws.ec2.synthetic#RunInstancesInput$CpuOptions",
|
666 666 | "com.amazonaws.ec2.synthetic",
|
667 667 | "RunInstancesInput",
|
668 668 | ),
|
669 669 | ::aws_smithy_schema::ShapeType::Structure,
|
670 - | "cpu_options",
|
670 + | "CpuOptions",
|
671 671 | 22,
|
672 672 | );
|
673 673 | static RUNINSTANCESINPUT_MEMBER_CAPACITY_RESERVATION_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
674 674 | ::aws_smithy_schema::ShapeId::from_static(
|
675 675 | "com.amazonaws.ec2.synthetic#RunInstancesInput$CapacityReservationSpecification",
|
676 676 | "com.amazonaws.ec2.synthetic",
|
677 677 | "RunInstancesInput",
|
678 678 | ),
|
679 679 | ::aws_smithy_schema::ShapeType::Structure,
|
680 - | "capacity_reservation_specification",
|
680 + | "CapacityReservationSpecification",
|
681 681 | 23,
|
682 682 | );
|
683 683 | static RUNINSTANCESINPUT_MEMBER_HIBERNATION_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
684 684 | ::aws_smithy_schema::ShapeId::from_static(
|
685 685 | "com.amazonaws.ec2.synthetic#RunInstancesInput$HibernationOptions",
|
686 686 | "com.amazonaws.ec2.synthetic",
|
687 687 | "RunInstancesInput",
|
688 688 | ),
|
689 689 | ::aws_smithy_schema::ShapeType::Structure,
|
690 - | "hibernation_options",
|
690 + | "HibernationOptions",
|
691 691 | 24,
|
692 692 | );
|
693 693 | static RUNINSTANCESINPUT_MEMBER_LICENSE_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
694 694 | ::aws_smithy_schema::ShapeId::from_static(
|
695 695 | "com.amazonaws.ec2.synthetic#RunInstancesInput$LicenseSpecifications",
|
696 696 | "com.amazonaws.ec2.synthetic",
|
697 697 | "RunInstancesInput",
|
698 698 | ),
|
699 699 | ::aws_smithy_schema::ShapeType::List,
|
700 - | "license_specifications",
|
700 + | "LicenseSpecifications",
|
701 701 | 25,
|
702 702 | )
|
703 703 | .with_xml_name("LicenseSpecification");
|
704 704 | static RUNINSTANCESINPUT_MEMBER_METADATA_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
705 705 | ::aws_smithy_schema::ShapeId::from_static(
|
706 706 | "com.amazonaws.ec2.synthetic#RunInstancesInput$MetadataOptions",
|
707 707 | "com.amazonaws.ec2.synthetic",
|
708 708 | "RunInstancesInput",
|
709 709 | ),
|
710 710 | ::aws_smithy_schema::ShapeType::Structure,
|
711 - | "metadata_options",
|
711 + | "MetadataOptions",
|
712 712 | 26,
|
713 713 | );
|
714 714 | static RUNINSTANCESINPUT_MEMBER_ENCLAVE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
715 715 | ::aws_smithy_schema::ShapeId::from_static(
|
716 716 | "com.amazonaws.ec2.synthetic#RunInstancesInput$EnclaveOptions",
|
717 717 | "com.amazonaws.ec2.synthetic",
|
718 718 | "RunInstancesInput",
|
719 719 | ),
|
720 720 | ::aws_smithy_schema::ShapeType::Structure,
|
721 - | "enclave_options",
|
721 + | "EnclaveOptions",
|
722 722 | 27,
|
723 723 | );
|
724 724 | static RUNINSTANCESINPUT_MEMBER_PRIVATE_DNS_NAME_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
725 725 | ::aws_smithy_schema::ShapeId::from_static(
|
726 726 | "com.amazonaws.ec2.synthetic#RunInstancesInput$PrivateDnsNameOptions",
|
727 727 | "com.amazonaws.ec2.synthetic",
|
728 728 | "RunInstancesInput",
|
729 729 | ),
|
730 730 | ::aws_smithy_schema::ShapeType::Structure,
|
731 - | "private_dns_name_options",
|
731 + | "PrivateDnsNameOptions",
|
732 732 | 28,
|
733 733 | );
|
734 734 | static RUNINSTANCESINPUT_MEMBER_MAINTENANCE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
735 735 | ::aws_smithy_schema::ShapeId::from_static(
|
736 736 | "com.amazonaws.ec2.synthetic#RunInstancesInput$MaintenanceOptions",
|
737 737 | "com.amazonaws.ec2.synthetic",
|
738 738 | "RunInstancesInput",
|
739 739 | ),
|
740 740 | ::aws_smithy_schema::ShapeType::Structure,
|
741 - | "maintenance_options",
|
741 + | "MaintenanceOptions",
|
742 742 | 29,
|
743 743 | );
|
744 744 | static RUNINSTANCESINPUT_MEMBER_DISABLE_API_STOP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
745 745 | ::aws_smithy_schema::ShapeId::from_static(
|
746 746 | "com.amazonaws.ec2.synthetic#RunInstancesInput$DisableApiStop",
|
747 747 | "com.amazonaws.ec2.synthetic",
|
748 748 | "RunInstancesInput",
|
749 749 | ),
|
750 750 | ::aws_smithy_schema::ShapeType::Boolean,
|
751 - | "disable_api_stop",
|
751 + | "DisableApiStop",
|
752 752 | 30,
|
753 753 | );
|
754 754 | static RUNINSTANCESINPUT_MEMBER_ENABLE_PRIMARY_IPV6: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
755 755 | ::aws_smithy_schema::ShapeId::from_static(
|
756 756 | "com.amazonaws.ec2.synthetic#RunInstancesInput$EnablePrimaryIpv6",
|
757 757 | "com.amazonaws.ec2.synthetic",
|
758 758 | "RunInstancesInput",
|
759 759 | ),
|
760 760 | ::aws_smithy_schema::ShapeType::Boolean,
|
761 - | "enable_primary_ipv6",
|
761 + | "EnablePrimaryIpv6",
|
762 762 | 31,
|
763 763 | );
|
764 764 | static RUNINSTANCESINPUT_MEMBER_NETWORK_PERFORMANCE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
765 765 | ::aws_smithy_schema::ShapeId::from_static(
|
766 766 | "com.amazonaws.ec2.synthetic#RunInstancesInput$NetworkPerformanceOptions",
|
767 767 | "com.amazonaws.ec2.synthetic",
|
768 768 | "RunInstancesInput",
|
769 769 | ),
|
770 770 | ::aws_smithy_schema::ShapeType::Structure,
|
771 - | "network_performance_options",
|
771 + | "NetworkPerformanceOptions",
|
772 772 | 32,
|
773 773 | );
|
774 774 | static RUNINSTANCESINPUT_MEMBER_OPERATOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
775 775 | ::aws_smithy_schema::ShapeId::from_static(
|
776 776 | "com.amazonaws.ec2.synthetic#RunInstancesInput$Operator",
|
777 777 | "com.amazonaws.ec2.synthetic",
|
778 778 | "RunInstancesInput",
|
779 779 | ),
|
780 780 | ::aws_smithy_schema::ShapeType::Structure,
|
781 - | "operator",
|
781 + | "Operator",
|
782 782 | 33,
|
783 783 | );
|
784 784 | static RUNINSTANCESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
785 785 | ::aws_smithy_schema::ShapeId::from_static(
|
786 786 | "com.amazonaws.ec2.synthetic#RunInstancesInput$DryRun",
|
787 787 | "com.amazonaws.ec2.synthetic",
|
788 788 | "RunInstancesInput",
|
789 789 | ),
|
790 790 | ::aws_smithy_schema::ShapeType::Boolean,
|
791 - | "dry_run",
|
791 + | "DryRun",
|
792 792 | 34,
|
793 793 | )
|
794 794 | .with_xml_name("dryRun");
|
795 795 | static RUNINSTANCESINPUT_MEMBER_DISABLE_API_TERMINATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
796 796 | ::aws_smithy_schema::ShapeId::from_static(
|
797 797 | "com.amazonaws.ec2.synthetic#RunInstancesInput$DisableApiTermination",
|
798 798 | "com.amazonaws.ec2.synthetic",
|
799 799 | "RunInstancesInput",
|
800 800 | ),
|
801 801 | ::aws_smithy_schema::ShapeType::Boolean,
|
802 - | "disable_api_termination",
|
802 + | "DisableApiTermination",
|
803 803 | 35,
|
804 804 | )
|
805 805 | .with_xml_name("disableApiTermination");
|
806 806 | static RUNINSTANCESINPUT_MEMBER_INSTANCE_INITIATED_SHUTDOWN_BEHAVIOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
807 807 | ::aws_smithy_schema::ShapeId::from_static(
|
808 808 | "com.amazonaws.ec2.synthetic#RunInstancesInput$InstanceInitiatedShutdownBehavior",
|
809 809 | "com.amazonaws.ec2.synthetic",
|
810 810 | "RunInstancesInput",
|
811 811 | ),
|
812 812 | ::aws_smithy_schema::ShapeType::String,
|
813 - | "instance_initiated_shutdown_behavior",
|
813 + | "InstanceInitiatedShutdownBehavior",
|
814 814 | 36,
|
815 815 | )
|
816 816 | .with_xml_name("instanceInitiatedShutdownBehavior");
|
817 817 | static RUNINSTANCESINPUT_MEMBER_PRIVATE_IP_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
818 818 | ::aws_smithy_schema::ShapeId::from_static(
|
819 819 | "com.amazonaws.ec2.synthetic#RunInstancesInput$PrivateIpAddress",
|
820 820 | "com.amazonaws.ec2.synthetic",
|
821 821 | "RunInstancesInput",
|
822 822 | ),
|
823 823 | ::aws_smithy_schema::ShapeType::String,
|
824 - | "private_ip_address",
|
824 + | "PrivateIpAddress",
|
825 825 | 37,
|
826 826 | )
|
827 827 | .with_xml_name("privateIpAddress");
|
828 828 | static RUNINSTANCESINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
829 829 | ::aws_smithy_schema::ShapeId::from_static(
|
830 830 | "com.amazonaws.ec2.synthetic#RunInstancesInput$ClientToken",
|
831 831 | "com.amazonaws.ec2.synthetic",
|
832 832 | "RunInstancesInput",
|
833 833 | ),
|
834 834 | ::aws_smithy_schema::ShapeType::String,
|
835 - | "client_token",
|
835 + | "ClientToken",
|
836 836 | 38,
|
837 837 | )
|
838 838 | .with_xml_name("clientToken");
|
839 839 | static RUNINSTANCESINPUT_MEMBER_ADDITIONAL_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
840 840 | ::aws_smithy_schema::ShapeId::from_static(
|
841 841 | "com.amazonaws.ec2.synthetic#RunInstancesInput$AdditionalInfo",
|
842 842 | "com.amazonaws.ec2.synthetic",
|
843 843 | "RunInstancesInput",
|
844 844 | ),
|
845 845 | ::aws_smithy_schema::ShapeType::String,
|
846 - | "additional_info",
|
846 + | "AdditionalInfo",
|
847 847 | 39,
|
848 848 | )
|
849 849 | .with_xml_name("additionalInfo");
|
850 850 | static RUNINSTANCESINPUT_MEMBER_NETWORK_INTERFACES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
851 851 | ::aws_smithy_schema::ShapeId::from_static(
|
852 852 | "com.amazonaws.ec2.synthetic#RunInstancesInput$NetworkInterfaces",
|
853 853 | "com.amazonaws.ec2.synthetic",
|
854 854 | "RunInstancesInput",
|
855 855 | ),
|
856 856 | ::aws_smithy_schema::ShapeType::List,
|
857 - | "network_interfaces",
|
857 + | "NetworkInterfaces",
|
858 858 | 40,
|
859 859 | )
|
860 860 | .with_xml_name("networkInterface");
|
861 861 | static RUNINSTANCESINPUT_MEMBER_IAM_INSTANCE_PROFILE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
862 862 | ::aws_smithy_schema::ShapeId::from_static(
|
863 863 | "com.amazonaws.ec2.synthetic#RunInstancesInput$IamInstanceProfile",
|
864 864 | "com.amazonaws.ec2.synthetic",
|
865 865 | "RunInstancesInput",
|
866 866 | ),
|
867 867 | ::aws_smithy_schema::ShapeType::Structure,
|
868 - | "iam_instance_profile",
|
868 + | "IamInstanceProfile",
|
869 869 | 41,
|
870 870 | )
|
871 871 | .with_xml_name("iamInstanceProfile");
|
872 872 | static RUNINSTANCESINPUT_MEMBER_EBS_OPTIMIZED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
873 873 | ::aws_smithy_schema::ShapeId::from_static(
|
874 874 | "com.amazonaws.ec2.synthetic#RunInstancesInput$EbsOptimized",
|
875 875 | "com.amazonaws.ec2.synthetic",
|
876 876 | "RunInstancesInput",
|
877 877 | ),
|
878 878 | ::aws_smithy_schema::ShapeType::Boolean,
|
879 - | "ebs_optimized",
|
879 + | "EbsOptimized",
|
880 880 | 42,
|
881 881 | )
|
882 882 | .with_xml_name("ebsOptimized");
|
883 883 | static RUNINSTANCESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
884 884 | RUNINSTANCESINPUT_SCHEMA_ID,
|
885 885 | ::aws_smithy_schema::ShapeType::Structure,
|
886 886 | &[
|
887 887 | &RUNINSTANCESINPUT_MEMBER_BLOCK_DEVICE_MAPPINGS,
|
888 888 | &RUNINSTANCESINPUT_MEMBER_IMAGE_ID,
|
889 889 | &RUNINSTANCESINPUT_MEMBER_INSTANCE_TYPE,
|
1138 1138 | ser.write_struct(&RUNINSTANCESINPUT_MEMBER_IAM_INSTANCE_PROFILE, val)?;
|
1139 1139 | }
|
1140 1140 | if let Some(ref val) = self.ebs_optimized {
|
1141 1141 | ser.write_boolean(&RUNINSTANCESINPUT_MEMBER_EBS_OPTIMIZED, *val)?;
|
1142 1142 | }
|
1143 1143 | Ok(())
|
1144 1144 | }
|
1145 1145 | }
|
1146 1146 | impl RunInstancesInput {
|
1147 1147 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
1148 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
1149 - | deserializer: &mut D,
|
1148 + | pub fn deserialize(
|
1149 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
1150 1150 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
1151 1151 | #[allow(unused_variables, unused_mut)]
|
1152 1152 | let mut builder = Self::builder();
|
1153 1153 | #[allow(
|
1154 1154 | unused_variables,
|
1155 1155 | unreachable_code,
|
1156 1156 | clippy::single_match,
|
1157 1157 | clippy::match_single_binding,
|
1158 1158 | clippy::diverging_sub_expression
|
1159 1159 | )]
|
1160 - | deserializer.read_struct(&RUNINSTANCESINPUT_SCHEMA, (), |_, member, deser| {
|
1160 + | deserializer.read_struct(&RUNINSTANCESINPUT_SCHEMA, &mut |member, deser| {
|
1161 1161 | match member.member_index() {
|
1162 1162 | Some(0) => {
|
1163 1163 | builder.block_device_mappings = Some({
|
1164 - | let container = if let Some(cap) = deser.container_size() {
|
1165 - | Vec::with_capacity(cap)
|
1166 - | } else {
|
1167 - | Vec::new()
|
1168 - | };
|
1169 - | deser.read_list(member, container, |mut list, deser| {
|
1170 - | list.push(crate::types::BlockDeviceMapping::deserialize(deser)?);
|
1171 - | Ok(list)
|
1172 - | })?
|
1164 + | let mut container = Vec::new();
|
1165 + | deser.read_list(member, &mut |deser| {
|
1166 + | container.push(crate::types::BlockDeviceMapping::deserialize(deser)?);
|
1167 + | Ok(())
|
1168 + | })?;
|
1169 + | container
|
1173 1170 | });
|
1174 1171 | }
|
1175 1172 | Some(1) => {
|
1176 1173 | builder.image_id = Some(deser.read_string(member)?);
|
1177 1174 | }
|
1178 1175 | Some(2) => {
|
1179 1176 | builder.instance_type = Some(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
|
1180 1177 | }
|
1181 1178 | Some(3) => {
|
1182 1179 | builder.ipv6_address_count = Some(deser.read_integer(member)?);
|
1183 1180 | }
|
1184 1181 | Some(4) => {
|
1185 1182 | builder.ipv6_addresses = Some({
|
1186 - | let container = if let Some(cap) = deser.container_size() {
|
1187 - | Vec::with_capacity(cap)
|
1188 - | } else {
|
1189 - | Vec::new()
|
1190 - | };
|
1191 - | deser.read_list(member, container, |mut list, deser| {
|
1192 - | list.push(crate::types::InstanceIpv6Address::deserialize(deser)?);
|
1193 - | Ok(list)
|
1194 - | })?
|
1183 + | let mut container = Vec::new();
|
1184 + | deser.read_list(member, &mut |deser| {
|
1185 + | container.push(crate::types::InstanceIpv6Address::deserialize(deser)?);
|
1186 + | Ok(())
|
1187 + | })?;
|
1188 + | container
|
1195 1189 | });
|
1196 1190 | }
|
1197 1191 | Some(5) => {
|
1198 1192 | builder.kernel_id = Some(deser.read_string(member)?);
|
1199 1193 | }
|
1200 1194 | Some(6) => {
|
1201 1195 | builder.key_name = Some(deser.read_string(member)?);
|
1202 1196 | }
|
1203 1197 | Some(7) => {
|
1204 1198 | builder.max_count = Some(deser.read_integer(member)?);
|
1205 1199 | }
|
1206 1200 | Some(8) => {
|
1207 1201 | builder.min_count = Some(deser.read_integer(member)?);
|
1208 1202 | }
|
1209 1203 | Some(9) => {
|
1210 1204 | builder.monitoring = Some(crate::types::RunInstancesMonitoringEnabled::deserialize(deser)?);
|
1211 1205 | }
|
1212 1206 | Some(10) => {
|
1213 1207 | builder.placement = Some(crate::types::Placement::deserialize(deser)?);
|
1214 1208 | }
|
1215 1209 | Some(11) => {
|
1216 1210 | builder.ramdisk_id = Some(deser.read_string(member)?);
|
1217 1211 | }
|
1218 1212 | Some(12) => {
|
1219 - | builder.security_group_ids = Some({
|
1220 - | let container = if let Some(cap) = deser.container_size() {
|
1221 - | Vec::with_capacity(cap)
|
1222 - | } else {
|
1223 - | Vec::new()
|
1224 - | };
|
1225 - | deser.read_list(member, container, |mut list, deser| {
|
1226 - | list.push(deser.read_string(member)?);
|
1227 - | Ok(list)
|
1228 - | })?
|
1229 - | });
|
1213 + | builder.security_group_ids = Some(deser.read_string_list(member)?);
|
1230 1214 | }
|
1231 1215 | Some(13) => {
|
1232 - | builder.security_groups = Some({
|
1233 - | let container = if let Some(cap) = deser.container_size() {
|
1234 - | Vec::with_capacity(cap)
|
1235 - | } else {
|
1236 - | Vec::new()
|
1237 - | };
|
1238 - | deser.read_list(member, container, |mut list, deser| {
|
1239 - | list.push(deser.read_string(member)?);
|
1240 - | Ok(list)
|
1241 - | })?
|
1242 - | });
|
1216 + | builder.security_groups = Some(deser.read_string_list(member)?);
|
1243 1217 | }
|
1244 1218 | Some(14) => {
|
1245 1219 | builder.subnet_id = Some(deser.read_string(member)?);
|
1246 1220 | }
|
1247 1221 | Some(15) => {
|
1248 1222 | builder.user_data = Some(deser.read_string(member)?);
|
1249 1223 | }
|
1250 1224 | Some(16) => {
|
1251 1225 | builder.elastic_gpu_specification = Some({
|
1252 - | let container = if let Some(cap) = deser.container_size() {
|
1253 - | Vec::with_capacity(cap)
|
1254 - | } else {
|
1255 - | Vec::new()
|
1256 - | };
|
1257 - | deser.read_list(member, container, |mut list, deser| {
|
1258 - | list.push(crate::types::ElasticGpuSpecification::deserialize(deser)?);
|
1259 - | Ok(list)
|
1260 - | })?
|
1226 + | let mut container = Vec::new();
|
1227 + | deser.read_list(member, &mut |deser| {
|
1228 + | container.push(crate::types::ElasticGpuSpecification::deserialize(deser)?);
|
1229 + | Ok(())
|
1230 + | })?;
|
1231 + | container
|
1261 1232 | });
|
1262 1233 | }
|
1263 1234 | Some(17) => {
|
1264 1235 | builder.elastic_inference_accelerators = Some({
|
1265 - | let container = if let Some(cap) = deser.container_size() {
|
1266 - | Vec::with_capacity(cap)
|
1267 - | } else {
|
1268 - | Vec::new()
|
1269 - | };
|
1270 - | deser.read_list(member, container, |mut list, deser| {
|
1271 - | list.push(crate::types::ElasticInferenceAccelerator::deserialize(deser)?);
|
1272 - | Ok(list)
|
1273 - | })?
|
1236 + | let mut container = Vec::new();
|
1237 + | deser.read_list(member, &mut |deser| {
|
1238 + | container.push(crate::types::ElasticInferenceAccelerator::deserialize(deser)?);
|
1239 + | Ok(())
|
1240 + | })?;
|
1241 + | container
|
1274 1242 | });
|
1275 1243 | }
|
1276 1244 | Some(18) => {
|
1277 1245 | builder.tag_specifications = Some({
|
1278 - | let container = if let Some(cap) = deser.container_size() {
|
1279 - | Vec::with_capacity(cap)
|
1280 - | } else {
|
1281 - | Vec::new()
|
1282 - | };
|
1283 - | deser.read_list(member, container, |mut list, deser| {
|
1284 - | list.push(crate::types::TagSpecification::deserialize(deser)?);
|
1285 - | Ok(list)
|
1286 - | })?
|
1246 + | let mut container = Vec::new();
|
1247 + | deser.read_list(member, &mut |deser| {
|
1248 + | container.push(crate::types::TagSpecification::deserialize(deser)?);
|
1249 + | Ok(())
|
1250 + | })?;
|
1251 + | container
|
1287 1252 | });
|
1288 1253 | }
|
1289 1254 | Some(19) => {
|
1290 1255 | builder.launch_template = Some(crate::types::LaunchTemplateSpecification::deserialize(deser)?);
|
1291 1256 | }
|
1292 1257 | Some(20) => {
|
1293 1258 | builder.instance_market_options = Some(crate::types::InstanceMarketOptionsRequest::deserialize(deser)?);
|
1294 1259 | }
|
1295 1260 | Some(21) => {
|
1296 1261 | builder.credit_specification = Some(crate::types::CreditSpecificationRequest::deserialize(deser)?);
|
1297 1262 | }
|
1298 1263 | Some(22) => {
|
1299 1264 | builder.cpu_options = Some(crate::types::CpuOptionsRequest::deserialize(deser)?);
|
1300 1265 | }
|
1301 1266 | Some(23) => {
|
1302 1267 | builder.capacity_reservation_specification = Some(crate::types::CapacityReservationSpecification::deserialize(deser)?);
|
1303 1268 | }
|
1304 1269 | Some(24) => {
|
1305 1270 | builder.hibernation_options = Some(crate::types::HibernationOptionsRequest::deserialize(deser)?);
|
1306 1271 | }
|
1307 1272 | Some(25) => {
|
1308 1273 | builder.license_specifications = Some({
|
1309 - | let container = if let Some(cap) = deser.container_size() {
|
1310 - | Vec::with_capacity(cap)
|
1311 - | } else {
|
1312 - | Vec::new()
|
1313 - | };
|
1314 - | deser.read_list(member, container, |mut list, deser| {
|
1315 - | list.push(crate::types::LicenseConfigurationRequest::deserialize(deser)?);
|
1316 - | Ok(list)
|
1317 - | })?
|
1274 + | let mut container = Vec::new();
|
1275 + | deser.read_list(member, &mut |deser| {
|
1276 + | container.push(crate::types::LicenseConfigurationRequest::deserialize(deser)?);
|
1277 + | Ok(())
|
1278 + | })?;
|
1279 + | container
|
1318 1280 | });
|
1319 1281 | }
|
1320 1282 | Some(26) => {
|
1321 1283 | builder.metadata_options = Some(crate::types::InstanceMetadataOptionsRequest::deserialize(deser)?);
|
1322 1284 | }
|
1323 1285 | Some(27) => {
|
1324 1286 | builder.enclave_options = Some(crate::types::EnclaveOptionsRequest::deserialize(deser)?);
|
1325 1287 | }
|
1326 1288 | Some(28) => {
|
1327 1289 | builder.private_dns_name_options = Some(crate::types::PrivateDnsNameOptionsRequest::deserialize(deser)?);
|
1328 1290 | }
|
1329 1291 | Some(29) => {
|
1330 1292 | builder.maintenance_options = Some(crate::types::InstanceMaintenanceOptionsRequest::deserialize(deser)?);
|
1331 1293 | }
|
1332 1294 | Some(30) => {
|
1333 1295 | builder.disable_api_stop = Some(deser.read_boolean(member)?);
|
1334 1296 | }
|
1335 1297 | Some(31) => {
|
1336 1298 | builder.enable_primary_ipv6 = Some(deser.read_boolean(member)?);
|
1337 1299 | }
|
1338 1300 | Some(32) => {
|
1339 1301 | builder.network_performance_options = Some(crate::types::InstanceNetworkPerformanceOptionsRequest::deserialize(deser)?);
|
1340 1302 | }
|
1341 1303 | Some(33) => {
|
1342 1304 | builder.operator = Some(crate::types::OperatorRequest::deserialize(deser)?);
|
1343 1305 | }
|
1344 1306 | Some(34) => {
|
1345 1307 | builder.dry_run = Some(deser.read_boolean(member)?);
|
1346 1308 | }
|
1347 1309 | Some(35) => {
|
1348 1310 | builder.disable_api_termination = Some(deser.read_boolean(member)?);
|
1349 1311 | }
|
1350 1312 | Some(36) => {
|
1351 1313 | builder.instance_initiated_shutdown_behavior = Some(crate::types::ShutdownBehavior::from(deser.read_string(member)?.as_str()));
|
1352 1314 | }
|
1353 1315 | Some(37) => {
|
1354 1316 | builder.private_ip_address = Some(deser.read_string(member)?);
|
1355 1317 | }
|
1356 1318 | Some(38) => {
|
1357 1319 | builder.client_token = Some(deser.read_string(member)?);
|
1358 1320 | }
|
1359 1321 | Some(39) => {
|
1360 1322 | builder.additional_info = Some(deser.read_string(member)?);
|
1361 1323 | }
|
1362 1324 | Some(40) => {
|
1363 1325 | builder.network_interfaces = Some({
|
1364 - | let container = if let Some(cap) = deser.container_size() {
|
1365 - | Vec::with_capacity(cap)
|
1366 - | } else {
|
1367 - | Vec::new()
|
1368 - | };
|
1369 - | deser.read_list(member, container, |mut list, deser| {
|
1370 - | list.push(crate::types::InstanceNetworkInterfaceSpecification::deserialize(deser)?);
|
1371 - | Ok(list)
|
1372 - | })?
|
1326 + | let mut container = Vec::new();
|
1327 + | deser.read_list(member, &mut |deser| {
|
1328 + | container.push(crate::types::InstanceNetworkInterfaceSpecification::deserialize(deser)?);
|
1329 + | Ok(())
|
1330 + | })?;
|
1331 + | container
|
1373 1332 | });
|
1374 1333 | }
|
1375 1334 | Some(41) => {
|
1376 1335 | builder.iam_instance_profile = Some(crate::types::IamInstanceProfileSpecification::deserialize(deser)?);
|
1377 1336 | }
|
1378 1337 | Some(42) => {
|
1379 1338 | builder.ebs_optimized = Some(deser.read_boolean(member)?);
|
1380 1339 | }
|
1381 1340 | _ => {}
|
1382 1341 | }
|
1383 1342 | Ok(())
|
1384 1343 | })?;
|
1344 + | builder.max_count = builder.max_count.or(Some(0i32));
|
1345 + | builder.min_count = builder.min_count.or(Some(0i32));
|
1385 1346 | builder
|
1386 1347 | .build()
|
1387 1348 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
1388 1349 | }
|
1389 1350 | }
|
1351 + | impl RunInstancesInput {
|
1352 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
1353 + | pub fn deserialize_with_response(
|
1354 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
1355 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
1356 + | _status: u16,
|
1357 + | _body: &[u8],
|
1358 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
1359 + | Self::deserialize(deserializer)
|
1360 + | }
|
1361 + | }
|
1390 1362 | impl RunInstancesInput {
|
1391 1363 | /// Creates a new builder-style object to manufacture [`RunInstancesInput`](crate::operation::run_instances::RunInstancesInput).
|
1392 1364 | pub fn builder() -> crate::operation::run_instances::builders::RunInstancesInputBuilder {
|
1393 1365 | crate::operation::run_instances::builders::RunInstancesInputBuilder::default()
|
1394 1366 | }
|
1395 1367 | }
|
1396 1368 |
|
1397 1369 | /// A builder for [`RunInstancesInput`](crate::operation::run_instances::RunInstancesInput).
|
1398 1370 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
1399 1371 | #[non_exhaustive]
|