aws_sdk_grafana/protocol_serde/
shape_update_workspace_authentication_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_update_workspace_authentication_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::update_workspace_authentication::UpdateWorkspaceAuthenticationInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.authentication_providers {
7        let mut array_2 = object.key("authenticationProviders").start_array();
8        for item_3 in var_1 {
9            {
10                array_2.value().string(item_3.as_str());
11            }
12        }
13        array_2.finish();
14    }
15    if let Some(var_4) = &input.saml_configuration {
16        #[allow(unused_mut)]
17        let mut object_5 = object.key("samlConfiguration").start_object();
18        crate::protocol_serde::shape_saml_configuration::ser_saml_configuration(&mut object_5, var_4)?;
19        object_5.finish();
20    }
21    Ok(())
22}