LineItemFilterProperty Struct
A representation of the line item filter for your custom line item.
You can use line item filters to include or exclude specific resource values from the billing group's total cost. For example, if you create a custom line item and you want to filter out a value, such as Savings Plans discounts, you can update LineItemFilter to exclude it.
| 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_billingconductor as billingconductor } from 'aws-cdk-lib';
const lineItemFilterProperty: billingconductor.CfnCustomLineItem.LineItemFilterProperty = {
attribute: 'attribute',
matchOption: 'matchOption',
// the properties below are optional
attributeValues: ['attributeValues'],
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_billingconductor as billingconductor
line_item_filter_property = billingconductor.CfnCustomLineItem.LineItemFilterProperty(
attribute="attribute",
match_option="matchOption",
# the properties below are optional
attribute_values=["attributeValues"],
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.billingconductor.*;
LineItemFilterProperty lineItemFilterProperty = LineItemFilterProperty.builder()
.attribute("attribute")
.matchOption("matchOption")
// the properties below are optional
.attributeValues(List.of("attributeValues"))
.values(List.of("values"))
.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.BillingConductor;
var lineItemFilterProperty = new LineItemFilterProperty {
Attribute = "attribute",
MatchOption = "matchOption",
// the properties below are optional
AttributeValues = new [] { "attributeValues" },
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"
lineItemFilterProperty := &LineItemFilterProperty{
Attribute: jsii.String("attribute"),
MatchOption: jsii.String("matchOption"),
// the properties below are optional
AttributeValues: []*string{
jsii.String("attributeValues"),
},
Values: []*string{
jsii.String("values"),
},
}
Properties
The attribute of the line item filter.
This specifies what attribute that you can filter on.
attributeValuesoptionalstring[]attribute_valuesoptionaltyping.List[str]attributeValuesoptionalList<String>AttributeValuesoptionalstring[]AttributeValuesoptional*[]*string #The values of the line item filter.
This specifies the values to filter on.
The match criteria of the line item filter.
This parameter specifies whether not to include the resource value from the billing group total cost.
valuesoptionalstring[]valuesoptionaltyping.List[str]valuesoptionalList<String>Valuesoptionalstring[]Valuesoptional*[]*string #The values of the line item filter.
This specifies the values to filter on. Currently, you can only exclude Savings Plans discounts.