azure-native.costmanagement.CostAllocationRule
Explore with Pulumi AI
The cost allocation rule model definition API Version: 2020-03-01-preview.
Example Usage
CostAllocationRulesCreateResourceGroup
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var costAllocationRule = new AzureNative.CostManagement.CostAllocationRule("costAllocationRule", new()
{
BillingAccountId = "100",
Properties = new AzureNative.CostManagement.Inputs.CostAllocationRulePropertiesArgs
{
Description = "This is a testRule",
Details = new AzureNative.CostManagement.Inputs.CostAllocationRuleDetailsArgs
{
SourceResources = new[]
{
new AzureNative.CostManagement.Inputs.SourceCostAllocationResourceArgs
{
Name = "ResourceGroupName",
ResourceType = "Dimension",
Values = new[]
{
"sampleRG",
"secondRG",
},
},
},
TargetResources = new[]
{
new AzureNative.CostManagement.Inputs.TargetCostAllocationResourceArgs
{
Name = "ResourceGroupName",
PolicyType = "FixedProportion",
ResourceType = "Dimension",
Values = new[]
{
new AzureNative.CostManagement.Inputs.CostAllocationProportionArgs
{
Name = "destinationRG",
Percentage = 45,
},
new AzureNative.CostManagement.Inputs.CostAllocationProportionArgs
{
Name = "destinationRG2",
Percentage = 54,
},
},
},
},
},
Status = "Active",
},
RuleName = "testRule",
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.CostAllocationRule;
import com.pulumi.azurenative.costmanagement.CostAllocationRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var costAllocationRule = new CostAllocationRule("costAllocationRule", CostAllocationRuleArgs.builder()
.billingAccountId("100")
.properties(Map.ofEntries(
Map.entry("description", "This is a testRule"),
Map.entry("details", Map.ofEntries(
Map.entry("sourceResources", Map.ofEntries(
Map.entry("name", "ResourceGroupName"),
Map.entry("resourceType", "Dimension"),
Map.entry("values",
"sampleRG",
"secondRG")
)),
Map.entry("targetResources", Map.ofEntries(
Map.entry("name", "ResourceGroupName"),
Map.entry("policyType", "FixedProportion"),
Map.entry("resourceType", "Dimension"),
Map.entry("values",
Map.ofEntries(
Map.entry("name", "destinationRG"),
Map.entry("percentage", 45)
),
Map.ofEntries(
Map.entry("name", "destinationRG2"),
Map.entry("percentage", 54)
))
))
)),
Map.entry("status", "Active")
))
.ruleName("testRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
cost_allocation_rule = azure_native.costmanagement.CostAllocationRule("costAllocationRule",
billing_account_id="100",
properties=azure_native.costmanagement.CostAllocationRulePropertiesResponseArgs(
description="This is a testRule",
details={
"sourceResources": [azure_native.costmanagement.SourceCostAllocationResourceArgs(
name="ResourceGroupName",
resource_type="Dimension",
values=[
"sampleRG",
"secondRG",
],
)],
"targetResources": [{
"name": "ResourceGroupName",
"policyType": "FixedProportion",
"resourceType": "Dimension",
"values": [
azure_native.costmanagement.CostAllocationProportionArgs(
name="destinationRG",
percentage=45,
),
azure_native.costmanagement.CostAllocationProportionArgs(
name="destinationRG2",
percentage=54,
),
],
}],
},
status="Active",
),
rule_name="testRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const costAllocationRule = new azure_native.costmanagement.CostAllocationRule("costAllocationRule", {
billingAccountId: "100",
properties: {
description: "This is a testRule",
details: {
sourceResources: [{
name: "ResourceGroupName",
resourceType: "Dimension",
values: [
"sampleRG",
"secondRG",
],
}],
targetResources: [{
name: "ResourceGroupName",
policyType: "FixedProportion",
resourceType: "Dimension",
values: [
{
name: "destinationRG",
percentage: 45,
},
{
name: "destinationRG2",
percentage: 54,
},
],
}],
},
status: "Active",
},
ruleName: "testRule",
});
resources:
costAllocationRule:
type: azure-native:costmanagement:CostAllocationRule
properties:
billingAccountId: '100'
properties:
description: This is a testRule
details:
sourceResources:
- name: ResourceGroupName
resourceType: Dimension
values:
- sampleRG
- secondRG
targetResources:
- name: ResourceGroupName
policyType: FixedProportion
resourceType: Dimension
values:
- name: destinationRG
percentage: 45
- name: destinationRG2
percentage: 54
status: Active
ruleName: testRule
CostAllocationRulesCreateTag
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var costAllocationRule = new AzureNative.CostManagement.CostAllocationRule("costAllocationRule", new()
{
BillingAccountId = "100",
Properties = new AzureNative.CostManagement.Inputs.CostAllocationRulePropertiesArgs
{
Description = "This is a testRule",
Details = new AzureNative.CostManagement.Inputs.CostAllocationRuleDetailsArgs
{
SourceResources = new[]
{
new AzureNative.CostManagement.Inputs.SourceCostAllocationResourceArgs
{
Name = "category",
ResourceType = "Tag",
Values = new[]
{
"devops",
},
},
},
TargetResources = new[]
{
new AzureNative.CostManagement.Inputs.TargetCostAllocationResourceArgs
{
Name = "ResourceGroupName",
PolicyType = "FixedProportion",
ResourceType = "Dimension",
Values = new[]
{
new AzureNative.CostManagement.Inputs.CostAllocationProportionArgs
{
Name = "destinationRG",
Percentage = 33.33,
},
new AzureNative.CostManagement.Inputs.CostAllocationProportionArgs
{
Name = "destinationRG2",
Percentage = 33.33,
},
new AzureNative.CostManagement.Inputs.CostAllocationProportionArgs
{
Name = "destinationRG3",
Percentage = 33.34,
},
},
},
},
},
Status = "Active",
},
RuleName = "testRule",
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.CostAllocationRule;
import com.pulumi.azurenative.costmanagement.CostAllocationRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var costAllocationRule = new CostAllocationRule("costAllocationRule", CostAllocationRuleArgs.builder()
.billingAccountId("100")
.properties(Map.ofEntries(
Map.entry("description", "This is a testRule"),
Map.entry("details", Map.ofEntries(
Map.entry("sourceResources", Map.ofEntries(
Map.entry("name", "category"),
Map.entry("resourceType", "Tag"),
Map.entry("values", "devops")
)),
Map.entry("targetResources", Map.ofEntries(
Map.entry("name", "ResourceGroupName"),
Map.entry("policyType", "FixedProportion"),
Map.entry("resourceType", "Dimension"),
Map.entry("values",
Map.ofEntries(
Map.entry("name", "destinationRG"),
Map.entry("percentage", 33.33)
),
Map.ofEntries(
Map.entry("name", "destinationRG2"),
Map.entry("percentage", 33.33)
),
Map.ofEntries(
Map.entry("name", "destinationRG3"),
Map.entry("percentage", 33.34)
))
))
)),
Map.entry("status", "Active")
))
.ruleName("testRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
cost_allocation_rule = azure_native.costmanagement.CostAllocationRule("costAllocationRule",
billing_account_id="100",
properties=azure_native.costmanagement.CostAllocationRulePropertiesResponseArgs(
description="This is a testRule",
details={
"sourceResources": [azure_native.costmanagement.SourceCostAllocationResourceArgs(
name="category",
resource_type="Tag",
values=["devops"],
)],
"targetResources": [{
"name": "ResourceGroupName",
"policyType": "FixedProportion",
"resourceType": "Dimension",
"values": [
azure_native.costmanagement.CostAllocationProportionArgs(
name="destinationRG",
percentage=33.33,
),
azure_native.costmanagement.CostAllocationProportionArgs(
name="destinationRG2",
percentage=33.33,
),
azure_native.costmanagement.CostAllocationProportionArgs(
name="destinationRG3",
percentage=33.34,
),
],
}],
},
status="Active",
),
rule_name="testRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const costAllocationRule = new azure_native.costmanagement.CostAllocationRule("costAllocationRule", {
billingAccountId: "100",
properties: {
description: "This is a testRule",
details: {
sourceResources: [{
name: "category",
resourceType: "Tag",
values: ["devops"],
}],
targetResources: [{
name: "ResourceGroupName",
policyType: "FixedProportion",
resourceType: "Dimension",
values: [
{
name: "destinationRG",
percentage: 33.33,
},
{
name: "destinationRG2",
percentage: 33.33,
},
{
name: "destinationRG3",
percentage: 33.34,
},
],
}],
},
status: "Active",
},
ruleName: "testRule",
});
resources:
costAllocationRule:
type: azure-native:costmanagement:CostAllocationRule
properties:
billingAccountId: '100'
properties:
description: This is a testRule
details:
sourceResources:
- name: category
resourceType: Tag
values:
- devops
targetResources:
- name: ResourceGroupName
policyType: FixedProportion
resourceType: Dimension
values:
- name: destinationRG
percentage: 33.33
- name: destinationRG2
percentage: 33.33
- name: destinationRG3
percentage: 33.34
status: Active
ruleName: testRule
Create CostAllocationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CostAllocationRule(name: string, args: CostAllocationRuleArgs, opts?: CustomResourceOptions);
@overload
def CostAllocationRule(resource_name: str,
args: CostAllocationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CostAllocationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing_account_id: Optional[str] = None,
properties: Optional[CostAllocationRulePropertiesArgs] = None,
rule_name: Optional[str] = None)
func NewCostAllocationRule(ctx *Context, name string, args CostAllocationRuleArgs, opts ...ResourceOption) (*CostAllocationRule, error)
public CostAllocationRule(string name, CostAllocationRuleArgs args, CustomResourceOptions? opts = null)
public CostAllocationRule(String name, CostAllocationRuleArgs args)
public CostAllocationRule(String name, CostAllocationRuleArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:CostAllocationRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CostAllocationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CostAllocationRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CostAllocationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CostAllocationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CostAllocationRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var costAllocationRuleResource = new AzureNative.Costmanagement.CostAllocationRule("costAllocationRuleResource", new()
{
BillingAccountId = "string",
Properties =
{
{ "details",
{
{ "sourceResources", new[]
{
{
{ "name", "string" },
{ "resourceType", "string" },
{ "values", new[]
{
"string",
} },
},
} },
{ "targetResources", new[]
{
{
{ "name", "string" },
{ "policyType", "string" },
{ "resourceType", "string" },
{ "values", new[]
{
{
{ "name", "string" },
{ "percentage", 0 },
},
} },
},
} },
} },
{ "status", "string" },
{ "description", "string" },
},
RuleName = "string",
});
example, err := costmanagement.NewCostAllocationRule(ctx, "costAllocationRuleResource", &costmanagement.CostAllocationRuleArgs{
BillingAccountId: "string",
Properties: map[string]interface{}{
"details": map[string]interface{}{
"sourceResources": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"resourceType": "string",
"values": []string{
"string",
},
},
},
"targetResources": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"policyType": "string",
"resourceType": "string",
"values": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"percentage": 0,
},
},
},
},
},
"status": "string",
"description": "string",
},
RuleName: "string",
})
var costAllocationRuleResource = new CostAllocationRule("costAllocationRuleResource", CostAllocationRuleArgs.builder()
.billingAccountId("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.ruleName("string")
.build());
cost_allocation_rule_resource = azure_native.costmanagement.CostAllocationRule("costAllocationRuleResource",
billing_account_id=string,
properties={
details: {
sourceResources: [{
name: string,
resourceType: string,
values: [string],
}],
targetResources: [{
name: string,
policyType: string,
resourceType: string,
values: [{
name: string,
percentage: 0,
}],
}],
},
status: string,
description: string,
},
rule_name=string)
const costAllocationRuleResource = new azure_native.costmanagement.CostAllocationRule("costAllocationRuleResource", {
billingAccountId: "string",
properties: {
details: {
sourceResources: [{
name: "string",
resourceType: "string",
values: ["string"],
}],
targetResources: [{
name: "string",
policyType: "string",
resourceType: "string",
values: [{
name: "string",
percentage: 0,
}],
}],
},
status: "string",
description: "string",
},
ruleName: "string",
});
type: azure-native:costmanagement:CostAllocationRule
properties:
billingAccountId: string
properties:
description: string
details:
sourceResources:
- name: string
resourceType: string
values:
- string
targetResources:
- name: string
policyType: string
resourceType: string
values:
- name: string
percentage: 0
status: string
ruleName: string
CostAllocationRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CostAllocationRule resource accepts the following input properties:
- Billing
Account stringId - BillingAccount ID
- Properties
Pulumi.
Azure Native. Cost Management. Inputs. Cost Allocation Rule Properties - Cost allocation rule properties
- Rule
Name string - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
- Billing
Account stringId - BillingAccount ID
- Properties
Cost
Allocation Rule Properties Args - Cost allocation rule properties
- Rule
Name string - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
- billing
Account StringId - BillingAccount ID
- properties
Cost
Allocation Rule Properties - Cost allocation rule properties
- rule
Name String - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
- billing
Account stringId - BillingAccount ID
- properties
Cost
Allocation Rule Properties - Cost allocation rule properties
- rule
Name string - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
- billing_
account_ strid - BillingAccount ID
- properties
Cost
Allocation Rule Properties Args - Cost allocation rule properties
- rule_
name str - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
- billing
Account StringId - BillingAccount ID
- properties Property Map
- Cost allocation rule properties
- rule
Name String - Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the CostAllocationRule resource produces the following output properties:
Supporting Types
CostAllocationPolicyType, CostAllocationPolicyTypeArgs
- Fixed
Proportion - FixedProportion
- Cost
Allocation Policy Type Fixed Proportion - FixedProportion
- Fixed
Proportion - FixedProportion
- Fixed
Proportion - FixedProportion
- FIXED_PROPORTION
- FixedProportion
- "Fixed
Proportion" - FixedProportion
CostAllocationProportion, CostAllocationProportionArgs
- Name string
- Target resource for cost allocation
- Percentage double
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- Name string
- Target resource for cost allocation
- Percentage float64
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name String
- Target resource for cost allocation
- percentage Double
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name string
- Target resource for cost allocation
- percentage number
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name str
- Target resource for cost allocation
- percentage float
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name String
- Target resource for cost allocation
- percentage Number
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
CostAllocationProportionResponse, CostAllocationProportionResponseArgs
- Name string
- Target resource for cost allocation
- Percentage double
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- Name string
- Target resource for cost allocation
- Percentage float64
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name String
- Target resource for cost allocation
- percentage Double
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name string
- Target resource for cost allocation
- percentage number
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name str
- Target resource for cost allocation
- percentage float
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
- name String
- Target resource for cost allocation
- percentage Number
- Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.
CostAllocationResourceType, CostAllocationResourceTypeArgs
- Dimension
- DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- Tag
- TagAllocates cost based on Azure Tag key value pairs.
- Cost
Allocation Resource Type Dimension - DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- Cost
Allocation Resource Type Tag - TagAllocates cost based on Azure Tag key value pairs.
- Dimension
- DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- Tag
- TagAllocates cost based on Azure Tag key value pairs.
- Dimension
- DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- Tag
- TagAllocates cost based on Azure Tag key value pairs.
- DIMENSION
- DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- TAG
- TagAllocates cost based on Azure Tag key value pairs.
- "Dimension"
- DimensionIndicates an Azure dimension such as a subscription id or resource group name is being used for allocation.
- "Tag"
- TagAllocates cost based on Azure Tag key value pairs.
CostAllocationRuleDetails, CostAllocationRuleDetailsArgs
- Source
Resources List<Pulumi.Azure Native. Cost Management. Inputs. Source Cost Allocation Resource> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- Target
Resources List<Pulumi.Azure Native. Cost Management. Inputs. Target Cost Allocation Resource> - Target resources for cost allocation. At this time, this list can contain no more than one element.
- Source
Resources []SourceCost Allocation Resource - Source resources for cost allocation. At this time, this list can contain no more than one element.
- Target
Resources []TargetCost Allocation Resource - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources List<SourceCost Allocation Resource> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources List<TargetCost Allocation Resource> - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources SourceCost Allocation Resource[] - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources TargetCost Allocation Resource[] - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source_
resources Sequence[SourceCost Allocation Resource] - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target_
resources Sequence[TargetCost Allocation Resource] - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources List<Property Map> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources List<Property Map> - Target resources for cost allocation. At this time, this list can contain no more than one element.
CostAllocationRuleDetailsResponse, CostAllocationRuleDetailsResponseArgs
- Source
Resources List<Pulumi.Azure Native. Cost Management. Inputs. Source Cost Allocation Resource Response> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- Target
Resources List<Pulumi.Azure Native. Cost Management. Inputs. Target Cost Allocation Resource Response> - Target resources for cost allocation. At this time, this list can contain no more than one element.
- Source
Resources []SourceCost Allocation Resource Response - Source resources for cost allocation. At this time, this list can contain no more than one element.
- Target
Resources []TargetCost Allocation Resource Response - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources List<SourceCost Allocation Resource Response> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources List<TargetCost Allocation Resource Response> - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources SourceCost Allocation Resource Response[] - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources TargetCost Allocation Resource Response[] - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source_
resources Sequence[SourceCost Allocation Resource Response] - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target_
resources Sequence[TargetCost Allocation Resource Response] - Target resources for cost allocation. At this time, this list can contain no more than one element.
- source
Resources List<Property Map> - Source resources for cost allocation. At this time, this list can contain no more than one element.
- target
Resources List<Property Map> - Target resources for cost allocation. At this time, this list can contain no more than one element.
CostAllocationRuleProperties, CostAllocationRulePropertiesArgs
- Details
Pulumi.
Azure Native. Cost Management. Inputs. Cost Allocation Rule Details - Resource information for the cost allocation rule
- Status
string | Pulumi.
Azure Native. Cost Management. Rule Status - Status of the rule
- Description string
- Description of a cost allocation rule.
- Details
Cost
Allocation Rule Details - Resource information for the cost allocation rule
- Status
string | Rule
Status - Status of the rule
- Description string
- Description of a cost allocation rule.
- details
Cost
Allocation Rule Details - Resource information for the cost allocation rule
- status
String | Rule
Status - Status of the rule
- description String
- Description of a cost allocation rule.
- details
Cost
Allocation Rule Details - Resource information for the cost allocation rule
- status
string | Rule
Status - Status of the rule
- description string
- Description of a cost allocation rule.
- details
Cost
Allocation Rule Details - Resource information for the cost allocation rule
- status
str | Rule
Status - Status of the rule
- description str
- Description of a cost allocation rule.
- details Property Map
- Resource information for the cost allocation rule
- status
String | "Not
Active" | "Active" | "Processing" - Status of the rule
- description String
- Description of a cost allocation rule.
CostAllocationRulePropertiesResponse, CostAllocationRulePropertiesResponseArgs
- Created
Date string - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- Details
Pulumi.
Azure Native. Cost Management. Inputs. Cost Allocation Rule Details Response - Resource information for the cost allocation rule
- Status string
- Status of the rule
- Updated
Date string - Time at which the rule was last updated.
- Description string
- Description of a cost allocation rule.
- Created
Date string - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- Details
Cost
Allocation Rule Details Response - Resource information for the cost allocation rule
- Status string
- Status of the rule
- Updated
Date string - Time at which the rule was last updated.
- Description string
- Description of a cost allocation rule.
- created
Date String - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- details
Cost
Allocation Rule Details Response - Resource information for the cost allocation rule
- status String
- Status of the rule
- updated
Date String - Time at which the rule was last updated.
- description String
- Description of a cost allocation rule.
- created
Date string - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- details
Cost
Allocation Rule Details Response - Resource information for the cost allocation rule
- status string
- Status of the rule
- updated
Date string - Time at which the rule was last updated.
- description string
- Description of a cost allocation rule.
- created_
date str - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- details
Cost
Allocation Rule Details Response - Resource information for the cost allocation rule
- status str
- Status of the rule
- updated_
date str - Time at which the rule was last updated.
- description str
- Description of a cost allocation rule.
- created
Date String - Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.
- details Property Map
- Resource information for the cost allocation rule
- status String
- Status of the rule
- updated
Date String - Time at which the rule was last updated.
- description String
- Description of a cost allocation rule.
RuleStatus, RuleStatusArgs
- Not
Active - NotActiveRule is saved but not used to allocate costs.
- Active
- ActiveRule is saved and impacting cost allocation.
- Processing
- ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
- Rule
Status Not Active - NotActiveRule is saved but not used to allocate costs.
- Rule
Status Active - ActiveRule is saved and impacting cost allocation.
- Rule
Status Processing - ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
- Not
Active - NotActiveRule is saved but not used to allocate costs.
- Active
- ActiveRule is saved and impacting cost allocation.
- Processing
- ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
- Not
Active - NotActiveRule is saved but not used to allocate costs.
- Active
- ActiveRule is saved and impacting cost allocation.
- Processing
- ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
- NOT_ACTIVE
- NotActiveRule is saved but not used to allocate costs.
- ACTIVE
- ActiveRule is saved and impacting cost allocation.
- PROCESSING
- ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
- "Not
Active" - NotActiveRule is saved but not used to allocate costs.
- "Active"
- ActiveRule is saved and impacting cost allocation.
- "Processing"
- ProcessingRule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.
SourceCostAllocationResource, SourceCostAllocationResourceArgs
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Resource
Type string | Pulumi.Azure Native. Cost Management. Cost Allocation Resource Type - Type of resources contained in this cost allocation rule
- Values List<string>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Resource
Type string | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- Values []string
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type String | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values List<String>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type string | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values string[]
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name str
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource_
type str | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values Sequence[str]
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type String | "Dimension" | "Tag" - Type of resources contained in this cost allocation rule
- values List<String>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
SourceCostAllocationResourceResponse, SourceCostAllocationResourceResponseArgs
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Resource
Type string - Type of resources contained in this cost allocation rule
- Values List<string>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Resource
Type string - Type of resources contained in this cost allocation rule
- Values []string
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type String - Type of resources contained in this cost allocation rule
- values List<String>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type string - Type of resources contained in this cost allocation rule
- values string[]
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name str
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource_
type str - Type of resources contained in this cost allocation rule
- values Sequence[str]
- Source Resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- resource
Type String - Type of resources contained in this cost allocation rule
- values List<String>
- Source Resources for cost allocation. This list cannot contain more than 25 values.
TargetCostAllocationResource, TargetCostAllocationResourceArgs
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Policy
Type string | Pulumi.Azure Native. Cost Management. Cost Allocation Policy Type - Method of cost allocation for the rule
- Resource
Type string | Pulumi.Azure Native. Cost Management. Cost Allocation Resource Type - Type of resources contained in this cost allocation rule
- Values
List<Pulumi.
Azure Native. Cost Management. Inputs. Cost Allocation Proportion> - Target resources for cost allocation. This list cannot contain more than 25 values.
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Policy
Type string | CostAllocation Policy Type - Method of cost allocation for the rule
- Resource
Type string | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- Values
[]Cost
Allocation Proportion - Target resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type String | CostAllocation Policy Type - Method of cost allocation for the rule
- resource
Type String | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values
List<Cost
Allocation Proportion> - Target resources for cost allocation. This list cannot contain more than 25 values.
- name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type string | CostAllocation Policy Type - Method of cost allocation for the rule
- resource
Type string | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values
Cost
Allocation Proportion[] - Target resources for cost allocation. This list cannot contain more than 25 values.
- name str
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy_
type str | CostAllocation Policy Type - Method of cost allocation for the rule
- resource_
type str | CostAllocation Resource Type - Type of resources contained in this cost allocation rule
- values
Sequence[Cost
Allocation Proportion] - Target resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type String | "FixedProportion" - Method of cost allocation for the rule
- resource
Type String | "Dimension" | "Tag" - Type of resources contained in this cost allocation rule
- values List<Property Map>
- Target resources for cost allocation. This list cannot contain more than 25 values.
TargetCostAllocationResourceResponse, TargetCostAllocationResourceResponseArgs
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Policy
Type string - Method of cost allocation for the rule
- Resource
Type string - Type of resources contained in this cost allocation rule
- Values
List<Pulumi.
Azure Native. Cost Management. Inputs. Cost Allocation Proportion Response> - Target resources for cost allocation. This list cannot contain more than 25 values.
- Name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- Policy
Type string - Method of cost allocation for the rule
- Resource
Type string - Type of resources contained in this cost allocation rule
- Values
[]Cost
Allocation Proportion Response - Target resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type String - Method of cost allocation for the rule
- resource
Type String - Type of resources contained in this cost allocation rule
- values
List<Cost
Allocation Proportion Response> - Target resources for cost allocation. This list cannot contain more than 25 values.
- name string
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type string - Method of cost allocation for the rule
- resource
Type string - Type of resources contained in this cost allocation rule
- values
Cost
Allocation Proportion Response[] - Target resources for cost allocation. This list cannot contain more than 25 values.
- name str
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy_
type str - Method of cost allocation for the rule
- resource_
type str - Type of resources contained in this cost allocation rule
- values
Sequence[Cost
Allocation Proportion Response] - Target resources for cost allocation. This list cannot contain more than 25 values.
- name String
- If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag
- policy
Type String - Method of cost allocation for the rule
- resource
Type String - Type of resources contained in this cost allocation rule
- values List<Property Map>
- Target resources for cost allocation. This list cannot contain more than 25 values.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:CostAllocationRule testRule providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0