# ExpressionProperty

Struct · External

Use Expression to filter in various Budgets APIs.

- Source: Generated at build time
- Type last changed: v2.196.0 · 16 May 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_budgets as budgets } from 'aws-cdk-lib';

declare const expressionProperty_: budgets.CfnBudget.ExpressionProperty;
const expressionProperty: budgets.CfnBudget.ExpressionProperty = {
  and: [expressionProperty_],
  costCategories: {
    key: 'key',
    matchOptions: ['matchOptions'],
    values: ['values'],
  },
  dimensions: {
    key: 'key',
    matchOptions: ['matchOptions'],
    values: ['values'],
  },
  not: expressionProperty_,
  or: [expressionProperty_],
  tags: {
    key: 'key',
    matchOptions: ['matchOptions'],
    values: ['values'],
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_budgets as budgets

# expression_property_: budgets.CfnBudget.ExpressionProperty

expression_property = budgets.CfnBudget.ExpressionProperty(
    and=[expression_property_],
    cost_categories=budgets.CfnBudget.CostCategoryValuesProperty(
        key="key",
        match_options=["matchOptions"],
        values=["values"]
    ),
    dimensions=budgets.CfnBudget.ExpressionDimensionValuesProperty(
        key="key",
        match_options=["matchOptions"],
        values=["values"]
    ),
    not=expression_property_,
    or=[expression_property_],
    tags=budgets.CfnBudget.TagValuesProperty(
        key="key",
        match_options=["matchOptions"],
        values=["values"]
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.budgets.*;

ExpressionProperty expressionProperty_;

ExpressionProperty expressionProperty = ExpressionProperty.builder()
        .and(List.of(expressionProperty_))
        .costCategories(CostCategoryValuesProperty.builder()
                .key("key")
                .matchOptions(List.of("matchOptions"))
                .values(List.of("values"))
                .build())
        .dimensions(ExpressionDimensionValuesProperty.builder()
                .key("key")
                .matchOptions(List.of("matchOptions"))
                .values(List.of("values"))
                .build())
        .not(expressionProperty_)
        .or(List.of(expressionProperty_))
        .tags(TagValuesProperty.builder()
                .key("key")
                .matchOptions(List.of("matchOptions"))
                .values(List.of("values"))
                .build())
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Budgets;

ExpressionProperty expressionProperty_;

var expressionProperty = new ExpressionProperty {
    And = new [] { expressionProperty_ },
    CostCategories = new CostCategoryValuesProperty {
        Key = "key",
        MatchOptions = new [] { "matchOptions" },
        Values = new [] { "values" }
    },
    Dimensions = new ExpressionDimensionValuesProperty {
        Key = "key",
        MatchOptions = new [] { "matchOptions" },
        Values = new [] { "values" }
    },
    Not = expressionProperty_,
    Or = new [] { expressionProperty_ },
    Tags = new TagValuesProperty {
        Key = "key",
        MatchOptions = new [] { "matchOptions" },
        Values = new [] { "values" }
    }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var expressionProperty_ ExpressionProperty

expressionProperty := &ExpressionProperty{
	And: []interface{}{
		expressionProperty_,
	},
	CostCategories: &CostCategoryValuesProperty{
		Key: jsii.String("key"),
		MatchOptions: []*string{
			jsii.String("matchOptions"),
		},
		Values: []*string{
			jsii.String("values"),
		},
	},
	Dimensions: &ExpressionDimensionValuesProperty{
		Key: jsii.String("key"),
		MatchOptions: []*string{
			jsii.String("matchOptions"),
		},
		Values: []*string{
			jsii.String("values"),
		},
	},
	Not: expressionProperty_,
	Or: []interface{}{
		expressionProperty_,
	},
	Tags: &TagValuesProperty{
		Key: jsii.String("key"),
		MatchOptions: []*string{
			jsii.String("matchOptions"),
		},
		Values: []*string{
			jsii.String("values"),
		},
	},
}
```

## Properties

- `and`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.ExpressionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.ExpressionProperty.html)[] — Return results that match both Dimension objects.

- `costCategories`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.CostCategoryValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.CostCategoryValuesProperty.html) — The filter that's based on CostCategoryValues.

- `dimensions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.ExpressionDimensionValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.ExpressionDimensionValuesProperty.html) — The specific Dimension to use for Expression.

- `not`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.ExpressionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.ExpressionProperty.html) — Return results that don't match a Dimension object.

- `or`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.ExpressionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.ExpressionProperty.html)[] — Return results that match either Dimension object.

- `tags`: [CfnBudget.TagValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.TagValuesProperty.html) — The specific Tag to use for Expression.
