pub fn ser_spot_market_options(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::types::SpotMarketOptions,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.block_duration_minutes {
encoder.str("BlockDurationMinutes").integer(*var_1);
}
if let Some(var_2) = &input.instance_interruption_behavior {
encoder.str("InstanceInterruptionBehavior").str(var_2.as_str());
}
if let Some(var_3) = &input.max_price {
encoder.str("MaxPrice").str(var_3.as_str());
}
if let Some(var_4) = &input.spot_instance_type {
encoder.str("SpotInstanceType").str(var_4.as_str());
}
if let Some(var_5) = &input.valid_until_utc {
encoder.str("ValidUntilUtc").timestamp(var_5);
}
encoder.end();
Ok(())
}