435 435 | }
|
436 436 | static TABLEDESCRIPTION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
437 437 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.dynamodb#TableDescription", "com.amazonaws.dynamodb", "TableDescription");
|
438 438 | static TABLEDESCRIPTION_MEMBER_ATTRIBUTE_DEFINITIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
439 439 | ::aws_smithy_schema::ShapeId::from_static(
|
440 440 | "com.amazonaws.dynamodb#TableDescription$AttributeDefinitions",
|
441 441 | "com.amazonaws.dynamodb",
|
442 442 | "TableDescription",
|
443 443 | ),
|
444 444 | ::aws_smithy_schema::ShapeType::List,
|
445 - | "attribute_definitions",
|
445 + | "AttributeDefinitions",
|
446 446 | 0,
|
447 447 | );
|
448 448 | static TABLEDESCRIPTION_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
449 449 | ::aws_smithy_schema::ShapeId::from_static(
|
450 450 | "com.amazonaws.dynamodb#TableDescription$TableName",
|
451 451 | "com.amazonaws.dynamodb",
|
452 452 | "TableDescription",
|
453 453 | ),
|
454 454 | ::aws_smithy_schema::ShapeType::String,
|
455 - | "table_name",
|
455 + | "TableName",
|
456 456 | 1,
|
457 457 | );
|
458 458 | static TABLEDESCRIPTION_MEMBER_KEY_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
459 459 | ::aws_smithy_schema::ShapeId::from_static(
|
460 460 | "com.amazonaws.dynamodb#TableDescription$KeySchema",
|
461 461 | "com.amazonaws.dynamodb",
|
462 462 | "TableDescription",
|
463 463 | ),
|
464 464 | ::aws_smithy_schema::ShapeType::List,
|
465 - | "key_schema",
|
465 + | "KeySchema",
|
466 466 | 2,
|
467 467 | );
|
468 468 | static TABLEDESCRIPTION_MEMBER_TABLE_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
469 469 | ::aws_smithy_schema::ShapeId::from_static(
|
470 470 | "com.amazonaws.dynamodb#TableDescription$TableStatus",
|
471 471 | "com.amazonaws.dynamodb",
|
472 472 | "TableDescription",
|
473 473 | ),
|
474 474 | ::aws_smithy_schema::ShapeType::String,
|
475 - | "table_status",
|
475 + | "TableStatus",
|
476 476 | 3,
|
477 477 | );
|
478 478 | static TABLEDESCRIPTION_MEMBER_CREATION_DATE_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
479 479 | ::aws_smithy_schema::ShapeId::from_static(
|
480 480 | "com.amazonaws.dynamodb#TableDescription$CreationDateTime",
|
481 481 | "com.amazonaws.dynamodb",
|
482 482 | "TableDescription",
|
483 483 | ),
|
484 484 | ::aws_smithy_schema::ShapeType::Timestamp,
|
485 - | "creation_date_time",
|
485 + | "CreationDateTime",
|
486 486 | 4,
|
487 487 | );
|
488 488 | static TABLEDESCRIPTION_MEMBER_PROVISIONED_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
489 489 | ::aws_smithy_schema::ShapeId::from_static(
|
490 490 | "com.amazonaws.dynamodb#TableDescription$ProvisionedThroughput",
|
491 491 | "com.amazonaws.dynamodb",
|
492 492 | "TableDescription",
|
493 493 | ),
|
494 494 | ::aws_smithy_schema::ShapeType::Structure,
|
495 - | "provisioned_throughput",
|
495 + | "ProvisionedThroughput",
|
496 496 | 5,
|
497 497 | );
|
498 498 | static TABLEDESCRIPTION_MEMBER_TABLE_SIZE_BYTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
499 499 | ::aws_smithy_schema::ShapeId::from_static(
|
500 500 | "com.amazonaws.dynamodb#TableDescription$TableSizeBytes",
|
501 501 | "com.amazonaws.dynamodb",
|
502 502 | "TableDescription",
|
503 503 | ),
|
504 504 | ::aws_smithy_schema::ShapeType::Long,
|
505 - | "table_size_bytes",
|
505 + | "TableSizeBytes",
|
506 506 | 6,
|
507 507 | );
|
508 508 | static TABLEDESCRIPTION_MEMBER_ITEM_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
509 509 | ::aws_smithy_schema::ShapeId::from_static(
|
510 510 | "com.amazonaws.dynamodb#TableDescription$ItemCount",
|
511 511 | "com.amazonaws.dynamodb",
|
512 512 | "TableDescription",
|
513 513 | ),
|
514 514 | ::aws_smithy_schema::ShapeType::Long,
|
515 - | "item_count",
|
515 + | "ItemCount",
|
516 516 | 7,
|
517 517 | );
|
518 518 | static TABLEDESCRIPTION_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
519 519 | ::aws_smithy_schema::ShapeId::from_static(
|
520 520 | "com.amazonaws.dynamodb#TableDescription$TableArn",
|
521 521 | "com.amazonaws.dynamodb",
|
522 522 | "TableDescription",
|
523 523 | ),
|
524 524 | ::aws_smithy_schema::ShapeType::String,
|
525 - | "table_arn",
|
525 + | "TableArn",
|
526 526 | 8,
|
527 527 | );
|
528 528 | static TABLEDESCRIPTION_MEMBER_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
529 529 | ::aws_smithy_schema::ShapeId::from_static(
|
530 530 | "com.amazonaws.dynamodb#TableDescription$TableId",
|
531 531 | "com.amazonaws.dynamodb",
|
532 532 | "TableDescription",
|
533 533 | ),
|
534 534 | ::aws_smithy_schema::ShapeType::String,
|
535 - | "table_id",
|
535 + | "TableId",
|
536 536 | 9,
|
537 537 | );
|
538 538 | static TABLEDESCRIPTION_MEMBER_BILLING_MODE_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
539 539 | ::aws_smithy_schema::ShapeId::from_static(
|
540 540 | "com.amazonaws.dynamodb#TableDescription$BillingModeSummary",
|
541 541 | "com.amazonaws.dynamodb",
|
542 542 | "TableDescription",
|
543 543 | ),
|
544 544 | ::aws_smithy_schema::ShapeType::Structure,
|
545 - | "billing_mode_summary",
|
545 + | "BillingModeSummary",
|
546 546 | 10,
|
547 547 | );
|
548 548 | static TABLEDESCRIPTION_MEMBER_LOCAL_SECONDARY_INDEXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
549 549 | ::aws_smithy_schema::ShapeId::from_static(
|
550 550 | "com.amazonaws.dynamodb#TableDescription$LocalSecondaryIndexes",
|
551 551 | "com.amazonaws.dynamodb",
|
552 552 | "TableDescription",
|
553 553 | ),
|
554 554 | ::aws_smithy_schema::ShapeType::List,
|
555 - | "local_secondary_indexes",
|
555 + | "LocalSecondaryIndexes",
|
556 556 | 11,
|
557 557 | );
|
558 558 | static TABLEDESCRIPTION_MEMBER_GLOBAL_SECONDARY_INDEXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
559 559 | ::aws_smithy_schema::ShapeId::from_static(
|
560 560 | "com.amazonaws.dynamodb#TableDescription$GlobalSecondaryIndexes",
|
561 561 | "com.amazonaws.dynamodb",
|
562 562 | "TableDescription",
|
563 563 | ),
|
564 564 | ::aws_smithy_schema::ShapeType::List,
|
565 - | "global_secondary_indexes",
|
565 + | "GlobalSecondaryIndexes",
|
566 566 | 12,
|
567 567 | );
|
568 568 | static TABLEDESCRIPTION_MEMBER_STREAM_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
569 569 | ::aws_smithy_schema::ShapeId::from_static(
|
570 570 | "com.amazonaws.dynamodb#TableDescription$StreamSpecification",
|
571 571 | "com.amazonaws.dynamodb",
|
572 572 | "TableDescription",
|
573 573 | ),
|
574 574 | ::aws_smithy_schema::ShapeType::Structure,
|
575 - | "stream_specification",
|
575 + | "StreamSpecification",
|
576 576 | 13,
|
577 577 | );
|
578 578 | static TABLEDESCRIPTION_MEMBER_LATEST_STREAM_LABEL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
579 579 | ::aws_smithy_schema::ShapeId::from_static(
|
580 580 | "com.amazonaws.dynamodb#TableDescription$LatestStreamLabel",
|
581 581 | "com.amazonaws.dynamodb",
|
582 582 | "TableDescription",
|
583 583 | ),
|
584 584 | ::aws_smithy_schema::ShapeType::String,
|
585 - | "latest_stream_label",
|
585 + | "LatestStreamLabel",
|
586 586 | 14,
|
587 587 | );
|
588 588 | static TABLEDESCRIPTION_MEMBER_LATEST_STREAM_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
589 589 | ::aws_smithy_schema::ShapeId::from_static(
|
590 590 | "com.amazonaws.dynamodb#TableDescription$LatestStreamArn",
|
591 591 | "com.amazonaws.dynamodb",
|
592 592 | "TableDescription",
|
593 593 | ),
|
594 594 | ::aws_smithy_schema::ShapeType::String,
|
595 - | "latest_stream_arn",
|
595 + | "LatestStreamArn",
|
596 596 | 15,
|
597 597 | );
|
598 598 | static TABLEDESCRIPTION_MEMBER_GLOBAL_TABLE_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
599 599 | ::aws_smithy_schema::ShapeId::from_static(
|
600 600 | "com.amazonaws.dynamodb#TableDescription$GlobalTableVersion",
|
601 601 | "com.amazonaws.dynamodb",
|
602 602 | "TableDescription",
|
603 603 | ),
|
604 604 | ::aws_smithy_schema::ShapeType::String,
|
605 - | "global_table_version",
|
605 + | "GlobalTableVersion",
|
606 606 | 16,
|
607 607 | );
|
608 608 | static TABLEDESCRIPTION_MEMBER_REPLICAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
609 609 | ::aws_smithy_schema::ShapeId::from_static(
|
610 610 | "com.amazonaws.dynamodb#TableDescription$Replicas",
|
611 611 | "com.amazonaws.dynamodb",
|
612 612 | "TableDescription",
|
613 613 | ),
|
614 614 | ::aws_smithy_schema::ShapeType::List,
|
615 - | "replicas",
|
615 + | "Replicas",
|
616 616 | 17,
|
617 617 | );
|
618 618 | static TABLEDESCRIPTION_MEMBER_GLOBAL_TABLE_WITNESSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
619 619 | ::aws_smithy_schema::ShapeId::from_static(
|
620 620 | "com.amazonaws.dynamodb#TableDescription$GlobalTableWitnesses",
|
621 621 | "com.amazonaws.dynamodb",
|
622 622 | "TableDescription",
|
623 623 | ),
|
624 624 | ::aws_smithy_schema::ShapeType::List,
|
625 - | "global_table_witnesses",
|
625 + | "GlobalTableWitnesses",
|
626 626 | 18,
|
627 627 | );
|
628 628 | static TABLEDESCRIPTION_MEMBER_RESTORE_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
629 629 | ::aws_smithy_schema::ShapeId::from_static(
|
630 630 | "com.amazonaws.dynamodb#TableDescription$RestoreSummary",
|
631 631 | "com.amazonaws.dynamodb",
|
632 632 | "TableDescription",
|
633 633 | ),
|
634 634 | ::aws_smithy_schema::ShapeType::Structure,
|
635 - | "restore_summary",
|
635 + | "RestoreSummary",
|
636 636 | 19,
|
637 637 | );
|
638 638 | static TABLEDESCRIPTION_MEMBER_SSE_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
639 639 | ::aws_smithy_schema::ShapeId::from_static(
|
640 640 | "com.amazonaws.dynamodb#TableDescription$SSEDescription",
|
641 641 | "com.amazonaws.dynamodb",
|
642 642 | "TableDescription",
|
643 643 | ),
|
644 644 | ::aws_smithy_schema::ShapeType::Structure,
|
645 - | "sse_description",
|
645 + | "SSEDescription",
|
646 646 | 20,
|
647 647 | );
|
648 648 | static TABLEDESCRIPTION_MEMBER_ARCHIVAL_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
649 649 | ::aws_smithy_schema::ShapeId::from_static(
|
650 650 | "com.amazonaws.dynamodb#TableDescription$ArchivalSummary",
|
651 651 | "com.amazonaws.dynamodb",
|
652 652 | "TableDescription",
|
653 653 | ),
|
654 654 | ::aws_smithy_schema::ShapeType::Structure,
|
655 - | "archival_summary",
|
655 + | "ArchivalSummary",
|
656 656 | 21,
|
657 657 | );
|
658 658 | static TABLEDESCRIPTION_MEMBER_TABLE_CLASS_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
659 659 | ::aws_smithy_schema::ShapeId::from_static(
|
660 660 | "com.amazonaws.dynamodb#TableDescription$TableClassSummary",
|
661 661 | "com.amazonaws.dynamodb",
|
662 662 | "TableDescription",
|
663 663 | ),
|
664 664 | ::aws_smithy_schema::ShapeType::Structure,
|
665 - | "table_class_summary",
|
665 + | "TableClassSummary",
|
666 666 | 22,
|
667 667 | );
|
668 668 | static TABLEDESCRIPTION_MEMBER_DELETION_PROTECTION_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
669 669 | ::aws_smithy_schema::ShapeId::from_static(
|
670 670 | "com.amazonaws.dynamodb#TableDescription$DeletionProtectionEnabled",
|
671 671 | "com.amazonaws.dynamodb",
|
672 672 | "TableDescription",
|
673 673 | ),
|
674 674 | ::aws_smithy_schema::ShapeType::Boolean,
|
675 - | "deletion_protection_enabled",
|
675 + | "DeletionProtectionEnabled",
|
676 676 | 23,
|
677 677 | );
|
678 678 | static TABLEDESCRIPTION_MEMBER_ON_DEMAND_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
679 679 | ::aws_smithy_schema::ShapeId::from_static(
|
680 680 | "com.amazonaws.dynamodb#TableDescription$OnDemandThroughput",
|
681 681 | "com.amazonaws.dynamodb",
|
682 682 | "TableDescription",
|
683 683 | ),
|
684 684 | ::aws_smithy_schema::ShapeType::Structure,
|
685 - | "on_demand_throughput",
|
685 + | "OnDemandThroughput",
|
686 686 | 24,
|
687 687 | );
|
688 688 | static TABLEDESCRIPTION_MEMBER_WARM_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
689 689 | ::aws_smithy_schema::ShapeId::from_static(
|
690 690 | "com.amazonaws.dynamodb#TableDescription$WarmThroughput",
|
691 691 | "com.amazonaws.dynamodb",
|
692 692 | "TableDescription",
|
693 693 | ),
|
694 694 | ::aws_smithy_schema::ShapeType::Structure,
|
695 - | "warm_throughput",
|
695 + | "WarmThroughput",
|
696 696 | 25,
|
697 697 | );
|
698 698 | static TABLEDESCRIPTION_MEMBER_MULTI_REGION_CONSISTENCY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
699 699 | ::aws_smithy_schema::ShapeId::from_static(
|
700 700 | "com.amazonaws.dynamodb#TableDescription$MultiRegionConsistency",
|
701 701 | "com.amazonaws.dynamodb",
|
702 702 | "TableDescription",
|
703 703 | ),
|
704 704 | ::aws_smithy_schema::ShapeType::String,
|
705 - | "multi_region_consistency",
|
705 + | "MultiRegionConsistency",
|
706 706 | 26,
|
707 707 | );
|
708 708 | static TABLEDESCRIPTION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
709 709 | TABLEDESCRIPTION_SCHEMA_ID,
|
710 710 | ::aws_smithy_schema::ShapeType::Structure,
|
711 711 | &[
|
712 712 | &TABLEDESCRIPTION_MEMBER_ATTRIBUTE_DEFINITIONS,
|
713 713 | &TABLEDESCRIPTION_MEMBER_TABLE_NAME,
|
714 714 | &TABLEDESCRIPTION_MEMBER_KEY_SCHEMA,
|
715 715 | &TABLEDESCRIPTION_MEMBER_TABLE_STATUS,
|
875 875 | ser.write_struct(&TABLEDESCRIPTION_MEMBER_WARM_THROUGHPUT, val)?;
|
876 876 | }
|
877 877 | if let Some(ref val) = self.multi_region_consistency {
|
878 878 | ser.write_string(&TABLEDESCRIPTION_MEMBER_MULTI_REGION_CONSISTENCY, val.as_str())?;
|
879 879 | }
|
880 880 | Ok(())
|
881 881 | }
|
882 882 | }
|
883 883 | impl TableDescription {
|
884 884 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
885 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
886 - | deserializer: &mut D,
|
885 + | pub fn deserialize(
|
886 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
887 887 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
888 888 | #[allow(unused_variables, unused_mut)]
|
889 889 | let mut builder = Self::builder();
|
890 890 | #[allow(
|
891 891 | unused_variables,
|
892 892 | unreachable_code,
|
893 893 | clippy::single_match,
|
894 894 | clippy::match_single_binding,
|
895 895 | clippy::diverging_sub_expression
|
896 896 | )]
|
897 - | deserializer.read_struct(&TABLEDESCRIPTION_SCHEMA, (), |_, member, deser| {
|
897 + | deserializer.read_struct(&TABLEDESCRIPTION_SCHEMA, &mut |member, deser| {
|
898 898 | match member.member_index() {
|
899 899 | Some(0) => {
|
900 900 | builder.attribute_definitions = Some({
|
901 - | let container = if let Some(cap) = deser.container_size() {
|
902 - | Vec::with_capacity(cap)
|
903 - | } else {
|
904 - | Vec::new()
|
905 - | };
|
906 - | deser.read_list(member, container, |mut list, deser| {
|
907 - | list.push(crate::types::AttributeDefinition::deserialize(deser)?);
|
908 - | Ok(list)
|
909 - | })?
|
901 + | let mut container = Vec::new();
|
902 + | deser.read_list(member, &mut |deser| {
|
903 + | container.push(crate::types::AttributeDefinition::deserialize(deser)?);
|
904 + | Ok(())
|
905 + | })?;
|
906 + | container
|
910 907 | });
|
911 908 | }
|
912 909 | Some(1) => {
|
913 910 | builder.table_name = Some(deser.read_string(member)?);
|
914 911 | }
|
915 912 | Some(2) => {
|
916 913 | builder.key_schema = Some({
|
917 - | let container = if let Some(cap) = deser.container_size() {
|
918 - | Vec::with_capacity(cap)
|
919 - | } else {
|
920 - | Vec::new()
|
921 - | };
|
922 - | deser.read_list(member, container, |mut list, deser| {
|
923 - | list.push(crate::types::KeySchemaElement::deserialize(deser)?);
|
924 - | Ok(list)
|
925 - | })?
|
914 + | let mut container = Vec::new();
|
915 + | deser.read_list(member, &mut |deser| {
|
916 + | container.push(crate::types::KeySchemaElement::deserialize(deser)?);
|
917 + | Ok(())
|
918 + | })?;
|
919 + | container
|
926 920 | });
|
927 921 | }
|
928 922 | Some(3) => {
|
929 923 | builder.table_status = Some(crate::types::TableStatus::from(deser.read_string(member)?.as_str()));
|
930 924 | }
|
931 925 | Some(4) => {
|
932 926 | builder.creation_date_time = Some(deser.read_timestamp(member)?);
|
933 927 | }
|
934 928 | Some(5) => {
|
935 929 | builder.provisioned_throughput = Some(crate::types::ProvisionedThroughputDescription::deserialize(deser)?);
|
936 930 | }
|
937 931 | Some(6) => {
|
938 932 | builder.table_size_bytes = Some(deser.read_long(member)?);
|
939 933 | }
|
940 934 | Some(7) => {
|
941 935 | builder.item_count = Some(deser.read_long(member)?);
|
942 936 | }
|
943 937 | Some(8) => {
|
944 938 | builder.table_arn = Some(deser.read_string(member)?);
|
945 939 | }
|
946 940 | Some(9) => {
|
947 941 | builder.table_id = Some(deser.read_string(member)?);
|
948 942 | }
|
949 943 | Some(10) => {
|
950 944 | builder.billing_mode_summary = Some(crate::types::BillingModeSummary::deserialize(deser)?);
|
951 945 | }
|
952 946 | Some(11) => {
|
953 947 | builder.local_secondary_indexes = Some({
|
954 - | let container = if let Some(cap) = deser.container_size() {
|
955 - | Vec::with_capacity(cap)
|
956 - | } else {
|
957 - | Vec::new()
|
958 - | };
|
959 - | deser.read_list(member, container, |mut list, deser| {
|
960 - | list.push(crate::types::LocalSecondaryIndexDescription::deserialize(deser)?);
|
961 - | Ok(list)
|
962 - | })?
|
948 + | let mut container = Vec::new();
|
949 + | deser.read_list(member, &mut |deser| {
|
950 + | container.push(crate::types::LocalSecondaryIndexDescription::deserialize(deser)?);
|
951 + | Ok(())
|
952 + | })?;
|
953 + | container
|
963 954 | });
|
964 955 | }
|
965 956 | Some(12) => {
|
966 957 | builder.global_secondary_indexes = Some({
|
967 - | let container = if let Some(cap) = deser.container_size() {
|
968 - | Vec::with_capacity(cap)
|
969 - | } else {
|
970 - | Vec::new()
|
971 - | };
|
972 - | deser.read_list(member, container, |mut list, deser| {
|
973 - | list.push(crate::types::GlobalSecondaryIndexDescription::deserialize(deser)?);
|
974 - | Ok(list)
|
975 - | })?
|
958 + | let mut container = Vec::new();
|
959 + | deser.read_list(member, &mut |deser| {
|
960 + | container.push(crate::types::GlobalSecondaryIndexDescription::deserialize(deser)?);
|
961 + | Ok(())
|
962 + | })?;
|
963 + | container
|
976 964 | });
|
977 965 | }
|
978 966 | Some(13) => {
|
979 967 | builder.stream_specification = Some(crate::types::StreamSpecification::deserialize(deser)?);
|
980 968 | }
|
981 969 | Some(14) => {
|
982 970 | builder.latest_stream_label = Some(deser.read_string(member)?);
|
983 971 | }
|
984 972 | Some(15) => {
|
985 973 | builder.latest_stream_arn = Some(deser.read_string(member)?);
|
986 974 | }
|
987 975 | Some(16) => {
|
988 976 | builder.global_table_version = Some(deser.read_string(member)?);
|
989 977 | }
|
990 978 | Some(17) => {
|
991 979 | builder.replicas = Some({
|
992 - | let container = if let Some(cap) = deser.container_size() {
|
993 - | Vec::with_capacity(cap)
|
994 - | } else {
|
995 - | Vec::new()
|
996 - | };
|
997 - | deser.read_list(member, container, |mut list, deser| {
|
998 - | list.push(crate::types::ReplicaDescription::deserialize(deser)?);
|
999 - | Ok(list)
|
1000 - | })?
|
980 + | let mut container = Vec::new();
|
981 + | deser.read_list(member, &mut |deser| {
|
982 + | container.push(crate::types::ReplicaDescription::deserialize(deser)?);
|
983 + | Ok(())
|
984 + | })?;
|
985 + | container
|
1001 986 | });
|
1002 987 | }
|
1003 988 | Some(18) => {
|
1004 989 | builder.global_table_witnesses = Some({
|
1005 - | let container = if let Some(cap) = deser.container_size() {
|
1006 - | Vec::with_capacity(cap)
|
1007 - | } else {
|
1008 - | Vec::new()
|
1009 - | };
|
1010 - | deser.read_list(member, container, |mut list, deser| {
|
1011 - | list.push(crate::types::GlobalTableWitnessDescription::deserialize(deser)?);
|
1012 - | Ok(list)
|
1013 - | })?
|
990 + | let mut container = Vec::new();
|
991 + | deser.read_list(member, &mut |deser| {
|
992 + | container.push(crate::types::GlobalTableWitnessDescription::deserialize(deser)?);
|
993 + | Ok(())
|
994 + | })?;
|
995 + | container
|
1014 996 | });
|
1015 997 | }
|
1016 998 | Some(19) => {
|
1017 999 | builder.restore_summary = Some(crate::types::RestoreSummary::deserialize(deser)?);
|
1018 1000 | }
|
1019 1001 | Some(20) => {
|
1020 1002 | builder.sse_description = Some(crate::types::SseDescription::deserialize(deser)?);
|
1021 1003 | }
|
1022 1004 | Some(21) => {
|
1023 1005 | builder.archival_summary = Some(crate::types::ArchivalSummary::deserialize(deser)?);
|
1024 1006 | }
|
1025 1007 | Some(22) => {
|
1026 1008 | builder.table_class_summary = Some(crate::types::TableClassSummary::deserialize(deser)?);
|
1027 1009 | }
|
1028 1010 | Some(23) => {
|
1029 1011 | builder.deletion_protection_enabled = Some(deser.read_boolean(member)?);
|
1030 1012 | }
|
1031 1013 | Some(24) => {
|
1032 1014 | builder.on_demand_throughput = Some(crate::types::OnDemandThroughput::deserialize(deser)?);
|
1033 1015 | }
|
1034 1016 | Some(25) => {
|
1035 1017 | builder.warm_throughput = Some(crate::types::TableWarmThroughputDescription::deserialize(deser)?);
|
1036 1018 | }
|
1037 1019 | Some(26) => {
|
1038 1020 | builder.multi_region_consistency = Some(crate::types::MultiRegionConsistency::from(deser.read_string(member)?.as_str()));
|
1039 1021 | }
|
1040 1022 | _ => {}
|
1041 1023 | }
|
1042 1024 | Ok(())
|
1043 1025 | })?;
|
1044 1026 | Ok(builder.build())
|
1045 1027 | }
|
1046 1028 | }
|
1029 + | impl TableDescription {
|
1030 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
1031 + | pub fn deserialize_with_response(
|
1032 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
1033 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
1034 + | _status: u16,
|
1035 + | _body: &[u8],
|
1036 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
1037 + | Self::deserialize(deserializer)
|
1038 + | }
|
1039 + | }
|
1047 1040 | impl TableDescription {
|
1048 1041 | /// Creates a new builder-style object to manufacture [`TableDescription`](crate::types::TableDescription).
|
1049 1042 | pub fn builder() -> crate::types::builders::TableDescriptionBuilder {
|
1050 1043 | crate::types::builders::TableDescriptionBuilder::default()
|
1051 1044 | }
|
1052 1045 | }
|
1053 1046 |
|
1054 1047 | /// A builder for [`TableDescription`](crate::types::TableDescription).
|
1055 1048 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
1056 1049 | #[non_exhaustive]
|