1. Packages
  2. Azure Native
  3. API Docs
  4. costmanagement
  5. View
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.costmanagement.View

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    States and configurations of Cost Analysis. Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2019-11-01.

    Other available API versions: 2019-11-01, 2020-06-01, 2022-10-01, 2022-10-05-preview, 2023-04-01-preview, 2023-07-01-preview, 2023-08-01, 2023-09-01, 2023-11-01.

    Example Usage

    CreateOrUpdatePrivateView

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var view = new AzureNative.CostManagement.View("view", new()
        {
            Accumulated = AzureNative.CostManagement.AccumulatedType.@True,
            Chart = AzureNative.CostManagement.ChartType.Table,
            DataSet = new AzureNative.CostManagement.Inputs.ReportConfigDatasetArgs
            {
                Aggregation = 
                {
                    { "totalCost", new AzureNative.CostManagement.Inputs.ReportConfigAggregationArgs
                    {
                        Function = AzureNative.CostManagement.FunctionType.Sum,
                        Name = "PreTaxCost",
                    } },
                },
                Granularity = AzureNative.CostManagement.ReportGranularityType.Daily,
                Grouping = new() { },
                Sorting = new[]
                {
                    new AzureNative.CostManagement.Inputs.ReportConfigSortingArgs
                    {
                        Direction = AzureNative.CostManagement.ReportConfigSortingType.Ascending,
                        Name = "UsageDate",
                    },
                },
            },
            DisplayName = "swagger Example",
            ETag = "\"1d4ff9fe66f1d10\"",
            Kpis = new[]
            {
                new AzureNative.CostManagement.Inputs.KpiPropertiesArgs
                {
                    Enabled = true,
                    Type = AzureNative.CostManagement.KpiTypeType.Forecast,
                },
                new AzureNative.CostManagement.Inputs.KpiPropertiesArgs
                {
                    Enabled = true,
                    Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
                    Type = AzureNative.CostManagement.KpiTypeType.Budget,
                },
            },
            Metric = AzureNative.CostManagement.MetricType.ActualCost,
            Pivots = new[]
            {
                new AzureNative.CostManagement.Inputs.PivotPropertiesArgs
                {
                    Name = "ServiceName",
                    Type = AzureNative.CostManagement.PivotTypeType.Dimension,
                },
                new AzureNative.CostManagement.Inputs.PivotPropertiesArgs
                {
                    Name = "MeterCategory",
                    Type = AzureNative.CostManagement.PivotTypeType.Dimension,
                },
                new AzureNative.CostManagement.Inputs.PivotPropertiesArgs
                {
                    Name = "swaggerTagKey",
                    Type = AzureNative.CostManagement.PivotTypeType.TagKey,
                },
            },
            Timeframe = AzureNative.CostManagement.ReportTimeframeType.MonthToDate,
            Type = AzureNative.CostManagement.ReportType.Usage,
            ViewName = "swaggerExample",
        });
    
    });
    
    package main
    
    import (
    	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := costmanagement.NewView(ctx, "view", &costmanagement.ViewArgs{
    			Accumulated: pulumi.String(costmanagement.AccumulatedTypeTrue),
    			Chart:       pulumi.String(costmanagement.ChartTypeTable),
    			DataSet: &costmanagement.ReportConfigDatasetArgs{
    				Aggregation: costmanagement.ReportConfigAggregationMap{
    					"totalCost": &costmanagement.ReportConfigAggregationArgs{
    						Function: pulumi.String(costmanagement.FunctionTypeSum),
    						Name:     pulumi.String("PreTaxCost"),
    					},
    				},
    				Granularity: pulumi.String(costmanagement.ReportGranularityTypeDaily),
    				Grouping:    costmanagement.ReportConfigGroupingArray{},
    				Sorting: costmanagement.ReportConfigSortingArray{
    					&costmanagement.ReportConfigSortingArgs{
    						Direction: pulumi.String(costmanagement.ReportConfigSortingTypeAscending),
    						Name:      pulumi.String("UsageDate"),
    					},
    				},
    			},
    			DisplayName: pulumi.String("swagger Example"),
    			ETag:        pulumi.String("\"1d4ff9fe66f1d10\""),
    			Kpis: costmanagement.KpiPropertiesArray{
    				&costmanagement.KpiPropertiesArgs{
    					Enabled: pulumi.Bool(true),
    					Type:    pulumi.String(costmanagement.KpiTypeTypeForecast),
    				},
    				&costmanagement.KpiPropertiesArgs{
    					Enabled: pulumi.Bool(true),
    					Id:      pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo"),
    					Type:    pulumi.String(costmanagement.KpiTypeTypeBudget),
    				},
    			},
    			Metric: pulumi.String(costmanagement.MetricTypeActualCost),
    			Pivots: costmanagement.PivotPropertiesArray{
    				&costmanagement.PivotPropertiesArgs{
    					Name: pulumi.String("ServiceName"),
    					Type: pulumi.String(costmanagement.PivotTypeTypeDimension),
    				},
    				&costmanagement.PivotPropertiesArgs{
    					Name: pulumi.String("MeterCategory"),
    					Type: pulumi.String(costmanagement.PivotTypeTypeDimension),
    				},
    				&costmanagement.PivotPropertiesArgs{
    					Name: pulumi.String("swaggerTagKey"),
    					Type: pulumi.String(costmanagement.PivotTypeTypeTagKey),
    				},
    			},
    			Timeframe: pulumi.String(costmanagement.ReportTimeframeTypeMonthToDate),
    			Type:      pulumi.String(costmanagement.ReportTypeUsage),
    			ViewName:  pulumi.String("swaggerExample"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.costmanagement.View;
    import com.pulumi.azurenative.costmanagement.ViewArgs;
    import com.pulumi.azurenative.costmanagement.inputs.ReportConfigDatasetArgs;
    import com.pulumi.azurenative.costmanagement.inputs.KpiPropertiesArgs;
    import com.pulumi.azurenative.costmanagement.inputs.PivotPropertiesArgs;
    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 view = new View("view", ViewArgs.builder()
                .accumulated("true")
                .chart("Table")
                .dataSet(ReportConfigDatasetArgs.builder()
                    .aggregation(Map.of("totalCost", Map.ofEntries(
                        Map.entry("function", "Sum"),
                        Map.entry("name", "PreTaxCost")
                    )))
                    .granularity("Daily")
                    .grouping()
                    .sorting(ReportConfigSortingArgs.builder()
                        .direction("Ascending")
                        .name("UsageDate")
                        .build())
                    .build())
                .displayName("swagger Example")
                .eTag("\"1d4ff9fe66f1d10\"")
                .kpis(            
                    KpiPropertiesArgs.builder()
                        .enabled(true)
                        .type("Forecast")
                        .build(),
                    KpiPropertiesArgs.builder()
                        .enabled(true)
                        .id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo")
                        .type("Budget")
                        .build())
                .metric("ActualCost")
                .pivots(            
                    PivotPropertiesArgs.builder()
                        .name("ServiceName")
                        .type("Dimension")
                        .build(),
                    PivotPropertiesArgs.builder()
                        .name("MeterCategory")
                        .type("Dimension")
                        .build(),
                    PivotPropertiesArgs.builder()
                        .name("swaggerTagKey")
                        .type("TagKey")
                        .build())
                .timeframe("MonthToDate")
                .type("Usage")
                .viewName("swaggerExample")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    view = azure_native.costmanagement.View("view",
        accumulated=azure_native.costmanagement.AccumulatedType.TRUE,
        chart=azure_native.costmanagement.ChartType.TABLE,
        data_set={
            "aggregation": {
                "total_cost": {
                    "function": azure_native.costmanagement.FunctionType.SUM,
                    "name": "PreTaxCost",
                },
            },
            "granularity": azure_native.costmanagement.ReportGranularityType.DAILY,
            "grouping": [],
            "sorting": [{
                "direction": azure_native.costmanagement.ReportConfigSortingType.ASCENDING,
                "name": "UsageDate",
            }],
        },
        display_name="swagger Example",
        e_tag="\"1d4ff9fe66f1d10\"",
        kpis=[
            {
                "enabled": True,
                "type": azure_native.costmanagement.KpiTypeType.FORECAST,
            },
            {
                "enabled": True,
                "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
                "type": azure_native.costmanagement.KpiTypeType.BUDGET,
            },
        ],
        metric=azure_native.costmanagement.MetricType.ACTUAL_COST,
        pivots=[
            {
                "name": "ServiceName",
                "type": azure_native.costmanagement.PivotTypeType.DIMENSION,
            },
            {
                "name": "MeterCategory",
                "type": azure_native.costmanagement.PivotTypeType.DIMENSION,
            },
            {
                "name": "swaggerTagKey",
                "type": azure_native.costmanagement.PivotTypeType.TAG_KEY,
            },
        ],
        timeframe=azure_native.costmanagement.ReportTimeframeType.MONTH_TO_DATE,
        type=azure_native.costmanagement.ReportType.USAGE,
        view_name="swaggerExample")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const view = new azure_native.costmanagement.View("view", {
        accumulated: azure_native.costmanagement.AccumulatedType.True,
        chart: azure_native.costmanagement.ChartType.Table,
        dataSet: {
            aggregation: {
                totalCost: {
                    "function": azure_native.costmanagement.FunctionType.Sum,
                    name: "PreTaxCost",
                },
            },
            granularity: azure_native.costmanagement.ReportGranularityType.Daily,
            grouping: [],
            sorting: [{
                direction: azure_native.costmanagement.ReportConfigSortingType.Ascending,
                name: "UsageDate",
            }],
        },
        displayName: "swagger Example",
        eTag: "\"1d4ff9fe66f1d10\"",
        kpis: [
            {
                enabled: true,
                type: azure_native.costmanagement.KpiTypeType.Forecast,
            },
            {
                enabled: true,
                id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
                type: azure_native.costmanagement.KpiTypeType.Budget,
            },
        ],
        metric: azure_native.costmanagement.MetricType.ActualCost,
        pivots: [
            {
                name: "ServiceName",
                type: azure_native.costmanagement.PivotTypeType.Dimension,
            },
            {
                name: "MeterCategory",
                type: azure_native.costmanagement.PivotTypeType.Dimension,
            },
            {
                name: "swaggerTagKey",
                type: azure_native.costmanagement.PivotTypeType.TagKey,
            },
        ],
        timeframe: azure_native.costmanagement.ReportTimeframeType.MonthToDate,
        type: azure_native.costmanagement.ReportType.Usage,
        viewName: "swaggerExample",
    });
    
    resources:
      view:
        type: azure-native:costmanagement:View
        properties:
          accumulated: 'true'
          chart: Table
          dataSet:
            aggregation:
              totalCost:
                function: Sum
                name: PreTaxCost
            granularity: Daily
            grouping: []
            sorting:
              - direction: Ascending
                name: UsageDate
          displayName: swagger Example
          eTag: '"1d4ff9fe66f1d10"'
          kpis:
            - enabled: true
              type: Forecast
            - enabled: true
              id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo
              type: Budget
          metric: ActualCost
          pivots:
            - name: ServiceName
              type: Dimension
            - name: MeterCategory
              type: Dimension
            - name: swaggerTagKey
              type: TagKey
          timeframe: MonthToDate
          type: Usage
          viewName: swaggerExample
    

    Create View Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new View(name: string, args: ViewArgs, opts?: CustomResourceOptions);
    @overload
    def View(resource_name: str,
             args: ViewArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def View(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             timeframe: Optional[Union[str, ReportTimeframeType]] = None,
             type: Optional[Union[str, ReportType]] = None,
             metric: Optional[Union[str, MetricType]] = None,
             modified_on: Optional[str] = None,
             display_name: Optional[str] = None,
             e_tag: Optional[str] = None,
             include_monetary_commitment: Optional[bool] = None,
             kpis: Optional[Sequence[KpiPropertiesArgs]] = None,
             accumulated: Optional[Union[str, AccumulatedType]] = None,
             date_range: Optional[str] = None,
             pivots: Optional[Sequence[PivotPropertiesArgs]] = None,
             scope: Optional[str] = None,
             time_period: Optional[ReportConfigTimePeriodArgs] = None,
             data_set: Optional[ReportConfigDatasetArgs] = None,
             chart: Optional[Union[str, ChartType]] = None,
             view_name: Optional[str] = None)
    func NewView(ctx *Context, name string, args ViewArgs, opts ...ResourceOption) (*View, error)
    public View(string name, ViewArgs args, CustomResourceOptions? opts = null)
    public View(String name, ViewArgs args)
    public View(String name, ViewArgs args, CustomResourceOptions options)
    
    type: azure-native:costmanagement:View
    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 ViewArgs
    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 ViewArgs
    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 ViewArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ViewArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ViewArgs
    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 viewResource = new AzureNative.CostManagement.View("viewResource", new()
    {
        Timeframe = "string",
        Type = "string",
        Metric = "string",
        ModifiedOn = "string",
        DisplayName = "string",
        ETag = "string",
        IncludeMonetaryCommitment = false,
        Kpis = new[]
        {
            new AzureNative.CostManagement.Inputs.KpiPropertiesArgs
            {
                Enabled = false,
                Id = "string",
                Type = "string",
            },
        },
        Accumulated = "string",
        DateRange = "string",
        Pivots = new[]
        {
            new AzureNative.CostManagement.Inputs.PivotPropertiesArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        Scope = "string",
        TimePeriod = new AzureNative.CostManagement.Inputs.ReportConfigTimePeriodArgs
        {
            From = "string",
            To = "string",
        },
        DataSet = new AzureNative.CostManagement.Inputs.ReportConfigDatasetArgs
        {
            Aggregation = 
            {
                { "string", new AzureNative.CostManagement.Inputs.ReportConfigAggregationArgs
                {
                    Function = "string",
                    Name = "string",
                } },
            },
            Configuration = new AzureNative.CostManagement.Inputs.ReportConfigDatasetConfigurationArgs
            {
                Columns = new[]
                {
                    "string",
                },
            },
            Filter = new AzureNative.CostManagement.Inputs.ReportConfigFilterArgs
            {
                And = new[]
                {
                    reportConfigFilter,
                },
                Dimensions = new AzureNative.CostManagement.Inputs.ReportConfigComparisonExpressionArgs
                {
                    Name = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                Or = new[]
                {
                    reportConfigFilter,
                },
                Tags = new AzureNative.CostManagement.Inputs.ReportConfigComparisonExpressionArgs
                {
                    Name = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            Granularity = "string",
            Grouping = new[]
            {
                new AzureNative.CostManagement.Inputs.ReportConfigGroupingArgs
                {
                    Name = "string",
                    Type = "string",
                },
            },
            Sorting = new[]
            {
                new AzureNative.CostManagement.Inputs.ReportConfigSortingArgs
                {
                    Name = "string",
                    Direction = "string",
                },
            },
        },
        Chart = "string",
        ViewName = "string",
    });
    
    example, err := costmanagement.NewView(ctx, "viewResource", &costmanagement.ViewArgs{
    	Timeframe:                 pulumi.String("string"),
    	Type:                      pulumi.String("string"),
    	Metric:                    pulumi.String("string"),
    	ModifiedOn:                pulumi.String("string"),
    	DisplayName:               pulumi.String("string"),
    	ETag:                      pulumi.String("string"),
    	IncludeMonetaryCommitment: pulumi.Bool(false),
    	Kpis: costmanagement.KpiPropertiesArray{
    		&costmanagement.KpiPropertiesArgs{
    			Enabled: pulumi.Bool(false),
    			Id:      pulumi.String("string"),
    			Type:    pulumi.String("string"),
    		},
    	},
    	Accumulated: pulumi.String("string"),
    	DateRange:   pulumi.String("string"),
    	Pivots: costmanagement.PivotPropertiesArray{
    		&costmanagement.PivotPropertiesArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	Scope: pulumi.String("string"),
    	TimePeriod: &costmanagement.ReportConfigTimePeriodArgs{
    		From: pulumi.String("string"),
    		To:   pulumi.String("string"),
    	},
    	DataSet: &costmanagement.ReportConfigDatasetArgs{
    		Aggregation: costmanagement.ReportConfigAggregationMap{
    			"string": &costmanagement.ReportConfigAggregationArgs{
    				Function: pulumi.String("string"),
    				Name:     pulumi.String("string"),
    			},
    		},
    		Configuration: &costmanagement.ReportConfigDatasetConfigurationArgs{
    			Columns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Filter: &costmanagement.ReportConfigFilterArgs{
    			And: costmanagement.ReportConfigFilterArray{
    				reportConfigFilter,
    			},
    			Dimensions: &costmanagement.ReportConfigComparisonExpressionArgs{
    				Name:     pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			Or: costmanagement.ReportConfigFilterArray{
    				reportConfigFilter,
    			},
    			Tags: &costmanagement.ReportConfigComparisonExpressionArgs{
    				Name:     pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		Granularity: pulumi.String("string"),
    		Grouping: costmanagement.ReportConfigGroupingArray{
    			&costmanagement.ReportConfigGroupingArgs{
    				Name: pulumi.String("string"),
    				Type: pulumi.String("string"),
    			},
    		},
    		Sorting: costmanagement.ReportConfigSortingArray{
    			&costmanagement.ReportConfigSortingArgs{
    				Name:      pulumi.String("string"),
    				Direction: pulumi.String("string"),
    			},
    		},
    	},
    	Chart:    pulumi.String("string"),
    	ViewName: pulumi.String("string"),
    })
    
    var viewResource = new View("viewResource", ViewArgs.builder()
        .timeframe("string")
        .type("string")
        .metric("string")
        .modifiedOn("string")
        .displayName("string")
        .eTag("string")
        .includeMonetaryCommitment(false)
        .kpis(KpiPropertiesArgs.builder()
            .enabled(false)
            .id("string")
            .type("string")
            .build())
        .accumulated("string")
        .dateRange("string")
        .pivots(PivotPropertiesArgs.builder()
            .name("string")
            .type("string")
            .build())
        .scope("string")
        .timePeriod(ReportConfigTimePeriodArgs.builder()
            .from("string")
            .to("string")
            .build())
        .dataSet(ReportConfigDatasetArgs.builder()
            .aggregation(Map.of("string", Map.ofEntries(
                Map.entry("function", "string"),
                Map.entry("name", "string")
            )))
            .configuration(ReportConfigDatasetConfigurationArgs.builder()
                .columns("string")
                .build())
            .filter(ReportConfigFilterArgs.builder()
                .and(reportConfigFilter)
                .dimensions(ReportConfigComparisonExpressionArgs.builder()
                    .name("string")
                    .operator("string")
                    .values("string")
                    .build())
                .or(reportConfigFilter)
                .tags(ReportConfigComparisonExpressionArgs.builder()
                    .name("string")
                    .operator("string")
                    .values("string")
                    .build())
                .build())
            .granularity("string")
            .grouping(ReportConfigGroupingArgs.builder()
                .name("string")
                .type("string")
                .build())
            .sorting(ReportConfigSortingArgs.builder()
                .name("string")
                .direction("string")
                .build())
            .build())
        .chart("string")
        .viewName("string")
        .build());
    
    view_resource = azure_native.costmanagement.View("viewResource",
        timeframe="string",
        type="string",
        metric="string",
        modified_on="string",
        display_name="string",
        e_tag="string",
        include_monetary_commitment=False,
        kpis=[{
            "enabled": False,
            "id": "string",
            "type": "string",
        }],
        accumulated="string",
        date_range="string",
        pivots=[{
            "name": "string",
            "type": "string",
        }],
        scope="string",
        time_period={
            "from": "string",
            "to": "string",
        },
        data_set={
            "aggregation": {
                "string": {
                    "function": "string",
                    "name": "string",
                },
            },
            "configuration": {
                "columns": ["string"],
            },
            "filter": {
                "and": [report_config_filter],
                "dimensions": {
                    "name": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "or": [report_config_filter],
                "tags": {
                    "name": "string",
                    "operator": "string",
                    "values": ["string"],
                },
            },
            "granularity": "string",
            "grouping": [{
                "name": "string",
                "type": "string",
            }],
            "sorting": [{
                "name": "string",
                "direction": "string",
            }],
        },
        chart="string",
        view_name="string")
    
    const viewResource = new azure_native.costmanagement.View("viewResource", {
        timeframe: "string",
        type: "string",
        metric: "string",
        modifiedOn: "string",
        displayName: "string",
        eTag: "string",
        includeMonetaryCommitment: false,
        kpis: [{
            enabled: false,
            id: "string",
            type: "string",
        }],
        accumulated: "string",
        dateRange: "string",
        pivots: [{
            name: "string",
            type: "string",
        }],
        scope: "string",
        timePeriod: {
            from: "string",
            to: "string",
        },
        dataSet: {
            aggregation: {
                string: {
                    "function": "string",
                    name: "string",
                },
            },
            configuration: {
                columns: ["string"],
            },
            filter: {
                and: [reportConfigFilter],
                dimensions: {
                    name: "string",
                    operator: "string",
                    values: ["string"],
                },
                or: [reportConfigFilter],
                tags: {
                    name: "string",
                    operator: "string",
                    values: ["string"],
                },
            },
            granularity: "string",
            grouping: [{
                name: "string",
                type: "string",
            }],
            sorting: [{
                name: "string",
                direction: "string",
            }],
        },
        chart: "string",
        viewName: "string",
    });
    
    type: azure-native:costmanagement:View
    properties:
        accumulated: string
        chart: string
        dataSet:
            aggregation:
                string:
                    function: string
                    name: string
            configuration:
                columns:
                    - string
            filter:
                and:
                    - ${reportConfigFilter}
                dimensions:
                    name: string
                    operator: string
                    values:
                        - string
                or:
                    - ${reportConfigFilter}
                tags:
                    name: string
                    operator: string
                    values:
                        - string
            granularity: string
            grouping:
                - name: string
                  type: string
            sorting:
                - direction: string
                  name: string
        dateRange: string
        displayName: string
        eTag: string
        includeMonetaryCommitment: false
        kpis:
            - enabled: false
              id: string
              type: string
        metric: string
        modifiedOn: string
        pivots:
            - name: string
              type: string
        scope: string
        timePeriod:
            from: string
            to: string
        timeframe: string
        type: string
        viewName: string
    

    View Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The View resource accepts the following input properties:

    Timeframe string | Pulumi.AzureNative.CostManagement.ReportTimeframeType
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    Type string | Pulumi.AzureNative.CostManagement.ReportType
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    Accumulated string | Pulumi.AzureNative.CostManagement.AccumulatedType
    Show costs accumulated over time.
    Chart string | Pulumi.AzureNative.CostManagement.ChartType
    Chart type of the main view in Cost Analysis. Required.
    DataSet Pulumi.AzureNative.CostManagement.Inputs.ReportConfigDataset
    Has definition for data in this report config.
    DateRange string
    Date range of the current view.
    DisplayName string
    User input name of the view. Required.
    ETag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    IncludeMonetaryCommitment bool
    If true, report includes monetary commitment.
    Kpis List<Pulumi.AzureNative.CostManagement.Inputs.KpiProperties>
    List of KPIs to show in Cost Analysis UI.
    Metric string | Pulumi.AzureNative.CostManagement.MetricType
    Metric to use when displaying costs.
    ModifiedOn string
    Date when the user last modified this view.
    Pivots List<Pulumi.AzureNative.CostManagement.Inputs.PivotProperties>
    Configuration of 3 sub-views in the Cost Analysis UI.
    Scope string
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    TimePeriod Pulumi.AzureNative.CostManagement.Inputs.ReportConfigTimePeriod
    Has time period for pulling data for the report.
    ViewName string
    View name
    Timeframe string | ReportTimeframeType
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    Type string | ReportType
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    Accumulated string | AccumulatedType
    Show costs accumulated over time.
    Chart string | ChartType
    Chart type of the main view in Cost Analysis. Required.
    DataSet ReportConfigDatasetArgs
    Has definition for data in this report config.
    DateRange string
    Date range of the current view.
    DisplayName string
    User input name of the view. Required.
    ETag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    IncludeMonetaryCommitment bool
    If true, report includes monetary commitment.
    Kpis []KpiPropertiesArgs
    List of KPIs to show in Cost Analysis UI.
    Metric string | MetricType
    Metric to use when displaying costs.
    ModifiedOn string
    Date when the user last modified this view.
    Pivots []PivotPropertiesArgs
    Configuration of 3 sub-views in the Cost Analysis UI.
    Scope string
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    TimePeriod ReportConfigTimePeriodArgs
    Has time period for pulling data for the report.
    ViewName string
    View name
    timeframe String | ReportTimeframeType
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    type String | ReportType
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    accumulated String | AccumulatedType
    Show costs accumulated over time.
    chart String | ChartType
    Chart type of the main view in Cost Analysis. Required.
    dataSet ReportConfigDataset
    Has definition for data in this report config.
    dateRange String
    Date range of the current view.
    displayName String
    User input name of the view. Required.
    eTag String
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    includeMonetaryCommitment Boolean
    If true, report includes monetary commitment.
    kpis List<KpiProperties>
    List of KPIs to show in Cost Analysis UI.
    metric String | MetricType
    Metric to use when displaying costs.
    modifiedOn String
    Date when the user last modified this view.
    pivots List<PivotProperties>
    Configuration of 3 sub-views in the Cost Analysis UI.
    scope String
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    timePeriod ReportConfigTimePeriod
    Has time period for pulling data for the report.
    viewName String
    View name
    timeframe string | ReportTimeframeType
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    type string | ReportType
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    accumulated string | AccumulatedType
    Show costs accumulated over time.
    chart string | ChartType
    Chart type of the main view in Cost Analysis. Required.
    dataSet ReportConfigDataset
    Has definition for data in this report config.
    dateRange string
    Date range of the current view.
    displayName string
    User input name of the view. Required.
    eTag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    includeMonetaryCommitment boolean
    If true, report includes monetary commitment.
    kpis KpiProperties[]
    List of KPIs to show in Cost Analysis UI.
    metric string | MetricType
    Metric to use when displaying costs.
    modifiedOn string
    Date when the user last modified this view.
    pivots PivotProperties[]
    Configuration of 3 sub-views in the Cost Analysis UI.
    scope string
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    timePeriod ReportConfigTimePeriod
    Has time period for pulling data for the report.
    viewName string
    View name
    timeframe str | ReportTimeframeType
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    type str | ReportType
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    accumulated str | AccumulatedType
    Show costs accumulated over time.
    chart str | ChartType
    Chart type of the main view in Cost Analysis. Required.
    data_set ReportConfigDatasetArgs
    Has definition for data in this report config.
    date_range str
    Date range of the current view.
    display_name str
    User input name of the view. Required.
    e_tag str
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    include_monetary_commitment bool
    If true, report includes monetary commitment.
    kpis Sequence[KpiPropertiesArgs]
    List of KPIs to show in Cost Analysis UI.
    metric str | MetricType
    Metric to use when displaying costs.
    modified_on str
    Date when the user last modified this view.
    pivots Sequence[PivotPropertiesArgs]
    Configuration of 3 sub-views in the Cost Analysis UI.
    scope str
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    time_period ReportConfigTimePeriodArgs
    Has time period for pulling data for the report.
    view_name str
    View name
    timeframe String | "WeekToDate" | "MonthToDate" | "YearToDate" | "Custom"
    The time frame for pulling data for the report. If custom, then a specific time period must be provided.
    type String | "Usage"
    The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
    accumulated String | "true" | "false"
    Show costs accumulated over time.
    chart String | "Area" | "Line" | "StackedColumn" | "GroupedColumn" | "Table"
    Chart type of the main view in Cost Analysis. Required.
    dataSet Property Map
    Has definition for data in this report config.
    dateRange String
    Date range of the current view.
    displayName String
    User input name of the view. Required.
    eTag String
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    includeMonetaryCommitment Boolean
    If true, report includes monetary commitment.
    kpis List<Property Map>
    List of KPIs to show in Cost Analysis UI.
    metric String | "ActualCost" | "AmortizedCost" | "AHUB"
    Metric to use when displaying costs.
    modifiedOn String
    Date when the user last modified this view.
    pivots List<Property Map>
    Configuration of 3 sub-views in the Cost Analysis UI.
    scope String
    Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
    timePeriod Property Map
    Has time period for pulling data for the report.
    viewName String
    View name

    Outputs

    All input properties are implicitly available as output properties. Additionally, the View resource produces the following output properties:

    CreatedOn string
    Date the user created this view.
    Currency string
    Currency of the current view.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    CreatedOn string
    Date the user created this view.
    Currency string
    Currency of the current view.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    createdOn String
    Date the user created this view.
    currency String
    Currency of the current view.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    createdOn string
    Date the user created this view.
    currency string
    Currency of the current view.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    created_on str
    Date the user created this view.
    currency str
    Currency of the current view.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    createdOn String
    Date the user created this view.
    currency String
    Currency of the current view.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.

    Supporting Types

    AccumulatedType, AccumulatedTypeArgs

    @True
    true
    @False
    false
    AccumulatedTypeTrue
    true
    AccumulatedTypeFalse
    false
    True_
    true
    False_
    false
    True
    true
    False
    false
    TRUE
    true
    FALSE
    false
    "true"
    true
    "false"
    false

    ChartType, ChartTypeArgs

    Area
    Area
    Line
    Line
    StackedColumn
    StackedColumn
    GroupedColumn
    GroupedColumn
    Table
    Table
    ChartTypeArea
    Area
    ChartTypeLine
    Line
    ChartTypeStackedColumn
    StackedColumn
    ChartTypeGroupedColumn
    GroupedColumn
    ChartTypeTable
    Table
    Area
    Area
    Line
    Line
    StackedColumn
    StackedColumn
    GroupedColumn
    GroupedColumn
    Table
    Table
    Area
    Area
    Line
    Line
    StackedColumn
    StackedColumn
    GroupedColumn
    GroupedColumn
    Table
    Table
    AREA
    Area
    LINE
    Line
    STACKED_COLUMN
    StackedColumn
    GROUPED_COLUMN
    GroupedColumn
    TABLE
    Table
    "Area"
    Area
    "Line"
    Line
    "StackedColumn"
    StackedColumn
    "GroupedColumn"
    GroupedColumn
    "Table"
    Table

    FunctionType, FunctionTypeArgs

    Sum
    Sum
    FunctionTypeSum
    Sum
    Sum
    Sum
    Sum
    Sum
    SUM
    Sum
    "Sum"
    Sum

    KpiProperties, KpiPropertiesArgs

    Enabled bool
    show the KPI in the UI?
    Id string
    ID of resource related to metric (budget).
    Type string | Pulumi.AzureNative.CostManagement.KpiTypeType
    KPI type (Forecast, Budget).
    Enabled bool
    show the KPI in the UI?
    Id string
    ID of resource related to metric (budget).
    Type string | KpiTypeType
    KPI type (Forecast, Budget).
    enabled Boolean
    show the KPI in the UI?
    id String
    ID of resource related to metric (budget).
    type String | KpiTypeType
    KPI type (Forecast, Budget).
    enabled boolean
    show the KPI in the UI?
    id string
    ID of resource related to metric (budget).
    type string | KpiTypeType
    KPI type (Forecast, Budget).
    enabled bool
    show the KPI in the UI?
    id str
    ID of resource related to metric (budget).
    type str | KpiTypeType
    KPI type (Forecast, Budget).
    enabled Boolean
    show the KPI in the UI?
    id String
    ID of resource related to metric (budget).
    type String | "Forecast" | "Budget"
    KPI type (Forecast, Budget).

    KpiPropertiesResponse, KpiPropertiesResponseArgs

    Enabled bool
    show the KPI in the UI?
    Id string
    ID of resource related to metric (budget).
    Type string
    KPI type (Forecast, Budget).
    Enabled bool
    show the KPI in the UI?
    Id string
    ID of resource related to metric (budget).
    Type string
    KPI type (Forecast, Budget).
    enabled Boolean
    show the KPI in the UI?
    id String
    ID of resource related to metric (budget).
    type String
    KPI type (Forecast, Budget).
    enabled boolean
    show the KPI in the UI?
    id string
    ID of resource related to metric (budget).
    type string
    KPI type (Forecast, Budget).
    enabled bool
    show the KPI in the UI?
    id str
    ID of resource related to metric (budget).
    type str
    KPI type (Forecast, Budget).
    enabled Boolean
    show the KPI in the UI?
    id String
    ID of resource related to metric (budget).
    type String
    KPI type (Forecast, Budget).

    KpiTypeType, KpiTypeTypeArgs

    Forecast
    Forecast
    Budget
    Budget
    KpiTypeTypeForecast
    Forecast
    KpiTypeTypeBudget
    Budget
    Forecast
    Forecast
    Budget
    Budget
    Forecast
    Forecast
    Budget
    Budget
    FORECAST
    Forecast
    BUDGET
    Budget
    "Forecast"
    Forecast
    "Budget"
    Budget

    MetricType, MetricTypeArgs

    ActualCost
    ActualCost
    AmortizedCost
    AmortizedCost
    AHUB
    AHUB
    MetricTypeActualCost
    ActualCost
    MetricTypeAmortizedCost
    AmortizedCost
    MetricTypeAHUB
    AHUB
    ActualCost
    ActualCost
    AmortizedCost
    AmortizedCost
    AHUB
    AHUB
    ActualCost
    ActualCost
    AmortizedCost
    AmortizedCost
    AHUB
    AHUB
    ACTUAL_COST
    ActualCost
    AMORTIZED_COST
    AmortizedCost
    AHUB
    AHUB
    "ActualCost"
    ActualCost
    "AmortizedCost"
    AmortizedCost
    "AHUB"
    AHUB

    OperatorType, OperatorTypeArgs

    In
    In
    Contains
    Contains
    OperatorTypeIn
    In
    OperatorTypeContains
    Contains
    In
    In
    Contains
    Contains
    In
    In
    Contains
    Contains
    IN_
    In
    CONTAINS
    Contains
    "In"
    In
    "Contains"
    Contains

    PivotProperties, PivotPropertiesArgs

    Name string
    Data field to show in view.
    Type string | Pulumi.AzureNative.CostManagement.PivotTypeType
    Data type to show in view.
    Name string
    Data field to show in view.
    Type string | PivotTypeType
    Data type to show in view.
    name String
    Data field to show in view.
    type String | PivotTypeType
    Data type to show in view.
    name string
    Data field to show in view.
    type string | PivotTypeType
    Data type to show in view.
    name str
    Data field to show in view.
    type str | PivotTypeType
    Data type to show in view.
    name String
    Data field to show in view.
    type String | "Dimension" | "TagKey"
    Data type to show in view.

    PivotPropertiesResponse, PivotPropertiesResponseArgs

    Name string
    Data field to show in view.
    Type string
    Data type to show in view.
    Name string
    Data field to show in view.
    Type string
    Data type to show in view.
    name String
    Data field to show in view.
    type String
    Data type to show in view.
    name string
    Data field to show in view.
    type string
    Data type to show in view.
    name str
    Data field to show in view.
    type str
    Data type to show in view.
    name String
    Data field to show in view.
    type String
    Data type to show in view.

    PivotTypeType, PivotTypeTypeArgs

    Dimension
    Dimension
    TagKey
    TagKey
    PivotTypeTypeDimension
    Dimension
    PivotTypeTypeTagKey
    TagKey
    Dimension
    Dimension
    TagKey
    TagKey
    Dimension
    Dimension
    TagKey
    TagKey
    DIMENSION
    Dimension
    TAG_KEY
    TagKey
    "Dimension"
    Dimension
    "TagKey"
    TagKey

    QueryColumnType, QueryColumnTypeArgs

    TagKey
    TagKeyThe tag associated with the cost data.
    Dimension
    DimensionThe dimension of cost data.
    QueryColumnTypeTagKey
    TagKeyThe tag associated with the cost data.
    QueryColumnTypeDimension
    DimensionThe dimension of cost data.
    TagKey
    TagKeyThe tag associated with the cost data.
    Dimension
    DimensionThe dimension of cost data.
    TagKey
    TagKeyThe tag associated with the cost data.
    Dimension
    DimensionThe dimension of cost data.
    TAG_KEY
    TagKeyThe tag associated with the cost data.
    DIMENSION
    DimensionThe dimension of cost data.
    "TagKey"
    TagKeyThe tag associated with the cost data.
    "Dimension"
    DimensionThe dimension of cost data.

    ReportConfigAggregation, ReportConfigAggregationArgs

    Function string | Pulumi.AzureNative.CostManagement.FunctionType
    The name of the aggregation function to use.
    Name string
    The name of the column to aggregate.
    Function string | FunctionType
    The name of the aggregation function to use.
    Name string
    The name of the column to aggregate.
    function String | FunctionType
    The name of the aggregation function to use.
    name String
    The name of the column to aggregate.
    function string | FunctionType
    The name of the aggregation function to use.
    name string
    The name of the column to aggregate.
    function str | FunctionType
    The name of the aggregation function to use.
    name str
    The name of the column to aggregate.
    function String | "Sum"
    The name of the aggregation function to use.
    name String
    The name of the column to aggregate.

    ReportConfigAggregationResponse, ReportConfigAggregationResponseArgs

    Function string
    The name of the aggregation function to use.
    Name string
    The name of the column to aggregate.
    Function string
    The name of the aggregation function to use.
    Name string
    The name of the column to aggregate.
    function String
    The name of the aggregation function to use.
    name String
    The name of the column to aggregate.
    function string
    The name of the aggregation function to use.
    name string
    The name of the column to aggregate.
    function str
    The name of the aggregation function to use.
    name str
    The name of the column to aggregate.
    function String
    The name of the aggregation function to use.
    name String
    The name of the column to aggregate.

    ReportConfigComparisonExpression, ReportConfigComparisonExpressionArgs

    Name string
    The name of the column to use in comparison.
    Operator string | Pulumi.AzureNative.CostManagement.OperatorType
    The operator to use for comparison.
    Values List<string>
    Array of values to use for comparison
    Name string
    The name of the column to use in comparison.
    Operator string | OperatorType
    The operator to use for comparison.
    Values []string
    Array of values to use for comparison
    name String
    The name of the column to use in comparison.
    operator String | OperatorType
    The operator to use for comparison.
    values List<String>
    Array of values to use for comparison
    name string
    The name of the column to use in comparison.
    operator string | OperatorType
    The operator to use for comparison.
    values string[]
    Array of values to use for comparison
    name str
    The name of the column to use in comparison.
    operator str | OperatorType
    The operator to use for comparison.
    values Sequence[str]
    Array of values to use for comparison
    name String
    The name of the column to use in comparison.
    operator String | "In" | "Contains"
    The operator to use for comparison.
    values List<String>
    Array of values to use for comparison

    ReportConfigComparisonExpressionResponse, ReportConfigComparisonExpressionResponseArgs

    Name string
    The name of the column to use in comparison.
    Operator string
    The operator to use for comparison.
    Values List<string>
    Array of values to use for comparison
    Name string
    The name of the column to use in comparison.
    Operator string
    The operator to use for comparison.
    Values []string
    Array of values to use for comparison
    name String
    The name of the column to use in comparison.
    operator String
    The operator to use for comparison.
    values List<String>
    Array of values to use for comparison
    name string
    The name of the column to use in comparison.
    operator string
    The operator to use for comparison.
    values string[]
    Array of values to use for comparison
    name str
    The name of the column to use in comparison.
    operator str
    The operator to use for comparison.
    values Sequence[str]
    Array of values to use for comparison
    name String
    The name of the column to use in comparison.
    operator String
    The operator to use for comparison.
    values List<String>
    Array of values to use for comparison

    ReportConfigDataset, ReportConfigDatasetArgs

    Aggregation Dictionary<string, Pulumi.AzureNative.CostManagement.Inputs.ReportConfigAggregation>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    Configuration Pulumi.AzureNative.CostManagement.Inputs.ReportConfigDatasetConfiguration
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    Filter Pulumi.AzureNative.CostManagement.Inputs.ReportConfigFilter
    Has filter expression to use in the report.
    Granularity string | Pulumi.AzureNative.CostManagement.ReportGranularityType
    The granularity of rows in the report.
    Grouping List<Pulumi.AzureNative.CostManagement.Inputs.ReportConfigGrouping>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    Sorting List<Pulumi.AzureNative.CostManagement.Inputs.ReportConfigSorting>
    Array of order by expression to use in the report.
    Aggregation map[string]ReportConfigAggregation
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    Configuration ReportConfigDatasetConfiguration
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    Filter ReportConfigFilter
    Has filter expression to use in the report.
    Granularity string | ReportGranularityType
    The granularity of rows in the report.
    Grouping []ReportConfigGrouping
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    Sorting []ReportConfigSorting
    Array of order by expression to use in the report.
    aggregation Map<String,ReportConfigAggregation>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfiguration
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilter
    Has filter expression to use in the report.
    granularity String | ReportGranularityType
    The granularity of rows in the report.
    grouping List<ReportConfigGrouping>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting List<ReportConfigSorting>
    Array of order by expression to use in the report.
    aggregation {[key: string]: ReportConfigAggregation}
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfiguration
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilter
    Has filter expression to use in the report.
    granularity string | ReportGranularityType
    The granularity of rows in the report.
    grouping ReportConfigGrouping[]
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting ReportConfigSorting[]
    Array of order by expression to use in the report.
    aggregation Mapping[str, ReportConfigAggregation]
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfiguration
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilter
    Has filter expression to use in the report.
    granularity str | ReportGranularityType
    The granularity of rows in the report.
    grouping Sequence[ReportConfigGrouping]
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting Sequence[ReportConfigSorting]
    Array of order by expression to use in the report.
    aggregation Map<Property Map>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration Property Map
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter Property Map
    Has filter expression to use in the report.
    granularity String | "Daily" | "Monthly"
    The granularity of rows in the report.
    grouping List<Property Map>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting List<Property Map>
    Array of order by expression to use in the report.

    ReportConfigDatasetConfiguration, ReportConfigDatasetConfigurationArgs

    Columns List<string>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    Columns []string
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns List<String>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns string[]
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns Sequence[str]
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns List<String>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.

    ReportConfigDatasetConfigurationResponse, ReportConfigDatasetConfigurationResponseArgs

    Columns List<string>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    Columns []string
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns List<String>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns string[]
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns Sequence[str]
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
    columns List<String>
    Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.

    ReportConfigDatasetResponse, ReportConfigDatasetResponseArgs

    Aggregation Dictionary<string, Pulumi.AzureNative.CostManagement.Inputs.ReportConfigAggregationResponse>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    Configuration Pulumi.AzureNative.CostManagement.Inputs.ReportConfigDatasetConfigurationResponse
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    Filter Pulumi.AzureNative.CostManagement.Inputs.ReportConfigFilterResponse
    Has filter expression to use in the report.
    Granularity string
    The granularity of rows in the report.
    Grouping List<Pulumi.AzureNative.CostManagement.Inputs.ReportConfigGroupingResponse>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    Sorting List<Pulumi.AzureNative.CostManagement.Inputs.ReportConfigSortingResponse>
    Array of order by expression to use in the report.
    Aggregation map[string]ReportConfigAggregationResponse
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    Configuration ReportConfigDatasetConfigurationResponse
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    Filter ReportConfigFilterResponse
    Has filter expression to use in the report.
    Granularity string
    The granularity of rows in the report.
    Grouping []ReportConfigGroupingResponse
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    Sorting []ReportConfigSortingResponse
    Array of order by expression to use in the report.
    aggregation Map<String,ReportConfigAggregationResponse>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfigurationResponse
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilterResponse
    Has filter expression to use in the report.
    granularity String
    The granularity of rows in the report.
    grouping List<ReportConfigGroupingResponse>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting List<ReportConfigSortingResponse>
    Array of order by expression to use in the report.
    aggregation {[key: string]: ReportConfigAggregationResponse}
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfigurationResponse
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilterResponse
    Has filter expression to use in the report.
    granularity string
    The granularity of rows in the report.
    grouping ReportConfigGroupingResponse[]
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting ReportConfigSortingResponse[]
    Array of order by expression to use in the report.
    aggregation Mapping[str, ReportConfigAggregationResponse]
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration ReportConfigDatasetConfigurationResponse
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter ReportConfigFilterResponse
    Has filter expression to use in the report.
    granularity str
    The granularity of rows in the report.
    grouping Sequence[ReportConfigGroupingResponse]
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting Sequence[ReportConfigSortingResponse]
    Array of order by expression to use in the report.
    aggregation Map<Property Map>
    Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
    configuration Property Map
    Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
    filter Property Map
    Has filter expression to use in the report.
    granularity String
    The granularity of rows in the report.
    grouping List<Property Map>
    Array of group by expression to use in the report. Report can have up to 2 group by clauses.
    sorting List<Property Map>
    Array of order by expression to use in the report.

    ReportConfigFilter, ReportConfigFilterArgs

    And []ReportConfigFilter
    The logical "AND" expression. Must have at least 2 items.
    Dimensions ReportConfigComparisonExpression
    Has comparison expression for a dimension
    Or []ReportConfigFilter
    The logical "OR" expression. Must have at least 2 items.
    Tags ReportConfigComparisonExpression
    Has comparison expression for a tag
    and List<ReportConfigFilter>
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpression
    Has comparison expression for a dimension
    or List<ReportConfigFilter>
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpression
    Has comparison expression for a tag
    and ReportConfigFilter[]
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpression
    Has comparison expression for a dimension
    or ReportConfigFilter[]
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpression
    Has comparison expression for a tag
    and_ Sequence[ReportConfigFilter]
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpression
    Has comparison expression for a dimension
    or_ Sequence[ReportConfigFilter]
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpression
    Has comparison expression for a tag
    and List<Property Map>
    The logical "AND" expression. Must have at least 2 items.
    dimensions Property Map
    Has comparison expression for a dimension
    or List<Property Map>
    The logical "OR" expression. Must have at least 2 items.
    tags Property Map
    Has comparison expression for a tag

    ReportConfigFilterResponse, ReportConfigFilterResponseArgs

    And []ReportConfigFilterResponse
    The logical "AND" expression. Must have at least 2 items.
    Dimensions ReportConfigComparisonExpressionResponse
    Has comparison expression for a dimension
    Or []ReportConfigFilterResponse
    The logical "OR" expression. Must have at least 2 items.
    Tags ReportConfigComparisonExpressionResponse
    Has comparison expression for a tag
    and List<ReportConfigFilterResponse>
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpressionResponse
    Has comparison expression for a dimension
    or List<ReportConfigFilterResponse>
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpressionResponse
    Has comparison expression for a tag
    and ReportConfigFilterResponse[]
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpressionResponse
    Has comparison expression for a dimension
    or ReportConfigFilterResponse[]
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpressionResponse
    Has comparison expression for a tag
    and_ Sequence[ReportConfigFilterResponse]
    The logical "AND" expression. Must have at least 2 items.
    dimensions ReportConfigComparisonExpressionResponse
    Has comparison expression for a dimension
    or_ Sequence[ReportConfigFilterResponse]
    The logical "OR" expression. Must have at least 2 items.
    tags ReportConfigComparisonExpressionResponse
    Has comparison expression for a tag
    and List<Property Map>
    The logical "AND" expression. Must have at least 2 items.
    dimensions Property Map
    Has comparison expression for a dimension
    or List<Property Map>
    The logical "OR" expression. Must have at least 2 items.
    tags Property Map
    Has comparison expression for a tag

    ReportConfigGrouping, ReportConfigGroupingArgs

    Name string
    The name of the column to group. This version supports subscription lowest possible grain.
    Type string | Pulumi.AzureNative.CostManagement.QueryColumnType
    Has type of the column to group.
    Name string
    The name of the column to group. This version supports subscription lowest possible grain.
    Type string | QueryColumnType
    Has type of the column to group.
    name String
    The name of the column to group. This version supports subscription lowest possible grain.
    type String | QueryColumnType
    Has type of the column to group.
    name string
    The name of the column to group. This version supports subscription lowest possible grain.
    type string | QueryColumnType
    Has type of the column to group.
    name str
    The name of the column to group. This version supports subscription lowest possible grain.
    type str | QueryColumnType
    Has type of the column to group.
    name String
    The name of the column to group. This version supports subscription lowest possible grain.
    type String | "TagKey" | "Dimension"
    Has type of the column to group.

    ReportConfigGroupingResponse, ReportConfigGroupingResponseArgs

    Name string
    The name of the column to group. This version supports subscription lowest possible grain.
    Type string
    Has type of the column to group.
    Name string
    The name of the column to group. This version supports subscription lowest possible grain.
    Type string
    Has type of the column to group.
    name String
    The name of the column to group. This version supports subscription lowest possible grain.
    type String
    Has type of the column to group.
    name string
    The name of the column to group. This version supports subscription lowest possible grain.
    type string
    Has type of the column to group.
    name str
    The name of the column to group. This version supports subscription lowest possible grain.
    type str
    Has type of the column to group.
    name String
    The name of the column to group. This version supports subscription lowest possible grain.
    type String
    Has type of the column to group.

    ReportConfigSorting, ReportConfigSortingArgs

    Name string
    The name of the column to sort.
    Direction string | Pulumi.AzureNative.CostManagement.ReportConfigSortingType
    Direction of sort.
    Name string
    The name of the column to sort.
    Direction string | ReportConfigSortingType
    Direction of sort.
    name String
    The name of the column to sort.
    direction String | ReportConfigSortingType
    Direction of sort.
    name string
    The name of the column to sort.
    direction string | ReportConfigSortingType
    Direction of sort.
    name str
    The name of the column to sort.
    direction str | ReportConfigSortingType
    Direction of sort.
    name String
    The name of the column to sort.
    direction String | "Ascending" | "Descending"
    Direction of sort.

    ReportConfigSortingResponse, ReportConfigSortingResponseArgs

    Name string
    The name of the column to sort.
    Direction string
    Direction of sort.
    Name string
    The name of the column to sort.
    Direction string
    Direction of sort.
    name String
    The name of the column to sort.
    direction String
    Direction of sort.
    name string
    The name of the column to sort.
    direction string
    Direction of sort.
    name str
    The name of the column to sort.
    direction str
    Direction of sort.
    name String
    The name of the column to sort.
    direction String
    Direction of sort.

    ReportConfigSortingType, ReportConfigSortingTypeArgs

    Ascending
    Ascending
    Descending
    Descending
    ReportConfigSortingTypeAscending
    Ascending
    ReportConfigSortingTypeDescending
    Descending
    Ascending
    Ascending
    Descending
    Descending
    Ascending
    Ascending
    Descending
    Descending
    ASCENDING
    Ascending
    DESCENDING
    Descending
    "Ascending"
    Ascending
    "Descending"
    Descending

    ReportConfigTimePeriod, ReportConfigTimePeriodArgs

    From string
    The start date to pull data from.
    To string
    The end date to pull data to.
    From string
    The start date to pull data from.
    To string
    The end date to pull data to.
    from String
    The start date to pull data from.
    to String
    The end date to pull data to.
    from string
    The start date to pull data from.
    to string
    The end date to pull data to.
    from_ str
    The start date to pull data from.
    to str
    The end date to pull data to.
    from String
    The start date to pull data from.
    to String
    The end date to pull data to.

    ReportConfigTimePeriodResponse, ReportConfigTimePeriodResponseArgs

    From string
    The start date to pull data from.
    To string
    The end date to pull data to.
    From string
    The start date to pull data from.
    To string
    The end date to pull data to.
    from String
    The start date to pull data from.
    to String
    The end date to pull data to.
    from string
    The start date to pull data from.
    to string
    The end date to pull data to.
    from_ str
    The start date to pull data from.
    to str
    The end date to pull data to.
    from String
    The start date to pull data from.
    to String
    The end date to pull data to.

    ReportGranularityType, ReportGranularityTypeArgs

    Daily
    Daily
    Monthly
    Monthly
    ReportGranularityTypeDaily
    Daily
    ReportGranularityTypeMonthly
    Monthly
    Daily
    Daily
    Monthly
    Monthly
    Daily
    Daily
    Monthly
    Monthly
    DAILY
    Daily
    MONTHLY
    Monthly
    "Daily"
    Daily
    "Monthly"
    Monthly

    ReportTimeframeType, ReportTimeframeTypeArgs

    WeekToDate
    WeekToDate
    MonthToDate
    MonthToDate
    YearToDate
    YearToDate
    Custom
    Custom
    ReportTimeframeTypeWeekToDate
    WeekToDate
    ReportTimeframeTypeMonthToDate
    MonthToDate
    ReportTimeframeTypeYearToDate
    YearToDate
    ReportTimeframeTypeCustom
    Custom
    WeekToDate
    WeekToDate
    MonthToDate
    MonthToDate
    YearToDate
    YearToDate
    Custom
    Custom
    WeekToDate
    WeekToDate
    MonthToDate
    MonthToDate
    YearToDate
    YearToDate
    Custom
    Custom
    WEEK_TO_DATE
    WeekToDate
    MONTH_TO_DATE
    MonthToDate
    YEAR_TO_DATE
    YearToDate
    CUSTOM
    Custom
    "WeekToDate"
    WeekToDate
    "MonthToDate"
    MonthToDate
    "YearToDate"
    YearToDate
    "Custom"
    Custom

    ReportType, ReportTypeArgs

    Usage
    Usage
    ReportTypeUsage
    Usage
    Usage
    Usage
    Usage
    Usage
    USAGE
    Usage
    "Usage"
    Usage

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:costmanagement:View swaggerExample /providers/Microsoft.CostManagement/views/{viewName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi