CfnCustomLineItemProps Struct
Properties for defining a CfnCustomLineItem.
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 cfnCustomLineItemProps: billingconductor.CfnCustomLineItemProps = {
billingGroupArn: 'billingGroupArn',
name: 'name',
// the properties below are optional
accountId: 'accountId',
billingPeriodRange: {
exclusiveEndBillingPeriod: 'exclusiveEndBillingPeriod',
inclusiveStartBillingPeriod: 'inclusiveStartBillingPeriod',
},
computationRule: 'computationRule',
customLineItemChargeDetails: {
type: 'type',
// the properties below are optional
flat: {
chargeValue: 123,
},
lineItemFilters: [{
attribute: 'attribute',
matchOption: 'matchOption',
// the properties below are optional
attributeValues: ['attributeValues'],
values: ['values'],
}],
percentage: {
percentageValue: 123,
// the properties below are optional
childAssociatedResources: ['childAssociatedResources'],
},
},
description: 'description',
presentationDetails: {
service: 'service',
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
accountIdoptionalstringaccount_idoptionalstraccountIdoptionalStringAccountIdoptionalstringAccountIdoptional*string#The AWS account in which this custom line item will be applied to.
billingGroupArnstringbilling_group_arnstrbillingGroupArnStringBillingGroupArnstringBillingGroupArn*stringrequired#The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
billingPeriodRangeoptionalIResolvable | CfnCustomLineItem.BillingPeriodRangePropertybilling_period_rangeoptionaltyping.Union[IResolvable, BillingPeriodRangeProperty]billingPeriodRangeoptionalIResolvableBillingPeriodRangeoptionalIResolvableBillingPeriodRangeoptionalinterface{}#A time range for which the custom line item is effective.
computationRuleoptionalstringcomputation_ruleoptionalstrcomputationRuleoptionalStringComputationRuleoptionalstringComputationRuleoptional*string#The computation rule that determines how the custom line item charges are computed and reflected in the bill.
customLineItemChargeDetailsoptionalIResolvable | CfnCustomLineItem.CustomLineItemChargeDetailsPropertycustom_line_item_charge_detailsoptionaltyping.Union[IResolvable, CustomLineItemChargeDetailsProperty]customLineItemChargeDetailsoptionalIResolvableCustomLineItemChargeDetailsoptionalIResolvableCustomLineItemChargeDetailsoptionalinterface{}#The charge details of a custom line item.
It should contain only one of Flat or Percentage .
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#The custom line item's description.
This is shown on the Bills page in association with the charge value.
The custom line item's name.
presentationDetailsoptionalIResolvable | CfnCustomLineItem.PresentationDetailsPropertypresentation_detailsoptionaltyping.Union[IResolvable, PresentationDetailsProperty]presentationDetailsoptionalIResolvablePresentationDetailsoptionalIResolvablePresentationDetailsoptionalinterface{}#Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under.