Gets information about a billing group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const exampleBillingGroup = aiven.getBillingGroup({
billingGroupId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
});
import pulumi
import pulumi_aiven as aiven
example_billing_group = aiven.get_billing_group(billing_group_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupBillingGroup(ctx, &aiven.LookupBillingGroupArgs{
BillingGroupId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var exampleBillingGroup = Aiven.GetBillingGroup.Invoke(new()
{
BillingGroupId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetBillingGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleBillingGroup = AivenFunctions.getBillingGroup(GetBillingGroupArgs.builder()
.billingGroupId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
.build());
}
}
variables:
exampleBillingGroup:
fn::invoke:
function: aiven:getBillingGroup
arguments:
billingGroupId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
Using getBillingGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBillingGroup(args: GetBillingGroupArgs, opts?: InvokeOptions): Promise<GetBillingGroupResult>
function getBillingGroupOutput(args: GetBillingGroupOutputArgs, opts?: InvokeOptions): Output<GetBillingGroupResult>def get_billing_group(billing_group_id: Optional[str] = None,
timeouts: Optional[GetBillingGroupTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetBillingGroupResult
def get_billing_group_output(billing_group_id: Optional[pulumi.Input[str]] = None,
timeouts: Optional[pulumi.Input[GetBillingGroupTimeoutsArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBillingGroupResult]func LookupBillingGroup(ctx *Context, args *LookupBillingGroupArgs, opts ...InvokeOption) (*LookupBillingGroupResult, error)
func LookupBillingGroupOutput(ctx *Context, args *LookupBillingGroupOutputArgs, opts ...InvokeOption) LookupBillingGroupResultOutput> Note: This function is named LookupBillingGroup in the Go SDK.
public static class GetBillingGroup
{
public static Task<GetBillingGroupResult> InvokeAsync(GetBillingGroupArgs args, InvokeOptions? opts = null)
public static Output<GetBillingGroupResult> Invoke(GetBillingGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBillingGroupResult> getBillingGroup(GetBillingGroupArgs args, InvokeOptions options)
public static Output<GetBillingGroupResult> getBillingGroup(GetBillingGroupArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getBillingGroup:getBillingGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- Timeouts
Get
Billing Group Timeouts
- Billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- Timeouts
Get
Billing Group Timeouts
- billing
Group StringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- timeouts
Get
Billing Group Timeouts
- billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- timeouts
Get
Billing Group Timeouts
- billing_
group_ strid - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- timeouts
Get
Billing Group Timeouts
- billing
Group StringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- timeouts Property Map
getBillingGroup Result
The following output properties are available:
- Account
Id string - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - Address
Lines List<string> - Address lines 1 and 2. For example, street, PO box, or building.
- Billing
Contact List<string>Emails - List of billing groups contact email addresses.
- Billing
Currency string - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - Billing
Emails List<string> - List of project billing email addresses.
- Billing
Extra stringText - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- Billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- Card
Id string - Credit card ID.
- City string
- Address city.
- Company string
- Name of a company.
- Copy
From stringBilling Group - Billing group ID.
- Country
Code string - Two letter country code for billing country.
- Id string
- Resource ID, equal to
billing_group_id. - Name string
- Billing group name.
- Parent
Id string - Link a billing group to an existing organization by using its ID.
- State string
- Address state or province.
- Vat
Id string - EU VAT Identification Number.
- Zip
Code string - Address zip code.
- Timeouts
Get
Billing Group Timeouts
- Account
Id string - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - Address
Lines []string - Address lines 1 and 2. For example, street, PO box, or building.
- Billing
Contact []stringEmails - List of billing groups contact email addresses.
- Billing
Currency string - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - Billing
Emails []string - List of project billing email addresses.
- Billing
Extra stringText - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- Billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- Card
Id string - Credit card ID.
- City string
- Address city.
- Company string
- Name of a company.
- Copy
From stringBilling Group - Billing group ID.
- Country
Code string - Two letter country code for billing country.
- Id string
- Resource ID, equal to
billing_group_id. - Name string
- Billing group name.
- Parent
Id string - Link a billing group to an existing organization by using its ID.
- State string
- Address state or province.
- Vat
Id string - EU VAT Identification Number.
- Zip
Code string - Address zip code.
- Timeouts
Get
Billing Group Timeouts
- account
Id String - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - address
Lines List<String> - Address lines 1 and 2. For example, street, PO box, or building.
- billing
Contact List<String>Emails - List of billing groups contact email addresses.
- billing
Currency String - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - billing
Emails List<String> - List of project billing email addresses.
- billing
Extra StringText - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- billing
Group StringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- card
Id String - Credit card ID.
- city String
- Address city.
- company String
- Name of a company.
- copy
From StringBilling Group - Billing group ID.
- country
Code String - Two letter country code for billing country.
- id String
- Resource ID, equal to
billing_group_id. - name String
- Billing group name.
- parent
Id String - Link a billing group to an existing organization by using its ID.
- state String
- Address state or province.
- vat
Id String - EU VAT Identification Number.
- zip
Code String - Address zip code.
- timeouts
Get
Billing Group Timeouts
- account
Id string - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - address
Lines string[] - Address lines 1 and 2. For example, street, PO box, or building.
- billing
Contact string[]Emails - List of billing groups contact email addresses.
- billing
Currency string - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - billing
Emails string[] - List of project billing email addresses.
- billing
Extra stringText - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- billing
Group stringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- card
Id string - Credit card ID.
- city string
- Address city.
- company string
- Name of a company.
- copy
From stringBilling Group - Billing group ID.
- country
Code string - Two letter country code for billing country.
- id string
- Resource ID, equal to
billing_group_id. - name string
- Billing group name.
- parent
Id string - Link a billing group to an existing organization by using its ID.
- state string
- Address state or province.
- vat
Id string - EU VAT Identification Number.
- zip
Code string - Address zip code.
- timeouts
Get
Billing Group Timeouts
- account_
id str - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - address_
lines Sequence[str] - Address lines 1 and 2. For example, street, PO box, or building.
- billing_
contact_ Sequence[str]emails - List of billing groups contact email addresses.
- billing_
currency str - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - billing_
emails Sequence[str] - List of project billing email addresses.
- billing_
extra_ strtext - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- billing_
group_ strid - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- card_
id str - Credit card ID.
- city str
- Address city.
- company str
- Name of a company.
- copy_
from_ strbilling_ group - Billing group ID.
- country_
code str - Two letter country code for billing country.
- id str
- Resource ID, equal to
billing_group_id. - name str
- Billing group name.
- parent_
id str - Link a billing group to an existing organization by using its ID.
- state str
- Address state or province.
- vat_
id str - EU VAT Identification Number.
- zip_
code str - Address zip code.
- timeouts
Get
Billing Group Timeouts
- account
Id String - Account ID. Deprecated: Use
parent_idinstead. This field will be removed in the next major release. - address
Lines List<String> - Address lines 1 and 2. For example, street, PO box, or building.
- billing
Contact List<String>Emails - List of billing groups contact email addresses.
- billing
Currency String - Billing currency. The possible values are
AUD,CAD,CHF,DKK,EUR,GBP,JPY,NOK,NZD,SEK,SGDandUSD. - billing
Emails List<String> - List of project billing email addresses.
- billing
Extra StringText - Extra text to be included in all project invoices, e.g. purchase order or cost center number.
- billing
Group StringId - The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
- card
Id String - Credit card ID.
- city String
- Address city.
- company String
- Name of a company.
- copy
From StringBilling Group - Billing group ID.
- country
Code String - Two letter country code for billing country.
- id String
- Resource ID, equal to
billing_group_id. - name String
- Billing group name.
- parent
Id String - Link a billing group to an existing organization by using its ID.
- state String
- Address state or province.
- vat
Id String - EU VAT Identification Number.
- zip
Code String - Address zip code.
- timeouts Property Map
Supporting Types
GetBillingGroupTimeouts
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
