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.

This is the response object from the DescribeCapacityProviders operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.ECS.Model.DescribeCapacityProvidersResponse

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

Syntax

C#
public class DescribeCapacityProvidersResponse : AmazonWebServiceResponse

The DescribeCapacityProvidersResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property CapacityProviders System.Collections.Generic.List<Amazon.ECS.Model.CapacityProvider>

Gets and sets the property CapacityProviders.

The list of capacity providers.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Failures System.Collections.Generic.List<Amazon.ECS.Model.Failure>

Gets and sets the property Failures.

Any failures associated with the call.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property NextToken System.String

Gets and sets the property NextToken.

The nextToken value to include in a future DescribeCapacityProviders request. When the results of a DescribeCapacityProviders request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

This example retrieves details about all capacity providers.

To describe all capacity providers


var client = new AmazonECSClient();
var response = client.DescribeCapacityProviders(new DescribeCapacityProvidersRequest 
{
});

List<CapacityProvider> capacityProviders = response.CapacityProviders;

            

This example retrieves details about the capacity provider MyCapacityProvider

To describe a specific capacity provider


var client = new AmazonECSClient();
var response = client.DescribeCapacityProviders(new DescribeCapacityProvidersRequest 
{
    CapacityProviders = new List<string> {
        "MyCapacityProvider"
    },
    Include = new List<string> {
        "TAGS"
    }
});

List<CapacityProvider> capacityProviders = response.CapacityProviders;

            

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