aws_sdk_sagemaker/protocol_serde/
shape_batch_delete_cluster_nodes_input.rs1pub fn ser_batch_delete_cluster_nodes_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.cluster_name {
7 object.key("ClusterName").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.node_ids {
10 let mut array_3 = object.key("NodeIds").start_array();
11 for item_4 in var_2 {
12 {
13 array_3.value().string(item_4.as_str());
14 }
15 }
16 array_3.finish();
17 }
18 Ok(())
19}