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.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class ProtectedTask
The ProtectedTask type exposes the following members
Name | Description | |
---|---|---|
![]() |
ProtectedTask() |
Name | Type | Description | |
---|---|---|---|
![]() |
ExpirationDate | System.DateTime |
Gets and sets the property ExpirationDate. The epoch time when protection for the task will expire. |
![]() |
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 |
![]() |
TaskArn | System.String |
Gets and sets the property TaskArn. The task ARN. |
.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