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

aiven.AccountTeamMember

Explore with Pulumi AI

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

    Adds a user as a team member.

    During the creation of this resource, an invite is sent to the address specified in user_email. The user is added to the team after they accept the invite. Deleting aiven.AccountTeamMember deletes the pending invite if not accepted or removes the user from the team if they already accepted the invite.

    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 main = new aiven.AccountTeamMember("main", {
        accountId: aiven_account.ACCOUNT_RESOURCE_NAME.account_id,
        teamId: aiven_account_team.TEAM_RESOURCE_NAME.team_id,
        userEmail: "user+1@example.com",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    main = aiven.AccountTeamMember("main",
        account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"],
        team_id=aiven_account_team["TEAM_RESOURCE_NAME"]["team_id"],
        user_email="user+1@example.com")
    
    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.NewAccountTeamMember(ctx, "main", &aiven.AccountTeamMemberArgs{
    			AccountId: pulumi.Any(aiven_account.ACCOUNT_RESOURCE_NAME.Account_id),
    			TeamId:    pulumi.Any(aiven_account_team.TEAM_RESOURCE_NAME.Team_id),
    			UserEmail: pulumi.String("user+1@example.com"),
    		})
    		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 main = new Aiven.AccountTeamMember("main", new()
        {
            AccountId = aiven_account.ACCOUNT_RESOURCE_NAME.Account_id,
            TeamId = aiven_account_team.TEAM_RESOURCE_NAME.Team_id,
            UserEmail = "user+1@example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AccountTeamMember;
    import com.pulumi.aiven.AccountTeamMemberArgs;
    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 main = new AccountTeamMember("main", AccountTeamMemberArgs.builder()        
                .accountId(aiven_account.ACCOUNT_RESOURCE_NAME().account_id())
                .teamId(aiven_account_team.TEAM_RESOURCE_NAME().team_id())
                .userEmail("user+1@example.com")
                .build());
    
        }
    }
    
    resources:
      main:
        type: aiven:AccountTeamMember
        properties:
          accountId: ${aiven_account.ACCOUNT_RESOURCE_NAME.account_id}
          teamId: ${aiven_account_team.TEAM_RESOURCE_NAME.team_id}
          userEmail: user+1@example.com
    

    Create AccountTeamMember Resource

    new AccountTeamMember(name: string, args: AccountTeamMemberArgs, opts?: CustomResourceOptions);
    @overload
    def AccountTeamMember(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          account_id: Optional[str] = None,
                          team_id: Optional[str] = None,
                          user_email: Optional[str] = None)
    @overload
    def AccountTeamMember(resource_name: str,
                          args: AccountTeamMemberArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewAccountTeamMember(ctx *Context, name string, args AccountTeamMemberArgs, opts ...ResourceOption) (*AccountTeamMember, error)
    public AccountTeamMember(string name, AccountTeamMemberArgs args, CustomResourceOptions? opts = null)
    public AccountTeamMember(String name, AccountTeamMemberArgs args)
    public AccountTeamMember(String name, AccountTeamMemberArgs args, CustomResourceOptions options)
    
    type: aiven:AccountTeamMember
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AccountTeamMemberArgs
    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 AccountTeamMemberArgs
    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 AccountTeamMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountTeamMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountTeamMemberArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccountId string
    The unique account id. Changing this property forces recreation of the resource.
    TeamId string
    An account team id. Changing this property forces recreation of the resource.
    UserEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    AccountId string
    The unique account id. Changing this property forces recreation of the resource.
    TeamId string
    An account team id. Changing this property forces recreation of the resource.
    UserEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accountId String
    The unique account id. Changing this property forces recreation of the resource.
    teamId String
    An account team id. Changing this property forces recreation of the resource.
    userEmail String
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accountId string
    The unique account id. Changing this property forces recreation of the resource.
    teamId string
    An account team id. Changing this property forces recreation of the resource.
    userEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    account_id str
    The unique account id. Changing this property forces recreation of the resource.
    team_id str
    An account team id. Changing this property forces recreation of the resource.
    user_email str
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accountId String
    The unique account id. Changing this property forces recreation of the resource.
    teamId String
    An account team id. Changing this property forces recreation of the resource.
    userEmail String
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.

    Outputs

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

    Accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    CreateTime string
    Time of creation
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitedByUserEmail string
    The email address that invited this user.
    Accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    CreateTime string
    Time of creation
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitedByUserEmail string
    The email address that invited this user.
    accepted Boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    createTime String
    Time of creation
    id String
    The provider-assigned unique ID for this managed resource.
    invitedByUserEmail String
    The email address that invited this user.
    accepted boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    createTime string
    Time of creation
    id string
    The provider-assigned unique ID for this managed resource.
    invitedByUserEmail string
    The email address that invited this user.
    accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    create_time str
    Time of creation
    id str
    The provider-assigned unique ID for this managed resource.
    invited_by_user_email str
    The email address that invited this user.
    accepted Boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    createTime String
    Time of creation
    id String
    The provider-assigned unique ID for this managed resource.
    invitedByUserEmail String
    The email address that invited this user.

    Look up Existing AccountTeamMember Resource

    Get an existing AccountTeamMember 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?: AccountTeamMemberState, opts?: CustomResourceOptions): AccountTeamMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accepted: Optional[bool] = None,
            account_id: Optional[str] = None,
            create_time: Optional[str] = None,
            invited_by_user_email: Optional[str] = None,
            team_id: Optional[str] = None,
            user_email: Optional[str] = None) -> AccountTeamMember
    func GetAccountTeamMember(ctx *Context, name string, id IDInput, state *AccountTeamMemberState, opts ...ResourceOption) (*AccountTeamMember, error)
    public static AccountTeamMember Get(string name, Input<string> id, AccountTeamMemberState? state, CustomResourceOptions? opts = null)
    public static AccountTeamMember get(String name, Output<String> id, AccountTeamMemberState 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:
    Accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    AccountId string
    The unique account id. Changing this property forces recreation of the resource.
    CreateTime string
    Time of creation
    InvitedByUserEmail string
    The email address that invited this user.
    TeamId string
    An account team id. Changing this property forces recreation of the resource.
    UserEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    Accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    AccountId string
    The unique account id. Changing this property forces recreation of the resource.
    CreateTime string
    Time of creation
    InvitedByUserEmail string
    The email address that invited this user.
    TeamId string
    An account team id. Changing this property forces recreation of the resource.
    UserEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accepted Boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    accountId String
    The unique account id. Changing this property forces recreation of the resource.
    createTime String
    Time of creation
    invitedByUserEmail String
    The email address that invited this user.
    teamId String
    An account team id. Changing this property forces recreation of the resource.
    userEmail String
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accepted boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    accountId string
    The unique account id. Changing this property forces recreation of the resource.
    createTime string
    Time of creation
    invitedByUserEmail string
    The email address that invited this user.
    teamId string
    An account team id. Changing this property forces recreation of the resource.
    userEmail string
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accepted bool
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    account_id str
    The unique account id. Changing this property forces recreation of the resource.
    create_time str
    Time of creation
    invited_by_user_email str
    The email address that invited this user.
    team_id str
    An account team id. Changing this property forces recreation of the resource.
    user_email str
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.
    accepted Boolean
    is a boolean flag that determines whether an invitation was accepted or not by the user. false value means that the invitation was sent to the user but not yet accepted. true means that the user accepted the invitation and now a member of an account team.
    accountId String
    The unique account id. Changing this property forces recreation of the resource.
    createTime String
    Time of creation
    invitedByUserEmail String
    The email address that invited this user.
    teamId String
    An account team id. Changing this property forces recreation of the resource.
    userEmail String
    Is a user email address that first will be invited, and after accepting an invitation, he or she becomes a member of a team. Should be lowercase. Changing this property forces recreation of the resource.

    Import

    $ pulumi import aiven:index/accountTeamMember:AccountTeamMember foo account_id/team_id/user_email
    

    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