|
720 | 720 | "ProcessingStatus":{
|
721 | 721 | "shape":"CostCategoryProcessingStatusList",
|
722 | 722 | "documentation":"<p> The list of processing statuses for Cost Management products for a specific cost category. </p>"
|
723 |
| - } |
| 723 | + }, |
| 724 | + "DefaultValue":{"shape":"CostCategoryValue"} |
724 | 725 | },
|
725 | 726 | "documentation":"<p>The structure of Cost Categories. This includes detailed metadata and the set of rules for the <code>CostCategory</code> object.</p>"
|
726 | 727 | },
|
| 728 | + "CostCategoryInheritedValueDimension":{ |
| 729 | + "type":"structure", |
| 730 | + "members":{ |
| 731 | + "DimensionName":{ |
| 732 | + "shape":"CostCategoryInheritedValueDimensionName", |
| 733 | + "documentation":"<p>The name of dimension for which to group costs.</p> <p>If you specify <code>LINKED_ACCOUNT_NAME</code>, the cost category value will be based on account name. If you specify <code>TAG</code>, the cost category value will be based on the value of the specified tag key.</p>" |
| 734 | + }, |
| 735 | + "DimensionKey":{ |
| 736 | + "shape":"GenericString", |
| 737 | + "documentation":"<p>The key to extract cost category values.</p>" |
| 738 | + } |
| 739 | + }, |
| 740 | + "documentation":"<p>When creating or updating a cost category, you can define the <code>CostCategoryRule</code> rule type as <code>INHERITED_VALUE</code>. This rule type adds the flexibility of defining a rule that dynamically inherits the cost category value from the dimension value defined by <code>CostCategoryInheritedValueDimension</code>. For example, if you wanted to dynamically group costs based on the value of a specific tag key, you would first choose an inherited value rule type, then choose the tag dimension and specify the tag key to use.</p>" |
| 741 | + }, |
| 742 | + "CostCategoryInheritedValueDimensionName":{ |
| 743 | + "type":"string", |
| 744 | + "enum":[ |
| 745 | + "LINKED_ACCOUNT_NAME", |
| 746 | + "TAG" |
| 747 | + ] |
| 748 | + }, |
727 | 749 | "CostCategoryMaxResults":{
|
728 | 750 | "type":"integer",
|
729 | 751 | "max":100,
|
|
732 | 754 | "CostCategoryName":{
|
733 | 755 | "type":"string",
|
734 | 756 | "documentation":"<p>The unique name of the Cost Category.</p>",
|
735 |
| - "max":255, |
| 757 | + "max":50, |
736 | 758 | "min":1,
|
737 | 759 | "pattern":"^(?! )[\\p{L}\\p{N}\\p{Z}-_]*(?<! )$"
|
738 | 760 | },
|
|
785 | 807 | "Values":{
|
786 | 808 | "shape":"CostCategoryValuesList",
|
787 | 809 | "documentation":"<p> A list of unique cost category values in a specific cost category. </p>"
|
788 |
| - } |
| 810 | + }, |
| 811 | + "DefaultValue":{"shape":"CostCategoryValue"} |
789 | 812 | },
|
790 | 813 | "documentation":"<p>A reference to a Cost Category containing only enough information to identify the Cost Category.</p> <p>You can use this information to retrieve the full Cost Category information using <code>DescribeCostCategory</code>.</p>"
|
791 | 814 | },
|
|
795 | 818 | },
|
796 | 819 | "CostCategoryRule":{
|
797 | 820 | "type":"structure",
|
798 |
| - "required":[ |
799 |
| - "Value", |
800 |
| - "Rule" |
801 |
| - ], |
802 | 821 | "members":{
|
803 | 822 | "Value":{"shape":"CostCategoryValue"},
|
804 | 823 | "Rule":{
|
805 | 824 | "shape":"Expression",
|
806 | 825 | "documentation":"<p>An <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html\">Expression</a> object used to categorize costs. This supports dimensions, tags, and nested expressions. Currently the only dimensions supported are <code>LINKED_ACCOUNT</code>, <code>SERVICE_CODE</code>, <code>RECORD_TYPE</code>, and <code>LINKED_ACCOUNT_NAME</code>.</p> <p>Root level <code>OR</code> is not supported. We recommend that you create a separate rule instead.</p> <p> <code>RECORD_TYPE</code> is a dimension used for Cost Explorer APIs, and is also supported for Cost Category expressions. This dimension uses different terms, depending on whether you're using the console or API/JSON editor. For a detailed comparison, see <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html#cost-categories-terms\">Term Comparisons</a> in the <i>AWS Billing and Cost Management User Guide</i>.</p>"
|
| 826 | + }, |
| 827 | + "InheritedValue":{ |
| 828 | + "shape":"CostCategoryInheritedValueDimension", |
| 829 | + "documentation":"<p>The value the line item will be categorized as, if the line item contains the matched dimension.</p>" |
| 830 | + }, |
| 831 | + "Type":{ |
| 832 | + "shape":"CostCategoryRuleType", |
| 833 | + "documentation":"<p>You can define the <code>CostCategoryRule</code> rule type as either <code>REGULAR</code> or <code>INHERITED_VALUE</code>. The <code>INHERITED_VALUE</code> rule type adds the flexibility of defining a rule that dynamically inherits the cost category value from the dimension value defined by <code>CostCategoryInheritedValueDimension</code>. For example, if you wanted to dynamically group costs based on the value of a specific tag key, you would first choose an inherited value rule type, then choose the tag dimension and specify the tag key to use.</p>" |
807 | 834 | }
|
808 | 835 | },
|
809 | 836 | "documentation":"<p>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.</p>"
|
810 | 837 | },
|
| 838 | + "CostCategoryRuleType":{ |
| 839 | + "type":"string", |
| 840 | + "enum":[ |
| 841 | + "REGULAR", |
| 842 | + "INHERITED_VALUE" |
| 843 | + ] |
| 844 | + }, |
811 | 845 | "CostCategoryRuleVersion":{
|
812 | 846 | "type":"string",
|
813 | 847 | "documentation":"<p>The rule schema version in this particular Cost Category.</p>",
|
|
832 | 866 | },
|
833 | 867 | "CostCategoryValue":{
|
834 | 868 | "type":"string",
|
835 |
| - "documentation":"<p>The value a line item will be categorized as, if it matches the rule.</p>", |
836 |
| - "max":255, |
| 869 | + "documentation":"<p>The default value for the cost category.</p>", |
| 870 | + "max":50, |
837 | 871 | "min":1,
|
838 | 872 | "pattern":"^(?! )[\\p{L}\\p{N}\\p{Z}-_]*(?<! )$"
|
839 | 873 | },
|
|
1005 | 1039 | "Rules":{
|
1006 | 1040 | "shape":"CostCategoryRulesList",
|
1007 | 1041 | "documentation":"<p>The Cost Category rules used to categorize costs. For more information, see <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html\">CostCategoryRule</a>.</p>"
|
1008 |
| - } |
| 1042 | + }, |
| 1043 | + "DefaultValue":{"shape":"CostCategoryValue"} |
1009 | 1044 | }
|
1010 | 1045 | },
|
1011 | 1046 | "CreateCostCategoryDefinitionResponse":{
|
|
3981 | 4016 | "Rules":{
|
3982 | 4017 | "shape":"CostCategoryRulesList",
|
3983 | 4018 | "documentation":"<p>The <code>Expression</code> object used to categorize costs. For more information, see <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html\">CostCategoryRule </a>. </p>"
|
3984 |
| - } |
| 4019 | + }, |
| 4020 | + "DefaultValue":{"shape":"CostCategoryValue"} |
3985 | 4021 | }
|
3986 | 4022 | },
|
3987 | 4023 | "UpdateCostCategoryDefinitionResponse":{
|
|
0 commit comments