aws-sdk-cloudwatch 1.112.0

AWS SDK for Amazon CloudWatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_managed_insight_rules_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::put_managed_insight_rules::PutManagedInsightRulesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.managed_rules {
        encoder.str("ManagedRules");
        encoder.array((*var_1).len());
        for item_2 in var_1 {
            {
                crate::protocol_serde::shape_managed_rule::ser_managed_rule(encoder, item_2)?;
            }
        }
    }
    encoder.end();
    Ok(())
}