import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Cost Management Export for a Resource Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleContainer = new azure.storage.Container("example", { * name: "examplecontainer", * storageAccountName: exampleAccount.name, * }); * const exampleResourceGroupCostManagementExport = new azure.core.ResourceGroupCostManagementExport("example", { * name: "example", * resourceGroupId: example.id, * recurrenceType: "Monthly", * recurrencePeriodStartDate: "2020-08-18T00:00:00Z", * recurrencePeriodEndDate: "2020-09-18T00:00:00Z", * fileFormat: "Csv", * exportDataStorageLocation: { * containerId: exampleContainer.id, * rootFolderPath: "/root/updated", * }, * exportDataOptions: { * type: "Usage", * timeFrame: "WeekToDate", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.CostManagement` - 2023-08-01 * * ## Import * * Cost Management Export for a Resource Group can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:core/resourceGroupCostManagementExport:ResourceGroupCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.CostManagement/exports/export1 * ``` */ export declare class ResourceGroupCostManagementExport extends pulumi.CustomResource { /** * Get an existing ResourceGroupCostManagementExport resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ResourceGroupCostManagementExportState, opts?: pulumi.CustomResourceOptions): ResourceGroupCostManagementExport; /** * Returns true if the given object is an instance of ResourceGroupCostManagementExport. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ResourceGroupCostManagementExport; /** * Is the cost management export active? Default is `true`. */ readonly active: pulumi.Output; /** * A `exportDataOptions` block as defined below. */ readonly exportDataOptions: pulumi.Output; /** * A `exportDataStorageLocation` block as defined below. */ readonly exportDataStorageLocation: pulumi.Output; /** * Format for export. Valid values are `Csv` only. Default is `Csv`. */ readonly fileFormat: pulumi.Output; /** * Specifies the name of the Cost Management Export. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The date the export will stop capturing information. */ readonly recurrencePeriodEndDate: pulumi.Output; /** * The date the export will start capturing information. */ readonly recurrencePeriodStartDate: pulumi.Output; /** * How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`. */ readonly recurrenceType: pulumi.Output; /** * The id of the resource group on which to create an export. Changing this forces a new resource to be created. */ readonly resourceGroupId: pulumi.Output; /** * Create a ResourceGroupCostManagementExport resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ResourceGroupCostManagementExportArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceGroupCostManagementExport resources. */ export interface ResourceGroupCostManagementExportState { /** * Is the cost management export active? Default is `true`. */ active?: pulumi.Input; /** * A `exportDataOptions` block as defined below. */ exportDataOptions?: pulumi.Input; /** * A `exportDataStorageLocation` block as defined below. */ exportDataStorageLocation?: pulumi.Input; /** * Format for export. Valid values are `Csv` only. Default is `Csv`. */ fileFormat?: pulumi.Input; /** * Specifies the name of the Cost Management Export. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The date the export will stop capturing information. */ recurrencePeriodEndDate?: pulumi.Input; /** * The date the export will start capturing information. */ recurrencePeriodStartDate?: pulumi.Input; /** * How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`. */ recurrenceType?: pulumi.Input; /** * The id of the resource group on which to create an export. Changing this forces a new resource to be created. */ resourceGroupId?: pulumi.Input; } /** * The set of arguments for constructing a ResourceGroupCostManagementExport resource. */ export interface ResourceGroupCostManagementExportArgs { /** * Is the cost management export active? Default is `true`. */ active?: pulumi.Input; /** * A `exportDataOptions` block as defined below. */ exportDataOptions: pulumi.Input; /** * A `exportDataStorageLocation` block as defined below. */ exportDataStorageLocation: pulumi.Input; /** * Format for export. Valid values are `Csv` only. Default is `Csv`. */ fileFormat?: pulumi.Input; /** * Specifies the name of the Cost Management Export. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The date the export will stop capturing information. */ recurrencePeriodEndDate: pulumi.Input; /** * The date the export will start capturing information. */ recurrencePeriodStartDate: pulumi.Input; /** * How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`. */ recurrenceType: pulumi.Input; /** * The id of the resource group on which to create an export. Changing this forces a new resource to be created. */ resourceGroupId: pulumi.Input; }