Class CfnCustomLineItem
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.
Inherited Members
Namespace: Amazon.CDK.AWS.BillingConductor
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCustomLineItem : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnCustomLineItem
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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.
CloudformationResource: AWS::BillingConductor::CustomLineItem
ExampleMetadata: fixture=_generated
Examples
// 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 cfnCustomLineItem = new CfnCustomLineItem(this, "MyCfnCustomLineItem", new CfnCustomLineItemProps {
BillingGroupArn = "billingGroupArn",
Name = "name",
// the properties below are optional
AccountId = "accountId",
BillingPeriodRange = new BillingPeriodRangeProperty {
ExclusiveEndBillingPeriod = "exclusiveEndBillingPeriod",
InclusiveStartBillingPeriod = "inclusiveStartBillingPeriod"
},
CustomLineItemChargeDetails = new CustomLineItemChargeDetailsProperty {
Type = "type",
// the properties below are optional
Flat = new CustomLineItemFlatChargeDetailsProperty {
ChargeValue = 123
},
LineItemFilters = new [] { new LineItemFilterProperty {
Attribute = "attribute",
MatchOption = "matchOption",
Values = new [] { "values" }
} },
Percentage = new CustomLineItemPercentageChargeDetailsProperty {
PercentageValue = 123,
// the properties below are optional
ChildAssociatedResources = new [] { "childAssociatedResources" }
}
},
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnCustomLineItem(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnCustomLineItem(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnCustomLineItem(Construct, String, ICfnCustomLineItemProps) |
Properties
AccountId | The AWS account in which this custom line item will be applied to. |
AttrArn | The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. |
AttrAssociationSize | The number of resources that are associated to the custom line item. |
AttrCreationTime | The time created. |
AttrCurrencyCode | The custom line item's charge value currency. |
AttrLastModifiedTime | The most recent time the custom line item was modified. |
AttrProductCode | The product code associated with the custom line item. |
BillingGroupArn | The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. |
BillingPeriodRange | A time range for which the custom line item is effective. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
CustomLineItemChargeDetails | The charge details of a custom line item. |
Description | The custom line item's description. |
Name | The custom line item's name. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | A map that contains tag keys and tag values that are attached to a custom line item. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnCustomLineItem(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnCustomLineItem(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnCustomLineItem(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnCustomLineItem(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnCustomLineItem(Construct, String, ICfnCustomLineItemProps)
public CfnCustomLineItem(Construct scope, string id, ICfnCustomLineItemProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnCustomLineItemProps
Resource properties.
Properties
AccountId
The AWS account in which this custom line item will be applied to.
public virtual string AccountId { get; set; }
Property Value
System.String
AttrArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrAssociationSize
The number of resources that are associated to the custom line item.
public virtual double AttrAssociationSize { get; }
Property Value
System.Double
Remarks
CloudformationAttribute: AssociationSize
AttrCreationTime
The time created.
public virtual double AttrCreationTime { get; }
Property Value
System.Double
Remarks
CloudformationAttribute: CreationTime
AttrCurrencyCode
The custom line item's charge value currency.
public virtual string AttrCurrencyCode { get; }
Property Value
System.String
Remarks
Only one of the valid values can be used.
CloudformationAttribute: CurrencyCode
AttrLastModifiedTime
The most recent time the custom line item was modified.
public virtual double AttrLastModifiedTime { get; }
Property Value
System.Double
Remarks
CloudformationAttribute: LastModifiedTime
AttrProductCode
The product code associated with the custom line item.
public virtual string AttrProductCode { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ProductCode
BillingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
public virtual string BillingGroupArn { get; set; }
Property Value
System.String
BillingPeriodRange
A time range for which the custom line item is effective.
public virtual object BillingPeriodRange { get; set; }
Property Value
System.Object
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
CustomLineItemChargeDetails
The charge details of a custom line item.
public virtual object CustomLineItemChargeDetails { get; set; }
Property Value
System.Object
Description
The custom line item's description.
public virtual string Description { get; set; }
Property Value
System.String
Name
The custom line item's name.
public virtual string Name { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A map that contains tag keys and tag values that are attached to a custom line item.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>