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, ICostCategoryRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnCostCategory Inherits CfnResource Implements IInspectable, ICostCategoryRef, IConstruct, IDependable, IEnvironmentAware, 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(Construct, string, ICfnCostCategoryProps) | Create a new |
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. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | The |
| CostCategoryRef | A reference to a CostCategory resource. |
| DefaultValue | The default value for the cost category. |
| Name | The unique name of the Cost Category. |
| RuleVersion | The rule schema version in this particular Cost Category. |
| Rules | The array of CostCategoryRule in JSON array format. |
| 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
| ArnForCostCategory(ICostCategoryRef) | The |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnCostCategory(object) | Checks whether the given object is a CfnCostCategory. |
| RenderProperties(IDictionary<string, object>) | The |
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 string
Construct identifier for this resource (unique in its scope).
- props ICfnCostCategoryProps
Resource properties.
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
Properties
AttrArn
The unique identifier for your Cost Category.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrEffectiveStart
The Cost Category's effective start date.
public virtual string AttrEffectiveStart { get; }
Property Value
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
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
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
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
CfnProperties
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.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
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
CostCategoryRef
A reference to a CostCategory resource.
public virtual ICostCategoryReference CostCategoryRef { get; }
Property Value
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
DefaultValue
The default value for the cost category.
public virtual string? DefaultValue { get; set; }
Property Value
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
Name
The unique name of the Cost Category.
public virtual string Name { get; set; }
Property Value
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
RuleVersion
The rule schema version in this particular Cost Category.
public virtual string RuleVersion { get; set; }
Property Value
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
Rules
The array of CostCategoryRule in JSON array format.
public virtual string Rules { get; set; }
Property Value
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
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
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
Tags
Tags to assign to the cost category.
public virtual CfnCostCategory.IResourceTagProperty[]? Tags { get; set; }
Property Value
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
Methods
ArnForCostCategory(ICostCategoryRef)
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.
public static string ArnForCostCategory(ICostCategoryRef resource)
Parameters
- resource ICostCategoryRef
Returns
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"
} }
});
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.
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
IsCfnCostCategory(object)
Checks whether the given object is a CfnCostCategory.
public static bool IsCfnCostCategory(object x)
Parameters
- x object
Returns
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
RenderProperties(IDictionary<string, object>)
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.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
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