Class CfnCustomLineItem
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.billingconductor.CfnCustomLineItem
- All Implemented Interfaces:
IInspectable,ICustomLineItemRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:06.143Z")
@Stability(Stable)
public class CfnCustomLineItem
extends CfnResource
implements IInspectable, ICustomLineItemRef, ITaggable
Creates a custom line item that can be used to create a one-time or recurring, fixed or percentage-based charge that you can apply to a single billing group.
You can apply custom line items to the current or previous billing period. You can create either a fee or a discount custom line item.
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.*;
CfnCustomLineItem cfnCustomLineItem = CfnCustomLineItem.Builder.create(this, "MyCfnCustomLineItem")
.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 TypeClassDescriptionstatic interfaceThe billing period range in which the custom line item request will be applied.static final classA fluent builder forCfnCustomLineItem.static interfaceThe charge details of a custom line item.static interfaceThe charge details of a custom line item.static interfaceA representation of the charge details associated with a percentage custom line item.static interfaceA representation of the line item filter for your custom line item.static interfaceAn object that defines how custom line item charges are presented in the bill, containing specifications for service presentation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.billingconductor.ICustomLineItemRef
ICustomLineItemRef.Jsii$Default, ICustomLineItemRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCustomLineItem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCustomLineItem(software.amazon.jsii.JsiiObjectRef objRef) CfnCustomLineItem(software.constructs.Construct scope, String id, CfnCustomLineItemProps props) Create a newAWS::BillingConductor::CustomLineItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForCustomLineItem(ICustomLineItemRef resource) The 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.The number of resources that are associated to the custom line item.The time created.The custom line item's charge value currency.The most recent time the custom line item was modified.The product code associated with the custom line item.The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.A time range for which the custom line item is effective.The computation rule that determines how the custom line item charges are computed and reflected in the bill.The charge details of a custom line item.A reference to a CustomLineItem resource.The custom line item's description.getName()The custom line item's name.Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under.getTags()Tag Manager which manages the tags for this resource.A map that contains tag keys and tag values that are attached to a custom line item.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCustomLineItem.renderProperties(Map<String, Object> props) voidsetAccountId(String value) The AWS account in which this custom line item will be applied to.voidsetBillingGroupArn(String value) The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.voidsetBillingPeriodRange(IResolvable value) A time range for which the custom line item is effective.voidA time range for which the custom line item is effective.voidsetComputationRule(String value) The computation rule that determines how the custom line item charges are computed and reflected in the bill.voidThe charge details of a custom line item.voidThe charge details of a custom line item.voidsetDescription(String value) The custom line item's description.voidThe custom line item's name.voidConfiguration details specifying how the custom line item charges are presented, including which service the charges are shown under.voidConfiguration details specifying how the custom line item charges are presented, including which service the charges are shown under.voidsetTagsRaw(List<CfnTag> value) A map that contains tag keys and tag values that are attached to a custom line item.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCustomLineItem
protected CfnCustomLineItem(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCustomLineItem
protected CfnCustomLineItem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCustomLineItem
@Stability(Stable) public CfnCustomLineItem(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCustomLineItemProps props) Create a newAWS::BillingConductor::CustomLineItem.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCustomLineItem
@Stability(Stable) @NotNull public static String arnForCustomLineItem(@NotNull ICustomLineItemRef resource) - Parameters:
resource- This parameter is required.
-
isCfnCustomLineItem
Checks whether the given object is a CfnCustomLineItem.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. -
getAttrAssociationSize
The number of resources that are associated to the custom line item. -
getAttrCreationTime
The time created. -
getAttrCurrencyCode
The custom line item's charge value currency.Only one of the valid values can be used.
-
getAttrLastModifiedTime
The most recent time the custom line item was modified. -
getAttrProductCode
The product code associated with the custom line item. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCustomLineItemRef
A reference to a CustomLineItem resource.- Specified by:
getCustomLineItemRefin interfaceICustomLineItemRef
-
getTags
Tag Manager which manages the tags for this resource. -
getBillingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. -
setBillingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. -
getName
The custom line item's name. -
setName
The custom line item's name. -
getAccountId
The AWS account in which this custom line item will be applied to. -
setAccountId
The AWS account in which this custom line item will be applied to. -
getBillingPeriodRange
A time range for which the custom line item is effective.Returns union: either
IResolvableorCfnCustomLineItem.BillingPeriodRangeProperty -
setBillingPeriodRange
A time range for which the custom line item is effective. -
setBillingPeriodRange
@Stability(Stable) public void setBillingPeriodRange(@Nullable CfnCustomLineItem.BillingPeriodRangeProperty value) A time range for which the custom line item is effective. -
getComputationRule
The computation rule that determines how the custom line item charges are computed and reflected in the bill. -
setComputationRule
The computation rule that determines how the custom line item charges are computed and reflected in the bill. -
getCustomLineItemChargeDetails
The charge details of a custom line item.Returns union: either
IResolvableorCfnCustomLineItem.CustomLineItemChargeDetailsProperty -
setCustomLineItemChargeDetails
The charge details of a custom line item. -
setCustomLineItemChargeDetails
@Stability(Stable) public void setCustomLineItemChargeDetails(@Nullable CfnCustomLineItem.CustomLineItemChargeDetailsProperty value) The charge details of a custom line item. -
getDescription
The custom line item's description. -
setDescription
The custom line item's description. -
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 -
setPresentationDetails
Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under. -
setPresentationDetails
@Stability(Stable) public void setPresentationDetails(@Nullable CfnCustomLineItem.PresentationDetailsProperty value) Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under. -
getTagsRaw
A map that contains tag keys and tag values that are attached to a custom line item. -
setTagsRaw
A map that contains tag keys and tag values that are attached to a custom line item.
-