314 314 | "com.amazonaws.route53.synthetic",
|
315 315 | "UpdateHealthCheckInput",
|
316 316 | );
|
317 317 | static UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
318 318 | ::aws_smithy_schema::ShapeId::from_static(
|
319 319 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$HealthCheckId",
|
320 320 | "com.amazonaws.route53.synthetic",
|
321 321 | "UpdateHealthCheckInput",
|
322 322 | ),
|
323 323 | ::aws_smithy_schema::ShapeType::String,
|
324 - | "health_check_id",
|
324 + | "HealthCheckId",
|
325 325 | 0,
|
326 326 | )
|
327 327 | .with_http_label();
|
328 328 | static UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
329 329 | ::aws_smithy_schema::ShapeId::from_static(
|
330 330 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$HealthCheckVersion",
|
331 331 | "com.amazonaws.route53.synthetic",
|
332 332 | "UpdateHealthCheckInput",
|
333 333 | ),
|
334 334 | ::aws_smithy_schema::ShapeType::Long,
|
335 - | "health_check_version",
|
335 + | "HealthCheckVersion",
|
336 336 | 1,
|
337 337 | );
|
338 338 | static UPDATEHEALTHCHECKINPUT_MEMBER_IP_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
339 339 | ::aws_smithy_schema::ShapeId::from_static(
|
340 340 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$IPAddress",
|
341 341 | "com.amazonaws.route53.synthetic",
|
342 342 | "UpdateHealthCheckInput",
|
343 343 | ),
|
344 344 | ::aws_smithy_schema::ShapeType::String,
|
345 - | "ip_address",
|
345 + | "IPAddress",
|
346 346 | 2,
|
347 347 | );
|
348 348 | static UPDATEHEALTHCHECKINPUT_MEMBER_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
349 349 | ::aws_smithy_schema::ShapeId::from_static(
|
350 350 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$Port",
|
351 351 | "com.amazonaws.route53.synthetic",
|
352 352 | "UpdateHealthCheckInput",
|
353 353 | ),
|
354 354 | ::aws_smithy_schema::ShapeType::Integer,
|
355 - | "port",
|
355 + | "Port",
|
356 356 | 3,
|
357 357 | );
|
358 358 | static UPDATEHEALTHCHECKINPUT_MEMBER_RESOURCE_PATH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
359 359 | ::aws_smithy_schema::ShapeId::from_static(
|
360 360 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$ResourcePath",
|
361 361 | "com.amazonaws.route53.synthetic",
|
362 362 | "UpdateHealthCheckInput",
|
363 363 | ),
|
364 364 | ::aws_smithy_schema::ShapeType::String,
|
365 - | "resource_path",
|
365 + | "ResourcePath",
|
366 366 | 4,
|
367 367 | );
|
368 368 | static UPDATEHEALTHCHECKINPUT_MEMBER_FULLY_QUALIFIED_DOMAIN_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
369 369 | ::aws_smithy_schema::ShapeId::from_static(
|
370 370 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$FullyQualifiedDomainName",
|
371 371 | "com.amazonaws.route53.synthetic",
|
372 372 | "UpdateHealthCheckInput",
|
373 373 | ),
|
374 374 | ::aws_smithy_schema::ShapeType::String,
|
375 - | "fully_qualified_domain_name",
|
375 + | "FullyQualifiedDomainName",
|
376 376 | 5,
|
377 377 | );
|
378 378 | static UPDATEHEALTHCHECKINPUT_MEMBER_SEARCH_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
379 379 | ::aws_smithy_schema::ShapeId::from_static(
|
380 380 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$SearchString",
|
381 381 | "com.amazonaws.route53.synthetic",
|
382 382 | "UpdateHealthCheckInput",
|
383 383 | ),
|
384 384 | ::aws_smithy_schema::ShapeType::String,
|
385 - | "search_string",
|
385 + | "SearchString",
|
386 386 | 6,
|
387 387 | );
|
388 388 | static UPDATEHEALTHCHECKINPUT_MEMBER_FAILURE_THRESHOLD: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
389 389 | ::aws_smithy_schema::ShapeId::from_static(
|
390 390 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$FailureThreshold",
|
391 391 | "com.amazonaws.route53.synthetic",
|
392 392 | "UpdateHealthCheckInput",
|
393 393 | ),
|
394 394 | ::aws_smithy_schema::ShapeType::Integer,
|
395 - | "failure_threshold",
|
395 + | "FailureThreshold",
|
396 396 | 7,
|
397 397 | );
|
398 398 | static UPDATEHEALTHCHECKINPUT_MEMBER_INVERTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
399 399 | ::aws_smithy_schema::ShapeId::from_static(
|
400 400 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$Inverted",
|
401 401 | "com.amazonaws.route53.synthetic",
|
402 402 | "UpdateHealthCheckInput",
|
403 403 | ),
|
404 404 | ::aws_smithy_schema::ShapeType::Boolean,
|
405 - | "inverted",
|
405 + | "Inverted",
|
406 406 | 8,
|
407 407 | );
|
408 408 | static UPDATEHEALTHCHECKINPUT_MEMBER_DISABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
409 409 | ::aws_smithy_schema::ShapeId::from_static(
|
410 410 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$Disabled",
|
411 411 | "com.amazonaws.route53.synthetic",
|
412 412 | "UpdateHealthCheckInput",
|
413 413 | ),
|
414 414 | ::aws_smithy_schema::ShapeType::Boolean,
|
415 - | "disabled",
|
415 + | "Disabled",
|
416 416 | 9,
|
417 417 | );
|
418 418 | static UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_THRESHOLD: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
419 419 | ::aws_smithy_schema::ShapeId::from_static(
|
420 420 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$HealthThreshold",
|
421 421 | "com.amazonaws.route53.synthetic",
|
422 422 | "UpdateHealthCheckInput",
|
423 423 | ),
|
424 424 | ::aws_smithy_schema::ShapeType::Integer,
|
425 - | "health_threshold",
|
425 + | "HealthThreshold",
|
426 426 | 10,
|
427 427 | );
|
428 428 | static UPDATEHEALTHCHECKINPUT_MEMBER_CHILD_HEALTH_CHECKS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
429 429 | ::aws_smithy_schema::ShapeId::from_static(
|
430 430 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$ChildHealthChecks",
|
431 431 | "com.amazonaws.route53.synthetic",
|
432 432 | "UpdateHealthCheckInput",
|
433 433 | ),
|
434 434 | ::aws_smithy_schema::ShapeType::List,
|
435 - | "child_health_checks",
|
435 + | "ChildHealthChecks",
|
436 436 | 11,
|
437 437 | );
|
438 438 | static UPDATEHEALTHCHECKINPUT_MEMBER_ENABLE_SNI: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
439 439 | ::aws_smithy_schema::ShapeId::from_static(
|
440 440 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$EnableSNI",
|
441 441 | "com.amazonaws.route53.synthetic",
|
442 442 | "UpdateHealthCheckInput",
|
443 443 | ),
|
444 444 | ::aws_smithy_schema::ShapeType::Boolean,
|
445 - | "enable_sni",
|
445 + | "EnableSNI",
|
446 446 | 12,
|
447 447 | );
|
448 448 | static UPDATEHEALTHCHECKINPUT_MEMBER_REGIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
449 449 | ::aws_smithy_schema::ShapeId::from_static(
|
450 450 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$Regions",
|
451 451 | "com.amazonaws.route53.synthetic",
|
452 452 | "UpdateHealthCheckInput",
|
453 453 | ),
|
454 454 | ::aws_smithy_schema::ShapeType::List,
|
455 - | "regions",
|
455 + | "Regions",
|
456 456 | 13,
|
457 457 | );
|
458 458 | static UPDATEHEALTHCHECKINPUT_MEMBER_ALARM_IDENTIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
459 459 | ::aws_smithy_schema::ShapeId::from_static(
|
460 460 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$AlarmIdentifier",
|
461 461 | "com.amazonaws.route53.synthetic",
|
462 462 | "UpdateHealthCheckInput",
|
463 463 | ),
|
464 464 | ::aws_smithy_schema::ShapeType::Structure,
|
465 - | "alarm_identifier",
|
465 + | "AlarmIdentifier",
|
466 466 | 14,
|
467 467 | );
|
468 468 | static UPDATEHEALTHCHECKINPUT_MEMBER_INSUFFICIENT_DATA_HEALTH_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
469 469 | ::aws_smithy_schema::ShapeId::from_static(
|
470 470 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$InsufficientDataHealthStatus",
|
471 471 | "com.amazonaws.route53.synthetic",
|
472 472 | "UpdateHealthCheckInput",
|
473 473 | ),
|
474 474 | ::aws_smithy_schema::ShapeType::String,
|
475 - | "insufficient_data_health_status",
|
475 + | "InsufficientDataHealthStatus",
|
476 476 | 15,
|
477 477 | );
|
478 478 | static UPDATEHEALTHCHECKINPUT_MEMBER_RESET_ELEMENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
479 479 | ::aws_smithy_schema::ShapeId::from_static(
|
480 480 | "com.amazonaws.route53.synthetic#UpdateHealthCheckInput$ResetElements",
|
481 481 | "com.amazonaws.route53.synthetic",
|
482 482 | "UpdateHealthCheckInput",
|
483 483 | ),
|
484 484 | ::aws_smithy_schema::ShapeType::List,
|
485 - | "reset_elements",
|
485 + | "ResetElements",
|
486 486 | 16,
|
487 487 | );
|
488 488 | static UPDATEHEALTHCHECKINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
489 489 | UPDATEHEALTHCHECKINPUT_SCHEMA_ID,
|
490 490 | ::aws_smithy_schema::ShapeType::Structure,
|
491 491 | &[
|
492 492 | &UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_ID,
|
493 493 | &UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_VERSION,
|
494 494 | &UPDATEHEALTHCHECKINPUT_MEMBER_IP_ADDRESS,
|
495 495 | &UPDATEHEALTHCHECKINPUT_MEMBER_PORT,
|
496 496 | &UPDATEHEALTHCHECKINPUT_MEMBER_RESOURCE_PATH,
|
497 497 | &UPDATEHEALTHCHECKINPUT_MEMBER_FULLY_QUALIFIED_DOMAIN_NAME,
|
498 498 | &UPDATEHEALTHCHECKINPUT_MEMBER_SEARCH_STRING,
|
499 499 | &UPDATEHEALTHCHECKINPUT_MEMBER_FAILURE_THRESHOLD,
|
500 500 | &UPDATEHEALTHCHECKINPUT_MEMBER_INVERTED,
|
501 501 | &UPDATEHEALTHCHECKINPUT_MEMBER_DISABLED,
|
502 502 | &UPDATEHEALTHCHECKINPUT_MEMBER_HEALTH_THRESHOLD,
|
503 503 | &UPDATEHEALTHCHECKINPUT_MEMBER_CHILD_HEALTH_CHECKS,
|
504 504 | &UPDATEHEALTHCHECKINPUT_MEMBER_ENABLE_SNI,
|
505 505 | &UPDATEHEALTHCHECKINPUT_MEMBER_REGIONS,
|
506 506 | &UPDATEHEALTHCHECKINPUT_MEMBER_ALARM_IDENTIFIER,
|
507 507 | &UPDATEHEALTHCHECKINPUT_MEMBER_INSUFFICIENT_DATA_HEALTH_STATUS,
|
508 508 | &UPDATEHEALTHCHECKINPUT_MEMBER_RESET_ELEMENTS,
|
509 509 | ],
|
510 - | );
|
510 + | )
|
511 + | .with_http(aws_smithy_schema::traits::HttpTrait::new(
|
512 + | "POST",
|
513 + | "/2013-04-01/healthcheck/{HealthCheckId}",
|
514 + | None,
|
515 + | ));
|
511 516 | impl UpdateHealthCheckInput {
|
512 517 | /// The schema for this shape.
|
513 518 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEHEALTHCHECKINPUT_SCHEMA;
|
514 519 | }
|
515 520 | impl ::aws_smithy_schema::serde::SerializableStruct for UpdateHealthCheckInput {
|
516 521 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
517 522 | fn serialize_members(
|
518 523 | &self,
|
519 524 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
520 525 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
591 596 | }
|
592 597 | Ok(())
|
593 598 | },
|
594 599 | )?;
|
595 600 | }
|
596 601 | Ok(())
|
597 602 | }
|
598 603 | }
|
599 604 | impl UpdateHealthCheckInput {
|
600 605 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
601 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
602 - | deserializer: &mut D,
|
606 + | pub fn deserialize(
|
607 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
603 608 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
604 609 | #[allow(unused_variables, unused_mut)]
|
605 610 | let mut builder = Self::builder();
|
606 611 | #[allow(
|
607 612 | unused_variables,
|
608 613 | unreachable_code,
|
609 614 | clippy::single_match,
|
610 615 | clippy::match_single_binding,
|
611 616 | clippy::diverging_sub_expression
|
612 617 | )]
|
613 - | deserializer.read_struct(&UPDATEHEALTHCHECKINPUT_SCHEMA, (), |_, member, deser| {
|
618 + | deserializer.read_struct(&UPDATEHEALTHCHECKINPUT_SCHEMA, &mut |member, deser| {
|
614 619 | match member.member_index() {
|
615 620 | Some(0) => {
|
616 621 | builder.health_check_id = Some(deser.read_string(member)?);
|
617 622 | }
|
618 623 | Some(1) => {
|
619 624 | builder.health_check_version = Some(deser.read_long(member)?);
|
620 625 | }
|
621 626 | Some(2) => {
|
622 627 | builder.ip_address = Some(deser.read_string(member)?);
|
623 628 | }
|
624 629 | Some(3) => {
|
625 630 | builder.port = Some(deser.read_integer(member)?);
|
626 631 | }
|
627 632 | Some(4) => {
|
628 633 | builder.resource_path = Some(deser.read_string(member)?);
|
629 634 | }
|
630 635 | Some(5) => {
|
631 636 | builder.fully_qualified_domain_name = Some(deser.read_string(member)?);
|
632 637 | }
|
633 638 | Some(6) => {
|
634 639 | builder.search_string = Some(deser.read_string(member)?);
|
635 640 | }
|
636 641 | Some(7) => {
|
637 642 | builder.failure_threshold = Some(deser.read_integer(member)?);
|
638 643 | }
|
639 644 | Some(8) => {
|
640 645 | builder.inverted = Some(deser.read_boolean(member)?);
|
641 646 | }
|
642 647 | Some(9) => {
|
643 648 | builder.disabled = Some(deser.read_boolean(member)?);
|
644 649 | }
|
645 650 | Some(10) => {
|
646 651 | builder.health_threshold = Some(deser.read_integer(member)?);
|
647 652 | }
|
648 653 | Some(11) => {
|
649 - | builder.child_health_checks = Some({
|
650 - | let container = if let Some(cap) = deser.container_size() {
|
651 - | Vec::with_capacity(cap)
|
652 - | } else {
|
653 - | Vec::new()
|
654 - | };
|
655 - | deser.read_list(member, container, |mut list, deser| {
|
656 - | list.push(deser.read_string(member)?);
|
657 - | Ok(list)
|
658 - | })?
|
659 - | });
|
654 + | builder.child_health_checks = Some(deser.read_string_list(member)?);
|
660 655 | }
|
661 656 | Some(12) => {
|
662 657 | builder.enable_sni = Some(deser.read_boolean(member)?);
|
663 658 | }
|
664 659 | Some(13) => {
|
665 660 | builder.regions = Some({
|
666 - | let container = if let Some(cap) = deser.container_size() {
|
667 - | Vec::with_capacity(cap)
|
668 - | } else {
|
669 - | Vec::new()
|
670 - | };
|
671 - | deser.read_list(member, container, |mut list, deser| {
|
672 - | list.push(crate::types::HealthCheckRegion::from(deser.read_string(member)?.as_str()));
|
673 - | Ok(list)
|
674 - | })?
|
661 + | let mut container = Vec::new();
|
662 + | deser.read_list(member, &mut |deser| {
|
663 + | container.push(crate::types::HealthCheckRegion::from(deser.read_string(member)?.as_str()));
|
664 + | Ok(())
|
665 + | })?;
|
666 + | container
|
675 667 | });
|
676 668 | }
|
677 669 | Some(14) => {
|
678 670 | builder.alarm_identifier = Some(crate::types::AlarmIdentifier::deserialize(deser)?);
|
679 671 | }
|
680 672 | Some(15) => {
|
681 673 | builder.insufficient_data_health_status =
|
682 674 | Some(crate::types::InsufficientDataHealthStatus::from(deser.read_string(member)?.as_str()));
|
683 675 | }
|
684 676 | Some(16) => {
|
685 677 | builder.reset_elements = Some({
|
686 - | let container = if let Some(cap) = deser.container_size() {
|
687 - | Vec::with_capacity(cap)
|
688 - | } else {
|
689 - | Vec::new()
|
690 - | };
|
691 - | deser.read_list(member, container, |mut list, deser| {
|
692 - | list.push(crate::types::ResettableElementName::from(deser.read_string(member)?.as_str()));
|
693 - | Ok(list)
|
694 - | })?
|
678 + | let mut container = Vec::new();
|
679 + | deser.read_list(member, &mut |deser| {
|
680 + | container.push(crate::types::ResettableElementName::from(deser.read_string(member)?.as_str()));
|
681 + | Ok(())
|
682 + | })?;
|
683 + | container
|
695 684 | });
|
696 685 | }
|
697 686 | _ => {}
|
698 687 | }
|
699 688 | Ok(())
|
700 689 | })?;
|
690 + | builder.health_check_id = builder.health_check_id.or(Some(String::new()));
|
701 691 | builder
|
702 692 | .build()
|
703 693 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
704 694 | }
|
705 695 | }
|
696 + | impl UpdateHealthCheckInput {
|
697 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
698 + | pub fn deserialize_with_response(
|
699 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
700 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
701 + | _status: u16,
|
702 + | _body: &[u8],
|
703 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
704 + | Self::deserialize(deserializer)
|
705 + | }
|
706 + | }
|
706 707 | impl UpdateHealthCheckInput {
|
707 708 | /// Creates a new builder-style object to manufacture [`UpdateHealthCheckInput`](crate::operation::update_health_check::UpdateHealthCheckInput).
|
708 709 | pub fn builder() -> crate::operation::update_health_check::builders::UpdateHealthCheckInputBuilder {
|
709 710 | crate::operation::update_health_check::builders::UpdateHealthCheckInputBuilder::default()
|
710 711 | }
|
711 712 | }
|
712 713 |
|
713 714 | /// A builder for [`UpdateHealthCheckInput`](crate::operation::update_health_check::UpdateHealthCheckInput).
|
714 715 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
715 716 | #[non_exhaustive]
|