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" },
},
});
}
}
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
})
}
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());
}
}
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",
})
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",
},
});
resources:
exampleTeam:
type: upstash:Team
properties:
teamName: TerraformTeam
copyCc: false
teamMembers:
X@Y.Z: owner
A@B.C: dev
E@E.F: finance
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)
type: upstash:Team
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 TeamArgs
- 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 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 string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := upstash.NewTeam(ctx, "teamResource", &upstash.TeamArgs{
CopyCc: pulumi.Bool(false),
TeamMembers: pulumi.StringMap{
"string": pulumi.String("string"),
},
TeamName: pulumi.String("string"),
})
var teamResource = new Team("teamResource", TeamArgs.builder()
.copyCc(false)
.teamMembers(Map.of("string", "string"))
.teamName("string")
.build());
team_resource = upstash.Team("teamResource",
copy_cc=False,
team_members={
"string": "string",
},
team_name="string")
const teamResource = new upstash.Team("teamResource", {
copyCc: false,
teamMembers: {
string: "string",
},
teamName: "string",
});
type: upstash:Team
properties:
copyCc: false
teamMembers:
string: string
teamName: string
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:
- Copy
Cc bool - Whether Credit Card is copied
- Team
Members Dictionary<string, string> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- Team
Name string - Name of the team
- Copy
Cc bool - Whether Credit Card is copied
- Team
Members map[string]string - Members of the team. (Owner must be specified, which is the owner of the api key.)
- Team
Name string - Name of the team
- copy
Cc Boolean - Whether Credit Card is copied
- team
Members Map<String,String> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name String - Name of the team
- copy
Cc boolean - Whether Credit Card is copied
- team
Members {[key: string]: string} - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name string - Name of the team
- copy_
cc bool - Whether Credit Card is copied
- team_
members Mapping[str, str] - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team_
name str - Name of the team
- copy
Cc Boolean - Whether Credit Card is copied
- team
Members Map<String> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name String - Name of the team
Outputs
All input properties are implicitly available as output properties. Additionally, the Team resource produces the following output properties:
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)
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.
- Copy
Cc bool - Whether Credit Card is copied
- Team
Id string - Unique Cluster ID for created cluster
- Team
Members Dictionary<string, string> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- Team
Name string - Name of the team
- Copy
Cc bool - Whether Credit Card is copied
- Team
Id string - Unique Cluster ID for created cluster
- Team
Members map[string]string - Members of the team. (Owner must be specified, which is the owner of the api key.)
- Team
Name string - Name of the team
- copy
Cc Boolean - Whether Credit Card is copied
- team
Id String - Unique Cluster ID for created cluster
- team
Members Map<String,String> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name String - Name of the team
- copy
Cc boolean - Whether Credit Card is copied
- team
Id string - Unique Cluster ID for created cluster
- team
Members {[key: string]: string} - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name string - Name of the team
- copy_
cc 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 str - Name of the team
- copy
Cc Boolean - Whether Credit Card is copied
- team
Id String - Unique Cluster ID for created cluster
- team
Members Map<String> - Members of the team. (Owner must be specified, which is the owner of the api key.)
- team
Name 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.