1. Packages
  2. Sentry
  3. API Docs
  4. SentryTeam
Sentry v0.0.9 published on Friday, Nov 15, 2024 by Pulumiverse

sentry.SentryTeam

Explore with Pulumi AI

sentry logo
Sentry v0.0.9 published on Friday, Nov 15, 2024 by Pulumiverse

    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 string
    The unique name of the resource.
    args SentryTeamArgs
    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 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 string
    The unique name of the resource.
    args SentryTeamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SentryTeamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 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 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 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 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 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 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:

    HasAccess bool
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    The internal ID for this team.
    IsMember bool
    IsPending bool
    TeamId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    HasAccess bool
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    The internal ID for this team.
    IsMember bool
    IsPending bool
    TeamId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    hasAccess Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    The internal ID for this team.
    isMember Boolean
    isPending Boolean
    teamId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    hasAccess boolean
    id string
    The provider-assigned unique ID for this managed resource.
    internalId string
    The internal ID for this team.
    isMember boolean
    isPending boolean
    teamId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    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.

    Deprecated: Use internal_id instead.

    hasAccess Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    The internal ID for this team.
    isMember Boolean
    isPending Boolean
    teamId String
    Use internal_id instead.

    Deprecated: 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)
    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:
    HasAccess bool
    InternalId string
    The internal ID for this team.
    IsMember bool
    IsPending 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.
    TeamId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    HasAccess bool
    InternalId string
    The internal ID for this team.
    IsMember bool
    IsPending 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.
    TeamId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    hasAccess Boolean
    internalId String
    The internal ID for this team.
    isMember Boolean
    isPending 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.
    teamId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    hasAccess boolean
    internalId string
    The internal ID for this team.
    isMember boolean
    isPending 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.
    teamId string
    Use internal_id instead.

    Deprecated: 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.

    Deprecated: Use internal_id instead.

    hasAccess Boolean
    internalId String
    The internal ID for this team.
    isMember Boolean
    isPending 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.
    teamId String
    Use internal_id instead.

    Deprecated: 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.
    sentry logo
    Sentry v0.0.9 published on Friday, Nov 15, 2024 by Pulumiverse