Skip to content

Returns a list of all products that match the filter criteria

Description

Returns a list of all products that match the filter criteria.

Usage

pricing_get_products(ServiceCode, Filters, FormatVersion, NextToken,
  MaxResults)

Arguments

  • ServiceCode

    [required] The code for the service whose products you want to retrieve.

  • Filters

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

  • FormatVersion

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

    Valid values are: aws_v1

  • NextToken

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

  • MaxResults

    The maximum number of results to return in the response.

Value

A list with the following syntax:

list(
  FormatVersion = "string",
  PriceList = list(
    "string"
  ),
  NextToken = "string"
)

Request syntax

svc$get_products(
  ServiceCode = "string",
  Filters = list(
    list(
      Type = "TERM_MATCH"|"EQUALS"|"CONTAINS"|"ANY_OF"|"NONE_OF",
      Field = "string",
      Value = "string"
    )
  ),
  FormatVersion = "string",
  NextToken = "string",
  MaxResults = 123
)

Examples

# This operation returns a list of products that match the given criteria.
svc$get_products(
  Filters = list(
    list(
      Field = "ServiceCode",
      Type = "TERM_MATCH",
      Value = "AmazonEC2"
    ),
    list(
      Field = "volumeType",
      Type = "TERM_MATCH",
      Value = "Provisioned IOPS"
    )
  ),
  FormatVersion = "aws_v1",
  MaxResults = 1L
)