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

upstash logo
Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash

    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)
    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 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:

    CopyCc bool
    Whether Credit Card is copied
    TeamMembers Dictionary<string, string>
    Members of the team. (Owner must be specified, which is the owner of the api key.)
    TeamName string
    Name of the team
    CopyCc bool
    Whether Credit Card is copied
    TeamMembers map[string]string
    Members of the team. (Owner must be specified, which is the owner of the api key.)
    TeamName string
    Name of the team
    copyCc Boolean
    Whether Credit Card is copied
    teamMembers Map<String,String>
    Members of the team. (Owner must be specified, which is the owner of the api key.)
    teamName String
    Name of the team
    copyCc boolean
    Whether Credit Card is copied
    teamMembers {[key: string]: string}
    Members of the team. (Owner must be specified, which is the owner of the api key.)
    teamName 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
    copyCc Boolean
    Whether Credit Card is copied
    teamMembers Map<String>
    Members of the team. (Owner must be specified, which is the owner of the api key.)
    teamName 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)
    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:
    CopyCc 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 string
    Name of the team
    CopyCc 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 string
    Name of the team
    copyCc 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 String
    Name of the team
    copyCc 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 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
    copyCc 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 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.
    upstash logo
    Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash