pub fn ser_create_space_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_space::CreateSpaceInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.name {
encoder.str("name").str(var_1.as_str());
}
if let Some(var_2) = &input.domain_id {
encoder.str("domainId").str(var_2.as_str());
}
if let Some(var_3) = &input.data_access_role_arn {
encoder.str("dataAccessRoleArn").str(var_3.as_str());
}
if let Some(var_4) = &input.agent_core_evaluation_role_arn {
encoder.str("agentCoreEvaluationRoleArn").str(var_4.as_str());
}
if let Some(var_5) = &input.encryption_configuration {
encoder.str("encryptionConfiguration");
crate::protocol_serde::shape_encryption_configuration::ser_encryption_configuration(encoder, var_5)?;
}
if let Some(var_6) = &input.tags {
encoder.str("tags");
encoder.map((*var_6).len());
for (key_7, value_8) in var_6 {
{
encoder.str(key_7.as_str()).str(value_8.as_str());
}
}
}
if let Some(var_9) = &input.client_token {
encoder.str("clientToken").str(var_9.as_str());
}
encoder.end();
Ok(())
}