1. Packages
  2. Konnect Provider
  3. API Docs
  4. TeamUser
konnect 2.5.0 published on Tuesday, Apr 15, 2025 by kong

konnect.TeamUser

Explore with Pulumi AI

TeamUser Resource

Example Usage

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

const myTeamuser = new konnect.TeamUser("myTeamuser", {
    teamId: "d32d905a-ed33-46a3-a093-d8f536af9a8a",
    userId: "df120cb4-f60b-47bc-a2f8-6a28e6a3c63b",
});
Copy
import pulumi
import pulumi_konnect as konnect

my_teamuser = konnect.TeamUser("myTeamuser",
    team_id="d32d905a-ed33-46a3-a093-d8f536af9a8a",
    user_id="df120cb4-f60b-47bc-a2f8-6a28e6a3c63b")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v2/konnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := konnect.NewTeamUser(ctx, "myTeamuser", &konnect.TeamUserArgs{
			TeamId: pulumi.String("d32d905a-ed33-46a3-a093-d8f536af9a8a"),
			UserId: pulumi.String("df120cb4-f60b-47bc-a2f8-6a28e6a3c63b"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;

return await Deployment.RunAsync(() => 
{
    var myTeamuser = new Konnect.TeamUser("myTeamuser", new()
    {
        TeamId = "d32d905a-ed33-46a3-a093-d8f536af9a8a",
        UserId = "df120cb4-f60b-47bc-a2f8-6a28e6a3c63b",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.TeamUser;
import com.pulumi.konnect.TeamUserArgs;
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 myTeamuser = new TeamUser("myTeamuser", TeamUserArgs.builder()
            .teamId("d32d905a-ed33-46a3-a093-d8f536af9a8a")
            .userId("df120cb4-f60b-47bc-a2f8-6a28e6a3c63b")
            .build());

    }
}
Copy
resources:
  myTeamuser:
    type: konnect:TeamUser
    properties:
      teamId: d32d905a-ed33-46a3-a093-d8f536af9a8a
      userId: df120cb4-f60b-47bc-a2f8-6a28e6a3c63b
Copy

Create TeamUser Resource

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

Constructor syntax

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

@overload
def TeamUser(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             team_id: Optional[str] = None,
             user_id: Optional[str] = None)
func NewTeamUser(ctx *Context, name string, args TeamUserArgs, opts ...ResourceOption) (*TeamUser, error)
public TeamUser(string name, TeamUserArgs args, CustomResourceOptions? opts = null)
public TeamUser(String name, TeamUserArgs args)
public TeamUser(String name, TeamUserArgs args, CustomResourceOptions options)
type: konnect:TeamUser
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. TeamUserArgs
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. TeamUserArgs
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. TeamUserArgs
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. TeamUserArgs
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. TeamUserArgs
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 teamUserResource = new Konnect.TeamUser("teamUserResource", new()
{
    TeamId = "string",
    UserId = "string",
});
Copy
example, err := konnect.NewTeamUser(ctx, "teamUserResource", &konnect.TeamUserArgs{
TeamId: pulumi.String("string"),
UserId: pulumi.String("string"),
})
Copy
var teamUserResource = new TeamUser("teamUserResource", TeamUserArgs.builder()
    .teamId("string")
    .userId("string")
    .build());
Copy
team_user_resource = konnect.TeamUser("teamUserResource",
    team_id="string",
    user_id="string")
Copy
const teamUserResource = new konnect.TeamUser("teamUserResource", {
    teamId: "string",
    userId: "string",
});
Copy
type: konnect:TeamUser
properties:
    teamId: string
    userId: string
Copy

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

TeamId This property is required. string
ID of the team. Requires replacement if changed.
UserId This property is required. string
The user ID for the user being added to a team. Requires replacement if changed.
TeamId This property is required. string
ID of the team. Requires replacement if changed.
UserId This property is required. string
The user ID for the user being added to a team. Requires replacement if changed.
teamId This property is required. String
ID of the team. Requires replacement if changed.
userId This property is required. String
The user ID for the user being added to a team. Requires replacement if changed.
teamId This property is required. string
ID of the team. Requires replacement if changed.
userId This property is required. string
The user ID for the user being added to a team. Requires replacement if changed.
team_id This property is required. str
ID of the team. Requires replacement if changed.
user_id This property is required. str
The user ID for the user being added to a team. Requires replacement if changed.
teamId This property is required. String
ID of the team. Requires replacement if changed.
userId This property is required. String
The user ID for the user being added to a team. Requires replacement if changed.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing TeamUser Resource

Get an existing TeamUser 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?: TeamUserState, opts?: CustomResourceOptions): TeamUser
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        team_id: Optional[str] = None,
        user_id: Optional[str] = None) -> TeamUser
func GetTeamUser(ctx *Context, name string, id IDInput, state *TeamUserState, opts ...ResourceOption) (*TeamUser, error)
public static TeamUser Get(string name, Input<string> id, TeamUserState? state, CustomResourceOptions? opts = null)
public static TeamUser get(String name, Output<String> id, TeamUserState state, CustomResourceOptions options)
resources:  _:    type: konnect:TeamUser    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:
TeamId string
ID of the team. Requires replacement if changed.
UserId string
The user ID for the user being added to a team. Requires replacement if changed.
TeamId string
ID of the team. Requires replacement if changed.
UserId string
The user ID for the user being added to a team. Requires replacement if changed.
teamId String
ID of the team. Requires replacement if changed.
userId String
The user ID for the user being added to a team. Requires replacement if changed.
teamId string
ID of the team. Requires replacement if changed.
userId string
The user ID for the user being added to a team. Requires replacement if changed.
team_id str
ID of the team. Requires replacement if changed.
user_id str
The user ID for the user being added to a team. Requires replacement if changed.
teamId String
ID of the team. Requires replacement if changed.
userId String
The user ID for the user being added to a team. Requires replacement if changed.

Package Details

Repository
konnect kong/terraform-provider-konnect
License
Notes
This Pulumi package is based on the konnect Terraform Provider.