199 199 | /// <p>Indicates whether reboot migration during a user-initiated reboot is supported for instances that have a scheduled <code>system-reboot</code> event. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration">Enable or disable reboot migration</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
200 200 | pub fn reboot_migration_support(&self) -> ::std::option::Option<&crate::types::RebootMigrationSupport> {
|
201 201 | self.reboot_migration_support.as_ref()
|
202 202 | }
|
203 203 | }
|
204 204 | static INSTANCETYPEINFO_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
205 205 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo", "com.amazonaws.ec2", "InstanceTypeInfo");
|
206 206 | static INSTANCETYPEINFO_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
207 207 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$InstanceType", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
208 208 | ::aws_smithy_schema::ShapeType::String,
|
209 - | "instance_type",
|
209 + | "InstanceType",
|
210 210 | 0,
|
211 211 | )
|
212 212 | .with_xml_name("instanceType");
|
213 213 | static INSTANCETYPEINFO_MEMBER_CURRENT_GENERATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static(
|
215 215 | "com.amazonaws.ec2#InstanceTypeInfo$CurrentGeneration",
|
216 216 | "com.amazonaws.ec2",
|
217 217 | "InstanceTypeInfo",
|
218 218 | ),
|
219 219 | ::aws_smithy_schema::ShapeType::Boolean,
|
220 - | "current_generation",
|
220 + | "CurrentGeneration",
|
221 221 | 1,
|
222 222 | )
|
223 223 | .with_xml_name("currentGeneration");
|
224 224 | static INSTANCETYPEINFO_MEMBER_FREE_TIER_ELIGIBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
225 225 | ::aws_smithy_schema::ShapeId::from_static(
|
226 226 | "com.amazonaws.ec2#InstanceTypeInfo$FreeTierEligible",
|
227 227 | "com.amazonaws.ec2",
|
228 228 | "InstanceTypeInfo",
|
229 229 | ),
|
230 230 | ::aws_smithy_schema::ShapeType::Boolean,
|
231 - | "free_tier_eligible",
|
231 + | "FreeTierEligible",
|
232 232 | 2,
|
233 233 | )
|
234 234 | .with_xml_name("freeTierEligible");
|
235 235 | static INSTANCETYPEINFO_MEMBER_SUPPORTED_USAGE_CLASSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2#InstanceTypeInfo$SupportedUsageClasses",
|
238 238 | "com.amazonaws.ec2",
|
239 239 | "InstanceTypeInfo",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::List,
|
242 - | "supported_usage_classes",
|
242 + | "SupportedUsageClasses",
|
243 243 | 3,
|
244 244 | )
|
245 245 | .with_xml_name("supportedUsageClasses");
|
246 246 | static INSTANCETYPEINFO_MEMBER_SUPPORTED_ROOT_DEVICE_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "com.amazonaws.ec2#InstanceTypeInfo$SupportedRootDeviceTypes",
|
249 249 | "com.amazonaws.ec2",
|
250 250 | "InstanceTypeInfo",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::List,
|
253 - | "supported_root_device_types",
|
253 + | "SupportedRootDeviceTypes",
|
254 254 | 4,
|
255 255 | )
|
256 256 | .with_xml_name("supportedRootDeviceTypes");
|
257 257 | static INSTANCETYPEINFO_MEMBER_SUPPORTED_VIRTUALIZATION_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "com.amazonaws.ec2#InstanceTypeInfo$SupportedVirtualizationTypes",
|
260 260 | "com.amazonaws.ec2",
|
261 261 | "InstanceTypeInfo",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::List,
|
264 - | "supported_virtualization_types",
|
264 + | "SupportedVirtualizationTypes",
|
265 265 | 5,
|
266 266 | )
|
267 267 | .with_xml_name("supportedVirtualizationTypes");
|
268 268 | static INSTANCETYPEINFO_MEMBER_BARE_METAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$BareMetal", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
270 270 | ::aws_smithy_schema::ShapeType::Boolean,
|
271 - | "bare_metal",
|
271 + | "BareMetal",
|
272 272 | 6,
|
273 273 | )
|
274 274 | .with_xml_name("bareMetal");
|
275 275 | static INSTANCETYPEINFO_MEMBER_HYPERVISOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
276 276 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$Hypervisor", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
277 277 | ::aws_smithy_schema::ShapeType::String,
|
278 - | "hypervisor",
|
278 + | "Hypervisor",
|
279 279 | 7,
|
280 280 | )
|
281 281 | .with_xml_name("hypervisor");
|
282 282 | static INSTANCETYPEINFO_MEMBER_PROCESSOR_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
283 283 | ::aws_smithy_schema::ShapeId::from_static(
|
284 284 | "com.amazonaws.ec2#InstanceTypeInfo$ProcessorInfo",
|
285 285 | "com.amazonaws.ec2",
|
286 286 | "InstanceTypeInfo",
|
287 287 | ),
|
288 288 | ::aws_smithy_schema::ShapeType::Structure,
|
289 - | "processor_info",
|
289 + | "ProcessorInfo",
|
290 290 | 8,
|
291 291 | )
|
292 292 | .with_xml_name("processorInfo");
|
293 293 | static INSTANCETYPEINFO_MEMBER_V_CPU_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
294 294 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$VCpuInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
295 295 | ::aws_smithy_schema::ShapeType::Structure,
|
296 - | "v_cpu_info",
|
296 + | "VCpuInfo",
|
297 297 | 9,
|
298 298 | )
|
299 299 | .with_xml_name("vCpuInfo");
|
300 300 | static INSTANCETYPEINFO_MEMBER_MEMORY_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
301 301 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$MemoryInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
302 302 | ::aws_smithy_schema::ShapeType::Structure,
|
303 - | "memory_info",
|
303 + | "MemoryInfo",
|
304 304 | 10,
|
305 305 | )
|
306 306 | .with_xml_name("memoryInfo");
|
307 307 | static INSTANCETYPEINFO_MEMBER_INSTANCE_STORAGE_SUPPORTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
308 308 | ::aws_smithy_schema::ShapeId::from_static(
|
309 309 | "com.amazonaws.ec2#InstanceTypeInfo$InstanceStorageSupported",
|
310 310 | "com.amazonaws.ec2",
|
311 311 | "InstanceTypeInfo",
|
312 312 | ),
|
313 313 | ::aws_smithy_schema::ShapeType::Boolean,
|
314 - | "instance_storage_supported",
|
314 + | "InstanceStorageSupported",
|
315 315 | 11,
|
316 316 | )
|
317 317 | .with_xml_name("instanceStorageSupported");
|
318 318 | static INSTANCETYPEINFO_MEMBER_INSTANCE_STORAGE_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
319 319 | ::aws_smithy_schema::ShapeId::from_static(
|
320 320 | "com.amazonaws.ec2#InstanceTypeInfo$InstanceStorageInfo",
|
321 321 | "com.amazonaws.ec2",
|
322 322 | "InstanceTypeInfo",
|
323 323 | ),
|
324 324 | ::aws_smithy_schema::ShapeType::Structure,
|
325 - | "instance_storage_info",
|
325 + | "InstanceStorageInfo",
|
326 326 | 12,
|
327 327 | )
|
328 328 | .with_xml_name("instanceStorageInfo");
|
329 329 | static INSTANCETYPEINFO_MEMBER_EBS_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
330 330 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$EbsInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
331 331 | ::aws_smithy_schema::ShapeType::Structure,
|
332 - | "ebs_info",
|
332 + | "EbsInfo",
|
333 333 | 13,
|
334 334 | )
|
335 335 | .with_xml_name("ebsInfo");
|
336 336 | static INSTANCETYPEINFO_MEMBER_NETWORK_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
337 337 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$NetworkInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
338 338 | ::aws_smithy_schema::ShapeType::Structure,
|
339 - | "network_info",
|
339 + | "NetworkInfo",
|
340 340 | 14,
|
341 341 | )
|
342 342 | .with_xml_name("networkInfo");
|
343 343 | static INSTANCETYPEINFO_MEMBER_GPU_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
344 344 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$GpuInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
345 345 | ::aws_smithy_schema::ShapeType::Structure,
|
346 - | "gpu_info",
|
346 + | "GpuInfo",
|
347 347 | 15,
|
348 348 | )
|
349 349 | .with_xml_name("gpuInfo");
|
350 350 | static INSTANCETYPEINFO_MEMBER_FPGA_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
351 351 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$FpgaInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
352 352 | ::aws_smithy_schema::ShapeType::Structure,
|
353 - | "fpga_info",
|
353 + | "FpgaInfo",
|
354 354 | 16,
|
355 355 | )
|
356 356 | .with_xml_name("fpgaInfo");
|
357 357 | static INSTANCETYPEINFO_MEMBER_PLACEMENT_GROUP_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
358 358 | ::aws_smithy_schema::ShapeId::from_static(
|
359 359 | "com.amazonaws.ec2#InstanceTypeInfo$PlacementGroupInfo",
|
360 360 | "com.amazonaws.ec2",
|
361 361 | "InstanceTypeInfo",
|
362 362 | ),
|
363 363 | ::aws_smithy_schema::ShapeType::Structure,
|
364 - | "placement_group_info",
|
364 + | "PlacementGroupInfo",
|
365 365 | 17,
|
366 366 | )
|
367 367 | .with_xml_name("placementGroupInfo");
|
368 368 | static INSTANCETYPEINFO_MEMBER_INFERENCE_ACCELERATOR_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
369 369 | ::aws_smithy_schema::ShapeId::from_static(
|
370 370 | "com.amazonaws.ec2#InstanceTypeInfo$InferenceAcceleratorInfo",
|
371 371 | "com.amazonaws.ec2",
|
372 372 | "InstanceTypeInfo",
|
373 373 | ),
|
374 374 | ::aws_smithy_schema::ShapeType::Structure,
|
375 - | "inference_accelerator_info",
|
375 + | "InferenceAcceleratorInfo",
|
376 376 | 18,
|
377 377 | )
|
378 378 | .with_xml_name("inferenceAcceleratorInfo");
|
379 379 | static INSTANCETYPEINFO_MEMBER_HIBERNATION_SUPPORTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
380 380 | ::aws_smithy_schema::ShapeId::from_static(
|
381 381 | "com.amazonaws.ec2#InstanceTypeInfo$HibernationSupported",
|
382 382 | "com.amazonaws.ec2",
|
383 383 | "InstanceTypeInfo",
|
384 384 | ),
|
385 385 | ::aws_smithy_schema::ShapeType::Boolean,
|
386 - | "hibernation_supported",
|
386 + | "HibernationSupported",
|
387 387 | 19,
|
388 388 | )
|
389 389 | .with_xml_name("hibernationSupported");
|
390 390 | static INSTANCETYPEINFO_MEMBER_BURSTABLE_PERFORMANCE_SUPPORTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
391 391 | ::aws_smithy_schema::ShapeId::from_static(
|
392 392 | "com.amazonaws.ec2#InstanceTypeInfo$BurstablePerformanceSupported",
|
393 393 | "com.amazonaws.ec2",
|
394 394 | "InstanceTypeInfo",
|
395 395 | ),
|
396 396 | ::aws_smithy_schema::ShapeType::Boolean,
|
397 - | "burstable_performance_supported",
|
397 + | "BurstablePerformanceSupported",
|
398 398 | 20,
|
399 399 | )
|
400 400 | .with_xml_name("burstablePerformanceSupported");
|
401 401 | static INSTANCETYPEINFO_MEMBER_DEDICATED_HOSTS_SUPPORTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
402 402 | ::aws_smithy_schema::ShapeId::from_static(
|
403 403 | "com.amazonaws.ec2#InstanceTypeInfo$DedicatedHostsSupported",
|
404 404 | "com.amazonaws.ec2",
|
405 405 | "InstanceTypeInfo",
|
406 406 | ),
|
407 407 | ::aws_smithy_schema::ShapeType::Boolean,
|
408 - | "dedicated_hosts_supported",
|
408 + | "DedicatedHostsSupported",
|
409 409 | 21,
|
410 410 | )
|
411 411 | .with_xml_name("dedicatedHostsSupported");
|
412 412 | static INSTANCETYPEINFO_MEMBER_AUTO_RECOVERY_SUPPORTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
413 413 | ::aws_smithy_schema::ShapeId::from_static(
|
414 414 | "com.amazonaws.ec2#InstanceTypeInfo$AutoRecoverySupported",
|
415 415 | "com.amazonaws.ec2",
|
416 416 | "InstanceTypeInfo",
|
417 417 | ),
|
418 418 | ::aws_smithy_schema::ShapeType::Boolean,
|
419 - | "auto_recovery_supported",
|
419 + | "AutoRecoverySupported",
|
420 420 | 22,
|
421 421 | )
|
422 422 | .with_xml_name("autoRecoverySupported");
|
423 423 | static INSTANCETYPEINFO_MEMBER_SUPPORTED_BOOT_MODES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
424 424 | ::aws_smithy_schema::ShapeId::from_static(
|
425 425 | "com.amazonaws.ec2#InstanceTypeInfo$SupportedBootModes",
|
426 426 | "com.amazonaws.ec2",
|
427 427 | "InstanceTypeInfo",
|
428 428 | ),
|
429 429 | ::aws_smithy_schema::ShapeType::List,
|
430 - | "supported_boot_modes",
|
430 + | "SupportedBootModes",
|
431 431 | 23,
|
432 432 | )
|
433 433 | .with_xml_name("supportedBootModes");
|
434 434 | static INSTANCETYPEINFO_MEMBER_NITRO_ENCLAVES_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
435 435 | ::aws_smithy_schema::ShapeId::from_static(
|
436 436 | "com.amazonaws.ec2#InstanceTypeInfo$NitroEnclavesSupport",
|
437 437 | "com.amazonaws.ec2",
|
438 438 | "InstanceTypeInfo",
|
439 439 | ),
|
440 440 | ::aws_smithy_schema::ShapeType::String,
|
441 - | "nitro_enclaves_support",
|
441 + | "NitroEnclavesSupport",
|
442 442 | 24,
|
443 443 | )
|
444 444 | .with_xml_name("nitroEnclavesSupport");
|
445 445 | static INSTANCETYPEINFO_MEMBER_NITRO_TPM_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
446 446 | ::aws_smithy_schema::ShapeId::from_static(
|
447 447 | "com.amazonaws.ec2#InstanceTypeInfo$NitroTpmSupport",
|
448 448 | "com.amazonaws.ec2",
|
449 449 | "InstanceTypeInfo",
|
450 450 | ),
|
451 451 | ::aws_smithy_schema::ShapeType::String,
|
452 - | "nitro_tpm_support",
|
452 + | "NitroTpmSupport",
|
453 453 | 25,
|
454 454 | )
|
455 455 | .with_xml_name("nitroTpmSupport");
|
456 456 | static INSTANCETYPEINFO_MEMBER_NITRO_TPM_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
457 457 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$NitroTpmInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
458 458 | ::aws_smithy_schema::ShapeType::Structure,
|
459 - | "nitro_tpm_info",
|
459 + | "NitroTpmInfo",
|
460 460 | 26,
|
461 461 | )
|
462 462 | .with_xml_name("nitroTpmInfo");
|
463 463 | static INSTANCETYPEINFO_MEMBER_MEDIA_ACCELERATOR_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
464 464 | ::aws_smithy_schema::ShapeId::from_static(
|
465 465 | "com.amazonaws.ec2#InstanceTypeInfo$MediaAcceleratorInfo",
|
466 466 | "com.amazonaws.ec2",
|
467 467 | "InstanceTypeInfo",
|
468 468 | ),
|
469 469 | ::aws_smithy_schema::ShapeType::Structure,
|
470 - | "media_accelerator_info",
|
470 + | "MediaAcceleratorInfo",
|
471 471 | 27,
|
472 472 | )
|
473 473 | .with_xml_name("mediaAcceleratorInfo");
|
474 474 | static INSTANCETYPEINFO_MEMBER_NEURON_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
475 475 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$NeuronInfo", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
476 476 | ::aws_smithy_schema::ShapeType::Structure,
|
477 - | "neuron_info",
|
477 + | "NeuronInfo",
|
478 478 | 28,
|
479 479 | )
|
480 480 | .with_xml_name("neuronInfo");
|
481 481 | static INSTANCETYPEINFO_MEMBER_PHC_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
482 482 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#InstanceTypeInfo$PhcSupport", "com.amazonaws.ec2", "InstanceTypeInfo"),
|
483 483 | ::aws_smithy_schema::ShapeType::String,
|
484 - | "phc_support",
|
484 + | "PhcSupport",
|
485 485 | 29,
|
486 486 | )
|
487 487 | .with_xml_name("phcSupport");
|
488 488 | static INSTANCETYPEINFO_MEMBER_REBOOT_MIGRATION_SUPPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
489 489 | ::aws_smithy_schema::ShapeId::from_static(
|
490 490 | "com.amazonaws.ec2#InstanceTypeInfo$RebootMigrationSupport",
|
491 491 | "com.amazonaws.ec2",
|
492 492 | "InstanceTypeInfo",
|
493 493 | ),
|
494 494 | ::aws_smithy_schema::ShapeType::String,
|
495 - | "reboot_migration_support",
|
495 + | "RebootMigrationSupport",
|
496 496 | 30,
|
497 497 | )
|
498 498 | .with_xml_name("rebootMigrationSupport");
|
499 499 | static INSTANCETYPEINFO_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
500 500 | INSTANCETYPEINFO_SCHEMA_ID,
|
501 501 | ::aws_smithy_schema::ShapeType::Structure,
|
502 502 | &[
|
503 503 | &INSTANCETYPEINFO_MEMBER_INSTANCE_TYPE,
|
504 504 | &INSTANCETYPEINFO_MEMBER_CURRENT_GENERATION,
|
505 505 | &INSTANCETYPEINFO_MEMBER_FREE_TIER_ELIGIBLE,
|
666 666 | ser.write_string(&INSTANCETYPEINFO_MEMBER_PHC_SUPPORT, val.as_str())?;
|
667 667 | }
|
668 668 | if let Some(ref val) = self.reboot_migration_support {
|
669 669 | ser.write_string(&INSTANCETYPEINFO_MEMBER_REBOOT_MIGRATION_SUPPORT, val.as_str())?;
|
670 670 | }
|
671 671 | Ok(())
|
672 672 | }
|
673 673 | }
|
674 674 | impl InstanceTypeInfo {
|
675 675 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
676 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
677 - | deserializer: &mut D,
|
676 + | pub fn deserialize(
|
677 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
678 678 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
679 679 | #[allow(unused_variables, unused_mut)]
|
680 680 | let mut builder = Self::builder();
|
681 681 | #[allow(
|
682 682 | unused_variables,
|
683 683 | unreachable_code,
|
684 684 | clippy::single_match,
|
685 685 | clippy::match_single_binding,
|
686 686 | clippy::diverging_sub_expression
|
687 687 | )]
|
688 - | deserializer.read_struct(&INSTANCETYPEINFO_SCHEMA, (), |_, member, deser| {
|
688 + | deserializer.read_struct(&INSTANCETYPEINFO_SCHEMA, &mut |member, deser| {
|
689 689 | match member.member_index() {
|
690 690 | Some(0) => {
|
691 691 | builder.instance_type = Some(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
|
692 692 | }
|
693 693 | Some(1) => {
|
694 694 | builder.current_generation = Some(deser.read_boolean(member)?);
|
695 695 | }
|
696 696 | Some(2) => {
|
697 697 | builder.free_tier_eligible = Some(deser.read_boolean(member)?);
|
698 698 | }
|
699 699 | Some(3) => {
|
700 700 | builder.supported_usage_classes = Some({
|
701 - | let container = if let Some(cap) = deser.container_size() {
|
702 - | Vec::with_capacity(cap)
|
703 - | } else {
|
704 - | Vec::new()
|
705 - | };
|
706 - | deser.read_list(member, container, |mut list, deser| {
|
707 - | list.push(crate::types::UsageClassType::from(deser.read_string(member)?.as_str()));
|
708 - | Ok(list)
|
709 - | })?
|
701 + | let mut container = Vec::new();
|
702 + | deser.read_list(member, &mut |deser| {
|
703 + | container.push(crate::types::UsageClassType::from(deser.read_string(member)?.as_str()));
|
704 + | Ok(())
|
705 + | })?;
|
706 + | container
|
710 707 | });
|
711 708 | }
|
712 709 | Some(4) => {
|
713 710 | builder.supported_root_device_types = Some({
|
714 - | let container = if let Some(cap) = deser.container_size() {
|
715 - | Vec::with_capacity(cap)
|
716 - | } else {
|
717 - | Vec::new()
|
718 - | };
|
719 - | deser.read_list(member, container, |mut list, deser| {
|
720 - | list.push(crate::types::RootDeviceType::from(deser.read_string(member)?.as_str()));
|
721 - | Ok(list)
|
722 - | })?
|
711 + | let mut container = Vec::new();
|
712 + | deser.read_list(member, &mut |deser| {
|
713 + | container.push(crate::types::RootDeviceType::from(deser.read_string(member)?.as_str()));
|
714 + | Ok(())
|
715 + | })?;
|
716 + | container
|
723 717 | });
|
724 718 | }
|
725 719 | Some(5) => {
|
726 720 | builder.supported_virtualization_types = Some({
|
727 - | let container = if let Some(cap) = deser.container_size() {
|
728 - | Vec::with_capacity(cap)
|
729 - | } else {
|
730 - | Vec::new()
|
731 - | };
|
732 - | deser.read_list(member, container, |mut list, deser| {
|
733 - | list.push(crate::types::VirtualizationType::from(deser.read_string(member)?.as_str()));
|
734 - | Ok(list)
|
735 - | })?
|
721 + | let mut container = Vec::new();
|
722 + | deser.read_list(member, &mut |deser| {
|
723 + | container.push(crate::types::VirtualizationType::from(deser.read_string(member)?.as_str()));
|
724 + | Ok(())
|
725 + | })?;
|
726 + | container
|
736 727 | });
|
737 728 | }
|
738 729 | Some(6) => {
|
739 730 | builder.bare_metal = Some(deser.read_boolean(member)?);
|
740 731 | }
|
741 732 | Some(7) => {
|
742 733 | builder.hypervisor = Some(crate::types::InstanceTypeHypervisor::from(deser.read_string(member)?.as_str()));
|
743 734 | }
|
744 735 | Some(8) => {
|
745 736 | builder.processor_info = Some(crate::types::ProcessorInfo::deserialize(deser)?);
|
746 737 | }
|
747 738 | Some(9) => {
|
748 739 | builder.v_cpu_info = Some(crate::types::VCpuInfo::deserialize(deser)?);
|
749 740 | }
|
750 741 | Some(10) => {
|
751 742 | builder.memory_info = Some(crate::types::MemoryInfo::deserialize(deser)?);
|
752 743 | }
|
753 744 | Some(11) => {
|
754 745 | builder.instance_storage_supported = Some(deser.read_boolean(member)?);
|
755 746 | }
|
756 747 | Some(12) => {
|
757 748 | builder.instance_storage_info = Some(crate::types::InstanceStorageInfo::deserialize(deser)?);
|
758 749 | }
|
759 750 | Some(13) => {
|
760 751 | builder.ebs_info = Some(crate::types::EbsInfo::deserialize(deser)?);
|
761 752 | }
|
762 753 | Some(14) => {
|
763 754 | builder.network_info = Some(crate::types::NetworkInfo::deserialize(deser)?);
|
764 755 | }
|
765 756 | Some(15) => {
|
766 757 | builder.gpu_info = Some(crate::types::GpuInfo::deserialize(deser)?);
|
767 758 | }
|
768 759 | Some(16) => {
|
769 760 | builder.fpga_info = Some(crate::types::FpgaInfo::deserialize(deser)?);
|
770 761 | }
|
771 762 | Some(17) => {
|
772 763 | builder.placement_group_info = Some(crate::types::PlacementGroupInfo::deserialize(deser)?);
|
773 764 | }
|
774 765 | Some(18) => {
|
775 766 | builder.inference_accelerator_info = Some(crate::types::InferenceAcceleratorInfo::deserialize(deser)?);
|
776 767 | }
|
777 768 | Some(19) => {
|
778 769 | builder.hibernation_supported = Some(deser.read_boolean(member)?);
|
779 770 | }
|
780 771 | Some(20) => {
|
781 772 | builder.burstable_performance_supported = Some(deser.read_boolean(member)?);
|
782 773 | }
|
783 774 | Some(21) => {
|
784 775 | builder.dedicated_hosts_supported = Some(deser.read_boolean(member)?);
|
785 776 | }
|
786 777 | Some(22) => {
|
787 778 | builder.auto_recovery_supported = Some(deser.read_boolean(member)?);
|
788 779 | }
|
789 780 | Some(23) => {
|
790 781 | builder.supported_boot_modes = Some({
|
791 - | let container = if let Some(cap) = deser.container_size() {
|
792 - | Vec::with_capacity(cap)
|
793 - | } else {
|
794 - | Vec::new()
|
795 - | };
|
796 - | deser.read_list(member, container, |mut list, deser| {
|
797 - | list.push(crate::types::BootModeType::from(deser.read_string(member)?.as_str()));
|
798 - | Ok(list)
|
799 - | })?
|
782 + | let mut container = Vec::new();
|
783 + | deser.read_list(member, &mut |deser| {
|
784 + | container.push(crate::types::BootModeType::from(deser.read_string(member)?.as_str()));
|
785 + | Ok(())
|
786 + | })?;
|
787 + | container
|
800 788 | });
|
801 789 | }
|
802 790 | Some(24) => {
|
803 791 | builder.nitro_enclaves_support = Some(crate::types::NitroEnclavesSupport::from(deser.read_string(member)?.as_str()));
|
804 792 | }
|
805 793 | Some(25) => {
|
806 794 | builder.nitro_tpm_support = Some(crate::types::NitroTpmSupport::from(deser.read_string(member)?.as_str()));
|
807 795 | }
|
808 796 | Some(26) => {
|
809 797 | builder.nitro_tpm_info = Some(crate::types::NitroTpmInfo::deserialize(deser)?);
|
810 798 | }
|
811 799 | Some(27) => {
|
812 800 | builder.media_accelerator_info = Some(crate::types::MediaAcceleratorInfo::deserialize(deser)?);
|
813 801 | }
|
814 802 | Some(28) => {
|
815 803 | builder.neuron_info = Some(crate::types::NeuronInfo::deserialize(deser)?);
|
816 804 | }
|
817 805 | Some(29) => {
|
818 806 | builder.phc_support = Some(crate::types::PhcSupport::from(deser.read_string(member)?.as_str()));
|
819 807 | }
|
820 808 | Some(30) => {
|
821 809 | builder.reboot_migration_support = Some(crate::types::RebootMigrationSupport::from(deser.read_string(member)?.as_str()));
|
822 810 | }
|
823 811 | _ => {}
|
824 812 | }
|
825 813 | Ok(())
|
826 814 | })?;
|
827 815 | Ok(builder.build())
|
828 816 | }
|
829 817 | }
|
818 + | impl InstanceTypeInfo {
|
819 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
820 + | pub fn deserialize_with_response(
|
821 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
822 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
823 + | _status: u16,
|
824 + | _body: &[u8],
|
825 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
826 + | Self::deserialize(deserializer)
|
827 + | }
|
828 + | }
|
830 829 | impl InstanceTypeInfo {
|
831 830 | /// Creates a new builder-style object to manufacture [`InstanceTypeInfo`](crate::types::InstanceTypeInfo).
|
832 831 | pub fn builder() -> crate::types::builders::InstanceTypeInfoBuilder {
|
833 832 | crate::types::builders::InstanceTypeInfoBuilder::default()
|
834 833 | }
|
835 834 | }
|
836 835 |
|
837 836 | /// A builder for [`InstanceTypeInfo`](crate::types::InstanceTypeInfo).
|
838 837 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
839 838 | #[non_exhaustive]
|