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
.
Namespace: Amazon.Pricing.Model
Assembly: AWSSDK.Pricing.dll
Version: 3.x.y.z
public class DescribeServicesRequest : AmazonPricingRequest IAmazonWebServiceRequest
The DescribeServicesRequest type exposes the following members
Name | Description | |
---|---|---|
DescribeServicesRequest() |
Name | Type | Description | |
---|---|---|---|
FormatVersion | System.String |
Gets and sets the property FormatVersion. The format version that you want the response to be in.
Valid values are: |
|
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of results that you want returned in the response. |
|
NextToken | System.String |
Gets and sets the property NextToken. The pagination token that indicates the next set of results that you want to retrieve. |
|
ServiceCode | System.String |
Gets and sets the property ServiceCode.
The code for the service whose information you want to retrieve, such as |
Retrieves the service for the given Service Code.
var client = new AmazonPricingClient(); var response = client.DescribeServices(new DescribeServicesRequest { FormatVersion = "aws_v1", MaxResults = 1, ServiceCode = "AmazonEC2" }); string formatVersion = response.FormatVersion; string nextToken = response.NextToken; List<Service> services = response.Services;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5