Class CfnCostCategory
The AWS::CE::CostCategory
resource creates groupings of cost that you can use across products in the Billing and Cost Management console, such as Cost Explorer and AWS Budgets.
Inherited Members
Namespace: Amazon.CDK.AWS.CE
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCostCategory : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnCostCategory
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
For more information, see Managing Your Costs with Cost Categories in the Billing and Cost Management User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html
CloudformationResource: AWS::CE::CostCategory
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",
Tags = new [] { new ResourceTagProperty {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
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 |
CfnCostCategory(Construct, String, ICfnCostCategoryProps) |
Properties
AttrArn | The unique identifier for your Cost Category. |
AttrEffectiveStart | The Cost Category's effective start date. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
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. |
Tags | Tags to assign to the cost category. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
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
CfnCostCategory(Construct, String, ICfnCostCategoryProps)
public CfnCostCategory(Construct scope, string id, ICfnCostCategoryProps 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 ICfnCostCategoryProps
Resource properties.
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
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
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
Name
The unique name of the Cost Category.
public virtual string Name { get; set; }
Property Value
System.String
Rules
The array of CostCategoryRule in JSON array format.
public virtual string Rules { get; set; }
Property Value
System.String
RuleVersion
The rule schema version in this particular Cost Category.
public virtual string RuleVersion { get; set; }
Property Value
System.String
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
Tags
Tags to assign to the cost category.
public virtual CfnCostCategory.IResourceTagProperty[] Tags { get; set; }
Property Value
CfnCostCategory.IResourceTagProperty[]
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>