aiven.BillingGroup
Explore with Pulumi AI
The Billing Group resource allows the creation and management of Aiven Billing Groups and association with the Projects.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var bybg1 = new Aiven.BillingGroup("bybg1", new()
{
BillingCurrency = "USD",
VatId = "123ABC",
});
var pr1 = new Aiven.Project("pr1", new()
{
ProjectName = "pr1",
BillingGroup = bybg1.Id,
});
});
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 {
bybg1, err := aiven.NewBillingGroup(ctx, "bybg1", &aiven.BillingGroupArgs{
BillingCurrency: pulumi.String("USD"),
VatId: pulumi.String("123ABC"),
})
if err != nil {
return err
}
_, err = aiven.NewProject(ctx, "pr1", &aiven.ProjectArgs{
Project: pulumi.String("pr1"),
BillingGroup: bybg1.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.BillingGroup;
import com.pulumi.aiven.BillingGroupArgs;
import com.pulumi.aiven.Project;
import com.pulumi.aiven.ProjectArgs;
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) {
var bybg1 = new BillingGroup("bybg1", BillingGroupArgs.builder()
.billingCurrency("USD")
.vatId("123ABC")
.build());
var pr1 = new Project("pr1", ProjectArgs.builder()
.project("pr1")
.billingGroup(bybg1.id())
.build());
}
}
import pulumi
import pulumi_aiven as aiven
bybg1 = aiven.BillingGroup("bybg1",
billing_currency="USD",
vat_id="123ABC")
pr1 = aiven.Project("pr1",
project="pr1",
billing_group=bybg1.id)
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const bybg1 = new aiven.BillingGroup("bybg1", {
billingCurrency: "USD",
vatId: "123ABC",
});
const pr1 = new aiven.Project("pr1", {
project: "pr1",
billingGroup: bybg1.id,
});
resources:
bybg1:
type: aiven:BillingGroup
properties:
billingCurrency: USD
vatId: 123ABC
pr1:
type: aiven:Project
properties:
project: pr1
billingGroup: ${bybg1.id}
Create BillingGroup Resource
new BillingGroup(name: string, args?: BillingGroupArgs, opts?: CustomResourceOptions);
@overload
def BillingGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
address_lines: Optional[Sequence[str]] = None,
billing_currency: Optional[str] = None,
billing_emails: Optional[Sequence[str]] = None,
billing_extra_text: Optional[str] = None,
card_id: Optional[str] = None,
city: Optional[str] = None,
company: Optional[str] = None,
copy_from_billing_group: Optional[str] = None,
country_code: Optional[str] = None,
name: Optional[str] = None,
parent_id: Optional[str] = None,
state: Optional[str] = None,
vat_id: Optional[str] = None,
zip_code: Optional[str] = None)
@overload
def BillingGroup(resource_name: str,
args: Optional[BillingGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewBillingGroup(ctx *Context, name string, args *BillingGroupArgs, opts ...ResourceOption) (*BillingGroup, error)
public BillingGroup(string name, BillingGroupArgs? args = null, CustomResourceOptions? opts = null)
public BillingGroup(String name, BillingGroupArgs args)
public BillingGroup(String name, BillingGroupArgs args, CustomResourceOptions options)
type: aiven:BillingGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BillingGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BillingGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BillingGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BillingGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BillingGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BillingGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BillingGroup resource accepts the following input properties:
- Account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- Address
Lines List<string> Address lines
- Billing
Currency string Billing currency
- Billing
Emails List<string> Billing contact emails
- Billing
Extra stringText Billing extra text
- Card
Id string Credit card id
- City string
City
- Company string
Company name
- Copy
From stringBilling Group ID of the billing group to copy from
- Country
Code string Country code
- Name string
Billing Group name
- Parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- State string
State
- Vat
Id string VAT id
- Zip
Code string Zip Code
- Account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- Address
Lines []string Address lines
- Billing
Currency string Billing currency
- Billing
Emails []string Billing contact emails
- Billing
Extra stringText Billing extra text
- Card
Id string Credit card id
- City string
City
- Company string
Company name
- Copy
From stringBilling Group ID of the billing group to copy from
- Country
Code string Country code
- Name string
Billing Group name
- Parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- State string
State
- Vat
Id string VAT id
- Zip
Code string Zip Code
- account
Id String Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines List<String> Address lines
- billing
Currency String Billing currency
- billing
Emails List<String> Billing contact emails
- billing
Extra StringText Billing extra text
- card
Id String Credit card id
- city String
City
- company String
Company name
- copy
From StringBilling Group ID of the billing group to copy from
- country
Code String Country code
- name String
Billing Group name
- parent
Id String An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state String
State
- vat
Id String VAT id
- zip
Code String Zip Code
- account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines string[] Address lines
- billing
Currency string Billing currency
- billing
Emails string[] Billing contact emails
- billing
Extra stringText Billing extra text
- card
Id string Credit card id
- city string
City
- company string
Company name
- copy
From stringBilling Group ID of the billing group to copy from
- country
Code string Country code
- name string
Billing Group name
- parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state string
State
- vat
Id string VAT id
- zip
Code string Zip Code
- account_
id str Account id
Use parent_id instead. This field will be removed in the next major release.
- address_
lines Sequence[str] Address lines
- billing_
currency str Billing currency
- billing_
emails Sequence[str] Billing contact emails
- billing_
extra_ strtext Billing extra text
- card_
id str Credit card id
- city str
City
- company str
Company name
- copy_
from_ strbilling_ group ID of the billing group to copy from
- country_
code str Country code
- name str
Billing Group name
- parent_
id str An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state str
State
- vat_
id str VAT id
- zip_
code str Zip Code
- account
Id String Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines List<String> Address lines
- billing
Currency String Billing currency
- billing
Emails List<String> Billing contact emails
- billing
Extra StringText Billing extra text
- card
Id String Credit card id
- city String
City
- company String
Company name
- copy
From StringBilling Group ID of the billing group to copy from
- country
Code String Country code
- name String
Billing Group name
- parent
Id String An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state String
State
- vat
Id String VAT id
- zip
Code String Zip Code
Outputs
All input properties are implicitly available as output properties. Additionally, the BillingGroup resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing BillingGroup Resource
Get an existing BillingGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BillingGroupState, opts?: CustomResourceOptions): BillingGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
address_lines: Optional[Sequence[str]] = None,
billing_currency: Optional[str] = None,
billing_emails: Optional[Sequence[str]] = None,
billing_extra_text: Optional[str] = None,
card_id: Optional[str] = None,
city: Optional[str] = None,
company: Optional[str] = None,
copy_from_billing_group: Optional[str] = None,
country_code: Optional[str] = None,
name: Optional[str] = None,
parent_id: Optional[str] = None,
state: Optional[str] = None,
vat_id: Optional[str] = None,
zip_code: Optional[str] = None) -> BillingGroup
func GetBillingGroup(ctx *Context, name string, id IDInput, state *BillingGroupState, opts ...ResourceOption) (*BillingGroup, error)
public static BillingGroup Get(string name, Input<string> id, BillingGroupState? state, CustomResourceOptions? opts = null)
public static BillingGroup get(String name, Output<String> id, BillingGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- Address
Lines List<string> Address lines
- Billing
Currency string Billing currency
- Billing
Emails List<string> Billing contact emails
- Billing
Extra stringText Billing extra text
- Card
Id string Credit card id
- City string
City
- Company string
Company name
- Copy
From stringBilling Group ID of the billing group to copy from
- Country
Code string Country code
- Name string
Billing Group name
- Parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- State string
State
- Vat
Id string VAT id
- Zip
Code string Zip Code
- Account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- Address
Lines []string Address lines
- Billing
Currency string Billing currency
- Billing
Emails []string Billing contact emails
- Billing
Extra stringText Billing extra text
- Card
Id string Credit card id
- City string
City
- Company string
Company name
- Copy
From stringBilling Group ID of the billing group to copy from
- Country
Code string Country code
- Name string
Billing Group name
- Parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- State string
State
- Vat
Id string VAT id
- Zip
Code string Zip Code
- account
Id String Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines List<String> Address lines
- billing
Currency String Billing currency
- billing
Emails List<String> Billing contact emails
- billing
Extra StringText Billing extra text
- card
Id String Credit card id
- city String
City
- company String
Company name
- copy
From StringBilling Group ID of the billing group to copy from
- country
Code String Country code
- name String
Billing Group name
- parent
Id String An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state String
State
- vat
Id String VAT id
- zip
Code String Zip Code
- account
Id string Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines string[] Address lines
- billing
Currency string Billing currency
- billing
Emails string[] Billing contact emails
- billing
Extra stringText Billing extra text
- card
Id string Credit card id
- city string
City
- company string
Company name
- copy
From stringBilling Group ID of the billing group to copy from
- country
Code string Country code
- name string
Billing Group name
- parent
Id string An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state string
State
- vat
Id string VAT id
- zip
Code string Zip Code
- account_
id str Account id
Use parent_id instead. This field will be removed in the next major release.
- address_
lines Sequence[str] Address lines
- billing_
currency str Billing currency
- billing_
emails Sequence[str] Billing contact emails
- billing_
extra_ strtext Billing extra text
- card_
id str Credit card id
- city str
City
- company str
Company name
- copy_
from_ strbilling_ group ID of the billing group to copy from
- country_
code str Country code
- name str
Billing Group name
- parent_
id str An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state str
State
- vat_
id str VAT id
- zip_
code str Zip Code
- account
Id String Account id
Use parent_id instead. This field will be removed in the next major release.
- address
Lines List<String> Address lines
- billing
Currency String Billing currency
- billing
Emails List<String> Billing contact emails
- billing
Extra StringText Billing extra text
- card
Id String Credit card id
- city String
City
- company String
Company name
- copy
From StringBilling Group ID of the billing group to copy from
- country
Code String Country code
- name String
Billing Group name
- parent
Id String An optional property to link a billing group to an already existing organization or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
- state String
State
- vat
Id String VAT id
- zip
Code String Zip Code
Import
$ pulumi import aiven:index/billingGroup:BillingGroup bybg1 id
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.