pricing_get_products: Returns a list of all products that match the filter criteria

Description Usage Arguments Value Request syntax Examples

View source: R/pricing_operations.R

Description

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

Usage

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

Arguments

ServiceCode

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:

1
2
3
4
5
6
7
list(
  FormatVersion = "string",
  PriceList = list(
    "string"
  ),
  NextToken = "string"
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
svc$get_products(
  ServiceCode = "string",
  Filters = list(
    list(
      Type = "TERM_MATCH",
      Field = "string",
      Value = "string"
    )
  ),
  FormatVersion = "string",
  NextToken = "string",
  MaxResults = 123
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
# 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
)

## End(Not run)

paws.cost.management documentation built on Aug. 23, 2021, 9:20 a.m.