Module costmanagement
This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
Resources
Resource ResourceGroupExport
class ResourceGroupExport extends CustomResourceManages an Azure Cost Management Export for a Resource Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "northeurope"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleResourceGroupExport = new azure.costmanagement.ResourceGroupExport("exampleResourceGroupExport", {
resourceGroupId: exampleResourceGroup.id,
recurrenceType: "Monthly",
recurrencePeriodStart: "2020-08-18T00:00:00Z",
recurrencePeriodEnd: "2020-09-18T00:00:00Z",
delivery_info: {
storageAccountId: exampleAccount.id,
containerName: "examplecontainer",
rootFolderPath: "/root/updated",
},
query: {
type: "Usage",
timeFrame: "WeekToDate",
},
});constructor
new ResourceGroupExport(name: string, args: ResourceGroupExportArgs, opts?: pulumi.CustomResourceOptions)Create a ResourceGroupExport resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceGroupExportState, opts?: pulumi.CustomResourceOptions): ResourceGroupExportGet an existing ResourceGroupExport resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ResourceGroupExportReturns true if the given object is an instance of ResourceGroupExport. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property active
public active: pulumi.Output<boolean | undefined>;Is the cost management export active? Default is true.
property deliveryInfo
public deliveryInfo: pulumi.Output<ResourceGroupExportDeliveryInfo>;A deliveryInfo block as defined below.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
property query
public query: pulumi.Output<ResourceGroupExportQuery>;A query block as defined below.
property recurrencePeriodEnd
public recurrencePeriodEnd: pulumi.Output<string>;The date the export will stop capturing information.
property recurrencePeriodStart
public recurrencePeriodStart: pulumi.Output<string>;The date the export will start capturing information.
property recurrenceType
public recurrenceType: pulumi.Output<string>;How often the requested information will be exported. Valid values include Annually, Daily, Monthly, Weekly.
property resourceGroupId
public resourceGroupId: pulumi.Output<string>;The id of the resource group in which to export information.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface ResourceGroupExportArgs
interface ResourceGroupExportArgsThe set of arguments for constructing a ResourceGroupExport resource.
property active
active?: pulumi.Input<boolean>;Is the cost management export active? Default is true.
property deliveryInfo
deliveryInfo: pulumi.Input<ResourceGroupExportDeliveryInfo>;A deliveryInfo block as defined below.
property name
name?: pulumi.Input<string>;Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
property query
query: pulumi.Input<ResourceGroupExportQuery>;A query block as defined below.
property recurrencePeriodEnd
recurrencePeriodEnd: pulumi.Input<string>;The date the export will stop capturing information.
property recurrencePeriodStart
recurrencePeriodStart: pulumi.Input<string>;The date the export will start capturing information.
property recurrenceType
recurrenceType: pulumi.Input<string>;How often the requested information will be exported. Valid values include Annually, Daily, Monthly, Weekly.
property resourceGroupId
resourceGroupId: pulumi.Input<string>;The id of the resource group in which to export information.
interface ResourceGroupExportState
interface ResourceGroupExportStateInput properties used for looking up and filtering ResourceGroupExport resources.
property active
active?: pulumi.Input<boolean>;Is the cost management export active? Default is true.
property deliveryInfo
deliveryInfo?: pulumi.Input<ResourceGroupExportDeliveryInfo>;A deliveryInfo block as defined below.
property name
name?: pulumi.Input<string>;Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
property query
query?: pulumi.Input<ResourceGroupExportQuery>;A query block as defined below.
property recurrencePeriodEnd
recurrencePeriodEnd?: pulumi.Input<string>;The date the export will stop capturing information.
property recurrencePeriodStart
recurrencePeriodStart?: pulumi.Input<string>;The date the export will start capturing information.
property recurrenceType
recurrenceType?: pulumi.Input<string>;How often the requested information will be exported. Valid values include Annually, Daily, Monthly, Weekly.
property resourceGroupId
resourceGroupId?: pulumi.Input<string>;The id of the resource group in which to export information.