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 Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.core.getSubscription({}); * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "example", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleContainer = new azure.storage.Container("example", { * name: "examplecontainer", * storageAccountName: exampleAccount.name, * }); * const exampleSubscriptionCostManagementExport = new azure.core.SubscriptionCostManagementExport("example", { * name: "example", * subscriptionId: example.then(example => 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 * * Subscription Cost Management Exports can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:core/subscriptionCostManagementExport:SubscriptionCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/providers/Microsoft.CostManagement/exports/export1 * ``` */ export declare class SubscriptionCostManagementExport extends pulumi.CustomResource { /** * Get an existing SubscriptionCostManagementExport 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?: SubscriptionCostManagementExportState, opts?: pulumi.CustomResourceOptions): SubscriptionCostManagementExport; /** * Returns true if the given object is an instance of SubscriptionCostManagementExport. 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 SubscriptionCostManagementExport; /** * 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 subscription on which to create an export. Changing this forces a new resource to be created. */ readonly subscriptionId: pulumi.Output; /** * Create a SubscriptionCostManagementExport 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: SubscriptionCostManagementExportArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SubscriptionCostManagementExport resources. */ export interface SubscriptionCostManagementExportState { /** * 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 subscription on which to create an export. Changing this forces a new resource to be created. */ subscriptionId?: pulumi.Input; } /** * The set of arguments for constructing a SubscriptionCostManagementExport resource. */ export interface SubscriptionCostManagementExportArgs { /** * 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 subscription on which to create an export. Changing this forces a new resource to be created. */ subscriptionId: pulumi.Input; }