sentry.SentryTeam
Explore with Pulumi AI
Sentry Team resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumiverse/sentry";
// Create a team
const _default = new sentry.SentryTeam("default", {
organization: "my-organization",
name: "my-team",
slug: "my-team",
});
import pulumi
import pulumiverse_sentry as sentry
# Create a team
default = sentry.SentryTeam("default",
organization="my-organization",
name="my-team",
slug="my-team")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-sentry/sdk/go/sentry"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a team
_, err := sentry.NewSentryTeam(ctx, "default", &sentry.SentryTeamArgs{
Organization: pulumi.String("my-organization"),
Name: pulumi.String("my-team"),
Slug: pulumi.String("my-team"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sentry = Pulumiverse.Sentry;
return await Deployment.RunAsync(() =>
{
// Create a team
var @default = new Sentry.SentryTeam("default", new()
{
Organization = "my-organization",
Name = "my-team",
Slug = "my-team",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryTeam;
import com.pulumi.sentry.SentryTeamArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create a team
var default_ = new SentryTeam("default", SentryTeamArgs.builder()
.organization("my-organization")
.name("my-team")
.slug("my-team")
.build());
}
}
resources:
# Create a team
default:
type: sentry:SentryTeam
properties:
organization: my-organization
name: my-team
slug: my-team
Create SentryTeam Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SentryTeam(name: string, args: SentryTeamArgs, opts?: CustomResourceOptions);
@overload
def SentryTeam(resource_name: str,
args: SentryTeamArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SentryTeam(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
name: Optional[str] = None,
slug: Optional[str] = None)
func NewSentryTeam(ctx *Context, name string, args SentryTeamArgs, opts ...ResourceOption) (*SentryTeam, error)
public SentryTeam(string name, SentryTeamArgs args, CustomResourceOptions? opts = null)
public SentryTeam(String name, SentryTeamArgs args)
public SentryTeam(String name, SentryTeamArgs args, CustomResourceOptions options)
type: sentry:SentryTeam
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. SentryTeamArgs - 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. SentryTeamArgs - 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. SentryTeamArgs - 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. SentryTeamArgs - 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. SentryTeamArgs - 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 sentryTeamResource = new Sentry.SentryTeam("sentryTeamResource", new()
{
Organization = "string",
Name = "string",
Slug = "string",
});
example, err := sentry.NewSentryTeam(ctx, "sentryTeamResource", &sentry.SentryTeamArgs{
Organization: pulumi.String("string"),
Name: pulumi.String("string"),
Slug: pulumi.String("string"),
})
var sentryTeamResource = new SentryTeam("sentryTeamResource", SentryTeamArgs.builder()
.organization("string")
.name("string")
.slug("string")
.build());
sentry_team_resource = sentry.SentryTeam("sentryTeamResource",
organization="string",
name="string",
slug="string")
const sentryTeamResource = new sentry.SentryTeam("sentryTeamResource", {
organization: "string",
name: "string",
slug: "string",
});
type: sentry:SentryTeam
properties:
name: string
organization: string
slug: string
SentryTeam 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 SentryTeam resource accepts the following input properties:
- Organization
This property is required. string - The slug of the organization the team should be created for.
- Name string
- The name of the team.
- Slug string
- The optional slug for this team.
- Organization
This property is required. string - The slug of the organization the team should be created for.
- Name string
- The name of the team.
- Slug string
- The optional slug for this team.
- organization
This property is required. String - The slug of the organization the team should be created for.
- name String
- The name of the team.
- slug String
- The optional slug for this team.
- organization
This property is required. string - The slug of the organization the team should be created for.
- name string
- The name of the team.
- slug string
- The optional slug for this team.
- organization
This property is required. str - The slug of the organization the team should be created for.
- name str
- The name of the team.
- slug str
- The optional slug for this team.
- organization
This property is required. String - The slug of the organization the team should be created for.
- name String
- The name of the team.
- slug String
- The optional slug for this team.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryTeam resource produces the following output properties:
- has_
access bool - id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str - The internal ID for this team.
- is_
member bool - is_
pending bool - team_
id str - Use
internal_id
instead.
Look up Existing SentryTeam Resource
Get an existing SentryTeam 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?: SentryTeamState, opts?: CustomResourceOptions): SentryTeam
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
has_access: Optional[bool] = None,
internal_id: Optional[str] = None,
is_member: Optional[bool] = None,
is_pending: Optional[bool] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
slug: Optional[str] = None,
team_id: Optional[str] = None) -> SentryTeam
func GetSentryTeam(ctx *Context, name string, id IDInput, state *SentryTeamState, opts ...ResourceOption) (*SentryTeam, error)
public static SentryTeam Get(string name, Input<string> id, SentryTeamState? state, CustomResourceOptions? opts = null)
public static SentryTeam get(String name, Output<String> id, SentryTeamState state, CustomResourceOptions options)
resources: _: type: sentry:SentryTeam 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.
- Has
Access bool - Internal
Id string - The internal ID for this team.
- Is
Member bool - Is
Pending bool - Name string
- The name of the team.
- Organization string
- The slug of the organization the team should be created for.
- Slug string
- The optional slug for this team.
- Team
Id string - Use
internal_id
instead.
- Has
Access bool - Internal
Id string - The internal ID for this team.
- Is
Member bool - Is
Pending bool - Name string
- The name of the team.
- Organization string
- The slug of the organization the team should be created for.
- Slug string
- The optional slug for this team.
- Team
Id string - Use
internal_id
instead.
- has
Access Boolean - internal
Id String - The internal ID for this team.
- is
Member Boolean - is
Pending Boolean - name String
- The name of the team.
- organization String
- The slug of the organization the team should be created for.
- slug String
- The optional slug for this team.
- team
Id String - Use
internal_id
instead.
- has
Access boolean - internal
Id string - The internal ID for this team.
- is
Member boolean - is
Pending boolean - name string
- The name of the team.
- organization string
- The slug of the organization the team should be created for.
- slug string
- The optional slug for this team.
- team
Id string - Use
internal_id
instead.
- has_
access bool - internal_
id str - The internal ID for this team.
- is_
member bool - is_
pending bool - name str
- The name of the team.
- organization str
- The slug of the organization the team should be created for.
- slug str
- The optional slug for this team.
- team_
id str - Use
internal_id
instead.
- has
Access Boolean - internal
Id String - The internal ID for this team.
- is
Member Boolean - is
Pending Boolean - name String
- The name of the team.
- organization String
- The slug of the organization the team should be created for.
- slug String
- The optional slug for this team.
- team
Id String - Use
internal_id
instead.
Import
import using the organization and team slugs from the URL:
https://sentry.io/settings/[org-slug]/teams/[team-slug]/members/
$ pulumi import sentry:index/sentryTeam:SentryTeam default org-slug/team-slug
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sentry pulumiverse/pulumi-sentry
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sentry
Terraform Provider.