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.

An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection API.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.ProtectedTask

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

Syntax

C#
public class ProtectedTask

The ProtectedTask type exposes the following members

Constructors

NameDescription
Public Method ProtectedTask()

Properties

NameTypeDescription
Public Property ExpirationDate System.DateTime

Gets and sets the property ExpirationDate.

The epoch time when protection for the task will expire.

Public Property ProtectionEnabled System.Boolean

Gets and sets the property ProtectionEnabled.

The protection status of the task. If scale-in protection is on for a task, the value is true. Otherwise, it is false.

Public Property TaskArn System.String

Gets and sets the property TaskArn.

The task ARN.

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