Documentation ¶
Index ¶
- type AccountCostManagementExport
- func (*AccountCostManagementExport) ElementType() reflect.Type
- func (i *AccountCostManagementExport) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput
- func (i *AccountCostManagementExport) ToAccountCostManagementExportOutputWithContext(ctx context.Context) AccountCostManagementExportOutput
- type AccountCostManagementExportArgs
- type AccountCostManagementExportArray
- func (AccountCostManagementExportArray) ElementType() reflect.Type
- func (i AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput
- func (i AccountCostManagementExportArray) ToAccountCostManagementExportArrayOutputWithContext(ctx context.Context) AccountCostManagementExportArrayOutput
- type AccountCostManagementExportArrayInput
- type AccountCostManagementExportArrayOutput
- func (AccountCostManagementExportArrayOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportArrayOutput) Index(i pulumi.IntInput) AccountCostManagementExportOutput
- func (o AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutput() AccountCostManagementExportArrayOutput
- func (o AccountCostManagementExportArrayOutput) ToAccountCostManagementExportArrayOutputWithContext(ctx context.Context) AccountCostManagementExportArrayOutput
- type AccountCostManagementExportExportDataOptions
- type AccountCostManagementExportExportDataOptionsArgs
- func (AccountCostManagementExportExportDataOptionsArgs) ElementType() reflect.Type
- func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput
- func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsOutput
- func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput
- func (i AccountCostManagementExportExportDataOptionsArgs) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput
- type AccountCostManagementExportExportDataOptionsInput
- type AccountCostManagementExportExportDataOptionsOutput
- func (AccountCostManagementExportExportDataOptionsOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportExportDataOptionsOutput) TimeFrame() pulumi.StringOutput
- func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutput() AccountCostManagementExportExportDataOptionsOutput
- func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsOutput
- func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput
- func (o AccountCostManagementExportExportDataOptionsOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput
- func (o AccountCostManagementExportExportDataOptionsOutput) Type() pulumi.StringOutput
- type AccountCostManagementExportExportDataOptionsPtrInput
- type AccountCostManagementExportExportDataOptionsPtrOutput
- func (o AccountCostManagementExportExportDataOptionsPtrOutput) Elem() AccountCostManagementExportExportDataOptionsOutput
- func (AccountCostManagementExportExportDataOptionsPtrOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportExportDataOptionsPtrOutput) TimeFrame() pulumi.StringPtrOutput
- func (o AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput
- func (o AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput
- func (o AccountCostManagementExportExportDataOptionsPtrOutput) Type() pulumi.StringPtrOutput
- type AccountCostManagementExportExportDataStorageLocation
- type AccountCostManagementExportExportDataStorageLocationArgs
- func (AccountCostManagementExportExportDataStorageLocationArgs) ElementType() reflect.Type
- func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutput() AccountCostManagementExportExportDataStorageLocationOutput
- func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationOutput
- func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
- func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput
- type AccountCostManagementExportExportDataStorageLocationInput
- type AccountCostManagementExportExportDataStorageLocationOutput
- func (o AccountCostManagementExportExportDataStorageLocationOutput) ContainerId() pulumi.StringOutput
- func (AccountCostManagementExportExportDataStorageLocationOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportExportDataStorageLocationOutput) RootFolderPath() pulumi.StringOutput
- func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutput() AccountCostManagementExportExportDataStorageLocationOutput
- func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationOutput
- func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
- func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput
- type AccountCostManagementExportExportDataStorageLocationPtrInput
- type AccountCostManagementExportExportDataStorageLocationPtrOutput
- func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ContainerId() pulumi.StringPtrOutput
- func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) Elem() AccountCostManagementExportExportDataStorageLocationOutput
- func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) RootFolderPath() pulumi.StringPtrOutput
- func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
- func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationPtrOutput
- type AccountCostManagementExportInput
- type AccountCostManagementExportMap
- func (AccountCostManagementExportMap) ElementType() reflect.Type
- func (i AccountCostManagementExportMap) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput
- func (i AccountCostManagementExportMap) ToAccountCostManagementExportMapOutputWithContext(ctx context.Context) AccountCostManagementExportMapOutput
- type AccountCostManagementExportMapInput
- type AccountCostManagementExportMapOutput
- func (AccountCostManagementExportMapOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportMapOutput) MapIndex(k pulumi.StringInput) AccountCostManagementExportOutput
- func (o AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutput() AccountCostManagementExportMapOutput
- func (o AccountCostManagementExportMapOutput) ToAccountCostManagementExportMapOutputWithContext(ctx context.Context) AccountCostManagementExportMapOutput
- type AccountCostManagementExportOutput
- func (o AccountCostManagementExportOutput) Active() pulumi.BoolPtrOutput
- func (o AccountCostManagementExportOutput) BillingAccountId() pulumi.StringOutput
- func (AccountCostManagementExportOutput) ElementType() reflect.Type
- func (o AccountCostManagementExportOutput) ExportDataOptions() AccountCostManagementExportExportDataOptionsOutput
- func (o AccountCostManagementExportOutput) ExportDataStorageLocation() AccountCostManagementExportExportDataStorageLocationOutput
- func (o AccountCostManagementExportOutput) Name() pulumi.StringOutput
- func (o AccountCostManagementExportOutput) RecurrencePeriodEndDate() pulumi.StringOutput
- func (o AccountCostManagementExportOutput) RecurrencePeriodStartDate() pulumi.StringOutput
- func (o AccountCostManagementExportOutput) RecurrenceType() pulumi.StringOutput
- func (o AccountCostManagementExportOutput) ToAccountCostManagementExportOutput() AccountCostManagementExportOutput
- func (o AccountCostManagementExportOutput) ToAccountCostManagementExportOutputWithContext(ctx context.Context) AccountCostManagementExportOutput
- type AccountCostManagementExportState
- type GetEnrollmentAccountScopeArgs
- type GetEnrollmentAccountScopeOutputArgs
- type GetEnrollmentAccountScopeResult
- type GetEnrollmentAccountScopeResultOutput
- func (o GetEnrollmentAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
- func (GetEnrollmentAccountScopeResultOutput) ElementType() reflect.Type
- func (o GetEnrollmentAccountScopeResultOutput) EnrollmentAccountName() pulumi.StringOutput
- func (o GetEnrollmentAccountScopeResultOutput) Id() pulumi.StringOutput
- func (o GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutput() GetEnrollmentAccountScopeResultOutput
- func (o GetEnrollmentAccountScopeResultOutput) ToGetEnrollmentAccountScopeResultOutputWithContext(ctx context.Context) GetEnrollmentAccountScopeResultOutput
- type GetMcaAccountScopeArgs
- type GetMcaAccountScopeOutputArgs
- type GetMcaAccountScopeResult
- type GetMcaAccountScopeResultOutput
- func (o GetMcaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
- func (o GetMcaAccountScopeResultOutput) BillingProfileName() pulumi.StringOutput
- func (GetMcaAccountScopeResultOutput) ElementType() reflect.Type
- func (o GetMcaAccountScopeResultOutput) Id() pulumi.StringOutput
- func (o GetMcaAccountScopeResultOutput) InvoiceSectionName() pulumi.StringOutput
- func (o GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutput() GetMcaAccountScopeResultOutput
- func (o GetMcaAccountScopeResultOutput) ToGetMcaAccountScopeResultOutputWithContext(ctx context.Context) GetMcaAccountScopeResultOutput
- type GetMpaAccountScopeArgs
- type GetMpaAccountScopeOutputArgs
- type GetMpaAccountScopeResult
- type GetMpaAccountScopeResultOutput
- func (o GetMpaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
- func (o GetMpaAccountScopeResultOutput) CustomerName() pulumi.StringOutput
- func (GetMpaAccountScopeResultOutput) ElementType() reflect.Type
- func (o GetMpaAccountScopeResultOutput) Id() pulumi.StringOutput
- func (o GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutput() GetMpaAccountScopeResultOutput
- func (o GetMpaAccountScopeResultOutput) ToGetMpaAccountScopeResultOutputWithContext(ctx context.Context) GetMpaAccountScopeResultOutput
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 ¶
func (AccountCostManagementExportArgs) ElementType() reflect.Type
type AccountCostManagementExportArray ¶
type AccountCostManagementExportArray []AccountCostManagementExportInput
func (AccountCostManagementExportArray) ElementType ¶
func (AccountCostManagementExportArray) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (AccountCostManagementExportExportDataOptionsOutput) TimeFrame ¶
func (o AccountCostManagementExportExportDataOptionsOutput) TimeFrame() pulumi.StringOutput
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 ¶
func (o AccountCostManagementExportExportDataOptionsOutput) Type() pulumi.StringOutput
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
func AccountCostManagementExportExportDataOptionsPtr ¶
func AccountCostManagementExportExportDataOptionsPtr(v *AccountCostManagementExportExportDataOptionsArgs) AccountCostManagementExportExportDataOptionsPtrInput
type AccountCostManagementExportExportDataOptionsPtrOutput ¶
type AccountCostManagementExportExportDataOptionsPtrOutput struct{ *pulumi.OutputState }
func (AccountCostManagementExportExportDataOptionsPtrOutput) ElementType ¶
func (AccountCostManagementExportExportDataOptionsPtrOutput) ElementType() reflect.Type
func (AccountCostManagementExportExportDataOptionsPtrOutput) TimeFrame ¶
func (o AccountCostManagementExportExportDataOptionsPtrOutput) TimeFrame() pulumi.StringPtrOutput
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 (o AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutput() AccountCostManagementExportExportDataOptionsPtrOutput
func (AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext ¶
func (o AccountCostManagementExportExportDataOptionsPtrOutput) ToAccountCostManagementExportExportDataOptionsPtrOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataOptionsPtrOutput
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) ElementType() reflect.Type
func (AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutput ¶
func (i AccountCostManagementExportExportDataStorageLocationArgs) ToAccountCostManagementExportExportDataStorageLocationOutput() AccountCostManagementExportExportDataStorageLocationOutput
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 ¶
func (o AccountCostManagementExportExportDataStorageLocationOutput) ContainerId() pulumi.StringOutput
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) ElementType() reflect.Type
func (AccountCostManagementExportExportDataStorageLocationOutput) RootFolderPath ¶
func (o AccountCostManagementExportExportDataStorageLocationOutput) RootFolderPath() pulumi.StringOutput
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 (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutput() AccountCostManagementExportExportDataStorageLocationOutput
func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext ¶
func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationOutputWithContext(ctx context.Context) AccountCostManagementExportExportDataStorageLocationOutput
func (AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput ¶
func (o AccountCostManagementExportExportDataStorageLocationOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
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
func AccountCostManagementExportExportDataStorageLocationPtr ¶
func AccountCostManagementExportExportDataStorageLocationPtr(v *AccountCostManagementExportExportDataStorageLocationArgs) AccountCostManagementExportExportDataStorageLocationPtrInput
type AccountCostManagementExportExportDataStorageLocationPtrOutput ¶
type AccountCostManagementExportExportDataStorageLocationPtrOutput struct{ *pulumi.OutputState }
func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ContainerId ¶
func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ContainerId() pulumi.StringPtrOutput
The Resource Manager ID of the container where exports will be uploaded. Changing this forces a new resource to be created.
func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ElementType ¶
func (AccountCostManagementExportExportDataStorageLocationPtrOutput) ElementType() reflect.Type
func (AccountCostManagementExportExportDataStorageLocationPtrOutput) RootFolderPath ¶
func (o AccountCostManagementExportExportDataStorageLocationPtrOutput) RootFolderPath() pulumi.StringPtrOutput
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 (o AccountCostManagementExportExportDataStorageLocationPtrOutput) ToAccountCostManagementExportExportDataStorageLocationPtrOutput() AccountCostManagementExportExportDataStorageLocationPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (AccountCostManagementExportMapOutput) MapIndex ¶
func (o AccountCostManagementExportMapOutput) MapIndex(k pulumi.StringInput) AccountCostManagementExportOutput
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 ¶
func (o AccountCostManagementExportOutput) Active() pulumi.BoolPtrOutput
Is the cost management export active? Default is `true`.
func (AccountCostManagementExportOutput) BillingAccountId ¶
func (o AccountCostManagementExportOutput) BillingAccountId() pulumi.StringOutput
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) ElementType() reflect.Type
func (AccountCostManagementExportOutput) ExportDataOptions ¶
func (o AccountCostManagementExportOutput) ExportDataOptions() AccountCostManagementExportExportDataOptionsOutput
A `exportDataOptions` block as defined below.
func (AccountCostManagementExportOutput) ExportDataStorageLocation ¶
func (o AccountCostManagementExportOutput) ExportDataStorageLocation() AccountCostManagementExportExportDataStorageLocationOutput
A `exportDataStorageLocation` block as defined below.
func (AccountCostManagementExportOutput) Name ¶
func (o AccountCostManagementExportOutput) Name() pulumi.StringOutput
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 ¶
func (o AccountCostManagementExportOutput) RecurrenceType() pulumi.StringOutput
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 ¶
func (AccountCostManagementExportState) ElementType() reflect.Type
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 ¶
func (GetEnrollmentAccountScopeOutputArgs) ElementType() reflect.Type
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 GetEnrollmentAccountScopeOutput ¶
func GetEnrollmentAccountScopeOutput(ctx *pulumi.Context, args GetEnrollmentAccountScopeOutputArgs, opts ...pulumi.InvokeOption) GetEnrollmentAccountScopeResultOutput
func (GetEnrollmentAccountScopeResultOutput) BillingAccountName ¶
func (o GetEnrollmentAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
func (GetEnrollmentAccountScopeResultOutput) ElementType ¶
func (GetEnrollmentAccountScopeResultOutput) ElementType() reflect.Type
func (GetEnrollmentAccountScopeResultOutput) EnrollmentAccountName ¶
func (o GetEnrollmentAccountScopeResultOutput) EnrollmentAccountName() pulumi.StringOutput
func (GetEnrollmentAccountScopeResultOutput) Id ¶
func (o GetEnrollmentAccountScopeResultOutput) Id() pulumi.StringOutput
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 ¶
func (GetMcaAccountScopeOutputArgs) ElementType() reflect.Type
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 GetMcaAccountScopeOutput ¶
func GetMcaAccountScopeOutput(ctx *pulumi.Context, args GetMcaAccountScopeOutputArgs, opts ...pulumi.InvokeOption) GetMcaAccountScopeResultOutput
func (GetMcaAccountScopeResultOutput) BillingAccountName ¶
func (o GetMcaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
func (GetMcaAccountScopeResultOutput) BillingProfileName ¶
func (o GetMcaAccountScopeResultOutput) BillingProfileName() pulumi.StringOutput
func (GetMcaAccountScopeResultOutput) ElementType ¶
func (GetMcaAccountScopeResultOutput) ElementType() reflect.Type
func (GetMcaAccountScopeResultOutput) Id ¶
func (o GetMcaAccountScopeResultOutput) Id() pulumi.StringOutput
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 ¶
func (GetMpaAccountScopeOutputArgs) ElementType() reflect.Type
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 GetMpaAccountScopeOutput ¶
func GetMpaAccountScopeOutput(ctx *pulumi.Context, args GetMpaAccountScopeOutputArgs, opts ...pulumi.InvokeOption) GetMpaAccountScopeResultOutput
func (GetMpaAccountScopeResultOutput) BillingAccountName ¶
func (o GetMpaAccountScopeResultOutput) BillingAccountName() pulumi.StringOutput
func (GetMpaAccountScopeResultOutput) CustomerName ¶
func (o GetMpaAccountScopeResultOutput) CustomerName() pulumi.StringOutput
func (GetMpaAccountScopeResultOutput) ElementType ¶
func (GetMpaAccountScopeResultOutput) ElementType() reflect.Type
func (GetMpaAccountScopeResultOutput) Id ¶
func (o GetMpaAccountScopeResultOutput) Id() pulumi.StringOutput
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