aws_sdk_codestar/protocol_serde/shape_s3_location.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_s3_location(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::S3Location,
5) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.bucket_name {
7 object.key("bucketName").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.bucket_key {
10 object.key("bucketKey").string(var_2.as_str());
11 }
12 Ok(())
13}