Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash
upstash.getTeam
Explore with Pulumi AI
Example Usage
using Pulumi;
using Upstash = Pulumi.Upstash;
class MyStack : Stack
{
public MyStack()
{
var teamData = Output.Create(Upstash.GetTeam.InvokeAsync(new Upstash.GetTeamArgs
{
TeamId = resource.Upstash_team.ExampleTeam.Team_id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-upstash/sdk/go/upstash"
"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.LookupTeam(ctx, &GetTeamArgs{
TeamId: resource.Upstash_team.ExampleTeam.Team_id,
}, nil)
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) {
final var teamData = Output.of(UpstashFunctions.getTeam(GetTeamArgs.builder()
.teamId(resource.upstash_team().exampleTeam().team_id())
.build()));
}
}
import pulumi
import pulumi_upstash as upstash
team_data = upstash.get_team(team_id=resource["upstash_team"]["exampleTeam"]["team_id"])
import * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const teamData = upstash.getTeam({
teamId: resource.upstash_team.exampleTeam.team_id,
});
variables:
teamData:
Fn::Invoke:
Function: upstash:getTeam
Arguments:
teamId: ${resource.upstash_team.exampleTeam.team_id}
Using getTeam
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>
def get_team(team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]
func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput
> Note: This function is named LookupTeam
in the Go SDK.
public static class GetTeam
{
public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: upstash:index/getTeam:getTeam
arguments:
# arguments dictionary
The following arguments are supported:
- Team
Id string
- Team
Id string
- team
Id String
- team
Id string
- team_
id str
- team
Id String
getTeam Result
The following output properties are available:
- Copy
Cc bool - Id string
- The provider-assigned unique ID for this managed resource.
- Team
Id string - Team
Members Dictionary<string, string> - Team
Name string
- Copy
Cc bool - Id string
- The provider-assigned unique ID for this managed resource.
- Team
Id string - Team
Members map[string]string - Team
Name string
- copy
Cc Boolean - id String
- The provider-assigned unique ID for this managed resource.
- team
Id String - team
Members Map<String,String> - team
Name String
- copy
Cc boolean - id string
- The provider-assigned unique ID for this managed resource.
- team
Id string - team
Members {[key: string]: string} - team
Name string
- copy_
cc bool - id str
- The provider-assigned unique ID for this managed resource.
- team_
id str - team_
members Mapping[str, str] - team_
name str
- copy
Cc Boolean - id String
- The provider-assigned unique ID for this managed resource.
- team
Id String - team
Members Map<String> - team
Name String
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.