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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_domain_config<'a, I>(
tokens: &mut ::std::iter::Peekable<I>,
_value: &'a [u8],
depth: u32,
) -> ::std::result::Result<Option<crate::types::DomainConfig>, ::aws_smithy_json::deserialize::error::DeserializeError>
where
I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
{
if depth >= 128u32 {
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
"maximum nesting depth exceeded",
));
}
match tokens.next().transpose()? {
Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::types::builders::DomainConfigBuilder::default();
loop {
match tokens.next().transpose()? {
Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"EngineVersion" => {
builder = builder.set_engine_version(crate::protocol_serde::shape_version_status::de_version_status(
tokens,
_value,
depth + 1,
)?);
}
"ClusterConfig" => {
builder = builder.set_cluster_config(crate::protocol_serde::shape_cluster_config_status::de_cluster_config_status(
tokens,
_value,
depth + 1,
)?);
}
"EBSOptions" => {
builder = builder.set_ebs_options(crate::protocol_serde::shape_ebs_options_status::de_ebs_options_status(
tokens,
_value,
depth + 1,
)?);
}
"AccessPolicies" => {
builder = builder.set_access_policies(
crate::protocol_serde::shape_access_policies_status::de_access_policies_status(tokens, _value, depth + 1)?,
);
}
"IPAddressType" => {
builder = builder.set_ip_address_type(
crate::protocol_serde::shape_ip_address_type_status::de_ip_address_type_status(tokens, _value, depth + 1)?,
);
}
"SnapshotOptions" => {
builder = builder.set_snapshot_options(
crate::protocol_serde::shape_snapshot_options_status::de_snapshot_options_status(tokens, _value, depth + 1)?,
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(crate::protocol_serde::shape_vpc_derived_info_status::de_vpc_derived_info_status(
tokens,
_value,
depth + 1,
)?);
}
"CognitoOptions" => {
builder = builder.set_cognito_options(
crate::protocol_serde::shape_cognito_options_status::de_cognito_options_status(tokens, _value, depth + 1)?,
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::protocol_serde::shape_encryption_at_rest_options_status::de_encryption_at_rest_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::protocol_serde::shape_node_to_node_encryption_options_status::de_node_to_node_encryption_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"AdvancedOptions" => {
builder = builder.set_advanced_options(
crate::protocol_serde::shape_advanced_options_status::de_advanced_options_status(tokens, _value, depth + 1)?,
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::protocol_serde::shape_log_publishing_options_status::de_log_publishing_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::protocol_serde::shape_domain_endpoint_options_status::de_domain_endpoint_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"AdvancedSecurityOptions" => {
builder = builder.set_advanced_security_options(
crate::protocol_serde::shape_advanced_security_options_status::de_advanced_security_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"IdentityCenterOptions" => {
builder = builder.set_identity_center_options(
crate::protocol_serde::shape_identity_center_options_status::de_identity_center_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"AutoTuneOptions" => {
builder = builder.set_auto_tune_options(
crate::protocol_serde::shape_auto_tune_options_status::de_auto_tune_options_status(tokens, _value, depth + 1)?,
);
}
"ChangeProgressDetails" => {
builder = builder.set_change_progress_details(
crate::protocol_serde::shape_change_progress_details::de_change_progress_details(tokens, _value, depth + 1)?,
);
}
"OffPeakWindowOptions" => {
builder = builder.set_off_peak_window_options(
crate::protocol_serde::shape_off_peak_window_options_status::de_off_peak_window_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"SoftwareUpdateOptions" => {
builder = builder.set_software_update_options(
crate::protocol_serde::shape_software_update_options_status::de_software_update_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"ModifyingProperties" => {
builder = builder.set_modifying_properties(
crate::protocol_serde::shape_modifying_properties_list::de_modifying_properties_list(tokens, _value, depth + 1)?,
);
}
"AIMLOptions" => {
builder = builder.set_aiml_options(crate::protocol_serde::shape_aiml_options_status::de_aiml_options_status(
tokens,
_value,
depth + 1,
)?);
}
"DeploymentStrategyOptions" => {
builder = builder.set_deployment_strategy_options(
crate::protocol_serde::shape_deployment_strategy_options_status::de_deployment_strategy_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
"AutomatedSnapshotPauseOptions" => {
builder = builder.set_automated_snapshot_pause_options(
crate::protocol_serde::shape_automated_snapshot_pause_options_status::de_automated_snapshot_pause_options_status(
tokens,
_value,
depth + 1,
)?,
);
}
_ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {other:?}"
)))
}
}
}
Ok(Some(builder.build()))
}
_ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
)),
}
}