287 287 | /// </ul>
|
288 288 | pub fn availability_zone_rebalancing(&self) -> ::std::option::Option<&crate::types::AvailabilityZoneRebalancing> {
|
289 289 | self.availability_zone_rebalancing.as_ref()
|
290 290 | }
|
291 291 | }
|
292 292 | static SERVICE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
293 293 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service", "com.amazonaws.ecs", "Service");
|
294 294 | static SERVICE_MEMBER_SERVICE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
295 295 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$serviceArn", "com.amazonaws.ecs", "Service"),
|
296 296 | ::aws_smithy_schema::ShapeType::String,
|
297 - | "service_arn",
|
297 + | "serviceArn",
|
298 298 | 0,
|
299 299 | );
|
300 300 | static SERVICE_MEMBER_SERVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
301 301 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$serviceName", "com.amazonaws.ecs", "Service"),
|
302 302 | ::aws_smithy_schema::ShapeType::String,
|
303 - | "service_name",
|
303 + | "serviceName",
|
304 304 | 1,
|
305 305 | );
|
306 306 | static SERVICE_MEMBER_CLUSTER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
307 307 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$clusterArn", "com.amazonaws.ecs", "Service"),
|
308 308 | ::aws_smithy_schema::ShapeType::String,
|
309 - | "cluster_arn",
|
309 + | "clusterArn",
|
310 310 | 2,
|
311 311 | );
|
312 312 | static SERVICE_MEMBER_LOAD_BALANCERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
313 313 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$loadBalancers", "com.amazonaws.ecs", "Service"),
|
314 314 | ::aws_smithy_schema::ShapeType::List,
|
315 - | "load_balancers",
|
315 + | "loadBalancers",
|
316 316 | 3,
|
317 317 | );
|
318 318 | static SERVICE_MEMBER_SERVICE_REGISTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
319 319 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$serviceRegistries", "com.amazonaws.ecs", "Service"),
|
320 320 | ::aws_smithy_schema::ShapeType::List,
|
321 - | "service_registries",
|
321 + | "serviceRegistries",
|
322 322 | 4,
|
323 323 | );
|
324 324 | static SERVICE_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
325 325 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$status", "com.amazonaws.ecs", "Service"),
|
326 326 | ::aws_smithy_schema::ShapeType::String,
|
327 327 | "status",
|
328 328 | 5,
|
329 329 | );
|
330 330 | static SERVICE_MEMBER_DESIRED_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
331 331 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$desiredCount", "com.amazonaws.ecs", "Service"),
|
332 332 | ::aws_smithy_schema::ShapeType::Integer,
|
333 - | "desired_count",
|
333 + | "desiredCount",
|
334 334 | 6,
|
335 335 | );
|
336 336 | static SERVICE_MEMBER_RUNNING_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
337 337 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$runningCount", "com.amazonaws.ecs", "Service"),
|
338 338 | ::aws_smithy_schema::ShapeType::Integer,
|
339 - | "running_count",
|
339 + | "runningCount",
|
340 340 | 7,
|
341 341 | );
|
342 342 | static SERVICE_MEMBER_PENDING_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
343 343 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$pendingCount", "com.amazonaws.ecs", "Service"),
|
344 344 | ::aws_smithy_schema::ShapeType::Integer,
|
345 - | "pending_count",
|
345 + | "pendingCount",
|
346 346 | 8,
|
347 347 | );
|
348 348 | static SERVICE_MEMBER_LAUNCH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
349 349 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$launchType", "com.amazonaws.ecs", "Service"),
|
350 350 | ::aws_smithy_schema::ShapeType::String,
|
351 - | "launch_type",
|
351 + | "launchType",
|
352 352 | 9,
|
353 353 | );
|
354 354 | static SERVICE_MEMBER_CAPACITY_PROVIDER_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
355 355 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$capacityProviderStrategy", "com.amazonaws.ecs", "Service"),
|
356 356 | ::aws_smithy_schema::ShapeType::List,
|
357 - | "capacity_provider_strategy",
|
357 + | "capacityProviderStrategy",
|
358 358 | 10,
|
359 359 | );
|
360 360 | static SERVICE_MEMBER_PLATFORM_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
361 361 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$platformVersion", "com.amazonaws.ecs", "Service"),
|
362 362 | ::aws_smithy_schema::ShapeType::String,
|
363 - | "platform_version",
|
363 + | "platformVersion",
|
364 364 | 11,
|
365 365 | );
|
366 366 | static SERVICE_MEMBER_PLATFORM_FAMILY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
367 367 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$platformFamily", "com.amazonaws.ecs", "Service"),
|
368 368 | ::aws_smithy_schema::ShapeType::String,
|
369 - | "platform_family",
|
369 + | "platformFamily",
|
370 370 | 12,
|
371 371 | );
|
372 372 | static SERVICE_MEMBER_TASK_DEFINITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
373 373 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$taskDefinition", "com.amazonaws.ecs", "Service"),
|
374 374 | ::aws_smithy_schema::ShapeType::String,
|
375 - | "task_definition",
|
375 + | "taskDefinition",
|
376 376 | 13,
|
377 377 | );
|
378 378 | static SERVICE_MEMBER_DEPLOYMENT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
379 379 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$deploymentConfiguration", "com.amazonaws.ecs", "Service"),
|
380 380 | ::aws_smithy_schema::ShapeType::Structure,
|
381 - | "deployment_configuration",
|
381 + | "deploymentConfiguration",
|
382 382 | 14,
|
383 383 | );
|
384 384 | static SERVICE_MEMBER_TASK_SETS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
385 385 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$taskSets", "com.amazonaws.ecs", "Service"),
|
386 386 | ::aws_smithy_schema::ShapeType::List,
|
387 - | "task_sets",
|
387 + | "taskSets",
|
388 388 | 15,
|
389 389 | );
|
390 390 | static SERVICE_MEMBER_DEPLOYMENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
391 391 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$deployments", "com.amazonaws.ecs", "Service"),
|
392 392 | ::aws_smithy_schema::ShapeType::List,
|
393 393 | "deployments",
|
394 394 | 16,
|
395 395 | );
|
396 396 | static SERVICE_MEMBER_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
397 397 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$roleArn", "com.amazonaws.ecs", "Service"),
|
398 398 | ::aws_smithy_schema::ShapeType::String,
|
399 - | "role_arn",
|
399 + | "roleArn",
|
400 400 | 17,
|
401 401 | );
|
402 402 | static SERVICE_MEMBER_EVENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
403 403 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$events", "com.amazonaws.ecs", "Service"),
|
404 404 | ::aws_smithy_schema::ShapeType::List,
|
405 405 | "events",
|
406 406 | 18,
|
407 407 | );
|
408 408 | static SERVICE_MEMBER_CREATED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
409 409 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$createdAt", "com.amazonaws.ecs", "Service"),
|
410 410 | ::aws_smithy_schema::ShapeType::Timestamp,
|
411 - | "created_at",
|
411 + | "createdAt",
|
412 412 | 19,
|
413 413 | );
|
414 414 | static SERVICE_MEMBER_PLACEMENT_CONSTRAINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
415 415 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$placementConstraints", "com.amazonaws.ecs", "Service"),
|
416 416 | ::aws_smithy_schema::ShapeType::List,
|
417 - | "placement_constraints",
|
417 + | "placementConstraints",
|
418 418 | 20,
|
419 419 | );
|
420 420 | static SERVICE_MEMBER_PLACEMENT_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
421 421 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$placementStrategy", "com.amazonaws.ecs", "Service"),
|
422 422 | ::aws_smithy_schema::ShapeType::List,
|
423 - | "placement_strategy",
|
423 + | "placementStrategy",
|
424 424 | 21,
|
425 425 | );
|
426 426 | static SERVICE_MEMBER_NETWORK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
427 427 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$networkConfiguration", "com.amazonaws.ecs", "Service"),
|
428 428 | ::aws_smithy_schema::ShapeType::Structure,
|
429 - | "network_configuration",
|
429 + | "networkConfiguration",
|
430 430 | 22,
|
431 431 | );
|
432 432 | static SERVICE_MEMBER_HEALTH_CHECK_GRACE_PERIOD_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
433 433 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$healthCheckGracePeriodSeconds", "com.amazonaws.ecs", "Service"),
|
434 434 | ::aws_smithy_schema::ShapeType::Integer,
|
435 - | "health_check_grace_period_seconds",
|
435 + | "healthCheckGracePeriodSeconds",
|
436 436 | 23,
|
437 437 | );
|
438 438 | static SERVICE_MEMBER_SCHEDULING_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
439 439 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$schedulingStrategy", "com.amazonaws.ecs", "Service"),
|
440 440 | ::aws_smithy_schema::ShapeType::String,
|
441 - | "scheduling_strategy",
|
441 + | "schedulingStrategy",
|
442 442 | 24,
|
443 443 | );
|
444 444 | static SERVICE_MEMBER_DEPLOYMENT_CONTROLLER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
445 445 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$deploymentController", "com.amazonaws.ecs", "Service"),
|
446 446 | ::aws_smithy_schema::ShapeType::Structure,
|
447 - | "deployment_controller",
|
447 + | "deploymentController",
|
448 448 | 25,
|
449 449 | );
|
450 450 | static SERVICE_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
451 451 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$tags", "com.amazonaws.ecs", "Service"),
|
452 452 | ::aws_smithy_schema::ShapeType::List,
|
453 453 | "tags",
|
454 454 | 26,
|
455 455 | );
|
456 456 | static SERVICE_MEMBER_CREATED_BY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
457 457 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$createdBy", "com.amazonaws.ecs", "Service"),
|
458 458 | ::aws_smithy_schema::ShapeType::String,
|
459 - | "created_by",
|
459 + | "createdBy",
|
460 460 | 27,
|
461 461 | );
|
462 462 | static SERVICE_MEMBER_ENABLE_ECS_MANAGED_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
463 463 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$enableECSManagedTags", "com.amazonaws.ecs", "Service"),
|
464 464 | ::aws_smithy_schema::ShapeType::Boolean,
|
465 - | "enable_ecs_managed_tags",
|
465 + | "enableECSManagedTags",
|
466 466 | 28,
|
467 467 | );
|
468 468 | static SERVICE_MEMBER_PROPAGATE_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
469 469 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$propagateTags", "com.amazonaws.ecs", "Service"),
|
470 470 | ::aws_smithy_schema::ShapeType::String,
|
471 - | "propagate_tags",
|
471 + | "propagateTags",
|
472 472 | 29,
|
473 473 | );
|
474 474 | static SERVICE_MEMBER_ENABLE_EXECUTE_COMMAND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
475 475 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$enableExecuteCommand", "com.amazonaws.ecs", "Service"),
|
476 476 | ::aws_smithy_schema::ShapeType::Boolean,
|
477 - | "enable_execute_command",
|
477 + | "enableExecuteCommand",
|
478 478 | 30,
|
479 479 | );
|
480 480 | static SERVICE_MEMBER_AVAILABILITY_ZONE_REBALANCING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
481 481 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ecs#Service$availabilityZoneRebalancing", "com.amazonaws.ecs", "Service"),
|
482 482 | ::aws_smithy_schema::ShapeType::String,
|
483 - | "availability_zone_rebalancing",
|
483 + | "availabilityZoneRebalancing",
|
484 484 | 31,
|
485 485 | );
|
486 486 | static SERVICE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
487 487 | SERVICE_SCHEMA_ID,
|
488 488 | ::aws_smithy_schema::ShapeType::Structure,
|
489 489 | &[
|
490 490 | &SERVICE_MEMBER_SERVICE_ARN,
|
491 491 | &SERVICE_MEMBER_SERVICE_NAME,
|
492 492 | &SERVICE_MEMBER_CLUSTER_ARN,
|
493 493 | &SERVICE_MEMBER_LOAD_BALANCERS,
|
693 693 | ser.write_boolean(&SERVICE_MEMBER_ENABLE_EXECUTE_COMMAND, *val)?;
|
694 694 | }
|
695 695 | if let Some(ref val) = self.availability_zone_rebalancing {
|
696 696 | ser.write_string(&SERVICE_MEMBER_AVAILABILITY_ZONE_REBALANCING, val.as_str())?;
|
697 697 | }
|
698 698 | Ok(())
|
699 699 | }
|
700 700 | }
|
701 701 | impl Service {
|
702 702 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
703 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
704 - | deserializer: &mut D,
|
703 + | pub fn deserialize(
|
704 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
705 705 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
706 706 | #[allow(unused_variables, unused_mut)]
|
707 707 | let mut builder = Self::builder();
|
708 708 | #[allow(
|
709 709 | unused_variables,
|
710 710 | unreachable_code,
|
711 711 | clippy::single_match,
|
712 712 | clippy::match_single_binding,
|
713 713 | clippy::diverging_sub_expression
|
714 714 | )]
|
715 - | deserializer.read_struct(&SERVICE_SCHEMA, (), |_, member, deser| {
|
715 + | deserializer.read_struct(&SERVICE_SCHEMA, &mut |member, deser| {
|
716 716 | match member.member_index() {
|
717 717 | Some(0) => {
|
718 718 | builder.service_arn = Some(deser.read_string(member)?);
|
719 719 | }
|
720 720 | Some(1) => {
|
721 721 | builder.service_name = Some(deser.read_string(member)?);
|
722 722 | }
|
723 723 | Some(2) => {
|
724 724 | builder.cluster_arn = Some(deser.read_string(member)?);
|
725 725 | }
|
726 726 | Some(3) => {
|
727 727 | builder.load_balancers = Some({
|
728 - | let container = if let Some(cap) = deser.container_size() {
|
729 - | Vec::with_capacity(cap)
|
730 - | } else {
|
731 - | Vec::new()
|
732 - | };
|
733 - | deser.read_list(member, container, |mut list, deser| {
|
734 - | list.push(crate::types::LoadBalancer::deserialize(deser)?);
|
735 - | Ok(list)
|
736 - | })?
|
728 + | let mut container = Vec::new();
|
729 + | deser.read_list(member, &mut |deser| {
|
730 + | container.push(crate::types::LoadBalancer::deserialize(deser)?);
|
731 + | Ok(())
|
732 + | })?;
|
733 + | container
|
737 734 | });
|
738 735 | }
|
739 736 | Some(4) => {
|
740 737 | builder.service_registries = Some({
|
741 - | let container = if let Some(cap) = deser.container_size() {
|
742 - | Vec::with_capacity(cap)
|
743 - | } else {
|
744 - | Vec::new()
|
745 - | };
|
746 - | deser.read_list(member, container, |mut list, deser| {
|
747 - | list.push(crate::types::ServiceRegistry::deserialize(deser)?);
|
748 - | Ok(list)
|
749 - | })?
|
738 + | let mut container = Vec::new();
|
739 + | deser.read_list(member, &mut |deser| {
|
740 + | container.push(crate::types::ServiceRegistry::deserialize(deser)?);
|
741 + | Ok(())
|
742 + | })?;
|
743 + | container
|
750 744 | });
|
751 745 | }
|
752 746 | Some(5) => {
|
753 747 | builder.status = Some(deser.read_string(member)?);
|
754 748 | }
|
755 749 | Some(6) => {
|
756 750 | builder.desired_count = Some(deser.read_integer(member)?);
|
757 751 | }
|
758 752 | Some(7) => {
|
759 753 | builder.running_count = Some(deser.read_integer(member)?);
|
760 754 | }
|
761 755 | Some(8) => {
|
762 756 | builder.pending_count = Some(deser.read_integer(member)?);
|
763 757 | }
|
764 758 | Some(9) => {
|
765 759 | builder.launch_type = Some(crate::types::LaunchType::from(deser.read_string(member)?.as_str()));
|
766 760 | }
|
767 761 | Some(10) => {
|
768 762 | builder.capacity_provider_strategy = Some({
|
769 - | let container = if let Some(cap) = deser.container_size() {
|
770 - | Vec::with_capacity(cap)
|
771 - | } else {
|
772 - | Vec::new()
|
773 - | };
|
774 - | deser.read_list(member, container, |mut list, deser| {
|
775 - | list.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
|
776 - | Ok(list)
|
777 - | })?
|
763 + | let mut container = Vec::new();
|
764 + | deser.read_list(member, &mut |deser| {
|
765 + | container.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
|
766 + | Ok(())
|
767 + | })?;
|
768 + | container
|
778 769 | });
|
779 770 | }
|
780 771 | Some(11) => {
|
781 772 | builder.platform_version = Some(deser.read_string(member)?);
|
782 773 | }
|
783 774 | Some(12) => {
|
784 775 | builder.platform_family = Some(deser.read_string(member)?);
|
785 776 | }
|
786 777 | Some(13) => {
|
787 778 | builder.task_definition = Some(deser.read_string(member)?);
|
788 779 | }
|
789 780 | Some(14) => {
|
790 781 | builder.deployment_configuration = Some(crate::types::DeploymentConfiguration::deserialize(deser)?);
|
791 782 | }
|
792 783 | Some(15) => {
|
793 784 | builder.task_sets = Some({
|
794 - | let container = if let Some(cap) = deser.container_size() {
|
795 - | Vec::with_capacity(cap)
|
796 - | } else {
|
797 - | Vec::new()
|
798 - | };
|
799 - | deser.read_list(member, container, |mut list, deser| {
|
800 - | list.push(crate::types::TaskSet::deserialize(deser)?);
|
801 - | Ok(list)
|
802 - | })?
|
785 + | let mut container = Vec::new();
|
786 + | deser.read_list(member, &mut |deser| {
|
787 + | container.push(crate::types::TaskSet::deserialize(deser)?);
|
788 + | Ok(())
|
789 + | })?;
|
790 + | container
|
803 791 | });
|
804 792 | }
|
805 793 | Some(16) => {
|
806 794 | builder.deployments = Some({
|
807 - | let container = if let Some(cap) = deser.container_size() {
|
808 - | Vec::with_capacity(cap)
|
809 - | } else {
|
810 - | Vec::new()
|
811 - | };
|
812 - | deser.read_list(member, container, |mut list, deser| {
|
813 - | list.push(crate::types::Deployment::deserialize(deser)?);
|
814 - | Ok(list)
|
815 - | })?
|
795 + | let mut container = Vec::new();
|
796 + | deser.read_list(member, &mut |deser| {
|
797 + | container.push(crate::types::Deployment::deserialize(deser)?);
|
798 + | Ok(())
|
799 + | })?;
|
800 + | container
|
816 801 | });
|
817 802 | }
|
818 803 | Some(17) => {
|
819 804 | builder.role_arn = Some(deser.read_string(member)?);
|
820 805 | }
|
821 806 | Some(18) => {
|
822 807 | builder.events = Some({
|
823 - | let container = if let Some(cap) = deser.container_size() {
|
824 - | Vec::with_capacity(cap)
|
825 - | } else {
|
826 - | Vec::new()
|
827 - | };
|
828 - | deser.read_list(member, container, |mut list, deser| {
|
829 - | list.push(crate::types::ServiceEvent::deserialize(deser)?);
|
830 - | Ok(list)
|
831 - | })?
|
808 + | let mut container = Vec::new();
|
809 + | deser.read_list(member, &mut |deser| {
|
810 + | container.push(crate::types::ServiceEvent::deserialize(deser)?);
|
811 + | Ok(())
|
812 + | })?;
|
813 + | container
|
832 814 | });
|
833 815 | }
|
834 816 | Some(19) => {
|
835 817 | builder.created_at = Some(deser.read_timestamp(member)?);
|
836 818 | }
|
837 819 | Some(20) => {
|
838 820 | builder.placement_constraints = Some({
|
839 - | let container = if let Some(cap) = deser.container_size() {
|
840 - | Vec::with_capacity(cap)
|
841 - | } else {
|
842 - | Vec::new()
|
843 - | };
|
844 - | deser.read_list(member, container, |mut list, deser| {
|
845 - | list.push(crate::types::PlacementConstraint::deserialize(deser)?);
|
846 - | Ok(list)
|
847 - | })?
|
821 + | let mut container = Vec::new();
|
822 + | deser.read_list(member, &mut |deser| {
|
823 + | container.push(crate::types::PlacementConstraint::deserialize(deser)?);
|
824 + | Ok(())
|
825 + | })?;
|
826 + | container
|
848 827 | });
|
849 828 | }
|
850 829 | Some(21) => {
|
851 830 | builder.placement_strategy = Some({
|
852 - | let container = if let Some(cap) = deser.container_size() {
|
853 - | Vec::with_capacity(cap)
|
854 - | } else {
|
855 - | Vec::new()
|
856 - | };
|
857 - | deser.read_list(member, container, |mut list, deser| {
|
858 - | list.push(crate::types::PlacementStrategy::deserialize(deser)?);
|
859 - | Ok(list)
|
860 - | })?
|
831 + | let mut container = Vec::new();
|
832 + | deser.read_list(member, &mut |deser| {
|
833 + | container.push(crate::types::PlacementStrategy::deserialize(deser)?);
|
834 + | Ok(())
|
835 + | })?;
|
836 + | container
|
861 837 | });
|
862 838 | }
|
863 839 | Some(22) => {
|
864 840 | builder.network_configuration = Some(crate::types::NetworkConfiguration::deserialize(deser)?);
|
865 841 | }
|
866 842 | Some(23) => {
|
867 843 | builder.health_check_grace_period_seconds = Some(deser.read_integer(member)?);
|
868 844 | }
|
869 845 | Some(24) => {
|
870 846 | builder.scheduling_strategy = Some(crate::types::SchedulingStrategy::from(deser.read_string(member)?.as_str()));
|
871 847 | }
|
872 848 | Some(25) => {
|
873 849 | builder.deployment_controller = Some(crate::types::DeploymentController::deserialize(deser)?);
|
874 850 | }
|
875 851 | Some(26) => {
|
876 852 | builder.tags = Some({
|
877 - | let container = if let Some(cap) = deser.container_size() {
|
878 - | Vec::with_capacity(cap)
|
879 - | } else {
|
880 - | Vec::new()
|
881 - | };
|
882 - | deser.read_list(member, container, |mut list, deser| {
|
883 - | list.push(crate::types::Tag::deserialize(deser)?);
|
884 - | Ok(list)
|
885 - | })?
|
853 + | let mut container = Vec::new();
|
854 + | deser.read_list(member, &mut |deser| {
|
855 + | container.push(crate::types::Tag::deserialize(deser)?);
|
856 + | Ok(())
|
857 + | })?;
|
858 + | container
|
886 859 | });
|
887 860 | }
|
888 861 | Some(27) => {
|
889 862 | builder.created_by = Some(deser.read_string(member)?);
|
890 863 | }
|
891 864 | Some(28) => {
|
892 865 | builder.enable_ecs_managed_tags = Some(deser.read_boolean(member)?);
|
893 866 | }
|
894 867 | Some(29) => {
|
895 868 | builder.propagate_tags = Some(crate::types::PropagateTags::from(deser.read_string(member)?.as_str()));
|
896 869 | }
|
897 870 | Some(30) => {
|
898 871 | builder.enable_execute_command = Some(deser.read_boolean(member)?);
|
899 872 | }
|
900 873 | Some(31) => {
|
901 874 | builder.availability_zone_rebalancing =
|
902 875 | Some(crate::types::AvailabilityZoneRebalancing::from(deser.read_string(member)?.as_str()));
|
903 876 | }
|
904 877 | _ => {}
|
905 878 | }
|
906 879 | Ok(())
|
907 880 | })?;
|
908 881 | Ok(builder.build())
|
909 882 | }
|
910 883 | }
|
884 + | impl Service {
|
885 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
886 + | pub fn deserialize_with_response(
|
887 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
888 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
889 + | _status: u16,
|
890 + | _body: &[u8],
|
891 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
892 + | Self::deserialize(deserializer)
|
893 + | }
|
894 + | }
|
911 895 | impl Service {
|
912 896 | /// Creates a new builder-style object to manufacture [`Service`](crate::types::Service).
|
913 897 | pub fn builder() -> crate::types::builders::ServiceBuilder {
|
914 898 | crate::types::builders::ServiceBuilder::default()
|
915 899 | }
|
916 900 | }
|
917 901 |
|
918 902 | /// A builder for [`Service`](crate::types::Service).
|
919 903 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
920 904 | #[non_exhaustive]
|