UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

64 lines (63 loc) 2.8 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a cost allocation rule by rule name and billing account or enterprise enrollment. * * Uses Azure REST API version 2024-08-01. * * Other available API versions: 2020-03-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native costmanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCostAllocationRule(args: GetCostAllocationRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetCostAllocationRuleResult>; export interface GetCostAllocationRuleArgs { /** * BillingAccount ID */ billingAccountId: string; /** * Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters. */ ruleName: string; } /** * The cost allocation rule model definition */ export interface GetCostAllocationRuleResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Azure Resource Manager Id for the rule. This is a read ony value. */ readonly id: string; /** * Name of the rule. This is a read only value. */ readonly name: string; /** * Cost allocation rule properties */ readonly properties: outputs.costmanagement.CostAllocationRulePropertiesResponse; /** * Resource type of the rule. This is a read only value of Microsoft.CostManagement/CostAllocationRule. */ readonly type: string; } /** * Get a cost allocation rule by rule name and billing account or enterprise enrollment. * * Uses Azure REST API version 2024-08-01. * * Other available API versions: 2020-03-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native costmanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getCostAllocationRuleOutput(args: GetCostAllocationRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCostAllocationRuleResult>; export interface GetCostAllocationRuleOutputArgs { /** * BillingAccount ID */ billingAccountId: pulumi.Input<string>; /** * Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters. */ ruleName: pulumi.Input<string>; }