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 GetProducts operation. Returns a list of all products that match the filter criteria.

Inheritance Hierarchy


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


public class GetProductsRequest : AmazonPricingRequest

The GetProductsRequest type exposes the following members


Public Method GetProductsRequest()


Public Property Filters System.Collections.Generic.List<Amazon.Pricing.Model.Filter>

Gets and sets the property Filters.

The list of filters that limit the returned products. only products that match all filters are returned.

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 to return 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 products you want to retrieve.


This operation returns a list of products that match the given criteria.

To retrieve a list of products

var response = client.GetProducts(new GetProductsRequest 
    Filters = new List {
        new Filter {
            Field = "ServiceCode",
            Type = "TERM_MATCH",
            Value = "AmazonEC2"
        new Filter {
            Field = "volumeType",
            Type = "TERM_MATCH",
            Value = "Provisioned IOPS"
    FormatVersion = "aws_v1",
    MaxResults = 1

string formatVersion = response.FormatVersion;
string nextToken = response.NextToken;
List priceList = response.PriceList;


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