pub fn ser_block_device_mapping_request(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::types::BlockDeviceMappingRequest,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.device_name {
encoder.str("DeviceName").str(var_1.as_str());
}
if let Some(var_2) = &input.ebs {
encoder.str("Ebs");
crate::protocol_serde::shape_ebs_block_device::ser_ebs_block_device(encoder, var_2)?;
}
if let Some(var_3) = &input.no_device {
encoder.str("NoDevice").str(var_3.as_str());
}
if let Some(var_4) = &input.virtual_name {
encoder.str("VirtualName").str(var_4.as_str());
}
encoder.end();
Ok(())
}