aws-sdk-cloudwatch 1.112.0

AWS SDK for Amazon CloudWatch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_insight_rule_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::put_insight_rule::PutInsightRuleInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.rule_name {
        encoder.str("RuleName").str(var_1.as_str());
    }
    if let Some(var_2) = &input.rule_state {
        encoder.str("RuleState").str(var_2.as_str());
    }
    if let Some(var_3) = &input.rule_definition {
        encoder.str("RuleDefinition").str(var_3.as_str());
    }
    if let Some(var_4) = &input.tags {
        encoder.str("Tags");
        encoder.array((*var_4).len());
        for item_5 in var_4 {
            {
                crate::protocol_serde::shape_tag::ser_tag(encoder, item_5)?;
            }
        }
    }
    if let Some(var_6) = &input.apply_on_transformed_logs {
        encoder.str("ApplyOnTransformedLogs").boolean(*var_6);
    }
    encoder.end();
    Ok(())
}