AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/create_service/_create_service_input.rs

@@ -295,295 +595,595 @@
  315    315   
    "cluster",
  316    316   
    0,
  317    317   
);
  318    318   
static CREATESERVICEINPUT_MEMBER_SERVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  319    319   
    ::aws_smithy_schema::ShapeId::from_static(
  320    320   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$serviceName",
  321    321   
        "com.amazonaws.ecs.synthetic",
  322    322   
        "CreateServiceInput",
  323    323   
    ),
  324    324   
    ::aws_smithy_schema::ShapeType::String,
  325         -
    "service_name",
         325  +
    "serviceName",
  326    326   
    1,
  327    327   
);
  328    328   
static CREATESERVICEINPUT_MEMBER_TASK_DEFINITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  329    329   
    ::aws_smithy_schema::ShapeId::from_static(
  330    330   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$taskDefinition",
  331    331   
        "com.amazonaws.ecs.synthetic",
  332    332   
        "CreateServiceInput",
  333    333   
    ),
  334    334   
    ::aws_smithy_schema::ShapeType::String,
  335         -
    "task_definition",
         335  +
    "taskDefinition",
  336    336   
    2,
  337    337   
);
  338    338   
static CREATESERVICEINPUT_MEMBER_AVAILABILITY_ZONE_REBALANCING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  339    339   
    ::aws_smithy_schema::ShapeId::from_static(
  340    340   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$availabilityZoneRebalancing",
  341    341   
        "com.amazonaws.ecs.synthetic",
  342    342   
        "CreateServiceInput",
  343    343   
    ),
  344    344   
    ::aws_smithy_schema::ShapeType::String,
  345         -
    "availability_zone_rebalancing",
         345  +
    "availabilityZoneRebalancing",
  346    346   
    3,
  347    347   
);
  348    348   
static CREATESERVICEINPUT_MEMBER_LOAD_BALANCERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  349    349   
    ::aws_smithy_schema::ShapeId::from_static(
  350    350   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$loadBalancers",
  351    351   
        "com.amazonaws.ecs.synthetic",
  352    352   
        "CreateServiceInput",
  353    353   
    ),
  354    354   
    ::aws_smithy_schema::ShapeType::List,
  355         -
    "load_balancers",
         355  +
    "loadBalancers",
  356    356   
    4,
  357    357   
);
  358    358   
static CREATESERVICEINPUT_MEMBER_SERVICE_REGISTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  359    359   
    ::aws_smithy_schema::ShapeId::from_static(
  360    360   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$serviceRegistries",
  361    361   
        "com.amazonaws.ecs.synthetic",
  362    362   
        "CreateServiceInput",
  363    363   
    ),
  364    364   
    ::aws_smithy_schema::ShapeType::List,
  365         -
    "service_registries",
         365  +
    "serviceRegistries",
  366    366   
    5,
  367    367   
);
  368    368   
static CREATESERVICEINPUT_MEMBER_DESIRED_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  369    369   
    ::aws_smithy_schema::ShapeId::from_static(
  370    370   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$desiredCount",
  371    371   
        "com.amazonaws.ecs.synthetic",
  372    372   
        "CreateServiceInput",
  373    373   
    ),
  374    374   
    ::aws_smithy_schema::ShapeType::Integer,
  375         -
    "desired_count",
         375  +
    "desiredCount",
  376    376   
    6,
  377    377   
);
  378    378   
static CREATESERVICEINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  379    379   
    ::aws_smithy_schema::ShapeId::from_static(
  380    380   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$clientToken",
  381    381   
        "com.amazonaws.ecs.synthetic",
  382    382   
        "CreateServiceInput",
  383    383   
    ),
  384    384   
    ::aws_smithy_schema::ShapeType::String,
  385         -
    "client_token",
         385  +
    "clientToken",
  386    386   
    7,
  387    387   
);
  388    388   
static CREATESERVICEINPUT_MEMBER_LAUNCH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  389    389   
    ::aws_smithy_schema::ShapeId::from_static(
  390    390   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$launchType",
  391    391   
        "com.amazonaws.ecs.synthetic",
  392    392   
        "CreateServiceInput",
  393    393   
    ),
  394    394   
    ::aws_smithy_schema::ShapeType::String,
  395         -
    "launch_type",
         395  +
    "launchType",
  396    396   
    8,
  397    397   
);
  398    398   
static CREATESERVICEINPUT_MEMBER_CAPACITY_PROVIDER_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  399    399   
    ::aws_smithy_schema::ShapeId::from_static(
  400    400   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$capacityProviderStrategy",
  401    401   
        "com.amazonaws.ecs.synthetic",
  402    402   
        "CreateServiceInput",
  403    403   
    ),
  404    404   
    ::aws_smithy_schema::ShapeType::List,
  405         -
    "capacity_provider_strategy",
         405  +
    "capacityProviderStrategy",
  406    406   
    9,
  407    407   
);
  408    408   
static CREATESERVICEINPUT_MEMBER_PLATFORM_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  409    409   
    ::aws_smithy_schema::ShapeId::from_static(
  410    410   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$platformVersion",
  411    411   
        "com.amazonaws.ecs.synthetic",
  412    412   
        "CreateServiceInput",
  413    413   
    ),
  414    414   
    ::aws_smithy_schema::ShapeType::String,
  415         -
    "platform_version",
         415  +
    "platformVersion",
  416    416   
    10,
  417    417   
);
  418    418   
static CREATESERVICEINPUT_MEMBER_ROLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  419    419   
    ::aws_smithy_schema::ShapeId::from_static(
  420    420   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$role",
  421    421   
        "com.amazonaws.ecs.synthetic",
  422    422   
        "CreateServiceInput",
  423    423   
    ),
  424    424   
    ::aws_smithy_schema::ShapeType::String,
  425    425   
    "role",
  426    426   
    11,
  427    427   
);
  428    428   
static CREATESERVICEINPUT_MEMBER_DEPLOYMENT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  429    429   
    ::aws_smithy_schema::ShapeId::from_static(
  430    430   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$deploymentConfiguration",
  431    431   
        "com.amazonaws.ecs.synthetic",
  432    432   
        "CreateServiceInput",
  433    433   
    ),
  434    434   
    ::aws_smithy_schema::ShapeType::Structure,
  435         -
    "deployment_configuration",
         435  +
    "deploymentConfiguration",
  436    436   
    12,
  437    437   
);
  438    438   
static CREATESERVICEINPUT_MEMBER_PLACEMENT_CONSTRAINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  439    439   
    ::aws_smithy_schema::ShapeId::from_static(
  440    440   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$placementConstraints",
  441    441   
        "com.amazonaws.ecs.synthetic",
  442    442   
        "CreateServiceInput",
  443    443   
    ),
  444    444   
    ::aws_smithy_schema::ShapeType::List,
  445         -
    "placement_constraints",
         445  +
    "placementConstraints",
  446    446   
    13,
  447    447   
);
  448    448   
static CREATESERVICEINPUT_MEMBER_PLACEMENT_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  449    449   
    ::aws_smithy_schema::ShapeId::from_static(
  450    450   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$placementStrategy",
  451    451   
        "com.amazonaws.ecs.synthetic",
  452    452   
        "CreateServiceInput",
  453    453   
    ),
  454    454   
    ::aws_smithy_schema::ShapeType::List,
  455         -
    "placement_strategy",
         455  +
    "placementStrategy",
  456    456   
    14,
  457    457   
);
  458    458   
static CREATESERVICEINPUT_MEMBER_NETWORK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  459    459   
    ::aws_smithy_schema::ShapeId::from_static(
  460    460   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$networkConfiguration",
  461    461   
        "com.amazonaws.ecs.synthetic",
  462    462   
        "CreateServiceInput",
  463    463   
    ),
  464    464   
    ::aws_smithy_schema::ShapeType::Structure,
  465         -
    "network_configuration",
         465  +
    "networkConfiguration",
  466    466   
    15,
  467    467   
);
  468    468   
static CREATESERVICEINPUT_MEMBER_HEALTH_CHECK_GRACE_PERIOD_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  469    469   
    ::aws_smithy_schema::ShapeId::from_static(
  470    470   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$healthCheckGracePeriodSeconds",
  471    471   
        "com.amazonaws.ecs.synthetic",
  472    472   
        "CreateServiceInput",
  473    473   
    ),
  474    474   
    ::aws_smithy_schema::ShapeType::Integer,
  475         -
    "health_check_grace_period_seconds",
         475  +
    "healthCheckGracePeriodSeconds",
  476    476   
    16,
  477    477   
);
  478    478   
static CREATESERVICEINPUT_MEMBER_SCHEDULING_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  479    479   
    ::aws_smithy_schema::ShapeId::from_static(
  480    480   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$schedulingStrategy",
  481    481   
        "com.amazonaws.ecs.synthetic",
  482    482   
        "CreateServiceInput",
  483    483   
    ),
  484    484   
    ::aws_smithy_schema::ShapeType::String,
  485         -
    "scheduling_strategy",
         485  +
    "schedulingStrategy",
  486    486   
    17,
  487    487   
);
  488    488   
static CREATESERVICEINPUT_MEMBER_DEPLOYMENT_CONTROLLER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  489    489   
    ::aws_smithy_schema::ShapeId::from_static(
  490    490   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$deploymentController",
  491    491   
        "com.amazonaws.ecs.synthetic",
  492    492   
        "CreateServiceInput",
  493    493   
    ),
  494    494   
    ::aws_smithy_schema::ShapeType::Structure,
  495         -
    "deployment_controller",
         495  +
    "deploymentController",
  496    496   
    18,
  497    497   
);
  498    498   
static CREATESERVICEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  499    499   
    ::aws_smithy_schema::ShapeId::from_static(
  500    500   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$tags",
  501    501   
        "com.amazonaws.ecs.synthetic",
  502    502   
        "CreateServiceInput",
  503    503   
    ),
  504    504   
    ::aws_smithy_schema::ShapeType::List,
  505    505   
    "tags",
  506    506   
    19,
  507    507   
);
  508    508   
static CREATESERVICEINPUT_MEMBER_ENABLE_ECS_MANAGED_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  509    509   
    ::aws_smithy_schema::ShapeId::from_static(
  510    510   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$enableECSManagedTags",
  511    511   
        "com.amazonaws.ecs.synthetic",
  512    512   
        "CreateServiceInput",
  513    513   
    ),
  514    514   
    ::aws_smithy_schema::ShapeType::Boolean,
  515         -
    "enable_ecs_managed_tags",
         515  +
    "enableECSManagedTags",
  516    516   
    20,
  517    517   
);
  518    518   
static CREATESERVICEINPUT_MEMBER_PROPAGATE_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  519    519   
    ::aws_smithy_schema::ShapeId::from_static(
  520    520   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$propagateTags",
  521    521   
        "com.amazonaws.ecs.synthetic",
  522    522   
        "CreateServiceInput",
  523    523   
    ),
  524    524   
    ::aws_smithy_schema::ShapeType::String,
  525         -
    "propagate_tags",
         525  +
    "propagateTags",
  526    526   
    21,
  527    527   
);
  528    528   
static CREATESERVICEINPUT_MEMBER_ENABLE_EXECUTE_COMMAND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  529    529   
    ::aws_smithy_schema::ShapeId::from_static(
  530    530   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$enableExecuteCommand",
  531    531   
        "com.amazonaws.ecs.synthetic",
  532    532   
        "CreateServiceInput",
  533    533   
    ),
  534    534   
    ::aws_smithy_schema::ShapeType::Boolean,
  535         -
    "enable_execute_command",
         535  +
    "enableExecuteCommand",
  536    536   
    22,
  537    537   
);
  538    538   
static CREATESERVICEINPUT_MEMBER_SERVICE_CONNECT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  539    539   
    ::aws_smithy_schema::ShapeId::from_static(
  540    540   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$serviceConnectConfiguration",
  541    541   
        "com.amazonaws.ecs.synthetic",
  542    542   
        "CreateServiceInput",
  543    543   
    ),
  544    544   
    ::aws_smithy_schema::ShapeType::Structure,
  545         -
    "service_connect_configuration",
         545  +
    "serviceConnectConfiguration",
  546    546   
    23,
  547    547   
);
  548    548   
static CREATESERVICEINPUT_MEMBER_VOLUME_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  549    549   
    ::aws_smithy_schema::ShapeId::from_static(
  550    550   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$volumeConfigurations",
  551    551   
        "com.amazonaws.ecs.synthetic",
  552    552   
        "CreateServiceInput",
  553    553   
    ),
  554    554   
    ::aws_smithy_schema::ShapeType::List,
  555         -
    "volume_configurations",
         555  +
    "volumeConfigurations",
  556    556   
    24,
  557    557   
);
  558    558   
static CREATESERVICEINPUT_MEMBER_VPC_LATTICE_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  559    559   
    ::aws_smithy_schema::ShapeId::from_static(
  560    560   
        "com.amazonaws.ecs.synthetic#CreateServiceInput$vpcLatticeConfigurations",
  561    561   
        "com.amazonaws.ecs.synthetic",
  562    562   
        "CreateServiceInput",
  563    563   
    ),
  564    564   
    ::aws_smithy_schema::ShapeType::List,
  565         -
    "vpc_lattice_configurations",
         565  +
    "vpcLatticeConfigurations",
  566    566   
    25,
  567    567   
);
  568    568   
static CREATESERVICEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  569    569   
    CREATESERVICEINPUT_SCHEMA_ID,
  570    570   
    ::aws_smithy_schema::ShapeType::Structure,
  571    571   
    &[
  572    572   
        &CREATESERVICEINPUT_MEMBER_CLUSTER,
  573    573   
        &CREATESERVICEINPUT_MEMBER_SERVICE_NAME,
  574    574   
        &CREATESERVICEINPUT_MEMBER_TASK_DEFINITION,
  575    575   
        &CREATESERVICEINPUT_MEMBER_AVAILABILITY_ZONE_REBALANCING,
@@ -727,727 +968,956 @@
  747    747   
                    }
  748    748   
                    Ok(())
  749    749   
                },
  750    750   
            )?;
  751    751   
        }
  752    752   
        Ok(())
  753    753   
    }
  754    754   
}
  755    755   
impl CreateServiceInput {
  756    756   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  757         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  758         -
        deserializer: &mut D,
         757  +
    pub fn deserialize(
         758  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  759    759   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  760    760   
        #[allow(unused_variables, unused_mut)]
  761    761   
        let mut builder = Self::builder();
  762    762   
        #[allow(
  763    763   
            unused_variables,
  764    764   
            unreachable_code,
  765    765   
            clippy::single_match,
  766    766   
            clippy::match_single_binding,
  767    767   
            clippy::diverging_sub_expression
  768    768   
        )]
  769         -
        deserializer.read_struct(&CREATESERVICEINPUT_SCHEMA, (), |_, member, deser| {
         769  +
        deserializer.read_struct(&CREATESERVICEINPUT_SCHEMA, &mut |member, deser| {
  770    770   
            match member.member_index() {
  771    771   
                Some(0) => {
  772    772   
                    builder.cluster = Some(deser.read_string(member)?);
  773    773   
                }
  774    774   
                Some(1) => {
  775    775   
                    builder.service_name = Some(deser.read_string(member)?);
  776    776   
                }
  777    777   
                Some(2) => {
  778    778   
                    builder.task_definition = Some(deser.read_string(member)?);
  779    779   
                }
  780    780   
                Some(3) => {
  781    781   
                    builder.availability_zone_rebalancing =
  782    782   
                        Some(crate::types::AvailabilityZoneRebalancing::from(deser.read_string(member)?.as_str()));
  783    783   
                }
  784    784   
                Some(4) => {
  785    785   
                    builder.load_balancers = Some({
  786         -
                        let container = if let Some(cap) = deser.container_size() {
  787         -
                            Vec::with_capacity(cap)
  788         -
                        } else {
  789         -
                            Vec::new()
  790         -
                        };
  791         -
                        deser.read_list(member, container, |mut list, deser| {
  792         -
                            list.push(crate::types::LoadBalancer::deserialize(deser)?);
  793         -
                            Ok(list)
  794         -
                        })?
         786  +
                        let mut container = Vec::new();
         787  +
                        deser.read_list(member, &mut |deser| {
         788  +
                            container.push(crate::types::LoadBalancer::deserialize(deser)?);
         789  +
                            Ok(())
         790  +
                        })?;
         791  +
                        container
  795    792   
                    });
  796    793   
                }
  797    794   
                Some(5) => {
  798    795   
                    builder.service_registries = Some({
  799         -
                        let container = if let Some(cap) = deser.container_size() {
  800         -
                            Vec::with_capacity(cap)
  801         -
                        } else {
  802         -
                            Vec::new()
  803         -
                        };
  804         -
                        deser.read_list(member, container, |mut list, deser| {
  805         -
                            list.push(crate::types::ServiceRegistry::deserialize(deser)?);
  806         -
                            Ok(list)
  807         -
                        })?
         796  +
                        let mut container = Vec::new();
         797  +
                        deser.read_list(member, &mut |deser| {
         798  +
                            container.push(crate::types::ServiceRegistry::deserialize(deser)?);
         799  +
                            Ok(())
         800  +
                        })?;
         801  +
                        container
  808    802   
                    });
  809    803   
                }
  810    804   
                Some(6) => {
  811    805   
                    builder.desired_count = Some(deser.read_integer(member)?);
  812    806   
                }
  813    807   
                Some(7) => {
  814    808   
                    builder.client_token = Some(deser.read_string(member)?);
  815    809   
                }
  816    810   
                Some(8) => {
  817    811   
                    builder.launch_type = Some(crate::types::LaunchType::from(deser.read_string(member)?.as_str()));
  818    812   
                }
  819    813   
                Some(9) => {
  820    814   
                    builder.capacity_provider_strategy = Some({
  821         -
                        let container = if let Some(cap) = deser.container_size() {
  822         -
                            Vec::with_capacity(cap)
  823         -
                        } else {
  824         -
                            Vec::new()
  825         -
                        };
  826         -
                        deser.read_list(member, container, |mut list, deser| {
  827         -
                            list.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
  828         -
                            Ok(list)
  829         -
                        })?
         815  +
                        let mut container = Vec::new();
         816  +
                        deser.read_list(member, &mut |deser| {
         817  +
                            container.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
         818  +
                            Ok(())
         819  +
                        })?;
         820  +
                        container
  830    821   
                    });
  831    822   
                }
  832    823   
                Some(10) => {
  833    824   
                    builder.platform_version = Some(deser.read_string(member)?);
  834    825   
                }
  835    826   
                Some(11) => {
  836    827   
                    builder.role = Some(deser.read_string(member)?);
  837    828   
                }
  838    829   
                Some(12) => {
  839    830   
                    builder.deployment_configuration = Some(crate::types::DeploymentConfiguration::deserialize(deser)?);
  840    831   
                }
  841    832   
                Some(13) => {
  842    833   
                    builder.placement_constraints = Some({
  843         -
                        let container = if let Some(cap) = deser.container_size() {
  844         -
                            Vec::with_capacity(cap)
  845         -
                        } else {
  846         -
                            Vec::new()
  847         -
                        };
  848         -
                        deser.read_list(member, container, |mut list, deser| {
  849         -
                            list.push(crate::types::PlacementConstraint::deserialize(deser)?);
  850         -
                            Ok(list)
  851         -
                        })?
         834  +
                        let mut container = Vec::new();
         835  +
                        deser.read_list(member, &mut |deser| {
         836  +
                            container.push(crate::types::PlacementConstraint::deserialize(deser)?);
         837  +
                            Ok(())
         838  +
                        })?;
         839  +
                        container
  852    840   
                    });
  853    841   
                }
  854    842   
                Some(14) => {
  855    843   
                    builder.placement_strategy = Some({
  856         -
                        let container = if let Some(cap) = deser.container_size() {
  857         -
                            Vec::with_capacity(cap)
  858         -
                        } else {
  859         -
                            Vec::new()
  860         -
                        };
  861         -
                        deser.read_list(member, container, |mut list, deser| {
  862         -
                            list.push(crate::types::PlacementStrategy::deserialize(deser)?);
  863         -
                            Ok(list)
  864         -
                        })?
         844  +
                        let mut container = Vec::new();
         845  +
                        deser.read_list(member, &mut |deser| {
         846  +
                            container.push(crate::types::PlacementStrategy::deserialize(deser)?);
         847  +
                            Ok(())
         848  +
                        })?;
         849  +
                        container
  865    850   
                    });
  866    851   
                }
  867    852   
                Some(15) => {
  868    853   
                    builder.network_configuration = Some(crate::types::NetworkConfiguration::deserialize(deser)?);
  869    854   
                }
  870    855   
                Some(16) => {
  871    856   
                    builder.health_check_grace_period_seconds = Some(deser.read_integer(member)?);
  872    857   
                }
  873    858   
                Some(17) => {
  874    859   
                    builder.scheduling_strategy = Some(crate::types::SchedulingStrategy::from(deser.read_string(member)?.as_str()));
  875    860   
                }
  876    861   
                Some(18) => {
  877    862   
                    builder.deployment_controller = Some(crate::types::DeploymentController::deserialize(deser)?);
  878    863   
                }
  879    864   
                Some(19) => {
  880    865   
                    builder.tags = Some({
  881         -
                        let container = if let Some(cap) = deser.container_size() {
  882         -
                            Vec::with_capacity(cap)
  883         -
                        } else {
  884         -
                            Vec::new()
  885         -
                        };
  886         -
                        deser.read_list(member, container, |mut list, deser| {
  887         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  888         -
                            Ok(list)
  889         -
                        })?
         866  +
                        let mut container = Vec::new();
         867  +
                        deser.read_list(member, &mut |deser| {
         868  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         869  +
                            Ok(())
         870  +
                        })?;
         871  +
                        container
  890    872   
                    });
  891    873   
                }
  892    874   
                Some(20) => {
  893    875   
                    builder.enable_ecs_managed_tags = Some(deser.read_boolean(member)?);
  894    876   
                }
  895    877   
                Some(21) => {
  896    878   
                    builder.propagate_tags = Some(crate::types::PropagateTags::from(deser.read_string(member)?.as_str()));
  897    879   
                }
  898    880   
                Some(22) => {
  899    881   
                    builder.enable_execute_command = Some(deser.read_boolean(member)?);
  900    882   
                }
  901    883   
                Some(23) => {
  902    884   
                    builder.service_connect_configuration = Some(crate::types::ServiceConnectConfiguration::deserialize(deser)?);
  903    885   
                }
  904    886   
                Some(24) => {
  905    887   
                    builder.volume_configurations = Some({
  906         -
                        let container = if let Some(cap) = deser.container_size() {
  907         -
                            Vec::with_capacity(cap)
  908         -
                        } else {
  909         -
                            Vec::new()
  910         -
                        };
  911         -
                        deser.read_list(member, container, |mut list, deser| {
  912         -
                            list.push(crate::types::ServiceVolumeConfiguration::deserialize(deser)?);
  913         -
                            Ok(list)
  914         -
                        })?
         888  +
                        let mut container = Vec::new();
         889  +
                        deser.read_list(member, &mut |deser| {
         890  +
                            container.push(crate::types::ServiceVolumeConfiguration::deserialize(deser)?);
         891  +
                            Ok(())
         892  +
                        })?;
         893  +
                        container
  915    894   
                    });
  916    895   
                }
  917    896   
                Some(25) => {
  918    897   
                    builder.vpc_lattice_configurations = Some({
  919         -
                        let container = if let Some(cap) = deser.container_size() {
  920         -
                            Vec::with_capacity(cap)
  921         -
                        } else {
  922         -
                            Vec::new()
  923         -
                        };
  924         -
                        deser.read_list(member, container, |mut list, deser| {
  925         -
                            list.push(crate::types::VpcLatticeConfiguration::deserialize(deser)?);
  926         -
                            Ok(list)
  927         -
                        })?
         898  +
                        let mut container = Vec::new();
         899  +
                        deser.read_list(member, &mut |deser| {
         900  +
                            container.push(crate::types::VpcLatticeConfiguration::deserialize(deser)?);
         901  +
                            Ok(())
         902  +
                        })?;
         903  +
                        container
  928    904   
                    });
  929    905   
                }
  930    906   
                _ => {}
  931    907   
            }
  932    908   
            Ok(())
  933    909   
        })?;
         910  +
        builder.service_name = builder.service_name.or(Some(String::new()));
  934    911   
        builder
  935    912   
            .build()
  936    913   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  937    914   
    }
  938    915   
}
         916  +
impl CreateServiceInput {
         917  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         918  +
    pub fn deserialize_with_response(
         919  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         920  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         921  +
        _status: u16,
         922  +
        _body: &[u8],
         923  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         924  +
        Self::deserialize(deserializer)
         925  +
    }
         926  +
}
  939    927   
impl CreateServiceInput {
  940    928   
    /// Creates a new builder-style object to manufacture [`CreateServiceInput`](crate::operation::create_service::CreateServiceInput).
  941    929   
    pub fn builder() -> crate::operation::create_service::builders::CreateServiceInputBuilder {
  942    930   
        crate::operation::create_service::builders::CreateServiceInputBuilder::default()
  943    931   
    }
  944    932   
}
  945    933   
  946    934   
/// A builder for [`CreateServiceInput`](crate::operation::create_service::CreateServiceInput).
  947    935   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  948    936   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/create_service/_create_service_output.rs

@@ -7,7 +102,146 @@
   27     27   
static CREATESERVICEOUTPUT_MEMBER_SERVICE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.ecs.synthetic#CreateServiceOutput$service",
   30     30   
        "com.amazonaws.ecs.synthetic",
   31     31   
        "CreateServiceOutput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    "service",
   35     35   
    0,
   36     36   
);
          37  +
static CREATESERVICEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          38  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          39  +
    ::aws_smithy_schema::ShapeType::String,
          40  +
    "request_id",
          41  +
    1,
          42  +
)
          43  +
.with_http_header("x-amzn-requestid");
   37     44   
static CREATESERVICEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   38     45   
    CREATESERVICEOUTPUT_SCHEMA_ID,
   39     46   
    ::aws_smithy_schema::ShapeType::Structure,
   40         -
    &[&CREATESERVICEOUTPUT_MEMBER_SERVICE],
          47  +
    &[&CREATESERVICEOUTPUT_MEMBER_SERVICE, &CREATESERVICEOUTPUT_MEMBER__REQUEST_ID],
   41     48   
);
   42     49   
impl CreateServiceOutput {
   43     50   
    /// The schema for this shape.
   44     51   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATESERVICEOUTPUT_SCHEMA;
   45     52   
}
   46     53   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateServiceOutput {
   47     54   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   48     55   
    fn serialize_members(
   49     56   
        &self,
   50     57   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   51     58   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   52     59   
        if let Some(ref val) = self.service {
   53     60   
            ser.write_struct(&CREATESERVICEOUTPUT_MEMBER_SERVICE, val)?;
   54     61   
        }
   55     62   
        Ok(())
   56     63   
    }
   57     64   
}
   58     65   
impl CreateServiceOutput {
   59     66   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   60         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   61         -
        deserializer: &mut D,
          67  +
    pub fn deserialize(
          68  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   62     69   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   63     70   
        #[allow(unused_variables, unused_mut)]
   64     71   
        let mut builder = Self::builder();
   65     72   
        #[allow(
   66     73   
            unused_variables,
   67     74   
            unreachable_code,
   68     75   
            clippy::single_match,
   69     76   
            clippy::match_single_binding,
   70     77   
            clippy::diverging_sub_expression
   71     78   
        )]
   72         -
        deserializer.read_struct(&CREATESERVICEOUTPUT_SCHEMA, (), |_, member, deser| {
          79  +
        deserializer.read_struct(&CREATESERVICEOUTPUT_SCHEMA, &mut |member, deser| {
          80  +
            match member.member_index() {
          81  +
                Some(0) => {
          82  +
                    builder.service = Some(crate::types::Service::deserialize(deser)?);
          83  +
                }
          84  +
                Some(1) => {
          85  +
                    builder._request_id = Some(deser.read_string(member)?);
          86  +
                }
          87  +
                _ => {}
          88  +
            }
          89  +
            Ok(())
          90  +
        })?;
          91  +
        Ok(builder.build())
          92  +
    }
          93  +
}
          94  +
impl CreateServiceOutput {
          95  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          96  +
    /// Header-bound members are read directly from headers, avoiding runtime
          97  +
    /// member iteration overhead. Body members are read via the deserializer.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        _body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        #[allow(unused_variables, unused_mut)]
         105  +
        let mut builder = Self::builder();
         106  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         107  +
            builder._request_id = Some(val.to_string());
         108  +
        }
         109  +
        #[allow(
         110  +
            unused_variables,
         111  +
            unreachable_code,
         112  +
            clippy::single_match,
         113  +
            clippy::match_single_binding,
         114  +
            clippy::diverging_sub_expression
         115  +
        )]
         116  +
        deserializer.read_struct(&CREATESERVICEOUTPUT_SCHEMA, &mut |member, deser| {
   73    117   
            match member.member_index() {
   74    118   
                Some(0) => {
   75    119   
                    builder.service = Some(crate::types::Service::deserialize(deser)?);
   76    120   
                }
   77    121   
                _ => {}
   78    122   
            }
   79    123   
            Ok(())
   80    124   
        })?;
   81    125   
        Ok(builder.build())
   82    126   
    }

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/create_task_set.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateTaskSet`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateTaskSet;
    6      6   
impl CreateTaskSet {
    7      7   
    /// Creates a new `CreateTaskSet`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_task_set::CreateTaskSetInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_task_set::CreateTaskSetOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::create_task_set::CreateTaskSetInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_task_set::CreateTaskSetOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_task_set::CreateTaskSetError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,527 @@
  135    139   
                crate::operation::create_task_set::CreateTaskSetError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct CreateTaskSetResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateTaskSetResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_create_task_set::de_create_task_set_http_error(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::create_task_set::CreateTaskSetError::unhandled(
         172  +
                            generic,
         173  +
                        )),
         174  +
                    ))
         175  +
                }
         176  +
            };
         177  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         178  +
            let protocol = _cfg
         179  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         180  +
                .expect("a SharedClientProtocol is required");
         181  +
            let err = match error_code {
         182  +
                "AccessDeniedException" => crate::operation::create_task_set::CreateTaskSetError::AccessDeniedException({
         183  +
                    let mut tmp = match protocol
         184  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         185  +
                        .and_then(|mut deser| {
         186  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         187  +
                                &mut *deser,
         188  +
                                response.headers(),
         189  +
                                response.status().into(),
         190  +
                                body,
         191  +
                            )
         192  +
                        }) {
         193  +
                        ::std::result::Result::Ok(val) => val,
         194  +
                        ::std::result::Result::Err(e) => {
         195  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         196  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         197  +
                            ))
         198  +
                        }
         199  +
                    };
         200  +
                    tmp.meta = generic;
         201  +
                    if tmp.message.is_none() {
         202  +
                        tmp.message = _error_message;
         203  +
                    }
         204  +
                    tmp
         205  +
                }),
         206  +
                "ClientException" => crate::operation::create_task_set::CreateTaskSetError::ClientException({
         207  +
                    let mut tmp = match protocol
         208  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         209  +
                        .and_then(|mut deser| {
         210  +
                            crate::types::error::ClientException::deserialize_with_response(
         211  +
                                &mut *deser,
         212  +
                                response.headers(),
         213  +
                                response.status().into(),
         214  +
                                body,
         215  +
                            )
         216  +
                        }) {
         217  +
                        ::std::result::Result::Ok(val) => val,
         218  +
                        ::std::result::Result::Err(e) => {
         219  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         220  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         221  +
                            ))
         222  +
                        }
         223  +
                    };
         224  +
                    tmp.meta = generic;
         225  +
                    if tmp.message.is_none() {
         226  +
                        tmp.message = _error_message;
         227  +
                    }
         228  +
                    tmp
         229  +
                }),
         230  +
                "ClusterNotFoundException" => crate::operation::create_task_set::CreateTaskSetError::ClusterNotFoundException({
         231  +
                    let mut tmp = match protocol
         232  +
                        .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         233  +
                        .and_then(|mut deser| {
         234  +
                            crate::types::error::ClusterNotFoundException::deserialize_with_response(
         235  +
                                &mut *deser,
         236  +
                                response.headers(),
         237  +
                                response.status().into(),
         238  +
                                body,
         239  +
                            )
         240  +
                        }) {
         241  +
                        ::std::result::Result::Ok(val) => val,
         242  +
                        ::std::result::Result::Err(e) => {
         243  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         244  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         245  +
                            ))
         246  +
                        }
         247  +
                    };
         248  +
                    tmp.meta = generic;
         249  +
                    if tmp.message.is_none() {
         250  +
                        tmp.message = _error_message;
         251  +
                    }
         252  +
                    tmp
         253  +
                }),
         254  +
                "InvalidParameterException" => crate::operation::create_task_set::CreateTaskSetError::InvalidParameterException({
         255  +
                    let mut tmp = match protocol
         256  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         257  +
                        .and_then(|mut deser| {
         258  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         259  +
                                &mut *deser,
         260  +
                                response.headers(),
         261  +
                                response.status().into(),
         262  +
                                body,
         263  +
                            )
         264  +
                        }) {
         265  +
                        ::std::result::Result::Ok(val) => val,
         266  +
                        ::std::result::Result::Err(e) => {
         267  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         268  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         269  +
                            ))
         270  +
                        }
         271  +
                    };
         272  +
                    tmp.meta = generic;
         273  +
                    if tmp.message.is_none() {
         274  +
                        tmp.message = _error_message;
         275  +
                    }
         276  +
                    tmp
         277  +
                }),
         278  +
                "NamespaceNotFoundException" => crate::operation::create_task_set::CreateTaskSetError::NamespaceNotFoundException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::NamespaceNotFoundException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::NamespaceNotFoundException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    if tmp.message.is_none() {
         298  +
                        tmp.message = _error_message;
         299  +
                    }
         300  +
                    tmp
         301  +
                }),
         302  +
                "PlatformTaskDefinitionIncompatibilityException" => {
         303  +
                    crate::operation::create_task_set::CreateTaskSetError::PlatformTaskDefinitionIncompatibilityException({
         304  +
                        let mut tmp = match protocol
         305  +
                            .deserialize_response(
         306  +
                                response,
         307  +
                                crate::types::error::PlatformTaskDefinitionIncompatibilityException::SCHEMA,
         308  +
                                _cfg,
         309  +
                            )
         310  +
                            .and_then(|mut deser| {
         311  +
                                crate::types::error::PlatformTaskDefinitionIncompatibilityException::deserialize_with_response(
         312  +
                                    &mut *deser,
         313  +
                                    response.headers(),
         314  +
                                    response.status().into(),
         315  +
                                    body,
         316  +
                                )
         317  +
                            }) {
         318  +
                            ::std::result::Result::Ok(val) => val,
         319  +
                            ::std::result::Result::Err(e) => {
         320  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         321  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         322  +
                                ))
         323  +
                            }
         324  +
                        };
         325  +
                        tmp.meta = generic;
         326  +
                        if tmp.message.is_none() {
         327  +
                            tmp.message = _error_message;
         328  +
                        }
         329  +
                        tmp
         330  +
                    })
         331  +
                }
         332  +
                "PlatformUnknownException" => crate::operation::create_task_set::CreateTaskSetError::PlatformUnknownException({
         333  +
                    let mut tmp = match protocol
         334  +
                        .deserialize_response(response, crate::types::error::PlatformUnknownException::SCHEMA, _cfg)
         335  +
                        .and_then(|mut deser| {
         336  +
                            crate::types::error::PlatformUnknownException::deserialize_with_response(
         337  +
                                &mut *deser,
         338  +
                                response.headers(),
         339  +
                                response.status().into(),
         340  +
                                body,
         341  +
                            )
         342  +
                        }) {
         343  +
                        ::std::result::Result::Ok(val) => val,
         344  +
                        ::std::result::Result::Err(e) => {
         345  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         346  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         347  +
                            ))
         348  +
                        }
         349  +
                    };
         350  +
                    tmp.meta = generic;
         351  +
                    if tmp.message.is_none() {
         352  +
                        tmp.message = _error_message;
         353  +
                    }
         354  +
                    tmp
         355  +
                }),
         356  +
                "ServerException" => crate::operation::create_task_set::CreateTaskSetError::ServerException({
         357  +
                    let mut tmp = match protocol
         358  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         359  +
                        .and_then(|mut deser| {
         360  +
                            crate::types::error::ServerException::deserialize_with_response(
         361  +
                                &mut *deser,
         362  +
                                response.headers(),
         363  +
                                response.status().into(),
         364  +
                                body,
         365  +
                            )
         366  +
                        }) {
         367  +
                        ::std::result::Result::Ok(val) => val,
         368  +
                        ::std::result::Result::Err(e) => {
         369  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         370  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         371  +
                            ))
         372  +
                        }
         373  +
                    };
         374  +
                    tmp.meta = generic;
         375  +
                    if tmp.message.is_none() {
         376  +
                        tmp.message = _error_message;
         377  +
                    }
         378  +
                    tmp
         379  +
                }),
         380  +
                "ServiceNotActiveException" => crate::operation::create_task_set::CreateTaskSetError::ServiceNotActiveException({
         381  +
                    let mut tmp = match protocol
         382  +
                        .deserialize_response(response, crate::types::error::ServiceNotActiveException::SCHEMA, _cfg)
         383  +
                        .and_then(|mut deser| {
         384  +
                            crate::types::error::ServiceNotActiveException::deserialize_with_response(
         385  +
                                &mut *deser,
         386  +
                                response.headers(),
         387  +
                                response.status().into(),
         388  +
                                body,
         389  +
                            )
         390  +
                        }) {
         391  +
                        ::std::result::Result::Ok(val) => val,
         392  +
                        ::std::result::Result::Err(e) => {
         393  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         394  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         395  +
                            ))
         396  +
                        }
         397  +
                    };
         398  +
                    tmp.meta = generic;
         399  +
                    if tmp.message.is_none() {
         400  +
                        tmp.message = _error_message;
         401  +
                    }
         402  +
                    tmp
         403  +
                }),
         404  +
                "ServiceNotFoundException" => crate::operation::create_task_set::CreateTaskSetError::ServiceNotFoundException({
         405  +
                    let mut tmp = match protocol
         406  +
                        .deserialize_response(response, crate::types::error::ServiceNotFoundException::SCHEMA, _cfg)
         407  +
                        .and_then(|mut deser| {
         408  +
                            crate::types::error::ServiceNotFoundException::deserialize_with_response(
         409  +
                                &mut *deser,
         410  +
                                response.headers(),
         411  +
                                response.status().into(),
         412  +
                                body,
         413  +
                            )
         414  +
                        }) {
         415  +
                        ::std::result::Result::Ok(val) => val,
         416  +
                        ::std::result::Result::Err(e) => {
         417  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         418  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         419  +
                            ))
         420  +
                        }
         421  +
                    };
         422  +
                    tmp.meta = generic;
         423  +
                    if tmp.message.is_none() {
         424  +
                        tmp.message = _error_message;
         425  +
                    }
         426  +
                    tmp
         427  +
                }),
         428  +
                "UnsupportedFeatureException" => crate::operation::create_task_set::CreateTaskSetError::UnsupportedFeatureException({
         429  +
                    let mut tmp = match protocol
         430  +
                        .deserialize_response(response, crate::types::error::UnsupportedFeatureException::SCHEMA, _cfg)
         431  +
                        .and_then(|mut deser| {
         432  +
                            crate::types::error::UnsupportedFeatureException::deserialize_with_response(
         433  +
                                &mut *deser,
         434  +
                                response.headers(),
         435  +
                                response.status().into(),
         436  +
                                body,
         437  +
                            )
         438  +
                        }) {
         439  +
                        ::std::result::Result::Ok(val) => val,
         440  +
                        ::std::result::Result::Err(e) => {
         441  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         442  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         443  +
                            ))
         444  +
                        }
         445  +
                    };
         446  +
                    tmp.meta = generic;
         447  +
                    if tmp.message.is_none() {
         448  +
                        tmp.message = _error_message;
         449  +
                    }
         450  +
                    tmp
         451  +
                }),
         452  +
                _ => crate::operation::create_task_set::CreateTaskSetError::generic(generic),
         453  +
            };
         454  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         455  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         456  +
            ))
  157    457   
        } else {
  158         -
            crate::protocol_serde::shape_create_task_set::de_create_task_set_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         458  +
            let protocol = _cfg
         459  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         460  +
                .expect("a SharedClientProtocol is required");
         461  +
            let mut deser = protocol.deserialize_response(response, CreateTaskSet::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         462  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         463  +
            })?;
         464  +
            let body = response.body().bytes().expect("body loaded");
         465  +
            let output = crate::operation::create_task_set::CreateTaskSetOutput::deserialize_with_response(
         466  +
                &mut *deser,
         467  +
                response.headers(),
         468  +
                response.status().into(),
         469  +
                body,
         470  +
            )
         471  +
            .map_err(|e| {
         472  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         473  +
            })?;
         474  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         475  +
        }
  161    476   
    }
  162    477   
}
  163    478   
#[derive(Debug)]
  164    479   
struct CreateTaskSetRequestSerializer;
  165    480   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateTaskSetRequestSerializer {
  166    481   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    482   
    fn serialize_input(
  168    483   
        &self,
  169    484   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    485   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    486   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    487   
        let input = input
  173    488   
            .downcast::<crate::operation::create_task_set::CreateTaskSetInput>()
  174    489   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::create_task_set::CreateTaskSetInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::create_task_set::CreateTaskSetInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "AmazonEC2ContainerServiceV20141113.CreateTaskSet",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_task_set::ser_create_task_set_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         490  +
        let protocol = _cfg
         491  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         492  +
            .expect("a SharedClientProtocol is required");
         493  +
        let mut request = protocol
         494  +
            .serialize_request(&input, CreateTaskSet::INPUT_SCHEMA, "", _cfg)
         495  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         496  +
         497  +
        return ::std::result::Result::Ok(request);
  213    498   
    }
  214    499   
}
  215    500   
#[derive(Debug)]
  216    501   
struct CreateTaskSetEndpointParamsInterceptor;
  217    502   
  218    503   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateTaskSetEndpointParamsInterceptor {
  219    504   
    fn name(&self) -> &'static str {
  220    505   
        "CreateTaskSetEndpointParamsInterceptor"
  221    506   
    }
  222    507   

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/create_task_set/_create_task_set_input.rs

@@ -143,143 +293,293 @@
  163    163   
    "cluster",
  164    164   
    1,
  165    165   
);
  166    166   
static CREATETASKSETINPUT_MEMBER_EXTERNAL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  167    167   
    ::aws_smithy_schema::ShapeId::from_static(
  168    168   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$externalId",
  169    169   
        "com.amazonaws.ecs.synthetic",
  170    170   
        "CreateTaskSetInput",
  171    171   
    ),
  172    172   
    ::aws_smithy_schema::ShapeType::String,
  173         -
    "external_id",
         173  +
    "externalId",
  174    174   
    2,
  175    175   
);
  176    176   
static CREATETASKSETINPUT_MEMBER_TASK_DEFINITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  177    177   
    ::aws_smithy_schema::ShapeId::from_static(
  178    178   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$taskDefinition",
  179    179   
        "com.amazonaws.ecs.synthetic",
  180    180   
        "CreateTaskSetInput",
  181    181   
    ),
  182    182   
    ::aws_smithy_schema::ShapeType::String,
  183         -
    "task_definition",
         183  +
    "taskDefinition",
  184    184   
    3,
  185    185   
);
  186    186   
static CREATETASKSETINPUT_MEMBER_NETWORK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  187    187   
    ::aws_smithy_schema::ShapeId::from_static(
  188    188   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$networkConfiguration",
  189    189   
        "com.amazonaws.ecs.synthetic",
  190    190   
        "CreateTaskSetInput",
  191    191   
    ),
  192    192   
    ::aws_smithy_schema::ShapeType::Structure,
  193         -
    "network_configuration",
         193  +
    "networkConfiguration",
  194    194   
    4,
  195    195   
);
  196    196   
static CREATETASKSETINPUT_MEMBER_LOAD_BALANCERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  197    197   
    ::aws_smithy_schema::ShapeId::from_static(
  198    198   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$loadBalancers",
  199    199   
        "com.amazonaws.ecs.synthetic",
  200    200   
        "CreateTaskSetInput",
  201    201   
    ),
  202    202   
    ::aws_smithy_schema::ShapeType::List,
  203         -
    "load_balancers",
         203  +
    "loadBalancers",
  204    204   
    5,
  205    205   
);
  206    206   
static CREATETASKSETINPUT_MEMBER_SERVICE_REGISTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  207    207   
    ::aws_smithy_schema::ShapeId::from_static(
  208    208   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$serviceRegistries",
  209    209   
        "com.amazonaws.ecs.synthetic",
  210    210   
        "CreateTaskSetInput",
  211    211   
    ),
  212    212   
    ::aws_smithy_schema::ShapeType::List,
  213         -
    "service_registries",
         213  +
    "serviceRegistries",
  214    214   
    6,
  215    215   
);
  216    216   
static CREATETASKSETINPUT_MEMBER_LAUNCH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  217    217   
    ::aws_smithy_schema::ShapeId::from_static(
  218    218   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$launchType",
  219    219   
        "com.amazonaws.ecs.synthetic",
  220    220   
        "CreateTaskSetInput",
  221    221   
    ),
  222    222   
    ::aws_smithy_schema::ShapeType::String,
  223         -
    "launch_type",
         223  +
    "launchType",
  224    224   
    7,
  225    225   
);
  226    226   
static CREATETASKSETINPUT_MEMBER_CAPACITY_PROVIDER_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  227    227   
    ::aws_smithy_schema::ShapeId::from_static(
  228    228   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$capacityProviderStrategy",
  229    229   
        "com.amazonaws.ecs.synthetic",
  230    230   
        "CreateTaskSetInput",
  231    231   
    ),
  232    232   
    ::aws_smithy_schema::ShapeType::List,
  233         -
    "capacity_provider_strategy",
         233  +
    "capacityProviderStrategy",
  234    234   
    8,
  235    235   
);
  236    236   
static CREATETASKSETINPUT_MEMBER_PLATFORM_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  237    237   
    ::aws_smithy_schema::ShapeId::from_static(
  238    238   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$platformVersion",
  239    239   
        "com.amazonaws.ecs.synthetic",
  240    240   
        "CreateTaskSetInput",
  241    241   
    ),
  242    242   
    ::aws_smithy_schema::ShapeType::String,
  243         -
    "platform_version",
         243  +
    "platformVersion",
  244    244   
    9,
  245    245   
);
  246    246   
static CREATETASKSETINPUT_MEMBER_SCALE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  247    247   
    ::aws_smithy_schema::ShapeId::from_static(
  248    248   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$scale",
  249    249   
        "com.amazonaws.ecs.synthetic",
  250    250   
        "CreateTaskSetInput",
  251    251   
    ),
  252    252   
    ::aws_smithy_schema::ShapeType::Structure,
  253    253   
    "scale",
  254    254   
    10,
  255    255   
);
  256    256   
static CREATETASKSETINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  257    257   
    ::aws_smithy_schema::ShapeId::from_static(
  258    258   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$clientToken",
  259    259   
        "com.amazonaws.ecs.synthetic",
  260    260   
        "CreateTaskSetInput",
  261    261   
    ),
  262    262   
    ::aws_smithy_schema::ShapeType::String,
  263         -
    "client_token",
         263  +
    "clientToken",
  264    264   
    11,
  265    265   
);
  266    266   
static CREATETASKSETINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  267    267   
    ::aws_smithy_schema::ShapeId::from_static(
  268    268   
        "com.amazonaws.ecs.synthetic#CreateTaskSetInput$tags",
  269    269   
        "com.amazonaws.ecs.synthetic",
  270    270   
        "CreateTaskSetInput",
  271    271   
    ),
  272    272   
    ::aws_smithy_schema::ShapeType::List,
  273    273   
    "tags",
@@ -351,351 +512,514 @@
  371    371   
                    }
  372    372   
                    Ok(())
  373    373   
                },
  374    374   
            )?;
  375    375   
        }
  376    376   
        Ok(())
  377    377   
    }
  378    378   
}
  379    379   
impl CreateTaskSetInput {
  380    380   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  381         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  382         -
        deserializer: &mut D,
         381  +
    pub fn deserialize(
         382  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  383    383   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  384    384   
        #[allow(unused_variables, unused_mut)]
  385    385   
        let mut builder = Self::builder();
  386    386   
        #[allow(
  387    387   
            unused_variables,
  388    388   
            unreachable_code,
  389    389   
            clippy::single_match,
  390    390   
            clippy::match_single_binding,
  391    391   
            clippy::diverging_sub_expression
  392    392   
        )]
  393         -
        deserializer.read_struct(&CREATETASKSETINPUT_SCHEMA, (), |_, member, deser| {
         393  +
        deserializer.read_struct(&CREATETASKSETINPUT_SCHEMA, &mut |member, deser| {
  394    394   
            match member.member_index() {
  395    395   
                Some(0) => {
  396    396   
                    builder.service = Some(deser.read_string(member)?);
  397    397   
                }
  398    398   
                Some(1) => {
  399    399   
                    builder.cluster = Some(deser.read_string(member)?);
  400    400   
                }
  401    401   
                Some(2) => {
  402    402   
                    builder.external_id = Some(deser.read_string(member)?);
  403    403   
                }
  404    404   
                Some(3) => {
  405    405   
                    builder.task_definition = Some(deser.read_string(member)?);
  406    406   
                }
  407    407   
                Some(4) => {
  408    408   
                    builder.network_configuration = Some(crate::types::NetworkConfiguration::deserialize(deser)?);
  409    409   
                }
  410    410   
                Some(5) => {
  411    411   
                    builder.load_balancers = Some({
  412         -
                        let container = if let Some(cap) = deser.container_size() {
  413         -
                            Vec::with_capacity(cap)
  414         -
                        } else {
  415         -
                            Vec::new()
  416         -
                        };
  417         -
                        deser.read_list(member, container, |mut list, deser| {
  418         -
                            list.push(crate::types::LoadBalancer::deserialize(deser)?);
  419         -
                            Ok(list)
  420         -
                        })?
         412  +
                        let mut container = Vec::new();
         413  +
                        deser.read_list(member, &mut |deser| {
         414  +
                            container.push(crate::types::LoadBalancer::deserialize(deser)?);
         415  +
                            Ok(())
         416  +
                        })?;
         417  +
                        container
  421    418   
                    });
  422    419   
                }
  423    420   
                Some(6) => {
  424    421   
                    builder.service_registries = Some({
  425         -
                        let container = if let Some(cap) = deser.container_size() {
  426         -
                            Vec::with_capacity(cap)
  427         -
                        } else {
  428         -
                            Vec::new()
  429         -
                        };
  430         -
                        deser.read_list(member, container, |mut list, deser| {
  431         -
                            list.push(crate::types::ServiceRegistry::deserialize(deser)?);
  432         -
                            Ok(list)
  433         -
                        })?
         422  +
                        let mut container = Vec::new();
         423  +
                        deser.read_list(member, &mut |deser| {
         424  +
                            container.push(crate::types::ServiceRegistry::deserialize(deser)?);
         425  +
                            Ok(())
         426  +
                        })?;
         427  +
                        container
  434    428   
                    });
  435    429   
                }
  436    430   
                Some(7) => {
  437    431   
                    builder.launch_type = Some(crate::types::LaunchType::from(deser.read_string(member)?.as_str()));
  438    432   
                }
  439    433   
                Some(8) => {
  440    434   
                    builder.capacity_provider_strategy = Some({
  441         -
                        let container = if let Some(cap) = deser.container_size() {
  442         -
                            Vec::with_capacity(cap)
  443         -
                        } else {
  444         -
                            Vec::new()
  445         -
                        };
  446         -
                        deser.read_list(member, container, |mut list, deser| {
  447         -
                            list.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
  448         -
                            Ok(list)
  449         -
                        })?
         435  +
                        let mut container = Vec::new();
         436  +
                        deser.read_list(member, &mut |deser| {
         437  +
                            container.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
         438  +
                            Ok(())
         439  +
                        })?;
         440  +
                        container
  450    441   
                    });
  451    442   
                }
  452    443   
                Some(9) => {
  453    444   
                    builder.platform_version = Some(deser.read_string(member)?);
  454    445   
                }
  455    446   
                Some(10) => {
  456    447   
                    builder.scale = Some(crate::types::Scale::deserialize(deser)?);
  457    448   
                }
  458    449   
                Some(11) => {
  459    450   
                    builder.client_token = Some(deser.read_string(member)?);
  460    451   
                }
  461    452   
                Some(12) => {
  462    453   
                    builder.tags = Some({
  463         -
                        let container = if let Some(cap) = deser.container_size() {
  464         -
                            Vec::with_capacity(cap)
  465         -
                        } else {
  466         -
                            Vec::new()
  467         -
                        };
  468         -
                        deser.read_list(member, container, |mut list, deser| {
  469         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  470         -
                            Ok(list)
  471         -
                        })?
         454  +
                        let mut container = Vec::new();
         455  +
                        deser.read_list(member, &mut |deser| {
         456  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         457  +
                            Ok(())
         458  +
                        })?;
         459  +
                        container
  472    460   
                    });
  473    461   
                }
  474    462   
                _ => {}
  475    463   
            }
  476    464   
            Ok(())
  477    465   
        })?;
         466  +
        builder.service = builder.service.or(Some(String::new()));
         467  +
        builder.cluster = builder.cluster.or(Some(String::new()));
         468  +
        builder.task_definition = builder.task_definition.or(Some(String::new()));
  478    469   
        builder
  479    470   
            .build()
  480    471   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  481    472   
    }
  482    473   
}
         474  +
impl CreateTaskSetInput {
         475  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         476  +
    pub fn deserialize_with_response(
         477  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         478  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         479  +
        _status: u16,
         480  +
        _body: &[u8],
         481  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         482  +
        Self::deserialize(deserializer)
         483  +
    }
         484  +
}
  483    485   
impl CreateTaskSetInput {
  484    486   
    /// Creates a new builder-style object to manufacture [`CreateTaskSetInput`](crate::operation::create_task_set::CreateTaskSetInput).
  485    487   
    pub fn builder() -> crate::operation::create_task_set::builders::CreateTaskSetInputBuilder {
  486    488   
        crate::operation::create_task_set::builders::CreateTaskSetInputBuilder::default()
  487    489   
    }
  488    490   
}
  489    491   
  490    492   
/// A builder for [`CreateTaskSetInput`](crate::operation::create_task_set::CreateTaskSetInput).
  491    493   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  492    494   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/create_task_set/_create_task_set_output.rs

@@ -1,1 +96,140 @@
   18     18   
    "com.amazonaws.ecs.synthetic",
   19     19   
    "CreateTaskSetOutput",
   20     20   
);
   21     21   
static CREATETASKSETOUTPUT_MEMBER_TASK_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ecs.synthetic#CreateTaskSetOutput$taskSet",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "CreateTaskSetOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "task_set",
          28  +
    "taskSet",
   29     29   
    0,
   30     30   
);
          31  +
static CREATETASKSETOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static CREATETASKSETOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    CREATETASKSETOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&CREATETASKSETOUTPUT_MEMBER_TASK_SET],
          41  +
    &[&CREATETASKSETOUTPUT_MEMBER_TASK_SET, &CREATETASKSETOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl CreateTaskSetOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATETASKSETOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateTaskSetOutput {
   41     48   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     49   
    fn serialize_members(
   43     50   
        &self,
   44     51   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     52   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     53   
        if let Some(ref val) = self.task_set {
   47     54   
            ser.write_struct(&CREATETASKSETOUTPUT_MEMBER_TASK_SET, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl CreateTaskSetOutput {
   53     60   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          61  +
    pub fn deserialize(
          62  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     63   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     64   
        #[allow(unused_variables, unused_mut)]
   58     65   
        let mut builder = Self::builder();
   59     66   
        #[allow(
   60     67   
            unused_variables,
   61     68   
            unreachable_code,
   62     69   
            clippy::single_match,
   63     70   
            clippy::match_single_binding,
   64     71   
            clippy::diverging_sub_expression
   65     72   
        )]
   66         -
        deserializer.read_struct(&CREATETASKSETOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&CREATETASKSETOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.task_set = Some(crate::types::TaskSet::deserialize(deser)?);
          77  +
                }
          78  +
                Some(1) => {
          79  +
                    builder._request_id = Some(deser.read_string(member)?);
          80  +
                }
          81  +
                _ => {}
          82  +
            }
          83  +
            Ok(())
          84  +
        })?;
          85  +
        Ok(builder.build())
          86  +
    }
          87  +
}
          88  +
impl CreateTaskSetOutput {
          89  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          90  +
    /// Header-bound members are read directly from headers, avoiding runtime
          91  +
    /// member iteration overhead. Body members are read via the deserializer.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        #[allow(unused_variables, unused_mut)]
          99  +
        let mut builder = Self::builder();
         100  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         101  +
            builder._request_id = Some(val.to_string());
         102  +
        }
         103  +
        #[allow(
         104  +
            unused_variables,
         105  +
            unreachable_code,
         106  +
            clippy::single_match,
         107  +
            clippy::match_single_binding,
         108  +
            clippy::diverging_sub_expression
         109  +
        )]
         110  +
        deserializer.read_struct(&CREATETASKSETOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.task_set = Some(crate::types::TaskSet::deserialize(deser)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/delete_account_setting.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteAccountSetting`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteAccountSetting;
    6      6   
impl DeleteAccountSetting {
    7      7   
    /// Creates a new `DeleteAccountSetting`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_account_setting::DeleteAccountSettingInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_account_setting::DeleteAccountSettingOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::delete_account_setting::DeleteAccountSettingInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_account_setting::DeleteAccountSettingOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_account_setting::DeleteAccountSettingError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +247,334 @@
  138    142   
                crate::operation::delete_account_setting::DeleteAccountSettingError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DeleteAccountSettingResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteAccountSettingResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_delete_account_setting::de_delete_account_setting_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::delete_account_setting::DeleteAccountSettingError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "ClientException" => crate::operation::delete_account_setting::DeleteAccountSettingError::ClientException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::ClientException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidParameterException" => crate::operation::delete_account_setting::DeleteAccountSettingError::InvalidParameterException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "ServerException" => crate::operation::delete_account_setting::DeleteAccountSettingError::ServerException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::ServerException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
         250  +
                    };
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                _ => crate::operation::delete_account_setting::DeleteAccountSettingError::generic(generic),
         258  +
            };
         259  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         260  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         261  +
            ))
  160    262   
        } else {
  161         -
            crate::protocol_serde::shape_delete_account_setting::de_delete_account_setting_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         263  +
            let protocol = _cfg
         264  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         265  +
                .expect("a SharedClientProtocol is required");
         266  +
            let mut deser = protocol
         267  +
                .deserialize_response(response, DeleteAccountSetting::OUTPUT_SCHEMA, _cfg)
         268  +
                .map_err(|e| {
         269  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         270  +
                })?;
         271  +
            let body = response.body().bytes().expect("body loaded");
         272  +
            let output = crate::operation::delete_account_setting::DeleteAccountSettingOutput::deserialize_with_response(
         273  +
                &mut *deser,
         274  +
                response.headers(),
         275  +
                response.status().into(),
         276  +
                body,
         277  +
            )
         278  +
            .map_err(|e| {
         279  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         280  +
            })?;
         281  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         282  +
        }
  164    283   
    }
  165    284   
}
  166    285   
#[derive(Debug)]
  167    286   
struct DeleteAccountSettingRequestSerializer;
  168    287   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteAccountSettingRequestSerializer {
  169    288   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    289   
    fn serialize_input(
  171    290   
        &self,
  172    291   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    292   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    293   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    294   
        let input = input
  176    295   
            .downcast::<crate::operation::delete_account_setting::DeleteAccountSettingInput>()
  177    296   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::delete_account_setting::DeleteAccountSettingInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::delete_account_setting::DeleteAccountSettingInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "AmazonEC2ContainerServiceV20141113.DeleteAccountSetting",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_delete_account_setting::ser_delete_account_setting_input(
  211         -
            &input,
  212         -
        )?);
  213         -
        if let Some(content_length) = body.content_length() {
  214         -
            let content_length = content_length.to_string();
  215         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  216         -
        }
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         297  +
        let protocol = _cfg
         298  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         299  +
            .expect("a SharedClientProtocol is required");
         300  +
        let mut request = protocol
         301  +
            .serialize_request(&input, DeleteAccountSetting::INPUT_SCHEMA, "", _cfg)
         302  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         303  +
         304  +
        return ::std::result::Result::Ok(request);
  218    305   
    }
  219    306   
}
  220    307   
#[derive(Debug)]
  221    308   
struct DeleteAccountSettingEndpointParamsInterceptor;
  222    309   
  223    310   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteAccountSettingEndpointParamsInterceptor {
  224    311   
    fn name(&self) -> &'static str {
  225    312   
        "DeleteAccountSettingEndpointParamsInterceptor"
  226    313   
    }
  227    314   

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/delete_account_setting/_delete_account_setting_input.rs

@@ -15,15 +132,143 @@
   35     35   
    "name",
   36     36   
    0,
   37     37   
);
   38     38   
static DELETEACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ecs.synthetic#DeleteAccountSettingInput$principalArn",
   41     41   
        "com.amazonaws.ecs.synthetic",
   42     42   
        "DeleteAccountSettingInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "principal_arn",
          45  +
    "principalArn",
   46     46   
    1,
   47     47   
);
   48     48   
static DELETEACCOUNTSETTINGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    DELETEACCOUNTSETTINGINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&DELETEACCOUNTSETTINGINPUT_MEMBER_NAME, &DELETEACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN],
   52     52   
);
   53     53   
impl DeleteAccountSettingInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEACCOUNTSETTINGINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteAccountSettingInput {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.name {
   64     64   
            ser.write_string(&DELETEACCOUNTSETTINGINPUT_MEMBER_NAME, val.as_str())?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.principal_arn {
   67     67   
            ser.write_string(&DELETEACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN, val)?;
   68     68   
        }
   69     69   
        Ok(())
   70     70   
    }
   71     71   
}
   72     72   
impl DeleteAccountSettingInput {
   73     73   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   74         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   75         -
        deserializer: &mut D,
          74  +
    pub fn deserialize(
          75  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   76     76   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   77     77   
        #[allow(unused_variables, unused_mut)]
   78     78   
        let mut builder = Self::builder();
   79     79   
        #[allow(
   80     80   
            unused_variables,
   81     81   
            unreachable_code,
   82     82   
            clippy::single_match,
   83     83   
            clippy::match_single_binding,
   84     84   
            clippy::diverging_sub_expression
   85     85   
        )]
   86         -
        deserializer.read_struct(&DELETEACCOUNTSETTINGINPUT_SCHEMA, (), |_, member, deser| {
          86  +
        deserializer.read_struct(&DELETEACCOUNTSETTINGINPUT_SCHEMA, &mut |member, deser| {
   87     87   
            match member.member_index() {
   88     88   
                Some(0) => {
   89     89   
                    builder.name = Some(crate::types::SettingName::from(deser.read_string(member)?.as_str()));
   90     90   
                }
   91     91   
                Some(1) => {
   92     92   
                    builder.principal_arn = Some(deser.read_string(member)?);
   93     93   
                }
   94     94   
                _ => {}
   95     95   
            }
   96     96   
            Ok(())
   97     97   
        })?;
   98     98   
        builder
   99     99   
            .build()
  100    100   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  101    101   
    }
  102    102   
}
         103  +
impl DeleteAccountSettingInput {
         104  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         105  +
    pub fn deserialize_with_response(
         106  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         107  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         108  +
        _status: u16,
         109  +
        _body: &[u8],
         110  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         111  +
        Self::deserialize(deserializer)
         112  +
    }
         113  +
}
  103    114   
impl DeleteAccountSettingInput {
  104    115   
    /// Creates a new builder-style object to manufacture [`DeleteAccountSettingInput`](crate::operation::delete_account_setting::DeleteAccountSettingInput).
  105    116   
    pub fn builder() -> crate::operation::delete_account_setting::builders::DeleteAccountSettingInputBuilder {
  106    117   
        crate::operation::delete_account_setting::builders::DeleteAccountSettingInputBuilder::default()
  107    118   
    }
  108    119   
}
  109    120   
  110    121   
/// A builder for [`DeleteAccountSettingInput`](crate::operation::delete_account_setting::DeleteAccountSettingInput).
  111    122   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  112    123   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/delete_account_setting/_delete_account_setting_output.rs

@@ -1,1 +96,140 @@
   21     21   
static DELETEACCOUNTSETTINGOUTPUT_MEMBER_SETTING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ecs.synthetic#DeleteAccountSettingOutput$setting",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "DeleteAccountSettingOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28     28   
    "setting",
   29     29   
    0,
   30     30   
);
          31  +
static DELETEACCOUNTSETTINGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static DELETEACCOUNTSETTINGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    DELETEACCOUNTSETTINGOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&DELETEACCOUNTSETTINGOUTPUT_MEMBER_SETTING],
          41  +
    &[&DELETEACCOUNTSETTINGOUTPUT_MEMBER_SETTING, &DELETEACCOUNTSETTINGOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl DeleteAccountSettingOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEACCOUNTSETTINGOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteAccountSettingOutput {
   41     48   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     49   
    fn serialize_members(
   43     50   
        &self,
   44     51   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     52   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     53   
        if let Some(ref val) = self.setting {
   47     54   
            ser.write_struct(&DELETEACCOUNTSETTINGOUTPUT_MEMBER_SETTING, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl DeleteAccountSettingOutput {
   53     60   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          61  +
    pub fn deserialize(
          62  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     63   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     64   
        #[allow(unused_variables, unused_mut)]
   58     65   
        let mut builder = Self::builder();
   59     66   
        #[allow(
   60     67   
            unused_variables,
   61     68   
            unreachable_code,
   62     69   
            clippy::single_match,
   63     70   
            clippy::match_single_binding,
   64     71   
            clippy::diverging_sub_expression
   65     72   
        )]
   66         -
        deserializer.read_struct(&DELETEACCOUNTSETTINGOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&DELETEACCOUNTSETTINGOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.setting = Some(crate::types::Setting::deserialize(deser)?);
          77  +
                }
          78  +
                Some(1) => {
          79  +
                    builder._request_id = Some(deser.read_string(member)?);
          80  +
                }
          81  +
                _ => {}
          82  +
            }
          83  +
            Ok(())
          84  +
        })?;
          85  +
        Ok(builder.build())
          86  +
    }
          87  +
}
          88  +
impl DeleteAccountSettingOutput {
          89  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          90  +
    /// Header-bound members are read directly from headers, avoiding runtime
          91  +
    /// member iteration overhead. Body members are read via the deserializer.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        #[allow(unused_variables, unused_mut)]
          99  +
        let mut builder = Self::builder();
         100  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         101  +
            builder._request_id = Some(val.to_string());
         102  +
        }
         103  +
        #[allow(
         104  +
            unused_variables,
         105  +
            unreachable_code,
         106  +
            clippy::single_match,
         107  +
            clippy::match_single_binding,
         108  +
            clippy::diverging_sub_expression
         109  +
        )]
         110  +
        deserializer.read_struct(&DELETEACCOUNTSETTINGOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.setting = Some(crate::types::Setting::deserialize(deser)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }