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

aiven.AccountTeam

Explore with Pulumi AI

Creates and manages a team.

!> Teams have been deprecated and are being migrated to groups On 30 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won’t be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed. View the migration guide for more information on the changes and migrating to groups.

Important You can’t delete the Account Owners team. Deleting all other teams in your organization will disable the teams feature. You won’t be able to create new teams or access your Account Owners team.

Example Usage

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

const exampleTeam = new aiven.AccountTeam("example_team", {
    accountId: ACCOUNT_RESOURCE_NAME.accountId,
    name: "Example team",
});
Copy
import pulumi
import pulumi_aiven as aiven

example_team = aiven.AccountTeam("example_team",
    account_id=accoun_t__resourc_e__name["accountId"],
    name="Example team")
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.NewAccountTeam(ctx, "example_team", &aiven.AccountTeamArgs{
			AccountId: pulumi.Any(ACCOUNT_RESOURCE_NAME.AccountId),
			Name:      pulumi.String("Example team"),
		})
		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 exampleTeam = new Aiven.AccountTeam("example_team", new()
    {
        AccountId = ACCOUNT_RESOURCE_NAME.AccountId,
        Name = "Example team",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AccountTeam;
import com.pulumi.aiven.AccountTeamArgs;
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 exampleTeam = new AccountTeam("exampleTeam", AccountTeamArgs.builder()
            .accountId(ACCOUNT_RESOURCE_NAME.accountId())
            .name("Example team")
            .build());

    }
}
Copy
resources:
  exampleTeam:
    type: aiven:AccountTeam
    name: example_team
    properties:
      accountId: ${ACCOUNT_RESOURCE_NAME.accountId}
      name: Example team
Copy

Create AccountTeam Resource

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

Constructor syntax

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

@overload
def AccountTeam(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_id: Optional[str] = None,
                name: Optional[str] = None)
func NewAccountTeam(ctx *Context, name string, args AccountTeamArgs, opts ...ResourceOption) (*AccountTeam, error)
public AccountTeam(string name, AccountTeamArgs args, CustomResourceOptions? opts = null)
public AccountTeam(String name, AccountTeamArgs args)
public AccountTeam(String name, AccountTeamArgs args, CustomResourceOptions options)
type: aiven:AccountTeam
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 This property is required. AccountTeamArgs
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 This property is required. AccountTeamArgs
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 This property is required. AccountTeamArgs
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 This property is required. AccountTeamArgs
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. AccountTeamArgs
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 accountTeamResource = new Aiven.AccountTeam("accountTeamResource", new()
{
    AccountId = "string",
    Name = "string",
});
Copy
example, err := aiven.NewAccountTeam(ctx, "accountTeamResource", &aiven.AccountTeamArgs{
	AccountId: pulumi.String("string"),
	Name:      pulumi.String("string"),
})
Copy
var accountTeamResource = new AccountTeam("accountTeamResource", AccountTeamArgs.builder()
    .accountId("string")
    .name("string")
    .build());
Copy
account_team_resource = aiven.AccountTeam("accountTeamResource",
    account_id="string",
    name="string")
Copy
const accountTeamResource = new aiven.AccountTeam("accountTeamResource", {
    accountId: "string",
    name: "string",
});
Copy
type: aiven:AccountTeam
properties:
    accountId: string
    name: string
Copy

AccountTeam 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 AccountTeam resource accepts the following input properties:

AccountId This property is required. string
The unique account id
Name string
The account team name
AccountId This property is required. string
The unique account id
Name string
The account team name
accountId This property is required. String
The unique account id
name String
The account team name
accountId This property is required. string
The unique account id
name string
The account team name
account_id This property is required. str
The unique account id
name str
The account team name
accountId This property is required. String
The unique account id
name String
The account team name

Outputs

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

CreateTime string
Time of creation
Id string
The provider-assigned unique ID for this managed resource.
TeamId string
The auto-generated unique account team id
UpdateTime string
Time of last update
CreateTime string
Time of creation
Id string
The provider-assigned unique ID for this managed resource.
TeamId string
The auto-generated unique account team id
UpdateTime string
Time of last update
createTime String
Time of creation
id String
The provider-assigned unique ID for this managed resource.
teamId String
The auto-generated unique account team id
updateTime String
Time of last update
createTime string
Time of creation
id string
The provider-assigned unique ID for this managed resource.
teamId string
The auto-generated unique account team id
updateTime string
Time of last update
create_time str
Time of creation
id str
The provider-assigned unique ID for this managed resource.
team_id str
The auto-generated unique account team id
update_time str
Time of last update
createTime String
Time of creation
id String
The provider-assigned unique ID for this managed resource.
teamId String
The auto-generated unique account team id
updateTime String
Time of last update

Look up Existing AccountTeam Resource

Get an existing AccountTeam 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?: AccountTeamState, opts?: CustomResourceOptions): AccountTeam
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        create_time: Optional[str] = None,
        name: Optional[str] = None,
        team_id: Optional[str] = None,
        update_time: Optional[str] = None) -> AccountTeam
func GetAccountTeam(ctx *Context, name string, id IDInput, state *AccountTeamState, opts ...ResourceOption) (*AccountTeam, error)
public static AccountTeam Get(string name, Input<string> id, AccountTeamState? state, CustomResourceOptions? opts = null)
public static AccountTeam get(String name, Output<String> id, AccountTeamState state, CustomResourceOptions options)
resources:  _:    type: aiven:AccountTeam    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
The unique account id
CreateTime string
Time of creation
Name string
The account team name
TeamId string
The auto-generated unique account team id
UpdateTime string
Time of last update
AccountId string
The unique account id
CreateTime string
Time of creation
Name string
The account team name
TeamId string
The auto-generated unique account team id
UpdateTime string
Time of last update
accountId String
The unique account id
createTime String
Time of creation
name String
The account team name
teamId String
The auto-generated unique account team id
updateTime String
Time of last update
accountId string
The unique account id
createTime string
Time of creation
name string
The account team name
teamId string
The auto-generated unique account team id
updateTime string
Time of last update
account_id str
The unique account id
create_time str
Time of creation
name str
The account team name
team_id str
The auto-generated unique account team id
update_time str
Time of last update
accountId String
The unique account id
createTime String
Time of creation
name String
The account team name
teamId String
The auto-generated unique account team id
updateTime String
Time of last update

Import

$ pulumi import aiven:index/accountTeam:AccountTeam account_team1 account_id/team_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.