Interface CfnCustomLineItemProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCustomLineItemProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:06.161Z")
@Stability(Stable)
public interface CfnCustomLineItemProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnCustomLineItem.
Example:
// 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.*;
CfnCustomLineItemProps cfnCustomLineItemProps = CfnCustomLineItemProps.builder()
.billingGroupArn("billingGroupArn")
.name("name")
// the properties below are optional
.accountId("accountId")
.billingPeriodRange(BillingPeriodRangeProperty.builder()
.exclusiveEndBillingPeriod("exclusiveEndBillingPeriod")
.inclusiveStartBillingPeriod("inclusiveStartBillingPeriod")
.build())
.computationRule("computationRule")
.customLineItemChargeDetails(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())
.description("description")
.presentationDetails(PresentationDetailsProperty.builder()
.service("service")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCustomLineItemPropsstatic final classAn implementation forCfnCustomLineItemProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe AWS account in which this custom line item will be applied to.The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.default ObjectA time range for which the custom line item is effective.default StringThe computation rule that determines how the custom line item charges are computed and reflected in the bill.default ObjectThe charge details of a custom line item.default StringThe custom line item's description.getName()The custom line item's name.default ObjectConfiguration details specifying how the custom line item charges are presented, including which service the charges are shown under.getTags()A map that contains tag keys and tag values that are attached to a custom line item.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBillingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.- See Also:
-
getName
The custom line item's name.- See Also:
-
getAccountId
The AWS account in which this custom line item will be applied to.- See Also:
-
getBillingPeriodRange
A time range for which the custom line item is effective.Returns union: either
IResolvableorCfnCustomLineItem.BillingPeriodRangeProperty- See Also:
-
getComputationRule
The computation rule that determines how the custom line item charges are computed and reflected in the bill.- See Also:
-
getCustomLineItemChargeDetails
The charge details of a custom line item.It should contain only one of
FlatorPercentage.Returns union: either
IResolvableorCfnCustomLineItem.CustomLineItemChargeDetailsProperty- See Also:
-
getDescription
The custom line item's description.This is shown on the Bills page in association with the charge value.
- See Also:
-
getPresentationDetails
Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under.Returns union: either
IResolvableorCfnCustomLineItem.PresentationDetailsProperty- See Also:
-
getTags
A map that contains tag keys and tag values that are attached to a custom line item.- See Also:
-
builder
- Returns:
- a
CfnCustomLineItemProps.BuilderofCfnCustomLineItemProps
-