TargetCostAllocationEntity Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of TargetCostAllocationEntity.
public TargetCostAllocationEntity(Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType resourceType, string name, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CostManagement.Models.CostAllocationProportion> values, Azure.ResourceManager.CostManagement.Models.CostAllocationPolicyType policyType);
new Azure.ResourceManager.CostManagement.Models.TargetCostAllocationEntity : Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType * string * seq<Azure.ResourceManager.CostManagement.Models.CostAllocationProportion> * Azure.ResourceManager.CostManagement.Models.CostAllocationPolicyType -> Azure.ResourceManager.CostManagement.Models.TargetCostAllocationEntity
Public Sub New (resourceType As CostAllocationResourceType, name As String, values As IEnumerable(Of CostAllocationProportion), policyType As CostAllocationPolicyType)
Parameters
- resourceType
- CostAllocationResourceType
Type of resources contained in this cost allocation rule.
- 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.
- values
- IEnumerable<CostAllocationProportion>
Target resources for cost allocation. This list cannot contain more than 25 values.
- policyType
- CostAllocationPolicyType
Method of cost allocation for the rule.
Exceptions
name or values is null.