1. Packages
  2. Aiven Provider
  3. API Docs
  4. Account
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.Account

Explore with Pulumi AI

Creates and manages an Aiven account.

This resource is deprecated This resource will be removed in v5.0.0. Use aiven.Organization instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const account1 = new aiven.Account("account1", {name: "<ACCOUNT_NAME>"});
Copy
import pulumi
import pulumi_aiven as aiven

account1 = aiven.Account("account1", name="<ACCOUNT_NAME>")
Copy
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.NewAccount(ctx, "account1", &aiven.AccountArgs{
			Name: pulumi.String("<ACCOUNT_NAME>"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var account1 = new Aiven.Account("account1", new()
    {
        Name = "<ACCOUNT_NAME>",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.Account;
import com.pulumi.aiven.AccountArgs;
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 account1 = new Account("account1", AccountArgs.builder()
            .name("<ACCOUNT_NAME>")
            .build());

    }
}
Copy
resources:
  account1:
    type: aiven:Account
    properties:
      name: <ACCOUNT_NAME>
Copy

Create Account Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            args: Optional[AccountArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            primary_billing_group_id: Optional[str] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: aiven:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var accountResource = new Aiven.Account("accountResource", new()
{
    Name = "string",
});
Copy
example, err := aiven.NewAccount(ctx, "accountResource", &aiven.AccountArgs{
	Name: pulumi.String("string"),
})
Copy
var accountResource = new Account("accountResource", AccountArgs.builder()
    .name("string")
    .build());
Copy
account_resource = aiven.Account("accountResource", name="string")
Copy
const accountResource = new aiven.Account("accountResource", {name: "string"});
Copy
type: aiven:Account
properties:
    name: string
Copy

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Account resource accepts the following input properties:

Name string
Account name
PrimaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

Name string
Account name
PrimaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name String
Account name
primaryBillingGroupId Changes to this property will trigger replacement. String
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name string
Account name
primaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name str
Account name
primary_billing_group_id Changes to this property will trigger replacement. str
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name String
Account name
primaryBillingGroupId Changes to this property will trigger replacement. String
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

AccountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

CreateTime string
Time of creation
Id string
The provider-assigned unique ID for this managed resource.
IsAccountOwner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

OwnerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

TenantId string
Tenant id
UpdateTime string
Time of last update
AccountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

CreateTime string
Time of creation
Id string
The provider-assigned unique ID for this managed resource.
IsAccountOwner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

OwnerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

TenantId string
Tenant id
UpdateTime string
Time of last update
accountId String
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime String
Time of creation
id String
The provider-assigned unique ID for this managed resource.
isAccountOwner Boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

ownerTeamId String
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId String
Tenant id
updateTime String
Time of last update
accountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime string
Time of creation
id string
The provider-assigned unique ID for this managed resource.
isAccountOwner boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

ownerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId string
Tenant id
updateTime string
Time of last update
account_id str
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

create_time str
Time of creation
id str
The provider-assigned unique ID for this managed resource.
is_account_owner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

owner_team_id str
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenant_id str
Tenant id
update_time str
Time of last update
accountId String
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime String
Time of creation
id String
The provider-assigned unique ID for this managed resource.
isAccountOwner Boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

ownerTeamId String
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId String
Tenant id
updateTime String
Time of last update

Look up Existing Account Resource

Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        create_time: Optional[str] = None,
        is_account_owner: Optional[bool] = None,
        name: Optional[str] = None,
        owner_team_id: Optional[str] = None,
        primary_billing_group_id: Optional[str] = None,
        tenant_id: Optional[str] = None,
        update_time: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
resources:  _:    type: aiven:Account    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AccountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

CreateTime string
Time of creation
IsAccountOwner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

Name string
Account name
OwnerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

PrimaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

TenantId string
Tenant id
UpdateTime string
Time of last update
AccountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

CreateTime string
Time of creation
IsAccountOwner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

Name string
Account name
OwnerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

PrimaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

TenantId string
Tenant id
UpdateTime string
Time of last update
accountId String
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime String
Time of creation
isAccountOwner Boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name String
Account name
ownerTeamId String
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

primaryBillingGroupId Changes to this property will trigger replacement. String
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId String
Tenant id
updateTime String
Time of last update
accountId string
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime string
Time of creation
isAccountOwner boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name string
Account name
ownerTeamId string
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

primaryBillingGroupId Changes to this property will trigger replacement. string
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId string
Tenant id
updateTime string
Time of last update
account_id str
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

create_time str
Time of creation
is_account_owner bool
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name str
Account name
owner_team_id str
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

primary_billing_group_id Changes to this property will trigger replacement. str
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenant_id str
Tenant id
update_time str
Time of last update
accountId String
Account id

Deprecated: The new aiven.Organization resource won't have it, use the built-in ID field instead.

createTime String
Time of creation
isAccountOwner Boolean
If true, user is part of the owners team for this account

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

name String
Account name
ownerTeamId String
Owner team id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

primaryBillingGroupId Changes to this property will trigger replacement. String
Billing group id

Deprecated: The new aiven.Organization resource won't have it, and will not have a replacement.

tenantId String
Tenant id
updateTime String
Time of last update

Import

$ pulumi import aiven:index/account:Account account1 account_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.