AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

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

@@ -35,35 +179,193 @@
   55     55   
    "service",
   56     56   
    1,
   57     57   
);
   58     58   
static UPDATETASKSETINPUT_MEMBER_TASK_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.ecs.synthetic#UpdateTaskSetInput$taskSet",
   61     61   
        "com.amazonaws.ecs.synthetic",
   62     62   
        "UpdateTaskSetInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::String,
   65         -
    "task_set",
          65  +
    "taskSet",
   66     66   
    2,
   67     67   
);
   68     68   
static UPDATETASKSETINPUT_MEMBER_SCALE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.ecs.synthetic#UpdateTaskSetInput$scale",
   71     71   
        "com.amazonaws.ecs.synthetic",
   72     72   
        "UpdateTaskSetInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Structure,
   75     75   
    "scale",
   76     76   
    3,
   77     77   
);
   78     78   
static UPDATETASKSETINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   79     79   
    UPDATETASKSETINPUT_SCHEMA_ID,
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81     81   
    &[
   82     82   
        &UPDATETASKSETINPUT_MEMBER_CLUSTER,
   83     83   
        &UPDATETASKSETINPUT_MEMBER_SERVICE,
   84     84   
        &UPDATETASKSETINPUT_MEMBER_TASK_SET,
   85     85   
        &UPDATETASKSETINPUT_MEMBER_SCALE,
   86     86   
    ],
   87     87   
);
   88     88   
impl UpdateTaskSetInput {
   89     89   
    /// The schema for this shape.
   90     90   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATETASKSETINPUT_SCHEMA;
   91     91   
}
   92     92   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateTaskSetInput {
   93     93   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   94     94   
    fn serialize_members(
   95     95   
        &self,
   96     96   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   97     97   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   98     98   
        if let Some(ref val) = self.cluster {
   99     99   
            ser.write_string(&UPDATETASKSETINPUT_MEMBER_CLUSTER, val)?;
  100    100   
        }
  101    101   
        if let Some(ref val) = self.service {
  102    102   
            ser.write_string(&UPDATETASKSETINPUT_MEMBER_SERVICE, val)?;
  103    103   
        }
  104    104   
        if let Some(ref val) = self.task_set {
  105    105   
            ser.write_string(&UPDATETASKSETINPUT_MEMBER_TASK_SET, val)?;
  106    106   
        }
  107    107   
        if let Some(ref val) = self.scale {
  108    108   
            ser.write_struct(&UPDATETASKSETINPUT_MEMBER_SCALE, val)?;
  109    109   
        }
  110    110   
        Ok(())
  111    111   
    }
  112    112   
}
  113    113   
impl UpdateTaskSetInput {
  114    114   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  115         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  116         -
        deserializer: &mut D,
         115  +
    pub fn deserialize(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  117    117   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  118    118   
        #[allow(unused_variables, unused_mut)]
  119    119   
        let mut builder = Self::builder();
  120    120   
        #[allow(
  121    121   
            unused_variables,
  122    122   
            unreachable_code,
  123    123   
            clippy::single_match,
  124    124   
            clippy::match_single_binding,
  125    125   
            clippy::diverging_sub_expression
  126    126   
        )]
  127         -
        deserializer.read_struct(&UPDATETASKSETINPUT_SCHEMA, (), |_, member, deser| {
         127  +
        deserializer.read_struct(&UPDATETASKSETINPUT_SCHEMA, &mut |member, deser| {
  128    128   
            match member.member_index() {
  129    129   
                Some(0) => {
  130    130   
                    builder.cluster = Some(deser.read_string(member)?);
  131    131   
                }
  132    132   
                Some(1) => {
  133    133   
                    builder.service = Some(deser.read_string(member)?);
  134    134   
                }
  135    135   
                Some(2) => {
  136    136   
                    builder.task_set = Some(deser.read_string(member)?);
  137    137   
                }
  138    138   
                Some(3) => {
  139    139   
                    builder.scale = Some(crate::types::Scale::deserialize(deser)?);
  140    140   
                }
  141    141   
                _ => {}
  142    142   
            }
  143    143   
            Ok(())
  144    144   
        })?;
         145  +
        builder.cluster = builder.cluster.or(Some(String::new()));
         146  +
        builder.service = builder.service.or(Some(String::new()));
         147  +
        builder.task_set = builder.task_set.or(Some(String::new()));
  145    148   
        builder
  146    149   
            .build()
  147    150   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  148    151   
    }
  149    152   
}
         153  +
impl UpdateTaskSetInput {
         154  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         155  +
    pub fn deserialize_with_response(
         156  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         157  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         158  +
        _status: u16,
         159  +
        _body: &[u8],
         160  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         161  +
        Self::deserialize(deserializer)
         162  +
    }
         163  +
}
  150    164   
impl UpdateTaskSetInput {
  151    165   
    /// Creates a new builder-style object to manufacture [`UpdateTaskSetInput`](crate::operation::update_task_set::UpdateTaskSetInput).
  152    166   
    pub fn builder() -> crate::operation::update_task_set::builders::UpdateTaskSetInputBuilder {
  153    167   
        crate::operation::update_task_set::builders::UpdateTaskSetInputBuilder::default()
  154    168   
    }
  155    169   
}
  156    170   
  157    171   
/// A builder for [`UpdateTaskSetInput`](crate::operation::update_task_set::UpdateTaskSetInput).
  158    172   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  159    173   
#[non_exhaustive]

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

@@ -1,1 +96,140 @@
   18     18   
    "com.amazonaws.ecs.synthetic",
   19     19   
    "UpdateTaskSetOutput",
   20     20   
);
   21     21   
static UPDATETASKSETOUTPUT_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#UpdateTaskSetOutput$taskSet",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "UpdateTaskSetOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "task_set",
          28  +
    "taskSet",
   29     29   
    0,
   30     30   
);
          31  +
static UPDATETASKSETOUTPUT_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 UPDATETASKSETOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    UPDATETASKSETOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&UPDATETASKSETOUTPUT_MEMBER_TASK_SET],
          41  +
    &[&UPDATETASKSETOUTPUT_MEMBER_TASK_SET, &UPDATETASKSETOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl UpdateTaskSetOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATETASKSETOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateTaskSetOutput {
   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(&UPDATETASKSETOUTPUT_MEMBER_TASK_SET, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl UpdateTaskSetOutput {
   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(&UPDATETASKSETOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&UPDATETASKSETOUTPUT_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 UpdateTaskSetOutput {
          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(&UPDATETASKSETOUTPUT_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/protocol_serde.rs

@@ -1,1 +762,0 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn type_erase_result<O, E>(
    3         -
    result: ::std::result::Result<O, E>,
    4         -
) -> ::std::result::Result<
    5         -
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    6         -
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
    7         -
>
    8         -
where
    9         -
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   10         -
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   11         -
{
   12         -
    result
   13         -
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
   14         -
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
   15         -
        .map_err(::std::convert::Into::into)
   16         -
}
   17         -
   18      2   
pub fn parse_http_error_metadata(
   19      3   
    _response_status: u16,
   20      4   
    response_headers: &::aws_smithy_runtime_api::http::Headers,
   21      5   
    response_body: &[u8],
   22      6   
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
   23      7   
    crate::json_errors::parse_error_metadata(response_body, response_headers)
   24      8   
}
   25         -
   26         -
pub(crate) mod shape_create_capacity_provider;
   27         -
   28         -
pub(crate) mod shape_create_cluster;
   29         -
   30         -
pub(crate) mod shape_create_service;
   31         -
   32         -
pub(crate) mod shape_create_task_set;
   33         -
   34         -
pub(crate) mod shape_delete_account_setting;
   35         -
   36         -
pub(crate) mod shape_delete_attributes;
   37         -
   38         -
pub(crate) mod shape_delete_capacity_provider;
   39         -
   40         -
pub(crate) mod shape_delete_cluster;
   41         -
   42         -
pub(crate) mod shape_delete_service;
   43         -
   44         -
pub(crate) mod shape_delete_task_definitions;
   45         -
   46         -
pub(crate) mod shape_delete_task_set;
   47         -
   48         -
pub(crate) mod shape_deregister_container_instance;
   49         -
   50         -
pub(crate) mod shape_deregister_task_definition;
   51         -
   52         -
pub(crate) mod shape_describe_capacity_providers;
   53         -
   54         -
pub(crate) mod shape_describe_clusters;
   55         -
   56         -
pub(crate) mod shape_describe_container_instances;
   57         -
   58         -
pub(crate) mod shape_describe_service_deployments;
   59         -
   60         -
pub(crate) mod shape_describe_service_revisions;
   61         -
   62         -
pub(crate) mod shape_describe_services;
   63         -
   64         -
pub(crate) mod shape_describe_task_definition;
   65         -
   66         -
pub(crate) mod shape_describe_task_sets;
   67         -
   68         -
pub(crate) mod shape_describe_tasks;
   69         -
   70         -
pub(crate) mod shape_discover_poll_endpoint;
   71         -
   72         -
pub(crate) mod shape_execute_command;
   73         -
   74         -
pub(crate) mod shape_get_task_protection;
   75         -
   76         -
pub(crate) mod shape_list_account_settings;
   77         -
   78         -
pub(crate) mod shape_list_attributes;
   79         -
   80         -
pub(crate) mod shape_list_clusters;
   81         -
   82         -
pub(crate) mod shape_list_container_instances;
   83         -
   84         -
pub(crate) mod shape_list_service_deployments;
   85         -
   86         -
pub(crate) mod shape_list_services;
   87         -
   88         -
pub(crate) mod shape_list_services_by_namespace;
   89         -
   90         -
pub(crate) mod shape_list_tags_for_resource;
   91         -
   92         -
pub(crate) mod shape_list_task_definition_families;
   93         -
   94         -
pub(crate) mod shape_list_task_definitions;
   95         -
   96         -
pub(crate) mod shape_list_tasks;
   97         -
   98         -
pub(crate) mod shape_put_account_setting;
   99         -
  100         -
pub(crate) mod shape_put_account_setting_default;
  101         -
  102         -
pub(crate) mod shape_put_attributes;
  103         -
  104         -
pub(crate) mod shape_put_cluster_capacity_providers;
  105         -
  106         -
pub(crate) mod shape_register_container_instance;
  107         -
  108         -
pub(crate) mod shape_register_task_definition;
  109         -
  110         -
pub(crate) mod shape_run_task;
  111         -
  112         -
pub(crate) mod shape_start_task;
  113         -
  114         -
pub(crate) mod shape_stop_service_deployment;
  115         -
  116         -
pub(crate) mod shape_stop_task;
  117         -
  118         -
pub(crate) mod shape_submit_attachment_state_changes;
  119         -
  120         -
pub(crate) mod shape_submit_container_state_change;
  121         -
  122         -
pub(crate) mod shape_submit_task_state_change;
  123         -
  124         -
pub(crate) mod shape_tag_resource;
  125         -
  126         -
pub(crate) mod shape_untag_resource;
  127         -
  128         -
pub(crate) mod shape_update_capacity_provider;
  129         -
  130         -
pub(crate) mod shape_update_cluster;
  131         -
  132         -
pub(crate) mod shape_update_cluster_settings;
  133         -
  134         -
pub(crate) mod shape_update_container_agent;
  135         -
  136         -
pub(crate) mod shape_update_container_instances_state;
  137         -
  138         -
pub(crate) mod shape_update_service;
  139         -
  140         -
pub(crate) mod shape_update_service_primary_task_set;
  141         -
  142         -
pub(crate) mod shape_update_task_protection;
  143         -
  144         -
pub(crate) mod shape_update_task_set;
  145         -
  146         -
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
  147         -
    if data.is_empty() {
  148         -
        b"{}"
  149         -
    } else {
  150         -
        data
  151         -
    }
  152         -
}
  153         -
  154         -
pub(crate) mod shape_access_denied_exception;
  155         -
  156         -
pub(crate) mod shape_attribute_limit_exceeded_exception;
  157         -
  158         -
pub(crate) mod shape_blocked_exception;
  159         -
  160         -
pub(crate) mod shape_client_exception;
  161         -
  162         -
pub(crate) mod shape_cluster_contains_capacity_provider_exception;
  163         -
  164         -
pub(crate) mod shape_cluster_contains_container_instances_exception;
  165         -
  166         -
pub(crate) mod shape_cluster_contains_services_exception;
  167         -
  168         -
pub(crate) mod shape_cluster_contains_tasks_exception;
  169         -
  170         -
pub(crate) mod shape_cluster_not_found_exception;
  171         -
  172         -
pub(crate) mod shape_conflict_exception;
  173         -
  174         -
pub(crate) mod shape_create_capacity_provider_input;
  175         -
  176         -
pub(crate) mod shape_create_cluster_input;
  177         -
  178         -
pub(crate) mod shape_create_service_input;
  179         -
  180         -
pub(crate) mod shape_create_task_set_input;
  181         -
  182         -
pub(crate) mod shape_delete_account_setting_input;
  183         -
  184         -
pub(crate) mod shape_delete_attributes_input;
  185         -
  186         -
pub(crate) mod shape_delete_capacity_provider_input;
  187         -
  188         -
pub(crate) mod shape_delete_cluster_input;
  189         -
  190         -
pub(crate) mod shape_delete_service_input;
  191         -
  192         -
pub(crate) mod shape_delete_task_definitions_input;
  193         -
  194         -
pub(crate) mod shape_delete_task_set_input;
  195         -
  196         -
pub(crate) mod shape_deregister_container_instance_input;
  197         -
  198         -
pub(crate) mod shape_deregister_task_definition_input;
  199         -
  200         -
pub(crate) mod shape_describe_capacity_providers_input;
  201         -
  202         -
pub(crate) mod shape_describe_clusters_input;
  203         -
  204         -
pub(crate) mod shape_describe_container_instances_input;
  205         -
  206         -
pub(crate) mod shape_describe_service_deployments_input;
  207         -
  208         -
pub(crate) mod shape_describe_service_revisions_input;
  209         -
  210         -
pub(crate) mod shape_describe_services_input;
  211         -
  212         -
pub(crate) mod shape_describe_task_definition_input;
  213         -
  214         -
pub(crate) mod shape_describe_task_sets_input;
  215         -
  216         -
pub(crate) mod shape_describe_tasks_input;
  217         -
  218         -
pub(crate) mod shape_discover_poll_endpoint_input;
  219         -
  220         -
pub(crate) mod shape_execute_command_input;
  221         -
  222         -
pub(crate) mod shape_get_task_protection_input;
  223         -
  224         -
pub(crate) mod shape_invalid_parameter_exception;
  225         -
  226         -
pub(crate) mod shape_limit_exceeded_exception;
  227         -
  228         -
pub(crate) mod shape_list_account_settings_input;
  229         -
  230         -
pub(crate) mod shape_list_attributes_input;
  231         -
  232         -
pub(crate) mod shape_list_clusters_input;
  233         -
  234         -
pub(crate) mod shape_list_container_instances_input;
  235         -
  236         -
pub(crate) mod shape_list_service_deployments_input;
  237         -
  238         -
pub(crate) mod shape_list_services_by_namespace_input;
  239         -
  240         -
pub(crate) mod shape_list_services_input;
  241         -
  242         -
pub(crate) mod shape_list_tags_for_resource_input;
  243         -
  244         -
pub(crate) mod shape_list_task_definition_families_input;
  245         -
  246         -
pub(crate) mod shape_list_task_definitions_input;
  247         -
  248         -
pub(crate) mod shape_list_tasks_input;
  249         -
  250         -
pub(crate) mod shape_missing_version_exception;
  251         -
  252         -
pub(crate) mod shape_namespace_not_found_exception;
  253         -
  254         -
pub(crate) mod shape_no_update_available_exception;
  255         -
  256         -
pub(crate) mod shape_platform_task_definition_incompatibility_exception;
  257         -
  258         -
pub(crate) mod shape_platform_unknown_exception;
  259         -
  260         -
pub(crate) mod shape_put_account_setting_default_input;
  261         -
  262         -
pub(crate) mod shape_put_account_setting_input;
  263         -
  264         -
pub(crate) mod shape_put_attributes_input;
  265         -
  266         -
pub(crate) mod shape_put_cluster_capacity_providers_input;
  267         -
  268         -
pub(crate) mod shape_register_container_instance_input;
  269         -
  270         -
pub(crate) mod shape_register_task_definition_input;
  271         -
  272         -
pub(crate) mod shape_resource_in_use_exception;
  273         -
  274         -
pub(crate) mod shape_resource_not_found_exception;
  275         -
  276         -
pub(crate) mod shape_run_task_input;
  277         -
  278         -
pub(crate) mod shape_server_exception;
  279         -
  280         -
pub(crate) mod shape_service_deployment_not_found_exception;
  281         -
  282         -
pub(crate) mod shape_service_not_active_exception;
  283         -
  284         -
pub(crate) mod shape_service_not_found_exception;
  285         -
  286         -
pub(crate) mod shape_start_task_input;
  287         -
  288         -
pub(crate) mod shape_stop_service_deployment_input;
  289         -
  290         -
pub(crate) mod shape_stop_task_input;
  291         -
  292         -
pub(crate) mod shape_submit_attachment_state_changes_input;
  293         -
  294         -
pub(crate) mod shape_submit_container_state_change_input;
  295         -
  296         -
pub(crate) mod shape_submit_task_state_change_input;
  297         -
  298         -
pub(crate) mod shape_tag_resource_input;
  299         -
  300         -
pub(crate) mod shape_target_not_connected_exception;
  301         -
  302         -
pub(crate) mod shape_target_not_found_exception;
  303         -
  304         -
pub(crate) mod shape_task_set_not_found_exception;
  305         -
  306         -
pub(crate) mod shape_unsupported_feature_exception;
  307         -
  308         -
pub(crate) mod shape_untag_resource_input;
  309         -
  310         -
pub(crate) mod shape_update_capacity_provider_input;
  311         -
  312         -
pub(crate) mod shape_update_cluster_input;
  313         -
  314         -
pub(crate) mod shape_update_cluster_settings_input;
  315         -
  316         -
pub(crate) mod shape_update_container_agent_input;
  317         -
  318         -
pub(crate) mod shape_update_container_instances_state_input;
  319         -
  320         -
pub(crate) mod shape_update_in_progress_exception;
  321         -
  322         -
pub(crate) mod shape_update_service_input;
  323         -
  324         -
pub(crate) mod shape_update_service_primary_task_set_input;
  325         -
  326         -
pub(crate) mod shape_update_task_protection_input;
  327         -
  328         -
pub(crate) mod shape_update_task_set_input;
  329         -
  330         -
pub(crate) mod shape_attachment_state_change;
  331         -
  332         -
pub(crate) mod shape_attribute;
  333         -
  334         -
pub(crate) mod shape_attributes;
  335         -
  336         -
pub(crate) mod shape_auto_scaling_group_provider;
  337         -
  338         -
pub(crate) mod shape_auto_scaling_group_provider_update;
  339         -
  340         -
pub(crate) mod shape_capacity_provider;
  341         -
  342         -
pub(crate) mod shape_capacity_provider_strategy_item;
  343         -
  344         -
pub(crate) mod shape_capacity_providers;
  345         -
  346         -
pub(crate) mod shape_cluster;
  347         -
  348         -
pub(crate) mod shape_cluster_configuration;
  349         -
  350         -
pub(crate) mod shape_cluster_service_connect_defaults_request;
  351         -
  352         -
pub(crate) mod shape_cluster_setting;
  353         -
  354         -
pub(crate) mod shape_clusters;
  355         -
  356         -
pub(crate) mod shape_container_definition;
  357         -
  358         -
pub(crate) mod shape_container_instance;
  359         -
  360         -
pub(crate) mod shape_container_instances;
  361         -
  362         -
pub(crate) mod shape_container_state_change;
  363         -
  364         -
pub(crate) mod shape_create_managed_instances_provider_configuration;
  365         -
  366         -
pub(crate) mod shape_created_at;
  367         -
  368         -
pub(crate) mod shape_deployment_configuration;
  369         -
  370         -
pub(crate) mod shape_deployment_controller;
  371         -
  372         -
pub(crate) mod shape_ephemeral_storage;
  373         -
  374         -
pub(crate) mod shape_failures;
  375         -
  376         -
pub(crate) mod shape_inference_accelerator;
  377         -
  378         -
pub(crate) mod shape_load_balancer;
  379         -
  380         -
pub(crate) mod shape_managed_agent_state_change;
  381         -
  382         -
pub(crate) mod shape_network_binding;
  383         -
  384         -
pub(crate) mod shape_network_configuration;
  385         -
  386         -
pub(crate) mod shape_placement_constraint;
  387         -
  388         -
pub(crate) mod shape_placement_strategy;
  389         -
  390         -
pub(crate) mod shape_platform_device;
  391         -
  392         -
pub(crate) mod shape_protected_tasks;
  393         -
  394         -
pub(crate) mod shape_proxy_configuration;
  395         -
  396         -
pub(crate) mod shape_resource;
  397         -
  398         -
pub(crate) mod shape_resource_ids;
  399         -
  400         -
pub(crate) mod shape_runtime_platform;
  401         -
  402         -
pub(crate) mod shape_scale;
  403         -
  404         -
pub(crate) mod shape_service;
  405         -
  406         -
pub(crate) mod shape_service_connect_configuration;
  407         -
  408         -
pub(crate) mod shape_service_deployments;
  409         -
  410         -
pub(crate) mod shape_service_deployments_brief;
  411         -
  412         -
pub(crate) mod shape_service_registry;
  413         -
  414         -
pub(crate) mod shape_service_revisions;
  415         -
  416         -
pub(crate) mod shape_service_volume_configuration;
  417         -
  418         -
pub(crate) mod shape_services;
  419         -
  420         -
pub(crate) mod shape_session;
  421         -
  422         -
pub(crate) mod shape_setting;
  423         -
  424         -
pub(crate) mod shape_settings;
  425         -
  426         -
pub(crate) mod shape_string_list;
  427         -
  428         -
pub(crate) mod shape_tag;
  429         -
  430         -
pub(crate) mod shape_tags;
  431         -
  432         -
pub(crate) mod shape_task;
  433         -
  434         -
pub(crate) mod shape_task_definition;
  435         -
  436         -
pub(crate) mod shape_task_definition_list;
  437         -
  438         -
pub(crate) mod shape_task_definition_placement_constraint;
  439         -
  440         -
pub(crate) mod shape_task_override;
  441         -
  442         -
pub(crate) mod shape_task_set;
  443         -
  444         -
pub(crate) mod shape_task_sets;
  445         -
  446         -
pub(crate) mod shape_task_volume_configuration;
  447         -
  448         -
pub(crate) mod shape_tasks;
  449         -
  450         -
pub(crate) mod shape_update_managed_instances_provider_configuration;
  451         -
  452         -
pub(crate) mod shape_version_info;
  453         -
  454         -
pub(crate) mod shape_volume;
  455         -
  456         -
pub(crate) mod shape_vpc_lattice_configuration;
  457         -
  458         -
pub(crate) mod shape_advanced_configuration;
  459         -
  460         -
pub(crate) mod shape_attachments;
  461         -
  462         -
pub(crate) mod shape_aws_vpc_configuration;
  463         -
  464         -
pub(crate) mod shape_capacity_provider_strategy;
  465         -
  466         -
pub(crate) mod shape_cluster_service_connect_defaults;
  467         -
  468         -
pub(crate) mod shape_cluster_settings;
  469         -
  470         -
pub(crate) mod shape_compatibility_list;
  471         -
  472         -
pub(crate) mod shape_container_definitions;
  473         -
  474         -
pub(crate) mod shape_container_dependency;
  475         -
  476         -
pub(crate) mod shape_container_instance_health_status;
  477         -
  478         -
pub(crate) mod shape_container_override;
  479         -
  480         -
pub(crate) mod shape_container_restart_policy;
  481         -
  482         -
pub(crate) mod shape_containers;
  483         -
  484         -
pub(crate) mod shape_deployment_alarms;
  485         -
  486         -
pub(crate) mod shape_deployment_circuit_breaker;
  487         -
  488         -
pub(crate) mod shape_deployment_ephemeral_storage;
  489         -
  490         -
pub(crate) mod shape_deployment_lifecycle_hook;
  491         -
  492         -
pub(crate) mod shape_deployments;
  493         -
  494         -
pub(crate) mod shape_docker_volume_configuration;
  495         -
  496         -
pub(crate) mod shape_efs_volume_configuration;
  497         -
  498         -
pub(crate) mod shape_environment_file;
  499         -
  500         -
pub(crate) mod shape_execute_command_configuration;
  501         -
  502         -
pub(crate) mod shape_f_sx_windows_file_server_volume_configuration;
  503         -
  504         -
pub(crate) mod shape_failure;
  505         -
  506         -
pub(crate) mod shape_firelens_configuration;
  507         -
  508         -
pub(crate) mod shape_health_check;
  509         -
  510         -
pub(crate) mod shape_host_entry;
  511         -
  512         -
pub(crate) mod shape_host_volume_properties;
  513         -
  514         -
pub(crate) mod shape_inference_accelerator_override;
  515         -
  516         -
pub(crate) mod shape_inference_accelerators;
  517         -
  518         -
pub(crate) mod shape_instance_launch_template;
  519         -
  520         -
pub(crate) mod shape_instance_launch_template_update;
  521         -
  522         -
pub(crate) mod shape_key_value_pair;
  523         -
  524         -
pub(crate) mod shape_linux_parameters;
  525         -
  526         -
pub(crate) mod shape_load_balancers;
  527         -
  528         -
pub(crate) mod shape_log_configuration;
  529         -
  530         -
pub(crate) mod shape_managed_instances_provider;
  531         -
  532         -
pub(crate) mod shape_managed_scaling;
  533         -
  534         -
pub(crate) mod shape_managed_storage_configuration;
  535         -
  536         -
pub(crate) mod shape_mount_point;
  537         -
  538         -
pub(crate) mod shape_placement_constraints;
  539         -
  540         -
pub(crate) mod shape_placement_strategies;
  541         -
  542         -
pub(crate) mod shape_port_mapping;
  543         -
  544         -
pub(crate) mod shape_protected_task;
  545         -
  546         -
pub(crate) mod shape_repository_credentials;
  547         -
  548         -
pub(crate) mod shape_requires_attributes;
  549         -
  550         -
pub(crate) mod shape_resource_requirement;
  551         -
  552         -
pub(crate) mod shape_resources;
  553         -
  554         -
pub(crate) mod shape_secret;
  555         -
  556         -
pub(crate) mod shape_service_connect_service;
  557         -
  558         -
pub(crate) mod shape_service_deployment;
  559         -
  560         -
pub(crate) mod shape_service_deployment_brief;
  561         -
  562         -
pub(crate) mod shape_service_events;
  563         -
  564         -
pub(crate) mod shape_service_managed_ebs_volume_configuration;
  565         -
  566         -
pub(crate) mod shape_service_registries;
  567         -
  568         -
pub(crate) mod shape_service_revision;
  569         -
  570         -
pub(crate) mod shape_statistics;
  571         -
  572         -
pub(crate) mod shape_system_control;
  573         -
  574         -
pub(crate) mod shape_task_definition_placement_constraints;
  575         -
  576         -
pub(crate) mod shape_task_ephemeral_storage;
  577         -
  578         -
pub(crate) mod shape_task_managed_ebs_volume_configuration;
  579         -
  580         -
pub(crate) mod shape_ulimit;
  581         -
  582         -
pub(crate) mod shape_volume_from;
  583         -
  584         -
pub(crate) mod shape_volume_list;
  585         -
  586         -
pub(crate) mod shape_attachment;
  587         -
  588         -
pub(crate) mod shape_container;
  589         -
  590         -
pub(crate) mod shape_container_images;
  591         -
  592         -
pub(crate) mod shape_container_overrides;
  593         -
  594         -
pub(crate) mod shape_deployment;
  595         -
  596         -
pub(crate) mod shape_deployment_lifecycle_hook_list;
  597         -
  598         -
pub(crate) mod shape_device;
  599         -
  600         -
pub(crate) mod shape_ebs_tag_specification;
  601         -
  602         -
pub(crate) mod shape_efs_authorization_config;
  603         -
  604         -
pub(crate) mod shape_execute_command_log_configuration;
  605         -
  606         -
pub(crate) mod shape_f_sx_windows_file_server_authorization_config;
  607         -
  608         -
pub(crate) mod shape_inference_accelerator_overrides;
  609         -
  610         -
pub(crate) mod shape_instance_health_check_result_list;
  611         -
  612         -
pub(crate) mod shape_instance_requirements_request;
  613         -
  614         -
pub(crate) mod shape_kernel_capabilities;
  615         -
  616         -
pub(crate) mod shape_managed_instances_network_configuration;
  617         -
  618         -
pub(crate) mod shape_managed_instances_storage_configuration;
  619         -
  620         -
pub(crate) mod shape_proxy_configuration_properties;
  621         -
  622         -
pub(crate) mod shape_resolved_configuration;
  623         -
  624         -
pub(crate) mod shape_rollback;
  625         -
  626         -
pub(crate) mod shape_service_connect_client_alias;
  627         -
  628         -
pub(crate) mod shape_service_connect_tls_configuration;
  629         -
  630         -
pub(crate) mod shape_service_deployment_alarms;
  631         -
  632         -
pub(crate) mod shape_service_deployment_circuit_breaker;
  633         -
  634         -
pub(crate) mod shape_service_event;
  635         -
  636         -
pub(crate) mod shape_service_revision_summary;
  637         -
  638         -
pub(crate) mod shape_service_revisions_summary_list;
  639         -
  640         -
pub(crate) mod shape_service_volume_configurations;
  641         -
  642         -
pub(crate) mod shape_task_managed_ebs_volume_termination_policy;
  643         -
  644         -
pub(crate) mod shape_timeout_configuration;
  645         -
  646         -
pub(crate) mod shape_tmpfs;
  647         -
  648         -
pub(crate) mod shape_vpc_lattice_configurations;
  649         -
  650         -
pub(crate) mod shape_accelerator_count_request;
  651         -
  652         -
pub(crate) mod shape_accelerator_total_memory_mib_request;
  653         -
  654         -
pub(crate) mod shape_attachment_details;
  655         -
  656         -
pub(crate) mod shape_baseline_ebs_bandwidth_mbps_request;
  657         -
  658         -
pub(crate) mod shape_container_dependencies;
  659         -
  660         -
pub(crate) mod shape_container_image;
  661         -
  662         -
pub(crate) mod shape_docker_labels_map;
  663         -
  664         -
pub(crate) mod shape_environment_files;
  665         -
  666         -
pub(crate) mod shape_environment_variables;
  667         -
  668         -
pub(crate) mod shape_gpu_ids;
  669         -
  670         -
pub(crate) mod shape_host_entry_list;
  671         -
  672         -
pub(crate) mod shape_instance_health_check_result;
  673         -
  674         -
pub(crate) mod shape_managed_agents;
  675         -
  676         -
pub(crate) mod shape_memory_gib_per_v_cpu_request;
  677         -
  678         -
pub(crate) mod shape_memory_mib_request;
  679         -
  680         -
pub(crate) mod shape_mount_point_list;
  681         -
  682         -
pub(crate) mod shape_network_bandwidth_gbps_request;
  683         -
  684         -
pub(crate) mod shape_network_bindings;
  685         -
  686         -
pub(crate) mod shape_network_interface_count_request;
  687         -
  688         -
pub(crate) mod shape_network_interfaces;
  689         -
  690         -
pub(crate) mod shape_port_mapping_list;
  691         -
  692         -
pub(crate) mod shape_resource_requirements;
  693         -
  694         -
pub(crate) mod shape_secret_list;
  695         -
  696         -
pub(crate) mod shape_service_connect_service_list;
  697         -
  698         -
pub(crate) mod shape_service_connect_service_resource_list;
  699         -
  700         -
pub(crate) mod shape_service_connect_test_traffic_rules;
  701         -
  702         -
pub(crate) mod shape_service_connect_tls_certificate_authority;
  703         -
  704         -
pub(crate) mod shape_service_revision_load_balancers;
  705         -
  706         -
pub(crate) mod shape_system_controls;
  707         -
  708         -
pub(crate) mod shape_total_local_storage_gb_request;
  709         -
  710         -
pub(crate) mod shape_ulimit_list;
  711         -
  712         -
pub(crate) mod shape_v_cpu_count_range_request;
  713         -
  714         -
pub(crate) mod shape_volume_from_list;
  715         -
  716         -
pub(crate) mod shape_accelerator_manufacturer_set;
  717         -
  718         -
pub(crate) mod shape_accelerator_name_set;
  719         -
  720         -
pub(crate) mod shape_accelerator_type_set;
  721         -
  722         -
pub(crate) mod shape_allowed_instance_type_set;
  723         -
  724         -
pub(crate) mod shape_cpu_manufacturer_set;
  725         -
  726         -
pub(crate) mod shape_deployment_lifecycle_hook_stage_list;
  727         -
  728         -
pub(crate) mod shape_devices_list;
  729         -
  730         -
pub(crate) mod shape_excluded_instance_type_set;
  731         -
  732         -
pub(crate) mod shape_firelens_configuration_options_map;
  733         -
  734         -
pub(crate) mod shape_instance_generation_set;
  735         -
  736         -
pub(crate) mod shape_integer_list;
  737         -
  738         -
pub(crate) mod shape_local_storage_type_set;
  739         -
  740         -
pub(crate) mod shape_log_configuration_options_map;
  741         -
  742         -
pub(crate) mod shape_managed_agent;
  743         -
  744         -
pub(crate) mod shape_network_interface;
  745         -
  746         -
pub(crate) mod shape_service_connect_service_resource;
  747         -
  748         -
pub(crate) mod shape_service_connect_test_traffic_header_rules;
  749         -
  750         -
pub(crate) mod shape_service_revision_load_balancer;
  751         -
  752         -
pub(crate) mod shape_string_map;
  753         -
  754         -
pub(crate) mod shape_tmpfs_list;
  755         -
  756         -
pub(crate) mod shape_ebs_tag_specifications;
  757         -
  758         -
pub(crate) mod shape_service_connect_client_alias_list;
  759         -
  760         -
pub(crate) mod shape_service_connect_test_traffic_header_match_rules;
  761         -
  762         -
pub(crate) mod shape_device_cgroup_permissions;

tmp-codegen-diff/aws-sdk/sdk/ecs/src/protocol_serde/shape_accelerator_count_request.rs

@@ -1,0 +66,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_accelerator_count_request(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::AcceleratorCountRequest,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.min {
    7         -
        object.key("min").number(
    8         -
            #[allow(clippy::useless_conversion)]
    9         -
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   10         -
        );
   11         -
    }
   12         -
    if let Some(var_2) = &input.max {
   13         -
        object.key("max").number(
   14         -
            #[allow(clippy::useless_conversion)]
   15         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   16         -
        );
   17         -
    }
   18         -
    Ok(())
   19         -
}
   20         -
   21         -
pub(crate) fn de_accelerator_count_request<'a, I>(
   22         -
    tokens: &mut ::std::iter::Peekable<I>,
   23         -
    _value: &'a [u8],
   24         -
) -> ::std::result::Result<Option<crate::types::AcceleratorCountRequest>, ::aws_smithy_json::deserialize::error::DeserializeError>
   25         -
where
   26         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   27         -
{
   28         -
    match tokens.next().transpose()? {
   29         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   30         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   31         -
            #[allow(unused_mut)]
   32         -
            let mut builder = crate::types::builders::AcceleratorCountRequestBuilder::default();
   33         -
            loop {
   34         -
                match tokens.next().transpose()? {
   35         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   36         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   37         -
                        "min" => {
   38         -
                            builder = builder.set_min(
   39         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   40         -
                                    .map(i32::try_from)
   41         -
                                    .transpose()?,
   42         -
                            );
   43         -
                        }
   44         -
                        "max" => {
   45         -
                            builder = builder.set_max(
   46         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   47         -
                                    .map(i32::try_from)
   48         -
                                    .transpose()?,
   49         -
                            );
   50         -
                        }
   51         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   52         -
                    },
   53         -
                    other => {
   54         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   55         -
                            "expected object key or end object, found: {other:?}"
   56         -
                        )))
   57         -
                    }
   58         -
                }
   59         -
            }
   60         -
            Ok(Some(builder.build()))
   61         -
        }
   62         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   63         -
            "expected start object or null",
   64         -
        )),
   65         -
    }
   66         -
}

tmp-codegen-diff/aws-sdk/sdk/ecs/src/protocol_serde/shape_accelerator_manufacturer_set.rs

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_accelerator_manufacturer_set<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::AcceleratorManufacturer>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| crate::types::AcceleratorManufacturer::from(u.as_ref())))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/ecs/src/protocol_serde/shape_accelerator_name_set.rs

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_accelerator_name_set<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::AcceleratorName>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| crate::types::AcceleratorName::from(u.as_ref())))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/ecs/src/protocol_serde/shape_accelerator_total_memory_mib_request.rs

@@ -1,0 +66,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_accelerator_total_memory_mib_request(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::AcceleratorTotalMemoryMiBRequest,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.min {
    7         -
        object.key("min").number(
    8         -
            #[allow(clippy::useless_conversion)]
    9         -
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   10         -
        );
   11         -
    }
   12         -
    if let Some(var_2) = &input.max {
   13         -
        object.key("max").number(
   14         -
            #[allow(clippy::useless_conversion)]
   15         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   16         -
        );
   17         -
    }
   18         -
    Ok(())
   19         -
}
   20         -
   21         -
pub(crate) fn de_accelerator_total_memory_mib_request<'a, I>(
   22         -
    tokens: &mut ::std::iter::Peekable<I>,
   23         -
    _value: &'a [u8],
   24         -
) -> ::std::result::Result<Option<crate::types::AcceleratorTotalMemoryMiBRequest>, ::aws_smithy_json::deserialize::error::DeserializeError>
   25         -
where
   26         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   27         -
{
   28         -
    match tokens.next().transpose()? {
   29         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   30         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   31         -
            #[allow(unused_mut)]
   32         -
            let mut builder = crate::types::builders::AcceleratorTotalMemoryMiBRequestBuilder::default();
   33         -
            loop {
   34         -
                match tokens.next().transpose()? {
   35         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   36         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   37         -
                        "min" => {
   38         -
                            builder = builder.set_min(
   39         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   40         -
                                    .map(i32::try_from)
   41         -
                                    .transpose()?,
   42         -
                            );
   43         -
                        }
   44         -
                        "max" => {
   45         -
                            builder = builder.set_max(
   46         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   47         -
                                    .map(i32::try_from)
   48         -
                                    .transpose()?,
   49         -
                            );
   50         -
                        }
   51         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   52         -
                    },
   53         -
                    other => {
   54         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   55         -
                            "expected object key or end object, found: {other:?}"
   56         -
                        )))
   57         -
                    }
   58         -
                }
   59         -
            }
   60         -
            Ok(Some(builder.build()))
   61         -
        }
   62         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   63         -
            "expected start object or null",
   64         -
        )),
   65         -
    }
   66         -
}