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.

Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definition revisions).

You can filter out task definition families that do not contain any ACTIVE task definition revisions by setting the status parameter to ACTIVE. You can also filter the results with the familyPrefix parameter.

Note:

For PCL this operation is only available in asynchronous form. Please refer to ListTaskDefinitionFamiliesAsync.

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

Syntax

C#
public abstract ListTaskDefinitionFamiliesResponse ListTaskDefinitionFamilies(
         ListTaskDefinitionFamiliesRequest request
)
Parameters
request
Type: Amazon.ECS.Model.ListTaskDefinitionFamiliesRequest

Container for the necessary parameters to execute the ListTaskDefinitionFamilies service method.

Return Value
The response from the ListTaskDefinitionFamilies service method, as returned by ECS.

Exceptions

ExceptionCondition
ClientException These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permission to use the action or resource, or specifying an identifier that is not valid.
InvalidParameterException The specified parameter is invalid. Review the available parameters for the API request.
ServerException These errors are usually caused by a server issue.

Examples

This example lists all of your registered task definition families.

To list your registered task definition families


var response = client.ListTaskDefinitionFamilies(new ListTaskDefinitionFamiliesRequest 
{
});

List families = response.Families;

            

This example lists the task definition revisions that start with "hpcc".

To filter your registered task definition families


var response = client.ListTaskDefinitionFamilies(new ListTaskDefinitionFamiliesRequest 
{
    FamilyPrefix = "hpcc"
});

List families = response.Families;

            

Version Information

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also