Skip to content
v2.278.0

CustomLineItemChargeDetailsProperty ​

Struct External

The charge details of a custom line item.

It should contain only one of Flat or Percentage .

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 customLineItemChargeDetailsProperty: billingconductor.CfnCustomLineItem.CustomLineItemChargeDetailsProperty = {
  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'],
  },
};
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

custom_line_item_charge_details_property = billingconductor.CfnCustomLineItem.CustomLineItemChargeDetailsProperty(
    type="type",

    # the properties below are optional
    flat=billingconductor.CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty(
        charge_value=123
    ),
    line_item_filters=[billingconductor.CfnCustomLineItem.LineItemFilterProperty(
        attribute="attribute",
        match_option="matchOption",

        # the properties below are optional
        attribute_values=["attributeValues"],
        values=["values"]
    )],
    percentage=billingconductor.CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty(
        percentage_value=123,

        # the properties below are optional
        child_associated_resources=["childAssociatedResources"]
    )
)
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.*;

CustomLineItemChargeDetailsProperty customLineItemChargeDetailsProperty = CustomLineItemChargeDetailsProperty.builder()
        .type("type")

        // the properties below are optional
        .flat(CustomLineItemFlatChargeDetailsProperty.builder()
                .chargeValue(123)
                .build())
        .lineItemFilters(List.of(LineItemFilterProperty.builder()
                .attribute("attribute")
                .matchOption("matchOption")

                // the properties below are optional
                .attributeValues(List.of("attributeValues"))
                .values(List.of("values"))
                .build()))
        .percentage(CustomLineItemPercentageChargeDetailsProperty.builder()
                .percentageValue(123)

                // the properties below are optional
                .childAssociatedResources(List.of("childAssociatedResources"))
                .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.BillingConductor;

var customLineItemChargeDetailsProperty = new CustomLineItemChargeDetailsProperty {
    Type = "type",

    // the properties below are optional
    Flat = new CustomLineItemFlatChargeDetailsProperty {
        ChargeValue = 123
    },
    LineItemFilters = new [] { new LineItemFilterProperty {
        Attribute = "attribute",
        MatchOption = "matchOption",

        // the properties below are optional
        AttributeValues = new [] { "attributeValues" },
        Values = new [] { "values" }
    } },
    Percentage = new CustomLineItemPercentageChargeDetailsProperty {
        PercentageValue = 123,

        // the properties below are optional
        ChildAssociatedResources = new [] { "childAssociatedResources" }
    }
};
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"

customLineItemChargeDetailsProperty := &CustomLineItemChargeDetailsProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Flat: &CustomLineItemFlatChargeDetailsProperty{
		ChargeValue: jsii.Number(123),
	},
	LineItemFilters: []interface{}{
		&LineItemFilterProperty{
			Attribute: jsii.String("attribute"),
			MatchOption: jsii.String("matchOption"),

			// the properties below are optional
			AttributeValues: []*string{
				jsii.String("attributeValues"),
			},
			Values: []*string{
				jsii.String("values"),
			},
		},
	},
	Percentage: &CustomLineItemPercentageChargeDetailsProperty{
		PercentageValue: jsii.Number(123),

		// the properties below are optional
		ChildAssociatedResources: []*string{
			jsii.String("childAssociatedResources"),
		},
	},
}

Properties ​

flatoptionalIResolvable | CfnCustomLineItem.CustomLineItemFlatChargeDetailsPropertyflatoptionaltyping.Union[IResolvable, CustomLineItemFlatChargeDetailsProperty]flatoptionalIResolvableFlatoptionalIResolvableFlatoptionalinterface{} #
A `CustomLineItemFlatChargeDetails` that describes the charge details of a flat custom line item.
lineItemFiltersoptionalIResolvable | IResolvable | CfnCustomLineItem.LineItemFilterProperty[]line_item_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LineItemFilterProperty]]]lineItemFiltersoptionalIResolvableLineItemFiltersoptionalIResolvableLineItemFiltersoptionalinterface{} #
A representation of the line item filter.
percentageoptionalIResolvable | CfnCustomLineItem.CustomLineItemPercentageChargeDetailsPropertypercentageoptionaltyping.Union[IResolvable, CustomLineItemPercentageChargeDetailsProperty]percentageoptionalIResolvablePercentageoptionalIResolvablePercentageoptionalinterface{} #
A `CustomLineItemPercentageChargeDetails` that describes the charge details of a percentage custom line item.
typestringtypestrtypeStringTypestringType*string required #
The type of the custom line item that indicates whether the charge is a fee or credit.