-
Notifications
You must be signed in to change notification settings - Fork 242
/
shape_create_db_subnet_group_input.rs
42 lines (42 loc) · 1.68 KB
/
shape_create_db_subnet_group_input.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_db_subnet_group_input_input_input(
input: &crate::operation::create_db_subnet_group::CreateDbSubnetGroupInput,
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "CreateDBSubnetGroup", "2014-10-31");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("DBSubnetGroupName");
if let Some(var_2) = &input.db_subnet_group_name {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("DBSubnetGroupDescription");
if let Some(var_4) = &input.db_subnet_group_description {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("SubnetIds");
if let Some(var_6) = &input.subnet_ids {
let mut list_8 = scope_5.start_list(false, Some("SubnetIdentifier"));
for item_7 in var_6 {
#[allow(unused_mut)]
let mut entry_9 = list_8.entry();
entry_9.string(item_7);
}
list_8.finish();
}
#[allow(unused_mut)]
let mut scope_10 = writer.prefix("Tags");
if let Some(var_11) = &input.tags {
let mut list_13 = scope_10.start_list(false, Some("Tag"));
for item_12 in var_11 {
#[allow(unused_mut)]
let mut entry_14 = list_13.entry();
crate::protocol_serde::shape_tag::ser_tag(entry_14, item_12)?;
}
list_13.finish();
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}