AWS Native is in preview. AWS Classic is fully supported.
aws-native.ce.getCostCategory
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Cost Category enables you to map your cost and usage into meaningful categories. You can use Cost Category to organize your costs using a rule-based engine.
Using getCostCategory
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCostCategory(args: GetCostCategoryArgs, opts?: InvokeOptions): Promise<GetCostCategoryResult>
function getCostCategoryOutput(args: GetCostCategoryOutputArgs, opts?: InvokeOptions): Output<GetCostCategoryResult>
def get_cost_category(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostCategoryResult
def get_cost_category_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostCategoryResult]
func LookupCostCategory(ctx *Context, args *LookupCostCategoryArgs, opts ...InvokeOption) (*LookupCostCategoryResult, error)
func LookupCostCategoryOutput(ctx *Context, args *LookupCostCategoryOutputArgs, opts ...InvokeOption) LookupCostCategoryResultOutput
> Note: This function is named LookupCostCategory
in the Go SDK.
public static class GetCostCategory
{
public static Task<GetCostCategoryResult> InvokeAsync(GetCostCategoryArgs args, InvokeOptions? opts = null)
public static Output<GetCostCategoryResult> Invoke(GetCostCategoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCostCategoryResult> getCostCategory(GetCostCategoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ce:getCostCategory
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- Cost category ARN
- Arn string
- Cost category ARN
- arn String
- Cost category ARN
- arn string
- Cost category ARN
- arn str
- Cost category ARN
- arn String
- Cost category ARN
getCostCategory Result
The following output properties are available:
- Arn string
- Cost category ARN
- Default
Value string - The default value for the cost category
- Effective
Start string - The Cost Category's effective start date.
- Rule
Version Pulumi.Aws Native. Ce. Cost Category Rule Version - The rule schema version in this particular Cost Category.
- Rules string
- JSON array format of Expression in Billing and Cost Management API
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- Arn string
- Cost category ARN
- Default
Value string - The default value for the cost category
- Effective
Start string - The Cost Category's effective start date.
- Rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- Rules string
- JSON array format of Expression in Billing and Cost Management API
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- arn String
- Cost category ARN
- default
Value String - The default value for the cost category
- effective
Start String - The Cost Category's effective start date.
- rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules String
- JSON array format of Expression in Billing and Cost Management API
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- arn string
- Cost category ARN
- default
Value string - The default value for the cost category
- effective
Start string - The Cost Category's effective start date.
- rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules string
- JSON array format of Expression in Billing and Cost Management API
- split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- arn str
- Cost category ARN
- default_
value str - The default value for the cost category
- effective_
start str - The Cost Category's effective start date.
- rule_
version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules str
- JSON array format of Expression in Billing and Cost Management API
- split_
charge_ strrules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- arn String
- Cost category ARN
- default
Value String - The default value for the cost category
- effective
Start String - The Cost Category's effective start date.
- rule
Version "CostCategory Expression.v1" - The rule schema version in this particular Cost Category.
- rules String
- JSON array format of Expression in Billing and Cost Management API
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
Supporting Types
CostCategoryRuleVersion
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.