aws_sdk_ecs/operation/update_service/
_update_service_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateServiceInput {
6    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed.</p>
7    /// <p>You can't change the cluster name.</p>
8    pub cluster: ::std::option::Option<::std::string::String>,
9    /// <p>The name of the service to update.</p>
10    pub service: ::std::option::Option<::std::string::String>,
11    /// <p>The number of instantiations of the task to place and keep running in your service.</p>
12    /// <p>This parameter doesn't trigger a new service deployment.</p>
13    pub desired_count: ::std::option::Option<i32>,
14    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> is not specified, the latest <code>ACTIVE</code> revision is used. If you modify the task definition with <code>UpdateService</code>, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.</p>
15    /// <p>This parameter triggers a new service deployment.</p>
16    pub task_definition: ::std::option::Option<::std::string::String>,
17    /// <p>The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service.</p>
18    /// <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or <code>FARGATE_SPOT</code>.</p>
19    /// <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
20    /// <p>You can change capacity providers for rolling deployments and blue/green deployments.</p>
21    /// <p>The following list provides the valid transitions:</p>
22    /// <ul>
23    /// <li>
24    /// <p>Update the Fargate launch type to an Auto Scaling group capacity provider.</p></li>
25    /// <li>
26    /// <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p></li>
27    /// <li>
28    /// <p>Update the Fargate capacity provider to an Auto Scaling group capacity provider.</p></li>
29    /// <li>
30    /// <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider.</p></li>
31    /// <li>
32    /// <p>Update the Auto Scaling group or Fargate capacity provider back to the launch type.</p>
33    /// <p>Pass an empty list in the <code>capacityProviderStrategy</code> parameter.</p></li>
34    /// </ul>
35    /// <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
36    /// <p>This parameter doesn't trigger a new service deployment.</p>
37    pub capacity_provider_strategy: ::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>>,
38    /// <p>Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.</p>
39    /// <p>This parameter doesn't trigger a new service deployment.</p>
40    pub deployment_configuration: ::std::option::Option<crate::types::DeploymentConfiguration>,
41    /// <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
42    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>.</p>
43    /// <p>This parameter doesn't trigger a new service deployment.</p>
44    pub availability_zone_rebalancing: ::std::option::Option<crate::types::AvailabilityZoneRebalancing>,
45    /// <p>An object representing the network configuration for the service.</p>
46    /// <p>This parameter triggers a new service deployment.</p>
47    pub network_configuration: ::std::option::Option<crate::types::NetworkConfiguration>,
48    /// <p>An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for the service will remain unchanged. If this value is specified, it will override any existing placement constraints defined for the service. To remove all existing placement constraints, specify an empty array.</p>
49    /// <p>You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.</p>
50    /// <p>This parameter doesn't trigger a new service deployment.</p>
51    pub placement_constraints: ::std::option::Option<::std::vec::Vec<crate::types::PlacementConstraint>>,
52    /// <p>The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will remain unchanged. If this value is specified, it will override the existing placement strategy defined for the service. To remove an existing placement strategy, specify an empty object.</p>
53    /// <p>You can specify a maximum of five strategy rules for each service.</p>
54    /// <p>This parameter doesn't trigger a new service deployment.</p>
55    pub placement_strategy: ::std::option::Option<::std::vec::Vec<crate::types::PlacementStrategy>>,
56    /// <p>The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a platform version is not specified, the <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
57    /// <p>This parameter triggers a new service deployment.</p>
58    pub platform_version: ::std::option::Option<::std::string::String>,
59    /// <p>Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (<code>my_image:latest</code>) or to roll Fargate tasks onto a newer platform version.</p>
60    pub force_new_deployment: ::std::option::Option<bool>,
61    /// <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of <code>0</code> is used. If you don't use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
62    /// <p>If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.</p>
63    /// <p>This parameter doesn't trigger a new service deployment.</p>
64    pub health_check_grace_period_seconds: ::std::option::Option<i32>,
65    /// <p>The deployment controller to use for the service.</p>
66    pub deployment_controller: ::std::option::Option<crate::types::DeploymentController>,
67    /// <p>If <code>true</code>, this enables execute command functionality on all task containers.</p>
68    /// <p>If you do not want to override the value that was set when the service was created, you can set this to <code>null</code> when performing this action.</p>
69    /// <p>This parameter doesn't trigger a new service deployment.</p>
70    pub enable_execute_command: ::std::option::Option<bool>,
71    /// <p>Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
72    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
73    /// <p>This parameter doesn't trigger a new service deployment.</p>
74    pub enable_ecs_managed_tags: ::std::option::Option<bool>,
75    /// <note>
76    /// <p>You must have a service-linked role when you update this property</p>
77    /// </note>
78    /// <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.</p>
79    /// <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.</p>
80    /// <p>For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can update from a single target group to multiple target groups and from multiple target groups to a single target group.</p>
81    /// <p>For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using <code> <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> </code> through CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
82    /// <p>For services that use the external deployment controller, you can add, update, or remove load balancers by using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>. Note that multiple target groups are not supported for external deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
83    /// <p>You can remove existing <code>loadBalancers</code> by passing an empty list.</p>
84    /// <p>This parameter triggers a new service deployment.</p>
85    pub load_balancers: ::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>>,
86    /// <p>Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
87    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
88    /// <p>This parameter doesn't trigger a new service deployment.</p>
89    pub propagate_tags: ::std::option::Option<crate::types::PropagateTags>,
90    /// <note>
91    /// <p>You must have a service-linked role when you update this property.</p>
92    /// <p>For more information about the role see the <code>CreateService</code> request parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role"> <code>role</code> </a>.</p>
93    /// </note>
94    /// <p>The details for the service discovery registries to assign to this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.</p>
95    /// <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the updated service registries configuration, and then stops the old tasks when the new tasks are running.</p>
96    /// <p>You can remove existing <code>serviceRegistries</code> by passing an empty list.</p>
97    /// <p>This parameter triggers a new service deployment.</p>
98    pub service_registries: ::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>>,
99    /// <p>The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.</p>
100    /// <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
101    /// <p>This parameter triggers a new service deployment.</p>
102    pub service_connect_configuration: ::std::option::Option<crate::types::ServiceConnectConfiguration>,
103    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html">ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment.</p>
104    /// <p>This parameter triggers a new service deployment.</p>
105    pub volume_configurations: ::std::option::Option<::std::vec::Vec<crate::types::ServiceVolumeConfiguration>>,
106    /// <p>An object representing the VPC Lattice configuration for the service being updated.</p>
107    /// <p>This parameter triggers a new service deployment.</p>
108    pub vpc_lattice_configurations: ::std::option::Option<::std::vec::Vec<crate::types::VpcLatticeConfiguration>>,
109}
110impl UpdateServiceInput {
111    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed.</p>
112    /// <p>You can't change the cluster name.</p>
113    pub fn cluster(&self) -> ::std::option::Option<&str> {
114        self.cluster.as_deref()
115    }
116    /// <p>The name of the service to update.</p>
117    pub fn service(&self) -> ::std::option::Option<&str> {
118        self.service.as_deref()
119    }
120    /// <p>The number of instantiations of the task to place and keep running in your service.</p>
121    /// <p>This parameter doesn't trigger a new service deployment.</p>
122    pub fn desired_count(&self) -> ::std::option::Option<i32> {
123        self.desired_count
124    }
125    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> is not specified, the latest <code>ACTIVE</code> revision is used. If you modify the task definition with <code>UpdateService</code>, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.</p>
126    /// <p>This parameter triggers a new service deployment.</p>
127    pub fn task_definition(&self) -> ::std::option::Option<&str> {
128        self.task_definition.as_deref()
129    }
130    /// <p>The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service.</p>
131    /// <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or <code>FARGATE_SPOT</code>.</p>
132    /// <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
133    /// <p>You can change capacity providers for rolling deployments and blue/green deployments.</p>
134    /// <p>The following list provides the valid transitions:</p>
135    /// <ul>
136    /// <li>
137    /// <p>Update the Fargate launch type to an Auto Scaling group capacity provider.</p></li>
138    /// <li>
139    /// <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p></li>
140    /// <li>
141    /// <p>Update the Fargate capacity provider to an Auto Scaling group capacity provider.</p></li>
142    /// <li>
143    /// <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider.</p></li>
144    /// <li>
145    /// <p>Update the Auto Scaling group or Fargate capacity provider back to the launch type.</p>
146    /// <p>Pass an empty list in the <code>capacityProviderStrategy</code> parameter.</p></li>
147    /// </ul>
148    /// <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
149    /// <p>This parameter doesn't trigger a new service deployment.</p>
150    ///
151    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.capacity_provider_strategy.is_none()`.
152    pub fn capacity_provider_strategy(&self) -> &[crate::types::CapacityProviderStrategyItem] {
153        self.capacity_provider_strategy.as_deref().unwrap_or_default()
154    }
155    /// <p>Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.</p>
156    /// <p>This parameter doesn't trigger a new service deployment.</p>
157    pub fn deployment_configuration(&self) -> ::std::option::Option<&crate::types::DeploymentConfiguration> {
158        self.deployment_configuration.as_ref()
159    }
160    /// <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
161    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>.</p>
162    /// <p>This parameter doesn't trigger a new service deployment.</p>
163    pub fn availability_zone_rebalancing(&self) -> ::std::option::Option<&crate::types::AvailabilityZoneRebalancing> {
164        self.availability_zone_rebalancing.as_ref()
165    }
166    /// <p>An object representing the network configuration for the service.</p>
167    /// <p>This parameter triggers a new service deployment.</p>
168    pub fn network_configuration(&self) -> ::std::option::Option<&crate::types::NetworkConfiguration> {
169        self.network_configuration.as_ref()
170    }
171    /// <p>An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for the service will remain unchanged. If this value is specified, it will override any existing placement constraints defined for the service. To remove all existing placement constraints, specify an empty array.</p>
172    /// <p>You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.</p>
173    /// <p>This parameter doesn't trigger a new service deployment.</p>
174    ///
175    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.placement_constraints.is_none()`.
176    pub fn placement_constraints(&self) -> &[crate::types::PlacementConstraint] {
177        self.placement_constraints.as_deref().unwrap_or_default()
178    }
179    /// <p>The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will remain unchanged. If this value is specified, it will override the existing placement strategy defined for the service. To remove an existing placement strategy, specify an empty object.</p>
180    /// <p>You can specify a maximum of five strategy rules for each service.</p>
181    /// <p>This parameter doesn't trigger a new service deployment.</p>
182    ///
183    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.placement_strategy.is_none()`.
184    pub fn placement_strategy(&self) -> &[crate::types::PlacementStrategy] {
185        self.placement_strategy.as_deref().unwrap_or_default()
186    }
187    /// <p>The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a platform version is not specified, the <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
188    /// <p>This parameter triggers a new service deployment.</p>
189    pub fn platform_version(&self) -> ::std::option::Option<&str> {
190        self.platform_version.as_deref()
191    }
192    /// <p>Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (<code>my_image:latest</code>) or to roll Fargate tasks onto a newer platform version.</p>
193    pub fn force_new_deployment(&self) -> ::std::option::Option<bool> {
194        self.force_new_deployment
195    }
196    /// <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of <code>0</code> is used. If you don't use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
197    /// <p>If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.</p>
198    /// <p>This parameter doesn't trigger a new service deployment.</p>
199    pub fn health_check_grace_period_seconds(&self) -> ::std::option::Option<i32> {
200        self.health_check_grace_period_seconds
201    }
202    /// <p>The deployment controller to use for the service.</p>
203    pub fn deployment_controller(&self) -> ::std::option::Option<&crate::types::DeploymentController> {
204        self.deployment_controller.as_ref()
205    }
206    /// <p>If <code>true</code>, this enables execute command functionality on all task containers.</p>
207    /// <p>If you do not want to override the value that was set when the service was created, you can set this to <code>null</code> when performing this action.</p>
208    /// <p>This parameter doesn't trigger a new service deployment.</p>
209    pub fn enable_execute_command(&self) -> ::std::option::Option<bool> {
210        self.enable_execute_command
211    }
212    /// <p>Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
213    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
214    /// <p>This parameter doesn't trigger a new service deployment.</p>
215    pub fn enable_ecs_managed_tags(&self) -> ::std::option::Option<bool> {
216        self.enable_ecs_managed_tags
217    }
218    /// <note>
219    /// <p>You must have a service-linked role when you update this property</p>
220    /// </note>
221    /// <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.</p>
222    /// <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.</p>
223    /// <p>For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can update from a single target group to multiple target groups and from multiple target groups to a single target group.</p>
224    /// <p>For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using <code> <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> </code> through CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
225    /// <p>For services that use the external deployment controller, you can add, update, or remove load balancers by using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>. Note that multiple target groups are not supported for external deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
226    /// <p>You can remove existing <code>loadBalancers</code> by passing an empty list.</p>
227    /// <p>This parameter triggers a new service deployment.</p>
228    ///
229    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.load_balancers.is_none()`.
230    pub fn load_balancers(&self) -> &[crate::types::LoadBalancer] {
231        self.load_balancers.as_deref().unwrap_or_default()
232    }
233    /// <p>Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
234    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
235    /// <p>This parameter doesn't trigger a new service deployment.</p>
236    pub fn propagate_tags(&self) -> ::std::option::Option<&crate::types::PropagateTags> {
237        self.propagate_tags.as_ref()
238    }
239    /// <note>
240    /// <p>You must have a service-linked role when you update this property.</p>
241    /// <p>For more information about the role see the <code>CreateService</code> request parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role"> <code>role</code> </a>.</p>
242    /// </note>
243    /// <p>The details for the service discovery registries to assign to this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.</p>
244    /// <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the updated service registries configuration, and then stops the old tasks when the new tasks are running.</p>
245    /// <p>You can remove existing <code>serviceRegistries</code> by passing an empty list.</p>
246    /// <p>This parameter triggers a new service deployment.</p>
247    ///
248    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.service_registries.is_none()`.
249    pub fn service_registries(&self) -> &[crate::types::ServiceRegistry] {
250        self.service_registries.as_deref().unwrap_or_default()
251    }
252    /// <p>The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.</p>
253    /// <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
254    /// <p>This parameter triggers a new service deployment.</p>
255    pub fn service_connect_configuration(&self) -> ::std::option::Option<&crate::types::ServiceConnectConfiguration> {
256        self.service_connect_configuration.as_ref()
257    }
258    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html">ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment.</p>
259    /// <p>This parameter triggers a new service deployment.</p>
260    ///
261    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.volume_configurations.is_none()`.
262    pub fn volume_configurations(&self) -> &[crate::types::ServiceVolumeConfiguration] {
263        self.volume_configurations.as_deref().unwrap_or_default()
264    }
265    /// <p>An object representing the VPC Lattice configuration for the service being updated.</p>
266    /// <p>This parameter triggers a new service deployment.</p>
267    ///
268    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.vpc_lattice_configurations.is_none()`.
269    pub fn vpc_lattice_configurations(&self) -> &[crate::types::VpcLatticeConfiguration] {
270        self.vpc_lattice_configurations.as_deref().unwrap_or_default()
271    }
272}
273impl UpdateServiceInput {
274    /// Creates a new builder-style object to manufacture [`UpdateServiceInput`](crate::operation::update_service::UpdateServiceInput).
275    pub fn builder() -> crate::operation::update_service::builders::UpdateServiceInputBuilder {
276        crate::operation::update_service::builders::UpdateServiceInputBuilder::default()
277    }
278}
279
280/// A builder for [`UpdateServiceInput`](crate::operation::update_service::UpdateServiceInput).
281#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
282#[non_exhaustive]
283pub struct UpdateServiceInputBuilder {
284    pub(crate) cluster: ::std::option::Option<::std::string::String>,
285    pub(crate) service: ::std::option::Option<::std::string::String>,
286    pub(crate) desired_count: ::std::option::Option<i32>,
287    pub(crate) task_definition: ::std::option::Option<::std::string::String>,
288    pub(crate) capacity_provider_strategy: ::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>>,
289    pub(crate) deployment_configuration: ::std::option::Option<crate::types::DeploymentConfiguration>,
290    pub(crate) availability_zone_rebalancing: ::std::option::Option<crate::types::AvailabilityZoneRebalancing>,
291    pub(crate) network_configuration: ::std::option::Option<crate::types::NetworkConfiguration>,
292    pub(crate) placement_constraints: ::std::option::Option<::std::vec::Vec<crate::types::PlacementConstraint>>,
293    pub(crate) placement_strategy: ::std::option::Option<::std::vec::Vec<crate::types::PlacementStrategy>>,
294    pub(crate) platform_version: ::std::option::Option<::std::string::String>,
295    pub(crate) force_new_deployment: ::std::option::Option<bool>,
296    pub(crate) health_check_grace_period_seconds: ::std::option::Option<i32>,
297    pub(crate) deployment_controller: ::std::option::Option<crate::types::DeploymentController>,
298    pub(crate) enable_execute_command: ::std::option::Option<bool>,
299    pub(crate) enable_ecs_managed_tags: ::std::option::Option<bool>,
300    pub(crate) load_balancers: ::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>>,
301    pub(crate) propagate_tags: ::std::option::Option<crate::types::PropagateTags>,
302    pub(crate) service_registries: ::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>>,
303    pub(crate) service_connect_configuration: ::std::option::Option<crate::types::ServiceConnectConfiguration>,
304    pub(crate) volume_configurations: ::std::option::Option<::std::vec::Vec<crate::types::ServiceVolumeConfiguration>>,
305    pub(crate) vpc_lattice_configurations: ::std::option::Option<::std::vec::Vec<crate::types::VpcLatticeConfiguration>>,
306}
307impl UpdateServiceInputBuilder {
308    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed.</p>
309    /// <p>You can't change the cluster name.</p>
310    pub fn cluster(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
311        self.cluster = ::std::option::Option::Some(input.into());
312        self
313    }
314    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed.</p>
315    /// <p>You can't change the cluster name.</p>
316    pub fn set_cluster(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
317        self.cluster = input;
318        self
319    }
320    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default cluster is assumed.</p>
321    /// <p>You can't change the cluster name.</p>
322    pub fn get_cluster(&self) -> &::std::option::Option<::std::string::String> {
323        &self.cluster
324    }
325    /// <p>The name of the service to update.</p>
326    /// This field is required.
327    pub fn service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
328        self.service = ::std::option::Option::Some(input.into());
329        self
330    }
331    /// <p>The name of the service to update.</p>
332    pub fn set_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
333        self.service = input;
334        self
335    }
336    /// <p>The name of the service to update.</p>
337    pub fn get_service(&self) -> &::std::option::Option<::std::string::String> {
338        &self.service
339    }
340    /// <p>The number of instantiations of the task to place and keep running in your service.</p>
341    /// <p>This parameter doesn't trigger a new service deployment.</p>
342    pub fn desired_count(mut self, input: i32) -> Self {
343        self.desired_count = ::std::option::Option::Some(input);
344        self
345    }
346    /// <p>The number of instantiations of the task to place and keep running in your service.</p>
347    /// <p>This parameter doesn't trigger a new service deployment.</p>
348    pub fn set_desired_count(mut self, input: ::std::option::Option<i32>) -> Self {
349        self.desired_count = input;
350        self
351    }
352    /// <p>The number of instantiations of the task to place and keep running in your service.</p>
353    /// <p>This parameter doesn't trigger a new service deployment.</p>
354    pub fn get_desired_count(&self) -> &::std::option::Option<i32> {
355        &self.desired_count
356    }
357    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> is not specified, the latest <code>ACTIVE</code> revision is used. If you modify the task definition with <code>UpdateService</code>, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.</p>
358    /// <p>This parameter triggers a new service deployment.</p>
359    pub fn task_definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
360        self.task_definition = ::std::option::Option::Some(input.into());
361        self
362    }
363    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> is not specified, the latest <code>ACTIVE</code> revision is used. If you modify the task definition with <code>UpdateService</code>, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.</p>
364    /// <p>This parameter triggers a new service deployment.</p>
365    pub fn set_task_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
366        self.task_definition = input;
367        self
368    }
369    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> is not specified, the latest <code>ACTIVE</code> revision is used. If you modify the task definition with <code>UpdateService</code>, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.</p>
370    /// <p>This parameter triggers a new service deployment.</p>
371    pub fn get_task_definition(&self) -> &::std::option::Option<::std::string::String> {
372        &self.task_definition
373    }
374    /// Appends an item to `capacity_provider_strategy`.
375    ///
376    /// To override the contents of this collection use [`set_capacity_provider_strategy`](Self::set_capacity_provider_strategy).
377    ///
378    /// <p>The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service.</p>
379    /// <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or <code>FARGATE_SPOT</code>.</p>
380    /// <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
381    /// <p>You can change capacity providers for rolling deployments and blue/green deployments.</p>
382    /// <p>The following list provides the valid transitions:</p>
383    /// <ul>
384    /// <li>
385    /// <p>Update the Fargate launch type to an Auto Scaling group capacity provider.</p></li>
386    /// <li>
387    /// <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p></li>
388    /// <li>
389    /// <p>Update the Fargate capacity provider to an Auto Scaling group capacity provider.</p></li>
390    /// <li>
391    /// <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider.</p></li>
392    /// <li>
393    /// <p>Update the Auto Scaling group or Fargate capacity provider back to the launch type.</p>
394    /// <p>Pass an empty list in the <code>capacityProviderStrategy</code> parameter.</p></li>
395    /// </ul>
396    /// <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
397    /// <p>This parameter doesn't trigger a new service deployment.</p>
398    pub fn capacity_provider_strategy(mut self, input: crate::types::CapacityProviderStrategyItem) -> Self {
399        let mut v = self.capacity_provider_strategy.unwrap_or_default();
400        v.push(input);
401        self.capacity_provider_strategy = ::std::option::Option::Some(v);
402        self
403    }
404    /// <p>The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service.</p>
405    /// <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or <code>FARGATE_SPOT</code>.</p>
406    /// <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
407    /// <p>You can change capacity providers for rolling deployments and blue/green deployments.</p>
408    /// <p>The following list provides the valid transitions:</p>
409    /// <ul>
410    /// <li>
411    /// <p>Update the Fargate launch type to an Auto Scaling group capacity provider.</p></li>
412    /// <li>
413    /// <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p></li>
414    /// <li>
415    /// <p>Update the Fargate capacity provider to an Auto Scaling group capacity provider.</p></li>
416    /// <li>
417    /// <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider.</p></li>
418    /// <li>
419    /// <p>Update the Auto Scaling group or Fargate capacity provider back to the launch type.</p>
420    /// <p>Pass an empty list in the <code>capacityProviderStrategy</code> parameter.</p></li>
421    /// </ul>
422    /// <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
423    /// <p>This parameter doesn't trigger a new service deployment.</p>
424    pub fn set_capacity_provider_strategy(
425        mut self,
426        input: ::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>>,
427    ) -> Self {
428        self.capacity_provider_strategy = input;
429        self
430    }
431    /// <p>The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service.</p>
432    /// <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or <code>FARGATE_SPOT</code>.</p>
433    /// <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
434    /// <p>You can change capacity providers for rolling deployments and blue/green deployments.</p>
435    /// <p>The following list provides the valid transitions:</p>
436    /// <ul>
437    /// <li>
438    /// <p>Update the Fargate launch type to an Auto Scaling group capacity provider.</p></li>
439    /// <li>
440    /// <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p></li>
441    /// <li>
442    /// <p>Update the Fargate capacity provider to an Auto Scaling group capacity provider.</p></li>
443    /// <li>
444    /// <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider.</p></li>
445    /// <li>
446    /// <p>Update the Auto Scaling group or Fargate capacity provider back to the launch type.</p>
447    /// <p>Pass an empty list in the <code>capacityProviderStrategy</code> parameter.</p></li>
448    /// </ul>
449    /// <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
450    /// <p>This parameter doesn't trigger a new service deployment.</p>
451    pub fn get_capacity_provider_strategy(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>> {
452        &self.capacity_provider_strategy
453    }
454    /// <p>Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.</p>
455    /// <p>This parameter doesn't trigger a new service deployment.</p>
456    pub fn deployment_configuration(mut self, input: crate::types::DeploymentConfiguration) -> Self {
457        self.deployment_configuration = ::std::option::Option::Some(input);
458        self
459    }
460    /// <p>Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.</p>
461    /// <p>This parameter doesn't trigger a new service deployment.</p>
462    pub fn set_deployment_configuration(mut self, input: ::std::option::Option<crate::types::DeploymentConfiguration>) -> Self {
463        self.deployment_configuration = input;
464        self
465    }
466    /// <p>Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.</p>
467    /// <p>This parameter doesn't trigger a new service deployment.</p>
468    pub fn get_deployment_configuration(&self) -> &::std::option::Option<crate::types::DeploymentConfiguration> {
469        &self.deployment_configuration
470    }
471    /// <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
472    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>.</p>
473    /// <p>This parameter doesn't trigger a new service deployment.</p>
474    pub fn availability_zone_rebalancing(mut self, input: crate::types::AvailabilityZoneRebalancing) -> Self {
475        self.availability_zone_rebalancing = ::std::option::Option::Some(input);
476        self
477    }
478    /// <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
479    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>.</p>
480    /// <p>This parameter doesn't trigger a new service deployment.</p>
481    pub fn set_availability_zone_rebalancing(mut self, input: ::std::option::Option<crate::types::AvailabilityZoneRebalancing>) -> Self {
482        self.availability_zone_rebalancing = input;
483        self
484    }
485    /// <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
486    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i> </i>.</p>
487    /// <p>This parameter doesn't trigger a new service deployment.</p>
488    pub fn get_availability_zone_rebalancing(&self) -> &::std::option::Option<crate::types::AvailabilityZoneRebalancing> {
489        &self.availability_zone_rebalancing
490    }
491    /// <p>An object representing the network configuration for the service.</p>
492    /// <p>This parameter triggers a new service deployment.</p>
493    pub fn network_configuration(mut self, input: crate::types::NetworkConfiguration) -> Self {
494        self.network_configuration = ::std::option::Option::Some(input);
495        self
496    }
497    /// <p>An object representing the network configuration for the service.</p>
498    /// <p>This parameter triggers a new service deployment.</p>
499    pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::NetworkConfiguration>) -> Self {
500        self.network_configuration = input;
501        self
502    }
503    /// <p>An object representing the network configuration for the service.</p>
504    /// <p>This parameter triggers a new service deployment.</p>
505    pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::NetworkConfiguration> {
506        &self.network_configuration
507    }
508    /// Appends an item to `placement_constraints`.
509    ///
510    /// To override the contents of this collection use [`set_placement_constraints`](Self::set_placement_constraints).
511    ///
512    /// <p>An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for the service will remain unchanged. If this value is specified, it will override any existing placement constraints defined for the service. To remove all existing placement constraints, specify an empty array.</p>
513    /// <p>You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.</p>
514    /// <p>This parameter doesn't trigger a new service deployment.</p>
515    pub fn placement_constraints(mut self, input: crate::types::PlacementConstraint) -> Self {
516        let mut v = self.placement_constraints.unwrap_or_default();
517        v.push(input);
518        self.placement_constraints = ::std::option::Option::Some(v);
519        self
520    }
521    /// <p>An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for the service will remain unchanged. If this value is specified, it will override any existing placement constraints defined for the service. To remove all existing placement constraints, specify an empty array.</p>
522    /// <p>You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.</p>
523    /// <p>This parameter doesn't trigger a new service deployment.</p>
524    pub fn set_placement_constraints(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PlacementConstraint>>) -> Self {
525        self.placement_constraints = input;
526        self
527    }
528    /// <p>An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for the service will remain unchanged. If this value is specified, it will override any existing placement constraints defined for the service. To remove all existing placement constraints, specify an empty array.</p>
529    /// <p>You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.</p>
530    /// <p>This parameter doesn't trigger a new service deployment.</p>
531    pub fn get_placement_constraints(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PlacementConstraint>> {
532        &self.placement_constraints
533    }
534    /// Appends an item to `placement_strategy`.
535    ///
536    /// To override the contents of this collection use [`set_placement_strategy`](Self::set_placement_strategy).
537    ///
538    /// <p>The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will remain unchanged. If this value is specified, it will override the existing placement strategy defined for the service. To remove an existing placement strategy, specify an empty object.</p>
539    /// <p>You can specify a maximum of five strategy rules for each service.</p>
540    /// <p>This parameter doesn't trigger a new service deployment.</p>
541    pub fn placement_strategy(mut self, input: crate::types::PlacementStrategy) -> Self {
542        let mut v = self.placement_strategy.unwrap_or_default();
543        v.push(input);
544        self.placement_strategy = ::std::option::Option::Some(v);
545        self
546    }
547    /// <p>The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will remain unchanged. If this value is specified, it will override the existing placement strategy defined for the service. To remove an existing placement strategy, specify an empty object.</p>
548    /// <p>You can specify a maximum of five strategy rules for each service.</p>
549    /// <p>This parameter doesn't trigger a new service deployment.</p>
550    pub fn set_placement_strategy(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PlacementStrategy>>) -> Self {
551        self.placement_strategy = input;
552        self
553    }
554    /// <p>The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will remain unchanged. If this value is specified, it will override the existing placement strategy defined for the service. To remove an existing placement strategy, specify an empty object.</p>
555    /// <p>You can specify a maximum of five strategy rules for each service.</p>
556    /// <p>This parameter doesn't trigger a new service deployment.</p>
557    pub fn get_placement_strategy(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PlacementStrategy>> {
558        &self.placement_strategy
559    }
560    /// <p>The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a platform version is not specified, the <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
561    /// <p>This parameter triggers a new service deployment.</p>
562    pub fn platform_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
563        self.platform_version = ::std::option::Option::Some(input.into());
564        self
565    }
566    /// <p>The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a platform version is not specified, the <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
567    /// <p>This parameter triggers a new service deployment.</p>
568    pub fn set_platform_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
569        self.platform_version = input;
570        self
571    }
572    /// <p>The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a platform version is not specified, the <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
573    /// <p>This parameter triggers a new service deployment.</p>
574    pub fn get_platform_version(&self) -> &::std::option::Option<::std::string::String> {
575        &self.platform_version
576    }
577    /// <p>Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (<code>my_image:latest</code>) or to roll Fargate tasks onto a newer platform version.</p>
578    pub fn force_new_deployment(mut self, input: bool) -> Self {
579        self.force_new_deployment = ::std::option::Option::Some(input);
580        self
581    }
582    /// <p>Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (<code>my_image:latest</code>) or to roll Fargate tasks onto a newer platform version.</p>
583    pub fn set_force_new_deployment(mut self, input: ::std::option::Option<bool>) -> Self {
584        self.force_new_deployment = input;
585        self
586    }
587    /// <p>Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (<code>my_image:latest</code>) or to roll Fargate tasks onto a newer platform version.</p>
588    pub fn get_force_new_deployment(&self) -> &::std::option::Option<bool> {
589        &self.force_new_deployment
590    }
591    /// <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of <code>0</code> is used. If you don't use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
592    /// <p>If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.</p>
593    /// <p>This parameter doesn't trigger a new service deployment.</p>
594    pub fn health_check_grace_period_seconds(mut self, input: i32) -> Self {
595        self.health_check_grace_period_seconds = ::std::option::Option::Some(input);
596        self
597    }
598    /// <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of <code>0</code> is used. If you don't use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
599    /// <p>If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.</p>
600    /// <p>This parameter doesn't trigger a new service deployment.</p>
601    pub fn set_health_check_grace_period_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
602        self.health_check_grace_period_seconds = input;
603        self
604    }
605    /// <p>The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you don't specify a health check grace period value, the default value of <code>0</code> is used. If you don't use any of the health checks, then <code>healthCheckGracePeriodSeconds</code> is unused.</p>
606    /// <p>If your service's tasks take a while to start and respond to health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.</p>
607    /// <p>This parameter doesn't trigger a new service deployment.</p>
608    pub fn get_health_check_grace_period_seconds(&self) -> &::std::option::Option<i32> {
609        &self.health_check_grace_period_seconds
610    }
611    /// <p>The deployment controller to use for the service.</p>
612    pub fn deployment_controller(mut self, input: crate::types::DeploymentController) -> Self {
613        self.deployment_controller = ::std::option::Option::Some(input);
614        self
615    }
616    /// <p>The deployment controller to use for the service.</p>
617    pub fn set_deployment_controller(mut self, input: ::std::option::Option<crate::types::DeploymentController>) -> Self {
618        self.deployment_controller = input;
619        self
620    }
621    /// <p>The deployment controller to use for the service.</p>
622    pub fn get_deployment_controller(&self) -> &::std::option::Option<crate::types::DeploymentController> {
623        &self.deployment_controller
624    }
625    /// <p>If <code>true</code>, this enables execute command functionality on all task containers.</p>
626    /// <p>If you do not want to override the value that was set when the service was created, you can set this to <code>null</code> when performing this action.</p>
627    /// <p>This parameter doesn't trigger a new service deployment.</p>
628    pub fn enable_execute_command(mut self, input: bool) -> Self {
629        self.enable_execute_command = ::std::option::Option::Some(input);
630        self
631    }
632    /// <p>If <code>true</code>, this enables execute command functionality on all task containers.</p>
633    /// <p>If you do not want to override the value that was set when the service was created, you can set this to <code>null</code> when performing this action.</p>
634    /// <p>This parameter doesn't trigger a new service deployment.</p>
635    pub fn set_enable_execute_command(mut self, input: ::std::option::Option<bool>) -> Self {
636        self.enable_execute_command = input;
637        self
638    }
639    /// <p>If <code>true</code>, this enables execute command functionality on all task containers.</p>
640    /// <p>If you do not want to override the value that was set when the service was created, you can set this to <code>null</code> when performing this action.</p>
641    /// <p>This parameter doesn't trigger a new service deployment.</p>
642    pub fn get_enable_execute_command(&self) -> &::std::option::Option<bool> {
643        &self.enable_execute_command
644    }
645    /// <p>Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
646    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
647    /// <p>This parameter doesn't trigger a new service deployment.</p>
648    pub fn enable_ecs_managed_tags(mut self, input: bool) -> Self {
649        self.enable_ecs_managed_tags = ::std::option::Option::Some(input);
650        self
651    }
652    /// <p>Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
653    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
654    /// <p>This parameter doesn't trigger a new service deployment.</p>
655    pub fn set_enable_ecs_managed_tags(mut self, input: ::std::option::Option<bool>) -> Self {
656        self.enable_ecs_managed_tags = input;
657        self
658    }
659    /// <p>Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
660    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
661    /// <p>This parameter doesn't trigger a new service deployment.</p>
662    pub fn get_enable_ecs_managed_tags(&self) -> &::std::option::Option<bool> {
663        &self.enable_ecs_managed_tags
664    }
665    /// Appends an item to `load_balancers`.
666    ///
667    /// To override the contents of this collection use [`set_load_balancers`](Self::set_load_balancers).
668    ///
669    /// <note>
670    /// <p>You must have a service-linked role when you update this property</p>
671    /// </note>
672    /// <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.</p>
673    /// <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.</p>
674    /// <p>For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can update from a single target group to multiple target groups and from multiple target groups to a single target group.</p>
675    /// <p>For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using <code> <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> </code> through CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
676    /// <p>For services that use the external deployment controller, you can add, update, or remove load balancers by using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>. Note that multiple target groups are not supported for external deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
677    /// <p>You can remove existing <code>loadBalancers</code> by passing an empty list.</p>
678    /// <p>This parameter triggers a new service deployment.</p>
679    pub fn load_balancers(mut self, input: crate::types::LoadBalancer) -> Self {
680        let mut v = self.load_balancers.unwrap_or_default();
681        v.push(input);
682        self.load_balancers = ::std::option::Option::Some(v);
683        self
684    }
685    /// <note>
686    /// <p>You must have a service-linked role when you update this property</p>
687    /// </note>
688    /// <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.</p>
689    /// <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.</p>
690    /// <p>For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can update from a single target group to multiple target groups and from multiple target groups to a single target group.</p>
691    /// <p>For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using <code> <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> </code> through CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
692    /// <p>For services that use the external deployment controller, you can add, update, or remove load balancers by using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>. Note that multiple target groups are not supported for external deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
693    /// <p>You can remove existing <code>loadBalancers</code> by passing an empty list.</p>
694    /// <p>This parameter triggers a new service deployment.</p>
695    pub fn set_load_balancers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>>) -> Self {
696        self.load_balancers = input;
697        self
698    }
699    /// <note>
700    /// <p>You must have a service-linked role when you update this property</p>
701    /// </note>
702    /// <p>A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.</p>
703    /// <p>When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.</p>
704    /// <p>For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can update from a single target group to multiple target groups and from multiple target groups to a single target group.</p>
705    /// <p>For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using <code> <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> </code> through CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
706    /// <p>For services that use the external deployment controller, you can add, update, or remove load balancers by using <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html">CreateTaskSet</a>. Note that multiple target groups are not supported for external deployments. For more information see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html">Register multiple target groups with a service</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
707    /// <p>You can remove existing <code>loadBalancers</code> by passing an empty list.</p>
708    /// <p>This parameter triggers a new service deployment.</p>
709    pub fn get_load_balancers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>> {
710        &self.load_balancers
711    }
712    /// <p>Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
713    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
714    /// <p>This parameter doesn't trigger a new service deployment.</p>
715    pub fn propagate_tags(mut self, input: crate::types::PropagateTags) -> Self {
716        self.propagate_tags = ::std::option::Option::Some(input);
717        self
718    }
719    /// <p>Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
720    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
721    /// <p>This parameter doesn't trigger a new service deployment.</p>
722    pub fn set_propagate_tags(mut self, input: ::std::option::Option<crate::types::PropagateTags>) -> Self {
723        self.propagate_tags = input;
724        self
725    }
726    /// <p>Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
727    /// <p>Only tasks launched after the update will reflect the update. To update the tags on all tasks, set <code>forceNewDeployment</code> to <code>true</code>, so that Amazon ECS starts new tasks with the updated tags.</p>
728    /// <p>This parameter doesn't trigger a new service deployment.</p>
729    pub fn get_propagate_tags(&self) -> &::std::option::Option<crate::types::PropagateTags> {
730        &self.propagate_tags
731    }
732    /// Appends an item to `service_registries`.
733    ///
734    /// To override the contents of this collection use [`set_service_registries`](Self::set_service_registries).
735    ///
736    /// <note>
737    /// <p>You must have a service-linked role when you update this property.</p>
738    /// <p>For more information about the role see the <code>CreateService</code> request parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role"> <code>role</code> </a>.</p>
739    /// </note>
740    /// <p>The details for the service discovery registries to assign to this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.</p>
741    /// <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the updated service registries configuration, and then stops the old tasks when the new tasks are running.</p>
742    /// <p>You can remove existing <code>serviceRegistries</code> by passing an empty list.</p>
743    /// <p>This parameter triggers a new service deployment.</p>
744    pub fn service_registries(mut self, input: crate::types::ServiceRegistry) -> Self {
745        let mut v = self.service_registries.unwrap_or_default();
746        v.push(input);
747        self.service_registries = ::std::option::Option::Some(v);
748        self
749    }
750    /// <note>
751    /// <p>You must have a service-linked role when you update this property.</p>
752    /// <p>For more information about the role see the <code>CreateService</code> request parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role"> <code>role</code> </a>.</p>
753    /// </note>
754    /// <p>The details for the service discovery registries to assign to this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.</p>
755    /// <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the updated service registries configuration, and then stops the old tasks when the new tasks are running.</p>
756    /// <p>You can remove existing <code>serviceRegistries</code> by passing an empty list.</p>
757    /// <p>This parameter triggers a new service deployment.</p>
758    pub fn set_service_registries(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>>) -> Self {
759        self.service_registries = input;
760        self
761    }
762    /// <note>
763    /// <p>You must have a service-linked role when you update this property.</p>
764    /// <p>For more information about the role see the <code>CreateService</code> request parameter <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role"> <code>role</code> </a>.</p>
765    /// </note>
766    /// <p>The details for the service discovery registries to assign to this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.</p>
767    /// <p>When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the updated service registries configuration, and then stops the old tasks when the new tasks are running.</p>
768    /// <p>You can remove existing <code>serviceRegistries</code> by passing an empty list.</p>
769    /// <p>This parameter triggers a new service deployment.</p>
770    pub fn get_service_registries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>> {
771        &self.service_registries
772    }
773    /// <p>The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.</p>
774    /// <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
775    /// <p>This parameter triggers a new service deployment.</p>
776    pub fn service_connect_configuration(mut self, input: crate::types::ServiceConnectConfiguration) -> Self {
777        self.service_connect_configuration = ::std::option::Option::Some(input);
778        self
779    }
780    /// <p>The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.</p>
781    /// <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
782    /// <p>This parameter triggers a new service deployment.</p>
783    pub fn set_service_connect_configuration(mut self, input: ::std::option::Option<crate::types::ServiceConnectConfiguration>) -> Self {
784        self.service_connect_configuration = input;
785        self
786    }
787    /// <p>The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.</p>
788    /// <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
789    /// <p>This parameter triggers a new service deployment.</p>
790    pub fn get_service_connect_configuration(&self) -> &::std::option::Option<crate::types::ServiceConnectConfiguration> {
791        &self.service_connect_configuration
792    }
793    /// Appends an item to `volume_configurations`.
794    ///
795    /// To override the contents of this collection use [`set_volume_configurations`](Self::set_volume_configurations).
796    ///
797    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html">ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment.</p>
798    /// <p>This parameter triggers a new service deployment.</p>
799    pub fn volume_configurations(mut self, input: crate::types::ServiceVolumeConfiguration) -> Self {
800        let mut v = self.volume_configurations.unwrap_or_default();
801        v.push(input);
802        self.volume_configurations = ::std::option::Option::Some(v);
803        self
804    }
805    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html">ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment.</p>
806    /// <p>This parameter triggers a new service deployment.</p>
807    pub fn set_volume_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ServiceVolumeConfiguration>>) -> Self {
808        self.volume_configurations = input;
809        self
810    }
811    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html">ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition. If set to null, no new deployment is triggered. Otherwise, if this configuration differs from the existing one, it triggers a new deployment.</p>
812    /// <p>This parameter triggers a new service deployment.</p>
813    pub fn get_volume_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ServiceVolumeConfiguration>> {
814        &self.volume_configurations
815    }
816    /// Appends an item to `vpc_lattice_configurations`.
817    ///
818    /// To override the contents of this collection use [`set_vpc_lattice_configurations`](Self::set_vpc_lattice_configurations).
819    ///
820    /// <p>An object representing the VPC Lattice configuration for the service being updated.</p>
821    /// <p>This parameter triggers a new service deployment.</p>
822    pub fn vpc_lattice_configurations(mut self, input: crate::types::VpcLatticeConfiguration) -> Self {
823        let mut v = self.vpc_lattice_configurations.unwrap_or_default();
824        v.push(input);
825        self.vpc_lattice_configurations = ::std::option::Option::Some(v);
826        self
827    }
828    /// <p>An object representing the VPC Lattice configuration for the service being updated.</p>
829    /// <p>This parameter triggers a new service deployment.</p>
830    pub fn set_vpc_lattice_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::VpcLatticeConfiguration>>) -> Self {
831        self.vpc_lattice_configurations = input;
832        self
833    }
834    /// <p>An object representing the VPC Lattice configuration for the service being updated.</p>
835    /// <p>This parameter triggers a new service deployment.</p>
836    pub fn get_vpc_lattice_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::VpcLatticeConfiguration>> {
837        &self.vpc_lattice_configurations
838    }
839    /// Consumes the builder and constructs a [`UpdateServiceInput`](crate::operation::update_service::UpdateServiceInput).
840    pub fn build(
841        self,
842    ) -> ::std::result::Result<crate::operation::update_service::UpdateServiceInput, ::aws_smithy_types::error::operation::BuildError> {
843        ::std::result::Result::Ok(crate::operation::update_service::UpdateServiceInput {
844            cluster: self.cluster,
845            service: self.service,
846            desired_count: self.desired_count,
847            task_definition: self.task_definition,
848            capacity_provider_strategy: self.capacity_provider_strategy,
849            deployment_configuration: self.deployment_configuration,
850            availability_zone_rebalancing: self.availability_zone_rebalancing,
851            network_configuration: self.network_configuration,
852            placement_constraints: self.placement_constraints,
853            placement_strategy: self.placement_strategy,
854            platform_version: self.platform_version,
855            force_new_deployment: self.force_new_deployment,
856            health_check_grace_period_seconds: self.health_check_grace_period_seconds,
857            deployment_controller: self.deployment_controller,
858            enable_execute_command: self.enable_execute_command,
859            enable_ecs_managed_tags: self.enable_ecs_managed_tags,
860            load_balancers: self.load_balancers,
861            propagate_tags: self.propagate_tags,
862            service_registries: self.service_registries,
863            service_connect_configuration: self.service_connect_configuration,
864            volume_configurations: self.volume_configurations,
865            vpc_lattice_configurations: self.vpc_lattice_configurations,
866        })
867    }
868}