pub fn ser_create_access_grant_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_access_grant::CreateAccessGrantInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.domain_id {
encoder.str("domainId").str(var_1.as_str());
}
if let Some(var_2) = &input.space_id {
encoder.str("spaceId").str(var_2.as_str());
}
if let Some(var_3) = &input.name {
encoder.str("name").str(var_3.as_str());
}
if let Some(var_4) = &input.principal {
encoder.str("principal");
crate::protocol_serde::shape_access_grant_principal::ser_access_grant_principal(encoder, var_4)?;
}
if let Some(var_5) = &input.permission {
encoder.str("permission").str(var_5.as_str());
}
if let Some(var_6) = &input.scoped_actions {
encoder.str("scopedActions");
encoder.array((*var_6).len());
for item_7 in var_6 {
{
crate::protocol_serde::shape_scoped_actions::ser_scoped_actions(encoder, item_7)?;
}
}
}
if let Some(var_8) = &input.tags {
encoder.str("tags");
encoder.map((*var_8).len());
for (key_9, value_10) in var_8 {
{
encoder.str(key_9.as_str()).str(value_10.as_str());
}
}
}
if let Some(var_11) = &input.client_token {
encoder.str("clientToken").str(var_11.as_str());
}
encoder.end();
Ok(())
}