AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class DeploymentConfiguration
The DeploymentConfiguration type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeploymentConfiguration() |
Name | Type | Description | |
---|---|---|---|
![]() |
Alarms | Amazon.ECS.Model.DeploymentAlarms |
Gets and sets the property Alarms. Information about the CloudWatch alarms. |
![]() |
BakeTimeInMinutes | System.Int32 |
Gets and sets the property BakeTimeInMinutes. The time period when both blue and green service revisions are running simultaneously after the production traffic has shifted.
You must provide this parameter when you use the |
![]() |
DeploymentCircuitBreaker | Amazon.ECS.Model.DeploymentCircuitBreaker |
Gets and sets the property DeploymentCircuitBreaker.
The deployment circuit breaker can only be used for services using the rolling update
( The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If you use the deployment circuit breaker, a service deployment will transition to a failed state and stop launching new tasks. If you use the rollback option, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide |
![]() |
LifecycleHooks | System.Collections.Generic.List<Amazon.ECS.Model.DeploymentLifecycleHook> |
Gets and sets the property LifecycleHooks. An array of deployment lifecycle hook objects to run custom logic at specific stages of the deployment lifecycle. |
![]() |
MaximumPercent | System.Int32 |
Gets and sets the property MaximumPercent.
If a service is using the rolling update ( The Amazon ECS scheduler uses this parameter to replace unhealthy tasks by starting replacement tasks first and then stopping the unhealthy tasks, as long as cluster resources for starting replacement tasks are available. For more information about how the scheduler replaces unhealthy tasks, see Amazon ECS services.
If a service is using either the blue/green (
You can't specify a custom
If the service uses either the blue/green ( |
![]() |
MinimumHealthyPercent | System.Int32 |
Gets and sets the property MinimumHealthyPercent.
If a service is using the rolling update (
If any tasks are unhealthy and if For services that do not use a load balancer, the following should be noted:
For services that do use a load balancer, the following should be noted:
The default value for a replica service for
The minimum number of healthy tasks during a deployment is the
If a service is using either the blue/green (
You can't specify a custom
If a service is using either the blue/green ( |
![]() |
Strategy | Amazon.ECS.DeploymentStrategy |
Gets and sets the property Strategy. The deployment strategy for the service. Choose from these valid values:
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5