aws-sdk-bedrockagentruntime 1.126.0

AWS SDK for Agents for Amazon Bedrock Runtime
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_action_group_executor(
    object_4: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::ActionGroupExecutor,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::ActionGroupExecutor::Lambda(inner) => {
            object_4.key("lambda").string(inner.as_str());
        }
        crate::types::ActionGroupExecutor::CustomControl(inner) => {
            object_4.key("customControl").string(inner.as_str());
        }
        crate::types::ActionGroupExecutor::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "ActionGroupExecutor",
            ))
        }
    }
    Ok(())
}