aws_sdk_apigatewayv2/protocol_serde/
shape_update_authorizer_input.rs1pub fn ser_update_authorizer_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::update_authorizer::UpdateAuthorizerInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.authorizer_credentials_arn {
7 object.key("authorizerCredentialsArn").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.authorizer_payload_format_version {
10 object.key("authorizerPayloadFormatVersion").string(var_2.as_str());
11 }
12 if let Some(var_3) = &input.authorizer_result_ttl_in_seconds {
13 object.key("authorizerResultTtlInSeconds").number(
14 #[allow(clippy::useless_conversion)]
15 ::aws_smithy_types::Number::NegInt((*var_3).into()),
16 );
17 }
18 if let Some(var_4) = &input.authorizer_type {
19 object.key("authorizerType").string(var_4.as_str());
20 }
21 if let Some(var_5) = &input.authorizer_uri {
22 object.key("authorizerUri").string(var_5.as_str());
23 }
24 if let Some(var_6) = &input.enable_simple_responses {
25 object.key("enableSimpleResponses").boolean(*var_6);
26 }
27 if let Some(var_7) = &input.identity_source {
28 let mut array_8 = object.key("identitySource").start_array();
29 for item_9 in var_7 {
30 {
31 array_8.value().string(item_9.as_str());
32 }
33 }
34 array_8.finish();
35 }
36 if let Some(var_10) = &input.identity_validation_expression {
37 object.key("identityValidationExpression").string(var_10.as_str());
38 }
39 if let Some(var_11) = &input.jwt_configuration {
40 #[allow(unused_mut)]
41 let mut object_12 = object.key("jwtConfiguration").start_object();
42 crate::protocol_serde::shape_jwt_configuration::ser_jwt_configuration(&mut object_12, var_11)?;
43 object_12.finish();
44 }
45 if let Some(var_13) = &input.name {
46 object.key("name").string(var_13.as_str());
47 }
48 Ok(())
49}