1. Packages
  2. Aiven
  3. API Docs
  4. AccountTeam
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.AccountTeam

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

    Creates and manages a team.

    Teams are becoming groups Groups are an easier way to control access to your organization’s projects and services for a group of users. Migrate your teams to groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const exampleTeam = new aiven.AccountTeam("exampleTeam", {accountId: aiven_account.ACCOUNT_RESOURCE_NAME.account_id});
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_team = aiven.AccountTeam("exampleTeam", account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_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 {
    		_, err := aiven.NewAccountTeam(ctx, "exampleTeam", &aiven.AccountTeamArgs{
    			AccountId: pulumi.Any(aiven_account.ACCOUNT_RESOURCE_NAME.Account_id),
    		})
    		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("exampleTeam", new()
        {
            AccountId = aiven_account.ACCOUNT_RESOURCE_NAME.Account_id,
        });
    
    });
    
    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(aiven_account.ACCOUNT_RESOURCE_NAME().account_id())
                .build());
    
        }
    }
    
    resources:
      exampleTeam:
        type: aiven:AccountTeam
        properties:
          accountId: ${aiven_account.ACCOUNT_RESOURCE_NAME.account_id}
    

    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.

    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.13.0 published on Monday, Mar 25, 2024 by Pulumi