pub fn ser_update_global_secondary_index_action(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::UpdateGlobalSecondaryIndexAction,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("IndexName").string(input.index_name.as_str());
}
if let Some(var_1) = &input.provisioned_throughput {
#[allow(unused_mut)]
let mut object_2 = object.key("ProvisionedThroughput").start_object();
crate::protocol_serde::shape_provisioned_throughput::ser_provisioned_throughput(&mut object_2, var_1)?;
object_2.finish();
}
if let Some(var_3) = &input.on_demand_throughput {
#[allow(unused_mut)]
let mut object_4 = object.key("OnDemandThroughput").start_object();
crate::protocol_serde::shape_on_demand_throughput::ser_on_demand_throughput(&mut object_4, var_3)?;
object_4.finish();
}
if let Some(var_5) = &input.warm_throughput {
#[allow(unused_mut)]
let mut object_6 = object.key("WarmThroughput").start_object();
crate::protocol_serde::shape_warm_throughput::ser_warm_throughput(&mut object_6, var_5)?;
object_6.finish();
}
Ok(())
}