1. Packages
  2. Aiven Provider
  3. API Docs
  4. AccountTeam
Aiven v6.25.0 published on Friday, Sep 27, 2024 by Pulumi

aiven.AccountTeam

Explore with Pulumi AI

aiven logo
Aiven v6.25.0 published on Friday, Sep 27, 2024 by Pulumi

    This resource is deprecated. Use aiven.OrganizationUserGroup instead.

    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",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_team = aiven.AccountTeam("example_team",
        account_id=accoun_t__resourc_e__name["accountId"],
        name="Example team")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      exampleTeam:
        type: aiven:AccountTeam
        name: example_team
        properties:
          accountId: ${ACCOUNT_RESOURCE_NAME.accountId}
          name: Example team
    

    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 string
    The unique name of the resource.
    args AccountTeamArgs
    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 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 string
    The unique name of the resource.
    args AccountTeamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountTeamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    example, err := aiven.NewAccountTeam(ctx, "accountTeamResource", &aiven.AccountTeamArgs{
    	AccountId: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    })
    
    var accountTeamResource = new AccountTeam("accountTeamResource", AccountTeamArgs.builder()
        .accountId("string")
        .name("string")
        .build());
    
    account_team_resource = aiven.AccountTeam("accountTeamResource",
        account_id="string",
        name="string")
    
    const accountTeamResource = new aiven.AccountTeam("accountTeamResource", {
        accountId: "string",
        name: "string",
    });
    
    type: aiven:AccountTeam
    properties:
        accountId: string
        name: string
    

    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

    The AccountTeam resource accepts the following input properties:

    AccountId string
    The unique account id
    Name string
    The account team name
    AccountId string
    The unique account id
    Name string
    The account team name
    accountId String
    The unique account id
    name String
    The account team name
    accountId string
    The unique account id
    name string
    The account team name
    account_id str
    The unique account id
    name str
    The account team name
    accountId 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)
    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.
    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
    

    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.
    aiven logo
    Aiven v6.25.0 published on Friday, Sep 27, 2024 by Pulumi