Get Products
pricing_get_products | R Documentation |
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: |
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",
Field = "string",
Value = "string"
)
),
FormatVersion = "string",
NextToken = "string",
MaxResults = 123
)
Examples¶
## 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)