@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.959Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCostCategory(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrArn()
The unique identifier for your Cost Category.
|
String |
getAttrEffectiveStart()
The Cost Category's effective start date.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDefaultValue()
The default value for the cost category.
|
String |
getName()
The unique name of the Cost Category.
|
String |
getRules()
The array of CostCategoryRule in JSON array format.
|
String |
getRuleVersion()
The rule schema version in this particular Cost Category.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDefaultValue(String value)
The default value for the cost category.
|
void |
setName(String value)
The unique name of the Cost Category.
|
void |
setRules(String value)
The array of CostCategoryRule in JSON array format.
|
void |
setRuleVersion(String value)
The rule schema version in this particular Cost Category.
|
void |
setSplitChargeRules(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, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCostCategory(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCostCategory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCostCategory(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrEffectiveStart()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public 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.
@Stability(value=Stable)
public void setRules(@NotNull
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.
@Stability(value=Stable) @NotNull public String getRuleVersion()
@Stability(value=Stable)
public void setRuleVersion(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDefaultValue()
@Stability(value=Stable)
public void setDefaultValue(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSplitChargeRules()
@Stability(value=Stable)
public void setSplitChargeRules(@Nullable
String value)
Copyright © 2022. All rights reserved.