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 DescribeServices operation. Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume, operation, locationType, and instanceCapacity10xlarge.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Pricing.AmazonPricingRequest
      Amazon.Pricing.Model.DescribeServicesRequest

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

Syntax

C#
public class DescribeServicesRequest : AmazonPricingRequest
         IAmazonWebServiceRequest

The DescribeServicesRequest type exposes the following members

Constructors

NameDescription
Public Method DescribeServicesRequest()

Properties

NameTypeDescription
Public Property FormatVersion System.String

Gets and sets the property FormatVersion.

The format version that you want the response to be in.

Valid values are: aws_v1

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results that you want returned in the response.

Public Property NextToken System.String

Gets and sets the property NextToken.

The pagination token that indicates the next set of results that you want to retrieve.

Public Property ServiceCode System.String

Gets and sets the property ServiceCode.

The code for the service whose information you want to retrieve, such as AmazonEC2. You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank.

Examples

To retrieve a list of services and service codes


var response = client.DescribeServices(new DescribeServicesRequest 
{
    FormatVersion = "aws_v1",
    MaxResults = 1,
    ServiceCode = "AmazonEC2"
});

string formatVersion = response.FormatVersion;
string nextToken = response.NextToken;
List services = response.Services;

            

Version Information

.NET Standard:
Supported in: 1.3

.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