AWS SDK Version 3 for .NET
API Reference

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.

One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.

When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.

You can only use the DeploymentAlarms method to detect failures when the DeploymentController is set to ECS.

For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.DeploymentAlarms

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z

Syntax

C#
public class DeploymentAlarms

The DeploymentAlarms type exposes the following members

Constructors

NameDescription
Public Method DeploymentAlarms()

Properties

NameTypeDescription
Public Property AlarmNames System.Collections.Generic.List<System.String>

Gets and sets the property AlarmNames.

One or more CloudWatch alarm names. Use a "," to separate the alarms.

Public Property Enable System.Boolean

Gets and sets the property Enable.

Determines whether to use the CloudWatch alarm option in the service deployment process.

Public Property Rollback System.Boolean

Gets and sets the property Rollback.

Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.

Version Information

.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