ExpressionProperty Struct
Use Expression to filter in various Budgets APIs.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
// 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
andoptionalIResolvable | IResolvable | CfnBudget.ExpressionProperty[]andoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ExpressionProperty]]]andoptionalIResolvableAndoptionalIResolvableAndoptionalinterface{} #Return results that match both Dimension objects.
costCategoriesoptionalIResolvable | CfnBudget.cost_categoriesoptionaltyping.Union[IResolvable, CostCategoryValuesProperty]costCategoriesoptionalIResolvableCostCategoriesoptionalIResolvableCostCategoriesoptionalinterface{} #The filter that's based on CostCategoryValues.
dimensionsoptionalIResolvable | CfnBudget.dimensionsoptionaltyping.Union[IResolvable, ExpressionDimensionValuesProperty]dimensionsoptionalIResolvableDimensionsoptionalIResolvableDimensionsoptionalinterface{} #The specific Dimension to use for Expression.
notoptionalIResolvable | CfnBudget.ExpressionPropertynotoptionaltyping.Union[IResolvable, ExpressionProperty]notoptionalIResolvableNotoptionalIResolvableNotoptionalinterface{} #Return results that don't match a Dimension object.
oroptionalIResolvable | IResolvable | CfnBudget.ExpressionProperty[]oroptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ExpressionProperty]]]oroptionalIResolvableOroptionalIResolvableOroptionalinterface{} #Return results that match either Dimension object.
tagsoptionalCfnBudget.TagValuesPropertytagsoptionalTagValuesPropertytagsoptionalTagValuesPropertyTagsoptionalTagValuesPropertyTagsoptionalTagValuesProperty #The specific Tag to use for Expression.