import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages [billing groups](https://aiven.io/docs/platform/concepts/billing-groups) and assigns them to projects. * * > **This resource is deprecated** * Use `aiven.OrganizationBillingGroup` instead. This resource will be removed in the next major release. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = new aiven.BillingGroup("example", { * parentId: "foo", * name: "my billing group", * cardId: "9330c086-8781-11e5-89ff-5404a64abfef", * vatId: "FI27957435", * addressLines: ["Main Street 1"], * billingContactEmails: ["jane@example.com"], * billingCurrency: "USD", * billingEmails: ["test@example.com"], * billingExtraText: "Purchase order: PO100018", * city: "Helsinki", * company: "My Company", * copyFromBillingGroup: "ffb3f0cd-5532-4eb9-8867-f2cac5823492", * countryCode: "FI", * state: "foo", * zipCode: "01234", * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/billingGroup:BillingGroup example BILLING_GROUP_ID * ``` */ export declare class BillingGroup extends pulumi.CustomResource { /** * Get an existing BillingGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: BillingGroupState, opts?: pulumi.CustomResourceOptions): BillingGroup; /** * Returns true if the given object is an instance of BillingGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is BillingGroup; /** * Account ID. Maximum length: `36`. **Deprecated**: Use `parentId` instead. This field will be removed in the next major release. * * @deprecated Use `parentId` instead. This field will be removed in the next major release. */ readonly accountId: pulumi.Output; /** * Address lines 1 and 2. For example, street, PO box, or building. */ readonly addressLines: pulumi.Output; /** * List of billing groups contact email addresses. */ readonly billingContactEmails: pulumi.Output; /** * Billing currency. The possible values are `AUD`, `CAD`, `CHF`, `DKK`, `EUR`, `GBP`, `JPY`, `NOK`, `NZD`, `SEK`, `SGD` and `USD`. */ readonly billingCurrency: pulumi.Output; /** * List of project billing email addresses. */ readonly billingEmails: pulumi.Output; /** * Extra text to be included in all project invoices, e.g. purchase order or cost center number. Maximum length: `1000`. */ readonly billingExtraText: pulumi.Output; /** * The [ID of the billing group](https://aiven.io/docs/platform/reference/get-resource-IDs#get-a-billing-group-id). To set up proper dependencies please refer to this variable as a reference. */ readonly billingGroupId: pulumi.Output; /** * Credit card ID. Maximum length: `64`. */ readonly cardId: pulumi.Output; /** * Address city. Maximum length: `50`. */ readonly city: pulumi.Output; /** * Name of a company. Maximum length: `83`. */ readonly company: pulumi.Output; /** * Billing group ID. Length must be exactly `36`. Changing this property forces recreation of the resource. */ readonly copyFromBillingGroup: pulumi.Output; /** * Two letter country code for billing country. Maximum length: `2`. */ readonly countryCode: pulumi.Output; /** * Billing group name. Maximum length: `128`. */ readonly name: pulumi.Output; /** * Link a billing group to an existing organization by using its ID. */ readonly parentId: pulumi.Output; /** * Address state or province. Maximum length: `30`. */ readonly state: pulumi.Output; readonly timeouts: pulumi.Output; /** * EU VAT Identification Number. Maximum length: `64`. */ readonly vatId: pulumi.Output; /** * Address zip code. Maximum length: `36`. */ readonly zipCode: pulumi.Output; /** * Create a BillingGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BillingGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BillingGroup resources. */ export interface BillingGroupState { /** * Account ID. Maximum length: `36`. **Deprecated**: Use `parentId` instead. This field will be removed in the next major release. * * @deprecated Use `parentId` instead. This field will be removed in the next major release. */ accountId?: pulumi.Input; /** * Address lines 1 and 2. For example, street, PO box, or building. */ addressLines?: pulumi.Input[] | undefined>; /** * List of billing groups contact email addresses. */ billingContactEmails?: pulumi.Input[] | undefined>; /** * Billing currency. The possible values are `AUD`, `CAD`, `CHF`, `DKK`, `EUR`, `GBP`, `JPY`, `NOK`, `NZD`, `SEK`, `SGD` and `USD`. */ billingCurrency?: pulumi.Input; /** * List of project billing email addresses. */ billingEmails?: pulumi.Input[] | undefined>; /** * Extra text to be included in all project invoices, e.g. purchase order or cost center number. Maximum length: `1000`. */ billingExtraText?: pulumi.Input; /** * The [ID of the billing group](https://aiven.io/docs/platform/reference/get-resource-IDs#get-a-billing-group-id). To set up proper dependencies please refer to this variable as a reference. */ billingGroupId?: pulumi.Input; /** * Credit card ID. Maximum length: `64`. */ cardId?: pulumi.Input; /** * Address city. Maximum length: `50`. */ city?: pulumi.Input; /** * Name of a company. Maximum length: `83`. */ company?: pulumi.Input; /** * Billing group ID. Length must be exactly `36`. Changing this property forces recreation of the resource. */ copyFromBillingGroup?: pulumi.Input; /** * Two letter country code for billing country. Maximum length: `2`. */ countryCode?: pulumi.Input; /** * Billing group name. Maximum length: `128`. */ name?: pulumi.Input; /** * Link a billing group to an existing organization by using its ID. */ parentId?: pulumi.Input; /** * Address state or province. Maximum length: `30`. */ state?: pulumi.Input; timeouts?: pulumi.Input; /** * EU VAT Identification Number. Maximum length: `64`. */ vatId?: pulumi.Input; /** * Address zip code. Maximum length: `36`. */ zipCode?: pulumi.Input; } /** * The set of arguments for constructing a BillingGroup resource. */ export interface BillingGroupArgs { /** * Account ID. Maximum length: `36`. **Deprecated**: Use `parentId` instead. This field will be removed in the next major release. * * @deprecated Use `parentId` instead. This field will be removed in the next major release. */ accountId?: pulumi.Input; /** * Address lines 1 and 2. For example, street, PO box, or building. */ addressLines?: pulumi.Input[] | undefined>; /** * List of billing groups contact email addresses. */ billingContactEmails?: pulumi.Input[] | undefined>; /** * Billing currency. The possible values are `AUD`, `CAD`, `CHF`, `DKK`, `EUR`, `GBP`, `JPY`, `NOK`, `NZD`, `SEK`, `SGD` and `USD`. */ billingCurrency?: pulumi.Input; /** * List of project billing email addresses. */ billingEmails?: pulumi.Input[] | undefined>; /** * Extra text to be included in all project invoices, e.g. purchase order or cost center number. Maximum length: `1000`. */ billingExtraText?: pulumi.Input; /** * Credit card ID. Maximum length: `64`. */ cardId?: pulumi.Input; /** * Address city. Maximum length: `50`. */ city?: pulumi.Input; /** * Name of a company. Maximum length: `83`. */ company?: pulumi.Input; /** * Billing group ID. Length must be exactly `36`. Changing this property forces recreation of the resource. */ copyFromBillingGroup?: pulumi.Input; /** * Two letter country code for billing country. Maximum length: `2`. */ countryCode?: pulumi.Input; /** * Billing group name. Maximum length: `128`. */ name?: pulumi.Input; /** * Link a billing group to an existing organization by using its ID. */ parentId: pulumi.Input; /** * Address state or province. Maximum length: `30`. */ state?: pulumi.Input; timeouts?: pulumi.Input; /** * EU VAT Identification Number. Maximum length: `64`. */ vatId?: pulumi.Input; /** * Address zip code. Maximum length: `36`. */ zipCode?: pulumi.Input; } //# sourceMappingURL=billingGroup.d.ts.map