billing

package
v5.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCostManagementExport added in v5.29.0

type AccountCostManagementExport struct {
	pulumi.CustomResourceState

	// Is the cost management export active? Default is `true`.
	Active pulumi.BoolPtrOutput `pulumi:"active"`
	// The id of the billing account on which to create an export. Changing this forces a new resource to be created.
	BillingAccountId pulumi.StringOutput `pulumi:"billingAccountId"`
	// A `exportDataOptions` block as defined below.
	ExportDataOptions AccountCostManagementExportExportDataOptionsOutput `pulumi:"exportDataOptions"`
	// A `exportDataStorageLocation` block as defined below.
	ExportDataStorageLocation AccountCostManagementExportExportDataStorageLocationOutput `pulumi:"exportDataStorageLocation"`
	// Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The date the export will stop capturing information.
	RecurrencePeriodEndDate pulumi.StringOutput `pulumi:"recurrencePeriodEndDate"`
	// The date the export will start capturing information.
	RecurrencePeriodStartDate pulumi.StringOutput `pulumi:"recurrencePeriodStartDate"`
	// How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
	RecurrenceType pulumi.StringOutput `pulumi:"recurrenceType"`
}

Manages a Cost Management Export for a Billing Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "exampleContainer", &storage.ContainerArgs{
			StorageAccountName: exampleAccount.Name,
		})
		if err != nil {
			return err
		}
		_, err = billing.NewAccountCostManagementExport(ctx, "exampleAccountCostManagementExport", &billing.AccountCostManagementExportArgs{
			BillingAccountId:          pulumi.String("example"),
			RecurrenceType:            pulumi.String("Monthly"),
			RecurrencePeriodStartDate: pulumi.String("2020-08-18T00:00:00Z"),
			RecurrencePeriodEndDate:   pulumi.String("2020-09-18T00:00:00Z"),
			ExportDataStorageLocation: &billing.AccountCostManagementExportExportDataStorageLocationArgs{
				ContainerId:    exampleContainer.ResourceManagerId,
				RootFolderPath: pulumi.String("/root/updated"),
			},
			ExportDataOptions: &billing.AccountCostManagementExportExportDataOptionsArgs{
				Type:      pulumi.String("Usage"),
				TimeFrame: pulumi.String("WeekToDate"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Billing Account Cost Management Exports can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:billing/accountCostManagementExport:AccountCostManagementExport example /providers/Microsoft.Billing/billingAccounts/12345678/providers/Microsoft.CostManagement/exports/export1

```

func GetAccountCostManagementExport added in v5.29.0

func GetAccountCostManagementExport(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountCostManagementExportState, opts ...pulumi.ResourceOption) (*AccountCostManagementExport, error)

GetAccountCostManagementExport gets an existing AccountCostManagementExport resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccountCostManagementExport added in v5.29.0

func NewAccountCostManagementExport(ctx *pulumi.Context,
	name string, args *AccountCostManagementExportArgs, opts ...pulumi.ResourceOption) (*AccountCostManagementExport, error)

NewAccountCostManagementExport registers a new resource with the given unique name, arguments, and options.

func (*AccountCostManagementExport) ElementType added in v5.29.0

func (*AccountCostManagementExport) ElementType() reflect.Type

func (*AccountCostManagementExport) ToAccountCostManagementExportOutput added in v5.29.0

func (i *AccountCostManagementExport) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput

func (*AccountCostManagementExport) ToAccountCostManagementExportOutputWithContext added in v5.29.0

func (i *AccountCostManagementExport) ToAccountCostManagementExportOutputWithContext(ctx context.Context) AccountCostManagementExportOutput

func (*AccountCostManagementExport) ToOutput added in v5.52.0

type AccountCostManagementExportArgs added in v5.29.0

type AccountCostManagementExportArgs struct {
	// Is the cost management export active? Default is `true`.
	Active pulumi.BoolPtrInput
	// The id of the billing account on which to create an export. Changing this forces a new resource to be created.
	BillingAccountId pulumi.StringInput
	// A `exportDataOptions` block as defined below.
	ExportDataOptions AccountCostManagementExportExportDataOptionsInput
	// A `exportDataStorageLocation` block as defined below.
	ExportDataStorageLocation AccountCostManagementExportExportDataStorageLocationInput
	// Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The date the export will stop capturing information.
	RecurrencePeriodEndDate pulumi.StringInput
	// The date the export will start capturing information.
	RecurrencePeriodStartDate pulumi.StringInput
	// How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
	RecurrenceType pulumi.StringInput
}

The set of arguments for constructing a AccountCostManagementExport resource.

func (AccountCostManagementExportArgs) ElementType added in v5.29.0

type AccountCostManagementExportArray added in v5.29.0

type AccountCostManagementExportArray []AccountCostManagementExportInput

func (AccountCostManagementExportArray) ElementType added in v5.29.0

func (AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutput added in v5.29.0

func (i AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutputWithContext added in v5.29.0

func (i AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutputWithContext(ctx context.Context) AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArray) ToOutput added in v5.52.0

type AccountCostManagementExportArrayInput added in v5.29.0

type AccountCostManagementExportArrayInput interface {
	pulumi.Input

	ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput
	ToAccountCostManagementExportArrayOutputWithContext(context.Context) AccountCostManagementExportArrayOutput
}

AccountCostManagementExportArrayInput is an input type that accepts AccountCostManagementExportArray and AccountCostManagementExportArrayOutput values. You can construct a concrete instance of `AccountCostManagementExportArrayInput` via:

AccountCostManagementExportArray{ AccountCostManagementExportArgs{...} }

type AccountCostManagementExportArrayOutput added in v5.29.0

type AccountCostManagementExportArrayOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportArrayOutput) ElementType added in v5.29.0

func (AccountCostManagementExportArrayOutput) Index added in v5.29.0

func (AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutput added in v5.29.0

func (o AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutputWithContext added in v5.29.0

func (o AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutputWithContext(ctx context.Context) AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArrayOutput) ToOutput added in v5.52.0

type AccountCostManagementExportExportDataOptions added in v5.29.0

type AccountCostManagementExportExportDataOptions struct {
	// The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: `WeekToDate`, `MonthToDate`, `BillingMonthToDate`, `TheLast7Days`, `TheLastMonth`, `TheLastBillingMonth`, `Custom`.
	TimeFrame string `pulumi:"timeFrame"`
	// The type of the query. Possible values are `ActualCost`, `AmortizedCost` and `Usage`.
	Type string `pulumi:"type"`
}

type AccountCostManagementExportExportDataOptionsArgs added in v5.29.0

type AccountCostManagementExportExportDataOptionsArgs struct {
	// The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: `WeekToDate`, `MonthToDate`, `BillingMonthToDate`, `TheLast7Days`, `TheLastMonth`, `TheLastBillingMonth`, `Custom`.
	TimeFrame pulumi.StringInput `pulumi:"timeFrame"`
	// The type of the query. Possible values are `ActualCost`, `AmortizedCost` and `Usage`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AccountCostManagementExportExportDataOptionsArgs) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutput added in v5.29.0

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutputWithContext added in v5.29.0

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutput added in v5.29.0

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext added in v5.29.0

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToOutput added in v5.52.0

type AccountCostManagementExportExportDataOptionsInput added in v5.29.0

type AccountCostManagementExportExportDataOptionsInput interface {
	pulumi.Input

	ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput
	ToAccountCostManagementExportExportDataOptionsOutputWithContext(context.Context) AccountCostManagementExportExportDataOptionsOutput
}

AccountCostManagementExportExportDataOptionsInput is an input type that accepts AccountCostManagementExportExportDataOptionsArgs and AccountCostManagementExportExportDataOptionsOutput values. You can construct a concrete instance of `AccountCostManagementExportExportDataOptionsInput` via:

AccountCostManagementExportExportDataOptionsArgs{...}

type AccountCostManagementExportExportDataOptionsOutput added in v5.29.0

type AccountCostManagementExportExportDataOptionsOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataOptionsOutput) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataOptionsOutput) TimeFrame added in v5.29.0

The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: `WeekToDate`, `MonthToDate`, `BillingMonthToDate`, `TheLast7Days`, `TheLastMonth`, `TheLastBillingMonth`, `Custom`.

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutput added in v5.29.0

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput added in v5.29.0

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToOutput added in v5.52.0

func (AccountCostManagementExportExportDataOptionsOutput) Type added in v5.29.0

The type of the query. Possible values are `ActualCost`, `AmortizedCost` and `Usage`.

type AccountCostManagementExportExportDataOptionsPtrInput added in v5.29.0

type AccountCostManagementExportExportDataOptionsPtrInput interface {
	pulumi.Input

	ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput
	ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(context.Context) AccountCostManagementExportExportDataOptionsPtrOutput
}

AccountCostManagementExportExportDataOptionsPtrInput is an input type that accepts AccountCostManagementExportExportDataOptionsArgs, AccountCostManagementExportExportDataOptionsPtr and AccountCostManagementExportExportDataOptionsPtrOutput values. You can construct a concrete instance of `AccountCostManagementExportExportDataOptionsPtrInput` via:

        AccountCostManagementExportExportDataOptionsArgs{...}

or:

        nil

type AccountCostManagementExportExportDataOptionsPtrOutput added in v5.29.0

type AccountCostManagementExportExportDataOptionsPtrOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataOptionsPtrOutput) Elem added in v5.29.0

func (AccountCostManagementExportExportDataOptionsPtrOutput) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataOptionsPtrOutput) TimeFrame added in v5.29.0

The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: `WeekToDate`, `MonthToDate`, `BillingMonthToDate`, `TheLast7Days`, `TheLastMonth`, `TheLastBillingMonth`, `Custom`.

func (AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput added in v5.29.0

func (AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsPtrOutput) ToOutput added in v5.52.0

func (AccountCostManagementExportExportDataOptionsPtrOutput) Type added in v5.29.0

The type of the query. Possible values are `ActualCost`, `AmortizedCost` and `Usage`.

type AccountCostManagementExportExportDataStorageLocation added in v5.29.0

type AccountCostManagementExportExportDataStorageLocation struct {
	// The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
	ContainerId string `pulumi:"containerId"`
	// The path of the directory where exports will be uploaded. Changing this forces a new resource to be created.
	//
	// > **Note:** The Resource Manager ID of a Storage Container is exposed via the `resourceManagerId` attribute of the `storage.Container` resource.
	RootFolderPath string `pulumi:"rootFolderPath"`
}

type AccountCostManagementExportExportDataStorageLocationArgs added in v5.29.0

type AccountCostManagementExportExportDataStorageLocationArgs struct {
	// The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
	ContainerId pulumi.StringInput `pulumi:"containerId"`
	// The path of the directory where exports will be uploaded. Changing this forces a new resource to be created.
	//
	// > **Note:** The Resource Manager ID of a Storage Container is exposed via the `resourceManagerId` attribute of the `storage.Container` resource.
	RootFolderPath pulumi.StringInput `pulumi:"rootFolderPath"`
}

func (AccountCostManagementExportExportDataStorageLocationArgs) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutput added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext added in v5.29.0

func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationOutput

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutput added in v5.29.0

func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext added in v5.29.0

func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationArgs) ToOutput added in v5.52.0

type AccountCostManagementExportExportDataStorageLocationInput added in v5.29.0

type AccountCostManagementExportExportDataStorageLocationInput interface {
	pulumi.Input

	ToAccountCostManagementExportExportDataStorageLocationOutput() AccountCostManagementExportExportDataStorageLocationOutput
	ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(context.Context) AccountCostManagementExportExportDataStorageLocationOutput
}

AccountCostManagementExportExportDataStorageLocationInput is an input type that accepts AccountCostManagementExportExportDataStorageLocationArgs and AccountCostManagementExportExportDataStorageLocationOutput values. You can construct a concrete instance of `AccountCostManagementExportExportDataStorageLocationInput` via:

AccountCostManagementExportExportDataStorageLocationArgs{...}

type AccountCostManagementExportExportDataStorageLocationOutput added in v5.29.0

type AccountCostManagementExportExportDataStorageLocationOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataStorageLocationOutput) ContainerId added in v5.29.0

The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.

func (AccountCostManagementExportExportDataStorageLocationOutput) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationOutput) RootFolderPath added in v5.29.0

The path of the directory where exports will be uploaded. Changing this forces a new resource to be created.

> **Note:** The Resource Manager ID of a Storage Container is exposed via the `resourceManagerId` attribute of the `storage.Container` resource.

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutput added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationOutput

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationOutput) ToOutput added in v5.52.0

type AccountCostManagementExportExportDataStorageLocationPtrInput added in v5.29.0

type AccountCostManagementExportExportDataStorageLocationPtrInput interface {
	pulumi.Input

	ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
	ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput
}

AccountCostManagementExportExportDataStorageLocationPtrInput is an input type that accepts AccountCostManagementExportExportDataStorageLocationArgs, AccountCostManagementExportExportDataStorageLocationPtr and AccountCostManagementExportExportDataStorageLocationPtrOutput values. You can construct a concrete instance of `AccountCostManagementExportExportDataStorageLocationPtrInput` via:

        AccountCostManagementExportExportDataStorageLocationArgs{...}

or:

        nil

type AccountCostManagementExportExportDataStorageLocationPtrOutput added in v5.29.0

type AccountCostManagementExportExportDataStorageLocationPtrOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ContainerId added in v5.29.0

The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) Elem added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ElementType added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) RootFolderPath added in v5.29.0

The path of the directory where exports will be uploaded. Changing this forces a new resource to be created.

> **Note:** The Resource Manager ID of a Storage Container is exposed via the `resourceManagerId` attribute of the `storage.Container` resource.

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput added in v5.29.0

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext added in v5.29.0

func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ToOutput added in v5.52.0

type AccountCostManagementExportInput added in v5.29.0

type AccountCostManagementExportInput interface {
	pulumi.Input

	ToAccountCostManagementExportOutput() AccountCostManagementExportOutput
	ToAccountCostManagementExportOutputWithContext(ctx context.Context) AccountCostManagementExportOutput
}

type AccountCostManagementExportMap added in v5.29.0

type AccountCostManagementExportMap map[string]AccountCostManagementExportInput

func (AccountCostManagementExportMap) ElementType added in v5.29.0

func (AccountCostManagementExportMap) ToAccountCostManagementExportMapOutput added in v5.29.0

func (i AccountCostManagementExportMap) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput

func (AccountCostManagementExportMap) ToAccountCostManagementExportMapOutputWithContext added in v5.29.0

func (i AccountCostManagementExportMap) ToAccountCostManagementExportMapOutputWithContext(ctx context.Context) AccountCostManagementExportMapOutput

func (AccountCostManagementExportMap) ToOutput added in v5.52.0

type AccountCostManagementExportMapInput added in v5.29.0

type AccountCostManagementExportMapInput interface {
	pulumi.Input

	ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput
	ToAccountCostManagementExportMapOutputWithContext(context.Context) AccountCostManagementExportMapOutput
}

AccountCostManagementExportMapInput is an input type that accepts AccountCostManagementExportMap and AccountCostManagementExportMapOutput values. You can construct a concrete instance of `AccountCostManagementExportMapInput` via:

AccountCostManagementExportMap{ "key": AccountCostManagementExportArgs{...} }

type AccountCostManagementExportMapOutput added in v5.29.0

type AccountCostManagementExportMapOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportMapOutput) ElementType added in v5.29.0

func (AccountCostManagementExportMapOutput) MapIndex added in v5.29.0

func (AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutput added in v5.29.0

func (o AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput

func (AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutputWithContext added in v5.29.0

func (o AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutputWithContext(ctx context.Context) AccountCostManagementExportMapOutput

func (AccountCostManagementExportMapOutput) ToOutput added in v5.52.0

type AccountCostManagementExportOutput added in v5.29.0

type AccountCostManagementExportOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportOutput) Active added in v5.29.0

Is the cost management export active? Default is `true`.

func (AccountCostManagementExportOutput) BillingAccountId added in v5.29.0

The id of the billing account on which to create an export. Changing this forces a new resource to be created.

func (AccountCostManagementExportOutput) ElementType added in v5.29.0

func (AccountCostManagementExportOutput) ExportDataOptions added in v5.29.0

A `exportDataOptions` block as defined below.

func (AccountCostManagementExportOutput) ExportDataStorageLocation added in v5.29.0

A `exportDataStorageLocation` block as defined below.

func (AccountCostManagementExportOutput) Name added in v5.29.0

Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.

func (AccountCostManagementExportOutput) RecurrencePeriodEndDate added in v5.29.0

func (o AccountCostManagementExportOutput) RecurrencePeriodEndDate() pulumi.StringOutput

The date the export will stop capturing information.

func (AccountCostManagementExportOutput) RecurrencePeriodStartDate added in v5.29.0

func (o AccountCostManagementExportOutput) RecurrencePeriodStartDate() pulumi.StringOutput

The date the export will start capturing information.

func (AccountCostManagementExportOutput) RecurrenceType added in v5.29.0

How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.

func (AccountCostManagementExportOutput) ToAccountCostManagementExportOutput added in v5.29.0

func (o AccountCostManagementExportOutput) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput

func (AccountCostManagementExportOutput) ToAccountCostManagementExportOutputWithContext added in v5.29.0

func (o AccountCostManagementExportOutput) ToAccountCostManagementExportOutputWithContext(ctx context.Context) AccountCostManagementExportOutput

func (AccountCostManagementExportOutput) ToOutput added in v5.52.0

type AccountCostManagementExportState added in v5.29.0

type AccountCostManagementExportState struct {
	// Is the cost management export active? Default is `true`.
	Active pulumi.BoolPtrInput
	// The id of the billing account on which to create an export. Changing this forces a new resource to be created.
	BillingAccountId pulumi.StringPtrInput
	// A `exportDataOptions` block as defined below.
	ExportDataOptions AccountCostManagementExportExportDataOptionsPtrInput
	// A `exportDataStorageLocation` block as defined below.
	ExportDataStorageLocation AccountCostManagementExportExportDataStorageLocationPtrInput
	// Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The date the export will stop capturing information.
	RecurrencePeriodEndDate pulumi.StringPtrInput
	// The date the export will start capturing information.
	RecurrencePeriodStartDate pulumi.StringPtrInput
	// How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
	RecurrenceType pulumi.StringPtrInput
}

func (AccountCostManagementExportState) ElementType added in v5.29.0

type GetEnrollmentAccountScopeArgs

type GetEnrollmentAccountScopeArgs struct {
	// The Billing Account Name of the Enterprise Account.
	BillingAccountName string `pulumi:"billingAccountName"`
	// The Enrollment Account Name in the above Enterprise Account.
	EnrollmentAccountName string `pulumi:"enrollmentAccountName"`
}

A collection of arguments for invoking getEnrollmentAccountScope.

type GetEnrollmentAccountScopeOutputArgs

type GetEnrollmentAccountScopeOutputArgs struct {
	// The Billing Account Name of the Enterprise Account.
	BillingAccountName pulumi.StringInput `pulumi:"billingAccountName"`
	// The Enrollment Account Name in the above Enterprise Account.
	EnrollmentAccountName pulumi.StringInput `pulumi:"enrollmentAccountName"`
}

A collection of arguments for invoking getEnrollmentAccountScope.

func (GetEnrollmentAccountScopeOutputArgs) ElementType

type GetEnrollmentAccountScopeResult

type GetEnrollmentAccountScopeResult struct {
	BillingAccountName    string `pulumi:"billingAccountName"`
	EnrollmentAccountName string `pulumi:"enrollmentAccountName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getEnrollmentAccountScope.

func GetEnrollmentAccountScope

func GetEnrollmentAccountScope(ctx *pulumi.Context, args *GetEnrollmentAccountScopeArgs, opts ...pulumi.InvokeOption) (*GetEnrollmentAccountScopeResult, error)

Use this data source to access information about an existing Enrollment Account Billing Scope.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := billing.GetEnrollmentAccountScope(ctx, &billing.GetEnrollmentAccountScopeArgs{
			BillingAccountName:    "existing",
			EnrollmentAccountName: "existing",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type GetEnrollmentAccountScopeResultOutput

type GetEnrollmentAccountScopeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnrollmentAccountScope.

func (GetEnrollmentAccountScopeResultOutput) BillingAccountName

func (GetEnrollmentAccountScopeResultOutput) ElementType

func (GetEnrollmentAccountScopeResultOutput) EnrollmentAccountName

func (o GetEnrollmentAccountScopeResultOutput) EnrollmentAccountName() pulumi.StringOutput

func (GetEnrollmentAccountScopeResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutput

func (o GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutput() GetEnrollmentAccountScopeResultOutput

func (GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutputWithContext

func (o GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutputWithContext(ctx context.Context) GetEnrollmentAccountScopeResultOutput

func (GetEnrollmentAccountScopeResultOutput) ToOutput added in v5.52.0

type GetMcaAccountScopeArgs

type GetMcaAccountScopeArgs struct {
	// The Billing Account Name of the MCA account.
	BillingAccountName string `pulumi:"billingAccountName"`
	// The Billing Profile Name in the above Billing Account.
	BillingProfileName string `pulumi:"billingProfileName"`
	// The Invoice Section Name in the above Billing Profile.
	InvoiceSectionName string `pulumi:"invoiceSectionName"`
}

A collection of arguments for invoking getMcaAccountScope.

type GetMcaAccountScopeOutputArgs

type GetMcaAccountScopeOutputArgs struct {
	// The Billing Account Name of the MCA account.
	BillingAccountName pulumi.StringInput `pulumi:"billingAccountName"`
	// The Billing Profile Name in the above Billing Account.
	BillingProfileName pulumi.StringInput `pulumi:"billingProfileName"`
	// The Invoice Section Name in the above Billing Profile.
	InvoiceSectionName pulumi.StringInput `pulumi:"invoiceSectionName"`
}

A collection of arguments for invoking getMcaAccountScope.

func (GetMcaAccountScopeOutputArgs) ElementType

type GetMcaAccountScopeResult

type GetMcaAccountScopeResult struct {
	BillingAccountName string `pulumi:"billingAccountName"`
	BillingProfileName string `pulumi:"billingProfileName"`
	// The provider-assigned unique ID for this managed resource.
	Id                 string `pulumi:"id"`
	InvoiceSectionName string `pulumi:"invoiceSectionName"`
}

A collection of values returned by getMcaAccountScope.

func GetMcaAccountScope

func GetMcaAccountScope(ctx *pulumi.Context, args *GetMcaAccountScopeArgs, opts ...pulumi.InvokeOption) (*GetMcaAccountScopeResult, error)

Use this data source to access an ID for your MCA Account billing scope.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := billing.GetMcaAccountScope(ctx, &billing.GetMcaAccountScopeArgs{
			BillingAccountName: "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
			BillingProfileName: "PE2Q-NOIT-BG7-TGB",
			InvoiceSectionName: "MTT4-OBS7-PJA-TGB",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type GetMcaAccountScopeResultOutput

type GetMcaAccountScopeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMcaAccountScope.

func (GetMcaAccountScopeResultOutput) BillingAccountName

func (o GetMcaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput

func (GetMcaAccountScopeResultOutput) BillingProfileName

func (o GetMcaAccountScopeResultOutput) BillingProfileName() pulumi.StringOutput

func (GetMcaAccountScopeResultOutput) ElementType

func (GetMcaAccountScopeResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetMcaAccountScopeResultOutput) InvoiceSectionName

func (o GetMcaAccountScopeResultOutput) InvoiceSectionName() pulumi.StringOutput

func (GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutput

func (o GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutput() GetMcaAccountScopeResultOutput

func (GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutputWithContext

func (o GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutputWithContext(ctx context.Context) GetMcaAccountScopeResultOutput

func (GetMcaAccountScopeResultOutput) ToOutput added in v5.52.0

type GetMpaAccountScopeArgs

type GetMpaAccountScopeArgs struct {
	// The Billing Account Name of the MPA account.
	BillingAccountName string `pulumi:"billingAccountName"`
	// The Customer Name in the above Billing Account.
	CustomerName string `pulumi:"customerName"`
}

A collection of arguments for invoking getMpaAccountScope.

type GetMpaAccountScopeOutputArgs

type GetMpaAccountScopeOutputArgs struct {
	// The Billing Account Name of the MPA account.
	BillingAccountName pulumi.StringInput `pulumi:"billingAccountName"`
	// The Customer Name in the above Billing Account.
	CustomerName pulumi.StringInput `pulumi:"customerName"`
}

A collection of arguments for invoking getMpaAccountScope.

func (GetMpaAccountScopeOutputArgs) ElementType

type GetMpaAccountScopeResult

type GetMpaAccountScopeResult struct {
	BillingAccountName string `pulumi:"billingAccountName"`
	CustomerName       string `pulumi:"customerName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getMpaAccountScope.

func GetMpaAccountScope

func GetMpaAccountScope(ctx *pulumi.Context, args *GetMpaAccountScopeArgs, opts ...pulumi.InvokeOption) (*GetMpaAccountScopeResult, error)

Use this data source to access an ID for your MPA Account billing scope.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := billing.GetMpaAccountScope(ctx, &billing.GetMpaAccountScopeArgs{
			BillingAccountName: "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
			CustomerName:       "2281f543-7321-4cf9-1e23-edb4Oc31a31c",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type GetMpaAccountScopeResultOutput

type GetMpaAccountScopeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMpaAccountScope.

func (GetMpaAccountScopeResultOutput) BillingAccountName

func (o GetMpaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput

func (GetMpaAccountScopeResultOutput) CustomerName

func (GetMpaAccountScopeResultOutput) ElementType

func (GetMpaAccountScopeResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutput

func (o GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutput() GetMpaAccountScopeResultOutput

func (GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutputWithContext

func (o GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutputWithContext(ctx context.Context) GetMpaAccountScopeResultOutput

func (GetMpaAccountScopeResultOutput) ToOutput added in v5.52.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL