Returns a list of all products that match the filter criteria¶
Description¶
Returns a list of all products that match the filter criteria.
Usage¶
Arguments¶
-
ServiceCode[required] The code for the service whose products you want to retrieve.
-
FiltersThe list of filters that limit the returned products. only products that match all filters are returned.
-
FormatVersionThe format version that you want the response to be in.
Valid values are:
aws_v1 -
NextTokenThe pagination token that indicates the next set of results that you want to retrieve.
-
MaxResultsThe maximum number of results to return in the response.
Value¶
A list with the following syntax:
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
)