@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.579Z") public class CfnCostCategory extends CfnResource implements IInspectable
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 .
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.ce.*; CfnCostCategory cfnCostCategory = CfnCostCategory.Builder.create(this, "MyCfnCostCategory") .name("name") .rules("rules") .ruleVersion("ruleVersion") // the properties below are optional .defaultValue("defaultValue") .splitChargeRules("splitChargeRules") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnCostCategory.Builder
A fluent builder for
CfnCostCategory . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnCostCategory(Construct scope,
java.lang.String id,
CfnCostCategoryProps props)
Create a new `AWS::CE::CostCategory`.
|
protected |
CfnCostCategory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCostCategory(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The unique identifier for your Cost Category.
|
java.lang.String |
getAttrEffectiveStart()
The Cost Category's effective start date.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDefaultValue()
The default value for the cost category.
|
java.lang.String |
getName()
The unique name of the Cost Category.
|
java.lang.String |
getRules()
The array of CostCategoryRule in JSON array format.
|
java.lang.String |
getRuleVersion()
The rule schema version in this particular Cost Category.
|
java.lang.String |
getSplitChargeRules()
The split charge rules that are used to allocate your charges between your Cost Category values.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDefaultValue(java.lang.String value)
The default value for the cost category.
|
void |
setName(java.lang.String value)
The unique name of the Cost Category.
|
void |
setRules(java.lang.String value)
The array of CostCategoryRule in JSON array format.
|
void |
setRuleVersion(java.lang.String value)
The rule schema version in this particular Cost Category.
|
void |
setSplitChargeRules(java.lang.String value)
The split charge rules that are used to allocate your charges between your Cost Category values.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnCostCategory(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCostCategory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnCostCategory(Construct scope, java.lang.String id, CfnCostCategoryProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrEffectiveStart()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getRules()
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.
public void setRules(java.lang.String value)
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.
public java.lang.String getRuleVersion()
public void setRuleVersion(java.lang.String value)
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String value)
public java.lang.String getSplitChargeRules()
public void setSplitChargeRules(java.lang.String value)