pub fn ser_resource_data_sync_source(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ResourceDataSyncSource,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("SourceType").string(input.source_type.as_str());
}
if let Some(var_1) = &input.aws_organizations_source {
#[allow(unused_mut)]
let mut object_2 = object.key("AwsOrganizationsSource").start_object();
crate::protocol_serde::shape_resource_data_sync_aws_organizations_source::ser_resource_data_sync_aws_organizations_source(
&mut object_2,
var_1,
)?;
object_2.finish();
}
{
let mut array_3 = object.key("SourceRegions").start_array();
for item_4 in &input.source_regions {
{
array_3.value().string(item_4.as_str());
}
}
array_3.finish();
}
if input.include_future_regions {
object.key("IncludeFutureRegions").boolean(input.include_future_regions);
}
if input.enable_all_ops_data_sources {
object.key("EnableAllOpsDataSources").boolean(input.enable_all_ops_data_sources);
}
Ok(())
}