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.

The termination policy for the Amazon EBS volume when the task exits. For more information, see Amazon ECS volume termination policy.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.TaskManagedEBSVolumeTerminationPolicy

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

Syntax

C#
public class TaskManagedEBSVolumeTerminationPolicy

The TaskManagedEBSVolumeTerminationPolicy type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DeleteOnTermination System.Boolean

Gets and sets the property DeleteOnTermination.

Indicates whether the volume should be deleted on when the task stops. If a value of true is specified, 
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED state. If no value is specified, the 
default value is true is used. When set to false, Amazon ECS leaves the volume in your 
account.

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