Class CfnCustomLineItem
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.billingconductor.CfnCustomLineItem
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:29:55.827Z")
@Stability(Stable)
public class CfnCustomLineItem
extends CfnResource
implements IInspectable
A CloudFormation 
AWS::BillingConductor::CustomLineItem.
 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
         .billingPeriodRange(BillingPeriodRangeProperty.builder()
                 .exclusiveEndBillingPeriod("exclusiveEndBillingPeriod")
                 .inclusiveStartBillingPeriod("inclusiveStartBillingPeriod")
                 .build())
         .customLineItemChargeDetails(CustomLineItemChargeDetailsProperty.builder()
                 .type("type")
                 // the properties below are optional
                 .flat(CustomLineItemFlatChargeDetailsProperty.builder()
                         .chargeValue(123)
                         .build())
                 .percentage(CustomLineItemPercentageChargeDetailsProperty.builder()
                         .percentageValue(123)
                         // the properties below are optional
                         .childAssociatedResources(List.of("childAssociatedResources"))
                         .build())
                 .build())
         .description("description")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 - 
Nested Class SummaryNested 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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnCustomLineItem(Construct scope, String id, CfnCustomLineItemProps props) Create a newAWS::BillingConductor::CustomLineItem.protectedCfnCustomLineItem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCustomLineItem(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionThe 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 charge details of a custom line item.The custom line item's description.getName()The custom line item's name.getTags()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.renderProperties(Map<String, Object> props) 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.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.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnCustomLineItemprotected CfnCustomLineItem(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnCustomLineItemprotected CfnCustomLineItem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnCustomLineItem@Stability(Stable) public CfnCustomLineItem(@NotNull Construct scope, @NotNull String id, @NotNull CfnCustomLineItemProps props) Create a newAWS::BillingConductor::CustomLineItem.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrArnThe Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
- 
getAttrAssociationSizeThe number of resources that are associated to the custom line item.
- 
getAttrCreationTimeThe time created.
- 
getAttrCurrencyCodeThe custom line item's charge value currency.Only one of the valid values can be used. 
- 
getAttrLastModifiedTimeThe most recent time the custom line item was modified.
- 
getAttrProductCodeThe product code associated with the custom line item.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getTagsA map that contains tag keys and tag values that are attached to a custom line item.
- 
getBillingGroupArnThe Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
- 
setBillingGroupArnThe Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
- 
getNameThe custom line item's name.
- 
setNameThe custom line item's name.
- 
getBillingPeriodRangeA time range for which the custom line item is effective.
- 
setBillingPeriodRangeA 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.
- 
getCustomLineItemChargeDetailsThe charge details of a custom line item.It should contain only one of FlatorPercentage.
- 
setCustomLineItemChargeDetailsThe charge details of a custom line item.It should contain only one of FlatorPercentage.
- 
setCustomLineItemChargeDetails@Stability(Stable) public void setCustomLineItemChargeDetails(@Nullable CfnCustomLineItem.CustomLineItemChargeDetailsProperty value) The charge details of a custom line item.It should contain only one of FlatorPercentage.
- 
getDescriptionThe custom line item's description.This is shown on the Bills page in association with the charge value. 
- 
setDescriptionThe custom line item's description.This is shown on the Bills page in association with the charge value. 
 
-