aiven.AccountTeamMember
Explore with Pulumi AI
This resource is deprecated. Use aiven.OrganizationUserGroupMember
instead.
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 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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const main = new aiven.AccountTeamMember("main", {
accountId: ACCOUNT_RESOURCE_NAME.accountId,
teamId: TEAM_RESOURCE_NAME.teamId,
userEmail: "user+1@example.com",
});
import pulumi
import pulumi_aiven as aiven
main = aiven.AccountTeamMember("main",
account_id=accoun_t__resourc_e__name["accountId"],
team_id=tea_m__resourc_e__name["teamId"],
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(ACCOUNT_RESOURCE_NAME.AccountId),
TeamId: pulumi.Any(TEAM_RESOURCE_NAME.TeamId),
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 = ACCOUNT_RESOURCE_NAME.AccountId,
TeamId = TEAM_RESOURCE_NAME.TeamId,
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(ACCOUNT_RESOURCE_NAME.accountId())
.teamId(TEAM_RESOURCE_NAME.teamId())
.userEmail("user+1@example.com")
.build());
}
}
resources:
main:
type: aiven:AccountTeamMember
properties:
accountId: ${ACCOUNT_RESOURCE_NAME.accountId}
teamId: ${TEAM_RESOURCE_NAME.teamId}
userEmail: user+1@example.com
Create AccountTeamMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccountTeamMember(name: string, args: AccountTeamMemberArgs, opts?: CustomResourceOptions);
@overload
def AccountTeamMember(resource_name: str,
args: AccountTeamMemberArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var accountTeamMemberResource = new Aiven.AccountTeamMember("accountTeamMemberResource", new()
{
AccountId = "string",
TeamId = "string",
UserEmail = "string",
});
example, err := aiven.NewAccountTeamMember(ctx, "accountTeamMemberResource", &aiven.AccountTeamMemberArgs{
AccountId: pulumi.String("string"),
TeamId: pulumi.String("string"),
UserEmail: pulumi.String("string"),
})
var accountTeamMemberResource = new AccountTeamMember("accountTeamMemberResource", AccountTeamMemberArgs.builder()
.accountId("string")
.teamId("string")
.userEmail("string")
.build());
account_team_member_resource = aiven.AccountTeamMember("accountTeamMemberResource",
account_id="string",
team_id="string",
user_email="string")
const accountTeamMemberResource = new aiven.AccountTeamMember("accountTeamMemberResource", {
accountId: "string",
teamId: "string",
userEmail: "string",
});
type: aiven:AccountTeamMember
properties:
accountId: string
teamId: string
userEmail: string
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:
- Account
Id string - The unique account id. Changing this property forces recreation of the resource.
- Team
Id string - An account team id. Changing this property forces recreation of the resource.
- User
Email 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 string - The unique account id. Changing this property forces recreation of the resource.
- Team
Id string - An account team id. Changing this property forces recreation of the resource.
- User
Email 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 String - The unique account id. Changing this property forces recreation of the resource.
- team
Id String - An account team id. Changing this property forces recreation of the resource.
- user
Email 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 string - The unique account id. Changing this property forces recreation of the resource.
- team
Id string - An account team id. Changing this property forces recreation of the resource.
- user
Email 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.
- account
Id String - The unique account id. Changing this property forces recreation of the resource.
- team
Id String - An account team id. Changing this property forces recreation of the resource.
- user
Email 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. - Create
Time string - Time of creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Invited
By stringUser Email - 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 string - Time of creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Invited
By stringUser Email - 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. - create
Time String - Time of creation
- id String
- The provider-assigned unique ID for this managed resource.
- invited
By StringUser Email - 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. - create
Time string - Time of creation
- id string
- The provider-assigned unique ID for this managed resource.
- invited
By stringUser Email - 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_ struser_ email - 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. - create
Time String - Time of creation
- id String
- The provider-assigned unique ID for this managed resource.
- invited
By StringUser Email - 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.
- 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 string - The unique account id. Changing this property forces recreation of the resource.
- Create
Time string - Time of creation
- Invited
By stringUser Email - The email address that invited this user.
- Team
Id string - An account team id. Changing this property forces recreation of the resource.
- User
Email 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 string - The unique account id. Changing this property forces recreation of the resource.
- Create
Time string - Time of creation
- Invited
By stringUser Email - The email address that invited this user.
- Team
Id string - An account team id. Changing this property forces recreation of the resource.
- User
Email 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. - account
Id String - The unique account id. Changing this property forces recreation of the resource.
- create
Time String - Time of creation
- invited
By StringUser Email - The email address that invited this user.
- team
Id String - An account team id. Changing this property forces recreation of the resource.
- user
Email 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. - account
Id string - The unique account id. Changing this property forces recreation of the resource.
- create
Time string - Time of creation
- invited
By stringUser Email - The email address that invited this user.
- team
Id string - An account team id. Changing this property forces recreation of the resource.
- user
Email 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_ struser_ email - 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. - account
Id String - The unique account id. Changing this property forces recreation of the resource.
- create
Time String - Time of creation
- invited
By StringUser Email - The email address that invited this user.
- team
Id String - An account team id. Changing this property forces recreation of the resource.
- user
Email 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
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.