Class CfnCostCategory
A CloudFormation AWS::CE::CostCategory
.
Inherited Members
Namespace: Amazon.CDK.AWS.CE
Assembly: Amazon.CDK.AWS.CE.dll
Syntax (csharp)
public class CfnCostCategory : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnCostCategory
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::CE::CostCategory
resource creates groupings of cost that you can use across products in the AWS Billing and Cost Management console, such as Cost Explorer and AWS Budgets. For more information, see Managing Your Costs with Cost Categories in the AWS Billing and Cost Management User Guide .
CloudformationResource: AWS::CE::CostCategory
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html
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.CE;
var cfnCostCategory = new CfnCostCategory(this, "MyCfnCostCategory", new CfnCostCategoryProps {
Name = "name",
Rules = "rules",
RuleVersion = "ruleVersion",
// the properties below are optional
DefaultValue = "defaultValue",
SplitChargeRules = "splitChargeRules"
});
Synopsis
Constructors
CfnCostCategory(Construct, String, ICfnCostCategoryProps) | Create a new |
CfnCostCategory(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnCostCategory(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | The unique identifier for your Cost Category. |
AttrEffectiveStart | The Cost Category's effective start date. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DefaultValue | The default value for the cost category. |
Name | The unique name of the Cost Category. |
Rules | The array of CostCategoryRule in JSON array format. |
RuleVersion | The rule schema version in this particular Cost Category. |
SplitChargeRules | The split charge rules that are used to allocate your charges between your Cost Category values. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnCostCategory(Construct, String, ICfnCostCategoryProps)
Create a new AWS::CE::CostCategory
.
public CfnCostCategory(Construct scope, string id, ICfnCostCategoryProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnCostCategoryProps
- resource properties.
CfnCostCategory(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnCostCategory(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnCostCategory(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnCostCategory(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
The unique identifier for your Cost Category.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrEffectiveStart
The Cost Category's effective start date.
public virtual string AttrEffectiveStart { get; }
Property Value
System.String
Remarks
CloudformationAttribute: EffectiveStart
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
DefaultValue
The default value for the cost category.
public virtual string DefaultValue { get; set; }
Property Value
System.String
Remarks
Name
The unique name of the Cost Category.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
Rules
The array of CostCategoryRule in JSON array format.
public virtual string Rules { get; set; }
Property Value
System.String
Remarks
Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
RuleVersion
The rule schema version in this particular Cost Category.
public virtual string RuleVersion { get; set; }
Property Value
System.String
Remarks
SplitChargeRules
The split charge rules that are used to allocate your charges between your Cost Category values.
public virtual string SplitChargeRules { get; set; }
Property Value
System.String
Remarks
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>