aws_sdk_lambda/protocol_serde/
shape_update_function_event_invoke_config_input.rs1pub fn ser_update_function_event_invoke_config_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::update_function_event_invoke_config::UpdateFunctionEventInvokeConfigInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.destination_config {
7 #[allow(unused_mut)]
8 let mut object_2 = object.key("DestinationConfig").start_object();
9 crate::protocol_serde::shape_destination_config::ser_destination_config(&mut object_2, var_1)?;
10 object_2.finish();
11 }
12 if let Some(var_3) = &input.maximum_event_age_in_seconds {
13 object.key("MaximumEventAgeInSeconds").number(
14 #[allow(clippy::useless_conversion)]
15 ::aws_smithy_types::Number::NegInt((*var_3).into()),
16 );
17 }
18 if let Some(var_4) = &input.maximum_retry_attempts {
19 object.key("MaximumRetryAttempts").number(
20 #[allow(clippy::useless_conversion)]
21 ::aws_smithy_types::Number::NegInt((*var_4).into()),
22 );
23 }
24 Ok(())
25}