Upstash

v0.0.21 published on Thursday, Aug 4, 2022 by Upstash

Team

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/upstash-pulumi-provider/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

new Team(name: string, args: TeamArgs, opts?: CustomResourceOptions);
@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)
@overload
def Team(resource_name: str,
         args: TeamArgs,
         opts: Optional[ResourceOptions] = 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.

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.

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

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
https://github.com/upstash/upstash-pulumi-provider
License
Apache-2.0
Notes

This Pulumi package is based on the upstash Terraform Provider.