121 121 | "com.amazonaws.ec2.synthetic",
|
122 122 | "DescribeInstanceAttributeOutput",
|
123 123 | );
|
124 124 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_BLOCK_DEVICE_MAPPINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
125 125 | ::aws_smithy_schema::ShapeId::from_static(
|
126 126 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$BlockDeviceMappings",
|
127 127 | "com.amazonaws.ec2.synthetic",
|
128 128 | "DescribeInstanceAttributeOutput",
|
129 129 | ),
|
130 130 | ::aws_smithy_schema::ShapeType::List,
|
131 - | "block_device_mappings",
|
131 + | "BlockDeviceMappings",
|
132 132 | 0,
|
133 133 | )
|
134 134 | .with_xml_name("blockDeviceMapping");
|
135 135 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_DISABLE_API_TERMINATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
136 136 | ::aws_smithy_schema::ShapeId::from_static(
|
137 137 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$DisableApiTermination",
|
138 138 | "com.amazonaws.ec2.synthetic",
|
139 139 | "DescribeInstanceAttributeOutput",
|
140 140 | ),
|
141 141 | ::aws_smithy_schema::ShapeType::Structure,
|
142 - | "disable_api_termination",
|
142 + | "DisableApiTermination",
|
143 143 | 1,
|
144 144 | )
|
145 145 | .with_xml_name("disableApiTermination");
|
146 146 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ENA_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
147 147 | ::aws_smithy_schema::ShapeId::from_static(
|
148 148 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$EnaSupport",
|
149 149 | "com.amazonaws.ec2.synthetic",
|
150 150 | "DescribeInstanceAttributeOutput",
|
151 151 | ),
|
152 152 | ::aws_smithy_schema::ShapeType::Structure,
|
153 - | "ena_support",
|
153 + | "EnaSupport",
|
154 154 | 2,
|
155 155 | )
|
156 156 | .with_xml_name("enaSupport");
|
157 157 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ENCLAVE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
158 158 | ::aws_smithy_schema::ShapeId::from_static(
|
159 159 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$EnclaveOptions",
|
160 160 | "com.amazonaws.ec2.synthetic",
|
161 161 | "DescribeInstanceAttributeOutput",
|
162 162 | ),
|
163 163 | ::aws_smithy_schema::ShapeType::Structure,
|
164 - | "enclave_options",
|
164 + | "EnclaveOptions",
|
165 165 | 3,
|
166 166 | )
|
167 167 | .with_xml_name("enclaveOptions");
|
168 168 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_EBS_OPTIMIZED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
169 169 | ::aws_smithy_schema::ShapeId::from_static(
|
170 170 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$EbsOptimized",
|
171 171 | "com.amazonaws.ec2.synthetic",
|
172 172 | "DescribeInstanceAttributeOutput",
|
173 173 | ),
|
174 174 | ::aws_smithy_schema::ShapeType::Structure,
|
175 - | "ebs_optimized",
|
175 + | "EbsOptimized",
|
176 176 | 4,
|
177 177 | )
|
178 178 | .with_xml_name("ebsOptimized");
|
179 179 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
180 180 | ::aws_smithy_schema::ShapeId::from_static(
|
181 181 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$InstanceId",
|
182 182 | "com.amazonaws.ec2.synthetic",
|
183 183 | "DescribeInstanceAttributeOutput",
|
184 184 | ),
|
185 185 | ::aws_smithy_schema::ShapeType::String,
|
186 - | "instance_id",
|
186 + | "InstanceId",
|
187 187 | 5,
|
188 188 | )
|
189 189 | .with_xml_name("instanceId");
|
190 190 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_INITIATED_SHUTDOWN_BEHAVIOR: ::aws_smithy_schema::Schema =
|
191 191 | ::aws_smithy_schema::Schema::new_member(
|
192 192 | ::aws_smithy_schema::ShapeId::from_static(
|
193 193 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$InstanceInitiatedShutdownBehavior",
|
194 194 | "com.amazonaws.ec2.synthetic",
|
195 195 | "DescribeInstanceAttributeOutput",
|
196 196 | ),
|
197 197 | ::aws_smithy_schema::ShapeType::Structure,
|
198 - | "instance_initiated_shutdown_behavior",
|
198 + | "InstanceInitiatedShutdownBehavior",
|
199 199 | 6,
|
200 200 | )
|
201 201 | .with_xml_name("instanceInitiatedShutdownBehavior");
|
202 202 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
203 203 | ::aws_smithy_schema::ShapeId::from_static(
|
204 204 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$InstanceType",
|
205 205 | "com.amazonaws.ec2.synthetic",
|
206 206 | "DescribeInstanceAttributeOutput",
|
207 207 | ),
|
208 208 | ::aws_smithy_schema::ShapeType::Structure,
|
209 - | "instance_type",
|
209 + | "InstanceType",
|
210 210 | 7,
|
211 211 | )
|
212 212 | .with_xml_name("instanceType");
|
213 213 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_KERNEL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static(
|
215 215 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$KernelId",
|
216 216 | "com.amazonaws.ec2.synthetic",
|
217 217 | "DescribeInstanceAttributeOutput",
|
218 218 | ),
|
219 219 | ::aws_smithy_schema::ShapeType::Structure,
|
220 - | "kernel_id",
|
220 + | "KernelId",
|
221 221 | 8,
|
222 222 | )
|
223 223 | .with_xml_name("kernel");
|
224 224 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_PRODUCT_CODES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
225 225 | ::aws_smithy_schema::ShapeId::from_static(
|
226 226 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$ProductCodes",
|
227 227 | "com.amazonaws.ec2.synthetic",
|
228 228 | "DescribeInstanceAttributeOutput",
|
229 229 | ),
|
230 230 | ::aws_smithy_schema::ShapeType::List,
|
231 - | "product_codes",
|
231 + | "ProductCodes",
|
232 232 | 9,
|
233 233 | )
|
234 234 | .with_xml_name("productCodes");
|
235 235 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_RAMDISK_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$RamdiskId",
|
238 238 | "com.amazonaws.ec2.synthetic",
|
239 239 | "DescribeInstanceAttributeOutput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::Structure,
|
242 - | "ramdisk_id",
|
242 + | "RamdiskId",
|
243 243 | 10,
|
244 244 | )
|
245 245 | .with_xml_name("ramdisk");
|
246 246 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ROOT_DEVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$RootDeviceName",
|
249 249 | "com.amazonaws.ec2.synthetic",
|
250 250 | "DescribeInstanceAttributeOutput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::Structure,
|
253 - | "root_device_name",
|
253 + | "RootDeviceName",
|
254 254 | 11,
|
255 255 | )
|
256 256 | .with_xml_name("rootDeviceName");
|
257 257 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_SOURCE_DEST_CHECK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$SourceDestCheck",
|
260 260 | "com.amazonaws.ec2.synthetic",
|
261 261 | "DescribeInstanceAttributeOutput",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::Structure,
|
264 - | "source_dest_check",
|
264 + | "SourceDestCheck",
|
265 265 | 12,
|
266 266 | )
|
267 267 | .with_xml_name("sourceDestCheck");
|
268 268 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_SRIOV_NET_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static(
|
270 270 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$SriovNetSupport",
|
271 271 | "com.amazonaws.ec2.synthetic",
|
272 272 | "DescribeInstanceAttributeOutput",
|
273 273 | ),
|
274 274 | ::aws_smithy_schema::ShapeType::Structure,
|
275 - | "sriov_net_support",
|
275 + | "SriovNetSupport",
|
276 276 | 13,
|
277 277 | )
|
278 278 | .with_xml_name("sriovNetSupport");
|
279 279 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_USER_DATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$UserData",
|
282 282 | "com.amazonaws.ec2.synthetic",
|
283 283 | "DescribeInstanceAttributeOutput",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::Structure,
|
286 - | "user_data",
|
286 + | "UserData",
|
287 287 | 14,
|
288 288 | )
|
289 289 | .with_xml_name("userData");
|
290 290 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_DISABLE_API_STOP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static(
|
292 292 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$DisableApiStop",
|
293 293 | "com.amazonaws.ec2.synthetic",
|
294 294 | "DescribeInstanceAttributeOutput",
|
295 295 | ),
|
296 296 | ::aws_smithy_schema::ShapeType::Structure,
|
297 - | "disable_api_stop",
|
297 + | "DisableApiStop",
|
298 298 | 15,
|
299 299 | )
|
300 300 | .with_xml_name("disableApiStop");
|
301 301 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
302 302 | ::aws_smithy_schema::ShapeId::from_static(
|
303 303 | "com.amazonaws.ec2.synthetic#DescribeInstanceAttributeOutput$Groups",
|
304 304 | "com.amazonaws.ec2.synthetic",
|
305 305 | "DescribeInstanceAttributeOutput",
|
306 306 | ),
|
307 307 | ::aws_smithy_schema::ShapeType::List,
|
308 - | "groups",
|
308 + | "Groups",
|
309 309 | 16,
|
310 310 | )
|
311 311 | .with_xml_name("groupSet");
|
312 + | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
313 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
314 + | ::aws_smithy_schema::ShapeType::String,
|
315 + | "request_id",
|
316 + | 17,
|
317 + | )
|
318 + | .with_http_header("x-amzn-requestid");
|
312 319 | static DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
313 320 | DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA_ID,
|
314 321 | ::aws_smithy_schema::ShapeType::Structure,
|
315 322 | &[
|
316 323 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_BLOCK_DEVICE_MAPPINGS,
|
317 324 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_DISABLE_API_TERMINATION,
|
318 325 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ENA_SUPPORT,
|
319 326 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ENCLAVE_OPTIONS,
|
320 327 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_EBS_OPTIMIZED,
|
321 328 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_ID,
|
322 329 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_INITIATED_SHUTDOWN_BEHAVIOR,
|
323 330 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_INSTANCE_TYPE,
|
324 331 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_KERNEL_ID,
|
325 332 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_PRODUCT_CODES,
|
326 333 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_RAMDISK_ID,
|
327 334 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_ROOT_DEVICE_NAME,
|
328 335 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_SOURCE_DEST_CHECK,
|
329 336 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_SRIOV_NET_SUPPORT,
|
330 337 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_USER_DATA,
|
331 338 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_DISABLE_API_STOP,
|
332 339 | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER_GROUPS,
|
340 + | &DESCRIBEINSTANCEATTRIBUTEOUTPUT_MEMBER__REQUEST_ID,
|
333 341 | ],
|
334 342 | );
|
335 343 | impl DescribeInstanceAttributeOutput {
|
336 344 | /// The schema for this shape.
|
337 345 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA;
|
338 346 | }
|
339 347 | impl ::aws_smithy_schema::serde::SerializableStruct for DescribeInstanceAttributeOutput {
|
340 348 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
341 349 | fn serialize_members(
|
342 350 | &self,
|
415 423 | }
|
416 424 | Ok(())
|
417 425 | },
|
418 426 | )?;
|
419 427 | }
|
420 428 | Ok(())
|
421 429 | }
|
422 430 | }
|
423 431 | impl DescribeInstanceAttributeOutput {
|
424 432 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
425 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
426 - | deserializer: &mut D,
|
433 + | pub fn deserialize(
|
434 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
427 435 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
428 436 | #[allow(unused_variables, unused_mut)]
|
429 437 | let mut builder = Self::builder();
|
430 438 | #[allow(
|
431 439 | unused_variables,
|
432 440 | unreachable_code,
|
433 441 | clippy::single_match,
|
434 442 | clippy::match_single_binding,
|
435 443 | clippy::diverging_sub_expression
|
436 444 | )]
|
437 - | deserializer.read_struct(&DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA, (), |_, member, deser| {
|
445 + | deserializer.read_struct(&DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
|
438 446 | match member.member_index() {
|
439 447 | Some(0) => {
|
440 448 | builder.block_device_mappings = Some({
|
441 - | let container = if let Some(cap) = deser.container_size() {
|
442 - | Vec::with_capacity(cap)
|
443 - | } else {
|
444 - | Vec::new()
|
445 - | };
|
446 - | deser.read_list(member, container, |mut list, deser| {
|
447 - | list.push(crate::types::InstanceBlockDeviceMapping::deserialize(deser)?);
|
448 - | Ok(list)
|
449 - | })?
|
449 + | let mut container = Vec::new();
|
450 + | deser.read_list(member, &mut |deser| {
|
451 + | container.push(crate::types::InstanceBlockDeviceMapping::deserialize(deser)?);
|
452 + | Ok(())
|
453 + | })?;
|
454 + | container
|
450 455 | });
|
451 456 | }
|
452 457 | Some(1) => {
|
453 458 | builder.disable_api_termination = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
454 459 | }
|
455 460 | Some(2) => {
|
456 461 | builder.ena_support = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
457 462 | }
|
458 463 | Some(3) => {
|
459 464 | builder.enclave_options = Some(crate::types::EnclaveOptions::deserialize(deser)?);
|
460 465 | }
|
461 466 | Some(4) => {
|
462 467 | builder.ebs_optimized = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
463 468 | }
|
464 469 | Some(5) => {
|
465 470 | builder.instance_id = Some(deser.read_string(member)?);
|
466 471 | }
|
467 472 | Some(6) => {
|
468 473 | builder.instance_initiated_shutdown_behavior = Some(crate::types::AttributeValue::deserialize(deser)?);
|
469 474 | }
|
470 475 | Some(7) => {
|
471 476 | builder.instance_type = Some(crate::types::AttributeValue::deserialize(deser)?);
|
472 477 | }
|
473 478 | Some(8) => {
|
474 479 | builder.kernel_id = Some(crate::types::AttributeValue::deserialize(deser)?);
|
475 480 | }
|
476 481 | Some(9) => {
|
477 482 | builder.product_codes = Some({
|
478 - | let container = if let Some(cap) = deser.container_size() {
|
479 - | Vec::with_capacity(cap)
|
480 - | } else {
|
481 - | Vec::new()
|
482 - | };
|
483 - | deser.read_list(member, container, |mut list, deser| {
|
484 - | list.push(crate::types::ProductCode::deserialize(deser)?);
|
485 - | Ok(list)
|
486 - | })?
|
483 + | let mut container = Vec::new();
|
484 + | deser.read_list(member, &mut |deser| {
|
485 + | container.push(crate::types::ProductCode::deserialize(deser)?);
|
486 + | Ok(())
|
487 + | })?;
|
488 + | container
|
487 489 | });
|
488 490 | }
|
489 491 | Some(10) => {
|
490 492 | builder.ramdisk_id = Some(crate::types::AttributeValue::deserialize(deser)?);
|
491 493 | }
|
492 494 | Some(11) => {
|
493 495 | builder.root_device_name = Some(crate::types::AttributeValue::deserialize(deser)?);
|
494 496 | }
|
495 497 | Some(12) => {
|
496 498 | builder.source_dest_check = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
497 499 | }
|
498 500 | Some(13) => {
|
499 501 | builder.sriov_net_support = Some(crate::types::AttributeValue::deserialize(deser)?);
|
500 502 | }
|
501 503 | Some(14) => {
|
502 504 | builder.user_data = Some(crate::types::AttributeValue::deserialize(deser)?);
|
503 505 | }
|
504 506 | Some(15) => {
|
505 507 | builder.disable_api_stop = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
506 508 | }
|
507 509 | Some(16) => {
|
508 510 | builder.groups = Some({
|
509 - | let container = if let Some(cap) = deser.container_size() {
|
510 - | Vec::with_capacity(cap)
|
511 - | } else {
|
512 - | Vec::new()
|
513 - | };
|
514 - | deser.read_list(member, container, |mut list, deser| {
|
515 - | list.push(crate::types::GroupIdentifier::deserialize(deser)?);
|
516 - | Ok(list)
|
517 - | })?
|
511 + | let mut container = Vec::new();
|
512 + | deser.read_list(member, &mut |deser| {
|
513 + | container.push(crate::types::GroupIdentifier::deserialize(deser)?);
|
514 + | Ok(())
|
515 + | })?;
|
516 + | container
|
517 + | });
|
518 + | }
|
519 + | Some(17) => {
|
520 + | builder._request_id = Some(deser.read_string(member)?);
|
521 + | }
|
522 + | _ => {}
|
523 + | }
|
524 + | Ok(())
|
525 + | })?;
|
526 + | Ok(builder.build())
|
527 + | }
|
528 + | }
|
529 + | impl DescribeInstanceAttributeOutput {
|
530 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
531 + | /// Header-bound members are read directly from headers, avoiding runtime
|
532 + | /// member iteration overhead. Body members are read via the deserializer.
|
533 + | pub fn deserialize_with_response(
|
534 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
535 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
536 + | _status: u16,
|
537 + | _body: &[u8],
|
538 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
539 + | #[allow(unused_variables, unused_mut)]
|
540 + | let mut builder = Self::builder();
|
541 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
542 + | builder._request_id = Some(val.to_string());
|
543 + | }
|
544 + | #[allow(
|
545 + | unused_variables,
|
546 + | unreachable_code,
|
547 + | clippy::single_match,
|
548 + | clippy::match_single_binding,
|
549 + | clippy::diverging_sub_expression
|
550 + | )]
|
551 + | deserializer.read_struct(&DESCRIBEINSTANCEATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
|
552 + | match member.member_index() {
|
553 + | Some(0) => {
|
554 + | builder.block_device_mappings = Some({
|
555 + | let mut container = Vec::new();
|
556 + | deser.read_list(member, &mut |deser| {
|
557 + | container.push(crate::types::InstanceBlockDeviceMapping::deserialize(deser)?);
|
558 + | Ok(())
|
559 + | })?;
|
560 + | container
|
561 + | });
|
562 + | }
|
563 + | Some(1) => {
|
564 + | builder.disable_api_termination = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
565 + | }
|
566 + | Some(2) => {
|
567 + | builder.ena_support = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
568 + | }
|
569 + | Some(3) => {
|
570 + | builder.enclave_options = Some(crate::types::EnclaveOptions::deserialize(deser)?);
|
571 + | }
|
572 + | Some(4) => {
|
573 + | builder.ebs_optimized = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
574 + | }
|
575 + | Some(5) => {
|
576 + | builder.instance_id = Some(deser.read_string(member)?);
|
577 + | }
|
578 + | Some(6) => {
|
579 + | builder.instance_initiated_shutdown_behavior = Some(crate::types::AttributeValue::deserialize(deser)?);
|
580 + | }
|
581 + | Some(7) => {
|
582 + | builder.instance_type = Some(crate::types::AttributeValue::deserialize(deser)?);
|
583 + | }
|
584 + | Some(8) => {
|
585 + | builder.kernel_id = Some(crate::types::AttributeValue::deserialize(deser)?);
|
586 + | }
|
587 + | Some(9) => {
|
588 + | builder.product_codes = Some({
|
589 + | let mut container = Vec::new();
|
590 + | deser.read_list(member, &mut |deser| {
|
591 + | container.push(crate::types::ProductCode::deserialize(deser)?);
|
592 + | Ok(())
|
593 + | })?;
|
594 + | container
|
595 + | });
|
596 + | }
|
597 + | Some(10) => {
|
598 + | builder.ramdisk_id = Some(crate::types::AttributeValue::deserialize(deser)?);
|
599 + | }
|
600 + | Some(11) => {
|
601 + | builder.root_device_name = Some(crate::types::AttributeValue::deserialize(deser)?);
|
602 + | }
|
603 + | Some(12) => {
|
604 + | builder.source_dest_check = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
605 + | }
|
606 + | Some(13) => {
|
607 + | builder.sriov_net_support = Some(crate::types::AttributeValue::deserialize(deser)?);
|
608 + | }
|
609 + | Some(14) => {
|
610 + | builder.user_data = Some(crate::types::AttributeValue::deserialize(deser)?);
|
611 + | }
|
612 + | Some(15) => {
|
613 + | builder.disable_api_stop = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
|
614 + | }
|
615 + | Some(16) => {
|
616 + | builder.groups = Some({
|
617 + | let mut container = Vec::new();
|
618 + | deser.read_list(member, &mut |deser| {
|
619 + | container.push(crate::types::GroupIdentifier::deserialize(deser)?);
|
620 + | Ok(())
|
621 + | })?;
|
622 + | container
|
518 623 | });
|
519 624 | }
|
520 625 | _ => {}
|
521 626 | }
|
522 627 | Ok(())
|
523 628 | })?;
|
524 629 | Ok(builder.build())
|
525 630 | }
|
526 631 | }
|
527 632 | impl ::aws_types::request_id::RequestId for DescribeInstanceAttributeOutput {
|