0

I am currently assigning AWS media-live channels to a specific group by a custom tag and want to get the (CostExplorer) GetReservationUtilization for a group's channels by filtering by tag. The AWS documentation for GetReservationUtilization lists the Filtering options as:

"Filter": {
    .
    .
    "Tags": { 
        "Key": "string",
        "MatchOptions": [ "string" ],
        "Values": [ "string" ]
    }
    .
    .
}

I interpret it as it should be possible to sort by a custom set tag via:

"Key": "Group",
"Value": [customId]

But I get an error that says "An error occurred (ValidationException) when calling the GetReservationUtilization operation: Tags expression is not allowed, allowed expression(s): And, Not, Dimensions"

Feels like I have tried everything possible but I cant seem to get it to work.

nord
  • 77
  • 1
  • 2
  • 11

2 Answers2

0

Have you looked at the examples boto3 documentation?

Seems you may need to wrap the tag element inside of the And, Not or supply dimensions

Jonathan Leon
  • 5,440
  • 2
  • 6
  • 14
0

For anyone coming here in the future, sorting reservation-utilization by the tag dimension is currently not supported. The following dimensions are supported:

  • AZ
  • CACHE_ENGINE
  • DEPLOYMENT_OPTION
  • INSTANCE_TYPE
  • LINKED_ACCOUNT
  • OPERATING_SYSTEM
  • PLATFORM
  • REGION
  • SERVICE
  • SCOPE
  • TENANCY

As specified in the AWS API docs.

nord
  • 77
  • 1
  • 2
  • 11