AWS SDK Version 2 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.

.NET Framework 3.5
 
Details of a task definition.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.TaskDefinition

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class TaskDefinition : Object

The TaskDefinition type exposes the following members

Constructors

NameDescription
Public Method TaskDefinition()

Properties

NameTypeDescription
Public Property ContainerDefinitions System.Collections.Generic.List<Amazon.ECS.Model.ContainerDefinition> Gets and sets the property ContainerDefinitions.

A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

Public Property Family System.String Gets and sets the property Family.

The family of your task definition, used as the definition name.

Public Property RequiresAttributes System.Collections.Generic.List<Amazon.ECS.Model.Attribute> Gets and sets the property RequiresAttributes.

The container instance attributes required by your task.

Public Property Revision System.Int32 Gets and sets the property Revision.

The revision of the task in a particular family. The revision is a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1; each time you register a new revision of a task definition in the same family, the revision value always increases by one (even if you have deregistered previous revisions in this family).

Public Property Status Amazon.ECS.TaskDefinitionStatus Gets and sets the property Status.

The status of the task definition.

Public Property TaskDefinitionArn System.String Gets and sets the property TaskDefinitionArn.

The full Amazon Resource Name (ARN) of the of the task definition.

Public Property Volumes System.Collections.Generic.List<Amazon.ECS.Model.Volume> Gets and sets the property Volumes.

The list of volumes in a task. For more information about volume definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8