AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Use Expression to filter in various Cost Explorer APIs.

Not all Expression types are supported in each API. Refer to the documentation for each specific API to see what is supported.

There are two patterns:

For the GetRightsizingRecommendation action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or RIGHTSIZING_TYPE.

For the GetReservationPurchaseRecommendation action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.

Inheritance Hierarchy

System.Object
  Amazon.CostExplorer.Model.Expression

Namespace: Amazon.CostExplorer.Model
Assembly: AWSSDK.CostExplorer.dll
Version: 3.x.y.z

Syntax

C#
public class Expression

The Expression type exposes the following members

Constructors

NameDescription
Public Method Expression()

Properties

NameTypeDescription
Public Property And System.Collections.Generic.List<Amazon.CostExplorer.Model.Expression>

Gets and sets the property And.

Return results that match both Dimension objects.

Public Property CostCategories Amazon.CostExplorer.Model.CostCategoryValues

Gets and sets the property CostCategories.

The filter that's based on CostCategory values.

Public Property Dimensions Amazon.CostExplorer.Model.DimensionValues

Gets and sets the property Dimensions.

The specific Dimension to use for Expression.

Public Property Not Amazon.CostExplorer.Model.Expression

Gets and sets the property Not.

Return results that don't match a Dimension object.

Public Property Or System.Collections.Generic.List<Amazon.CostExplorer.Model.Expression>

Gets and sets the property Or.

Return results that match either Dimension object.

Public Property Tags Amazon.CostExplorer.Model.TagValues

Gets and sets the property Tags.

The specific Tag to use for Expression.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5