1. Packages
  2. Upstash
  3. API Docs
  4. Team
Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash

upstash.Team

Explore with Pulumi AI

Example Usage

using Pulumi;
using Upstash = Pulumi.Upstash;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleTeam = new Upstash.Team("exampleTeam", new Upstash.TeamArgs
        {
            TeamName = "TerraformTeam",
            CopyCc = false,
            TeamMembers = 
            {
                { "X@Y.Z", "owner" },
                { "A@B.C", "dev" },
                { "E@E.F", "finance" },
            },
        });
    }

}
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/upstash/pulumi-upstash/sdk/go/upstash"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := upstash.NewTeam(ctx, "exampleTeam", &upstash.TeamArgs{
			TeamName: pulumi.String("TerraformTeam"),
			CopyCc:   pulumi.Bool(false),
			TeamMembers: pulumi.StringMap{
				"X@Y.Z": pulumi.String("owner"),
				"A@B.C": pulumi.String("dev"),
				"E@E.F": pulumi.String("finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleTeam = new Team("exampleTeam", TeamArgs.builder()        
            .teamName("TerraformTeam")
            .copyCc(false)
            .teamMembers(Map.ofEntries(
                Map.entry("X@Y.Z", "owner"),
                Map.entry("A@B.C", "dev"),
                Map.entry("E@E.F", "finance")
            ))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as pulumi from "@upstash/pulumi";

const exampleTeam = new upstash.Team("exampleTeam", {
    teamName: "TerraformTeam",
    copyCc: false,
    teamMembers: {
        "X@Y.Z": "owner",
        "A@B.C": "dev",
        "E@E.F": "finance",
    },
});
Copy
import pulumi
import upstash_pulumi as upstash

example_team = upstash.Team("exampleTeam",
    team_name="TerraformTeam",
    copy_cc=False,
    team_members={
        "X@Y.Z": "owner",
        "A@B.C": "dev",
        "E@E.F": "finance",
    })
Copy
resources:
  exampleTeam:
    type: upstash:Team
    properties:
      teamName: TerraformTeam
      copyCc: false
      teamMembers:
        X@Y.Z: owner
        A@B.C: dev
        E@E.F: finance
Copy

Create Team Resource

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

Constructor syntax

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

@overload
def Team(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         copy_cc: Optional[bool] = None,
         team_members: Optional[Mapping[str, str]] = None,
         team_name: Optional[str] = None)
func NewTeam(ctx *Context, name string, args TeamArgs, opts ...ResourceOption) (*Team, error)
public Team(string name, TeamArgs args, CustomResourceOptions? opts = null)
public Team(String name, TeamArgs args)
public Team(String name, TeamArgs args, CustomResourceOptions options)
type: upstash:Team
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. TeamArgs
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. TeamArgs
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. TeamArgs
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. TeamArgs
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. TeamArgs
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 teamResource = new Upstash.Team("teamResource", new()
{
    CopyCc = false,
    TeamMembers = 
    {
        { "string", "string" },
    },
    TeamName = "string",
});
Copy
example, err := upstash.NewTeam(ctx, "teamResource", &upstash.TeamArgs{
	CopyCc: pulumi.Bool(false),
	TeamMembers: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TeamName: pulumi.String("string"),
})
Copy
var teamResource = new Team("teamResource", TeamArgs.builder()
    .copyCc(false)
    .teamMembers(Map.of("string", "string"))
    .teamName("string")
    .build());
Copy
team_resource = upstash.Team("teamResource",
    copy_cc=False,
    team_members={
        "string": "string",
    },
    team_name="string")
Copy
const teamResource = new upstash.Team("teamResource", {
    copyCc: false,
    teamMembers: {
        string: "string",
    },
    teamName: "string",
});
Copy
type: upstash:Team
properties:
    copyCc: false
    teamMembers:
        string: string
    teamName: string
Copy

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

CopyCc
This property is required.
Changes to this property will trigger replacement.
bool
Whether Credit Card is copied
TeamMembers This property is required. Dictionary<string, string>
Members of the team. (Owner must be specified, which is the owner of the api key.)
TeamName
This property is required.
Changes to this property will trigger replacement.
string
Name of the team
CopyCc
This property is required.
Changes to this property will trigger replacement.
bool
Whether Credit Card is copied
TeamMembers This property is required. map[string]string
Members of the team. (Owner must be specified, which is the owner of the api key.)
TeamName
This property is required.
Changes to this property will trigger replacement.
string
Name of the team
copyCc
This property is required.
Changes to this property will trigger replacement.
Boolean
Whether Credit Card is copied
teamMembers This property is required. Map<String,String>
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName
This property is required.
Changes to this property will trigger replacement.
String
Name of the team
copyCc
This property is required.
Changes to this property will trigger replacement.
boolean
Whether Credit Card is copied
teamMembers This property is required. {[key: string]: string}
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName
This property is required.
Changes to this property will trigger replacement.
string
Name of the team
copy_cc
This property is required.
Changes to this property will trigger replacement.
bool
Whether Credit Card is copied
team_members This property is required. Mapping[str, str]
Members of the team. (Owner must be specified, which is the owner of the api key.)
team_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the team
copyCc
This property is required.
Changes to this property will trigger replacement.
Boolean
Whether Credit Card is copied
teamMembers This property is required. Map<String>
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName
This property is required.
Changes to this property will trigger replacement.
String
Name of the team

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
TeamId string
Unique Cluster ID for created cluster
Id string
The provider-assigned unique ID for this managed resource.
TeamId string
Unique Cluster ID for created cluster
id String
The provider-assigned unique ID for this managed resource.
teamId String
Unique Cluster ID for created cluster
id string
The provider-assigned unique ID for this managed resource.
teamId string
Unique Cluster ID for created cluster
id str
The provider-assigned unique ID for this managed resource.
team_id str
Unique Cluster ID for created cluster
id String
The provider-assigned unique ID for this managed resource.
teamId String
Unique Cluster ID for created cluster

Look up Existing Team Resource

Get an existing Team 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?: TeamState, opts?: CustomResourceOptions): Team
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        copy_cc: Optional[bool] = None,
        team_id: Optional[str] = None,
        team_members: Optional[Mapping[str, str]] = None,
        team_name: Optional[str] = None) -> Team
func GetTeam(ctx *Context, name string, id IDInput, state *TeamState, opts ...ResourceOption) (*Team, error)
public static Team Get(string name, Input<string> id, TeamState? state, CustomResourceOptions? opts = null)
public static Team get(String name, Output<String> id, TeamState state, CustomResourceOptions options)
resources:  _:    type: upstash:Team    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:
CopyCc Changes to this property will trigger replacement. bool
Whether Credit Card is copied
TeamId string
Unique Cluster ID for created cluster
TeamMembers Dictionary<string, string>
Members of the team. (Owner must be specified, which is the owner of the api key.)
TeamName Changes to this property will trigger replacement. string
Name of the team
CopyCc Changes to this property will trigger replacement. bool
Whether Credit Card is copied
TeamId string
Unique Cluster ID for created cluster
TeamMembers map[string]string
Members of the team. (Owner must be specified, which is the owner of the api key.)
TeamName Changes to this property will trigger replacement. string
Name of the team
copyCc Changes to this property will trigger replacement. Boolean
Whether Credit Card is copied
teamId String
Unique Cluster ID for created cluster
teamMembers Map<String,String>
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName Changes to this property will trigger replacement. String
Name of the team
copyCc Changes to this property will trigger replacement. boolean
Whether Credit Card is copied
teamId string
Unique Cluster ID for created cluster
teamMembers {[key: string]: string}
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName Changes to this property will trigger replacement. string
Name of the team
copy_cc Changes to this property will trigger replacement. bool
Whether Credit Card is copied
team_id str
Unique Cluster ID for created cluster
team_members Mapping[str, str]
Members of the team. (Owner must be specified, which is the owner of the api key.)
team_name Changes to this property will trigger replacement. str
Name of the team
copyCc Changes to this property will trigger replacement. Boolean
Whether Credit Card is copied
teamId String
Unique Cluster ID for created cluster
teamMembers Map<String>
Members of the team. (Owner must be specified, which is the owner of the api key.)
teamName Changes to this property will trigger replacement. String
Name of the team

Package Details

Repository
upstash upstash/pulumi-upstash
License
Apache-2.0
Notes
This Pulumi package is based on the upstash Terraform Provider.