Skip to content

Returns a list of attribute values

Description

Returns a list of attribute values. Attributes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the Billing and Cost Management User Guide.

Usage

pricing_get_attribute_values(ServiceCode, AttributeName, NextToken,
  MaxResults)

Arguments

  • ServiceCode

    [required] The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2.

  • AttributeName

    [required] The name of the attribute that you want to retrieve the values for, such as volumeType.

  • 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 response.

Value

A list with the following syntax:

list(
  AttributeValues = list(
    list(
      Value = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$get_attribute_values(
  ServiceCode = "string",
  AttributeName = "string",
  NextToken = "string",
  MaxResults = 123
)

Examples

# This operation returns a list of values available for the given
# attribute.
svc$get_attribute_values(
  AttributeName = "volumeType",
  MaxResults = 2L,
  ServiceCode = "AmazonEC2"
)