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.

Container for the parameters to the DescribeTaskDefinition operation. Describes a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.

You can only describe INACTIVE task definitions while an active task or service references them.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ECS.AmazonECSRequest
      Amazon.ECS.Model.DescribeTaskDefinitionRequest

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

Syntax

C#
public class DescribeTaskDefinitionRequest : AmazonECSRequest
         IAmazonWebServiceRequest

The DescribeTaskDefinitionRequest type exposes the following members

Constructors

Properties

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

Gets and sets the property Include.

Determines whether to see the resource tags for the task definition. If TAGS is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response.

Public Property TaskDefinition System.String

Gets and sets the property TaskDefinition.

The family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, or full Amazon Resource Name (ARN) of the task definition to describe.

Examples

This example provides a description of the specified task definition.

To describe a task definition


var client = new AmazonECSClient();
var response = client.DescribeTaskDefinition(new DescribeTaskDefinitionRequest 
{
    TaskDefinition = "hello_world:8"
});

TaskDefinition taskDefinition = response.TaskDefinition;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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