billing

package
v6.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCostManagementExport

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/v6/go/azure/billing"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("example"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
			Name:               pulumi.String("examplecontainer"),
			StorageAccountName: exampleAccount.Name,
		})
		if err != nil {
			return err
		}
		_, err = billing.NewAccountCostManagementExport(ctx, "example", &billing.AccountCostManagementExportArgs{
			Name:                      pulumi.String("example"),
			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

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

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

func (*AccountCostManagementExport) ElementType() reflect.Type

func (*AccountCostManagementExport) ToAccountCostManagementExportOutput

func (i *AccountCostManagementExport) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput

func (*AccountCostManagementExport) ToAccountCostManagementExportOutputWithContext

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

type AccountCostManagementExportArgs

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

type AccountCostManagementExportArray

type AccountCostManagementExportArray []AccountCostManagementExportInput

func (AccountCostManagementExportArray) ElementType

func (AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutput

func (i AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutputWithContext

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

type AccountCostManagementExportArrayInput

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

type AccountCostManagementExportArrayOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportArrayOutput) ElementType

func (AccountCostManagementExportArrayOutput) Index

func (AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutput

func (o AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput

func (AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutputWithContext

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

type AccountCostManagementExportExportDataOptions

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

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

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutput

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutputWithContext

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

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutput

func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext

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

type AccountCostManagementExportExportDataOptionsInput

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

type AccountCostManagementExportExportDataOptionsOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataOptionsOutput) ElementType

func (AccountCostManagementExportExportDataOptionsOutput) TimeFrame

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

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutputWithContext

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

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput

func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput

func (AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext

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

func (AccountCostManagementExportExportDataOptionsOutput) Type

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

type AccountCostManagementExportExportDataOptionsPtrInput

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

type AccountCostManagementExportExportDataOptionsPtrOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataOptionsPtrOutput) Elem

func (AccountCostManagementExportExportDataOptionsPtrOutput) ElementType

func (AccountCostManagementExportExportDataOptionsPtrOutput) TimeFrame

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

func (AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext

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

func (AccountCostManagementExportExportDataOptionsPtrOutput) Type

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

type AccountCostManagementExportExportDataStorageLocation

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

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

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutput

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext

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

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutput

func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext

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

type AccountCostManagementExportExportDataStorageLocationInput

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

type AccountCostManagementExportExportDataStorageLocationOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataStorageLocationOutput) ContainerId

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

func (AccountCostManagementExportExportDataStorageLocationOutput) ElementType

func (AccountCostManagementExportExportDataStorageLocationOutput) RootFolderPath

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

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext

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

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput

func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext

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

type AccountCostManagementExportExportDataStorageLocationPtrInput

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

type AccountCostManagementExportExportDataStorageLocationPtrOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ContainerId

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

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) Elem

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ElementType

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) RootFolderPath

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

func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext

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

type AccountCostManagementExportInput

type AccountCostManagementExportInput interface {
	pulumi.Input

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

type AccountCostManagementExportMap

type AccountCostManagementExportMap map[string]AccountCostManagementExportInput

func (AccountCostManagementExportMap) ElementType

func (AccountCostManagementExportMap) ToAccountCostManagementExportMapOutput

func (i AccountCostManagementExportMap) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput

func (AccountCostManagementExportMap) ToAccountCostManagementExportMapOutputWithContext

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

type AccountCostManagementExportMapInput

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

type AccountCostManagementExportMapOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportMapOutput) ElementType

func (AccountCostManagementExportMapOutput) MapIndex

func (AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutput

func (o AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput

func (AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutputWithContext

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

type AccountCostManagementExportOutput

type AccountCostManagementExportOutput struct{ *pulumi.OutputState }

func (AccountCostManagementExportOutput) Active

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

func (AccountCostManagementExportOutput) BillingAccountId

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

func (AccountCostManagementExportOutput) ElementType

func (AccountCostManagementExportOutput) ExportDataOptions

A `exportDataOptions` block as defined below.

func (AccountCostManagementExportOutput) ExportDataStorageLocation

A `exportDataStorageLocation` block as defined below.

func (AccountCostManagementExportOutput) Name

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

func (AccountCostManagementExportOutput) RecurrencePeriodEndDate

func (o AccountCostManagementExportOutput) RecurrencePeriodEndDate() pulumi.StringOutput

The date the export will stop capturing information.

func (AccountCostManagementExportOutput) RecurrencePeriodStartDate

func (o AccountCostManagementExportOutput) RecurrencePeriodStartDate() pulumi.StringOutput

The date the export will start capturing information.

func (AccountCostManagementExportOutput) RecurrenceType

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

func (AccountCostManagementExportOutput) ToAccountCostManagementExportOutput

func (o AccountCostManagementExportOutput) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput

func (AccountCostManagementExportOutput) ToAccountCostManagementExportOutputWithContext

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

type AccountCostManagementExportState

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

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/v6/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

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/v6/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

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/v6/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

Jump to

Keyboard shortcuts

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