You can group Amazon Web Services costs using up to two different groups, either dimensions, tag keys, cost categories, product attributes, or any two group by types.Valid values for the
DIMENSION type are
AZ,
INSTANCE_TYPE,
LEGAL_ENTITY_NAME,
INVOICING_ENTITY,
LINKED_ACCOUNT,
OPERATION,
PLATFORM,
PURCHASE_TYPE,
SERVICE,
TENANCY,
RECORD_TYPE, and
USAGE_TYPE.When you group by the
TAG type and include a valid tag key, you get all tag values, including empty strings.To group by the
PRODUCT_ATTRIBUTE type, set
Key to a product attribute key, such as
model. For the keys of each supported service, see
ProductAttributeValues. The results include only the costs of supported services, and if you have no such costs, the response contains no groups.In the response, each group key has the format
key$value, for example,
model$Claude Sonnet 5. Costs that have no value for the key are in the group
key$, for example,
model$. Remove the
key$ prefix before you use a value in a
ProductAttributes filter. Keys are case-sensitive: if you group by a key that doesn't exist, such as
Model, all of your costs of supported services are in the group
Model$. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.