UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

104 lines (103 loc) 2.99 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Provides details about a specific CostExplorer Cost Category. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.costexplorer.getCostCategory({ * costCategoryArn: "costCategoryARN", * }); * ``` */ export declare function getCostCategory(args: GetCostCategoryArgs, opts?: pulumi.InvokeOptions): Promise<GetCostCategoryResult>; /** * A collection of arguments for invoking getCostCategory. */ export interface GetCostCategoryArgs { /** * Unique name for the Cost Category. */ costCategoryArn: string; /** * Configuration block for the specific `Tag` to use for `Expression`. See below. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getCostCategory. */ export interface GetCostCategoryResult { readonly costCategoryArn: string; /** * Default value for the cost category. */ readonly defaultValue: string; /** * Effective end data of your Cost Category. */ readonly effectiveEnd: string; /** * Effective state data of your Cost Category. */ readonly effectiveStart: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * Rule schema version in this particular Cost Category. */ readonly ruleVersion: string; /** * Configuration block for the `Expression` object used to categorize costs. See below. */ readonly rules: outputs.costexplorer.GetCostCategoryRule[]; /** * Configuration block for the split charge rules used to allocate your charges between your Cost Category values. See below. */ readonly splitChargeRules: outputs.costexplorer.GetCostCategorySplitChargeRule[]; /** * Configuration block for the specific `Tag` to use for `Expression`. See below. */ readonly tags: { [key: string]: string; }; } /** * Provides details about a specific CostExplorer Cost Category. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.costexplorer.getCostCategory({ * costCategoryArn: "costCategoryARN", * }); * ``` */ export declare function getCostCategoryOutput(args: GetCostCategoryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCostCategoryResult>; /** * A collection of arguments for invoking getCostCategory. */ export interface GetCostCategoryOutputArgs { /** * Unique name for the Cost Category. */ costCategoryArn: pulumi.Input<string>; /** * Configuration block for the specific `Tag` to use for `Expression`. See below. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }