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

sentry.SentryProject

Explore with Pulumi AI

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

    Sentry Project resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sentry from "@pulumiverse/sentry";
    
    // Create a project
    const _default = new sentry.SentryProject("default", {
        organization: "my-organization",
        teams: [
            "my-first-team",
            "my-second-team",
        ],
        name: "Web App",
        slug: "web-app",
        platform: "javascript",
        resolveAge: 720,
    });
    
    import pulumi
    import pulumiverse_sentry as sentry
    
    # Create a project
    default = sentry.SentryProject("default",
        organization="my-organization",
        teams=[
            "my-first-team",
            "my-second-team",
        ],
        name="Web App",
        slug="web-app",
        platform="javascript",
        resolve_age=720)
    
    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 project
    		_, err := sentry.NewSentryProject(ctx, "default", &sentry.SentryProjectArgs{
    			Organization: pulumi.String("my-organization"),
    			Teams: pulumi.StringArray{
    				pulumi.String("my-first-team"),
    				pulumi.String("my-second-team"),
    			},
    			Name:       pulumi.String("Web App"),
    			Slug:       pulumi.String("web-app"),
    			Platform:   pulumi.String("javascript"),
    			ResolveAge: pulumi.Int(720),
    		})
    		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 project
        var @default = new Sentry.SentryProject("default", new()
        {
            Organization = "my-organization",
            Teams = new[]
            {
                "my-first-team",
                "my-second-team",
            },
            Name = "Web App",
            Slug = "web-app",
            Platform = "javascript",
            ResolveAge = 720,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sentry.SentryProject;
    import com.pulumi.sentry.SentryProjectArgs;
    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 project
            var default_ = new SentryProject("default", SentryProjectArgs.builder()
                .organization("my-organization")
                .teams(            
                    "my-first-team",
                    "my-second-team")
                .name("Web App")
                .slug("web-app")
                .platform("javascript")
                .resolveAge(720)
                .build());
    
        }
    }
    
    resources:
      # Create a project
      default:
        type: sentry:SentryProject
        properties:
          organization: my-organization
          teams:
            - my-first-team
            - my-second-team
          name: Web App
          slug: web-app
          platform: javascript
          resolveAge: 720
    

    Create SentryProject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SentryProject(name: string, args: SentryProjectArgs, opts?: CustomResourceOptions);
    @overload
    def SentryProject(resource_name: str,
                      args: SentryProjectArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SentryProject(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      organization: Optional[str] = None,
                      digests_max_delay: Optional[int] = None,
                      digests_min_delay: Optional[int] = None,
                      name: Optional[str] = None,
                      platform: Optional[str] = None,
                      resolve_age: Optional[int] = None,
                      slug: Optional[str] = None,
                      team: Optional[str] = None,
                      teams: Optional[Sequence[str]] = None)
    func NewSentryProject(ctx *Context, name string, args SentryProjectArgs, opts ...ResourceOption) (*SentryProject, error)
    public SentryProject(string name, SentryProjectArgs args, CustomResourceOptions? opts = null)
    public SentryProject(String name, SentryProjectArgs args)
    public SentryProject(String name, SentryProjectArgs args, CustomResourceOptions options)
    
    type: sentry:SentryProject
    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 SentryProjectArgs
    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 SentryProjectArgs
    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 SentryProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SentryProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SentryProjectArgs
    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 sentryProjectResource = new Sentry.SentryProject("sentryProjectResource", new()
    {
        Organization = "string",
        DigestsMaxDelay = 0,
        DigestsMinDelay = 0,
        Name = "string",
        Platform = "string",
        ResolveAge = 0,
        Slug = "string",
        Teams = new[]
        {
            "string",
        },
    });
    
    example, err := sentry.NewSentryProject(ctx, "sentryProjectResource", &sentry.SentryProjectArgs{
    	Organization:    pulumi.String("string"),
    	DigestsMaxDelay: pulumi.Int(0),
    	DigestsMinDelay: pulumi.Int(0),
    	Name:            pulumi.String("string"),
    	Platform:        pulumi.String("string"),
    	ResolveAge:      pulumi.Int(0),
    	Slug:            pulumi.String("string"),
    	Teams: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var sentryProjectResource = new SentryProject("sentryProjectResource", SentryProjectArgs.builder()
        .organization("string")
        .digestsMaxDelay(0)
        .digestsMinDelay(0)
        .name("string")
        .platform("string")
        .resolveAge(0)
        .slug("string")
        .teams("string")
        .build());
    
    sentry_project_resource = sentry.SentryProject("sentryProjectResource",
        organization="string",
        digests_max_delay=0,
        digests_min_delay=0,
        name="string",
        platform="string",
        resolve_age=0,
        slug="string",
        teams=["string"])
    
    const sentryProjectResource = new sentry.SentryProject("sentryProjectResource", {
        organization: "string",
        digestsMaxDelay: 0,
        digestsMinDelay: 0,
        name: "string",
        platform: "string",
        resolveAge: 0,
        slug: "string",
        teams: ["string"],
    });
    
    type: sentry:SentryProject
    properties:
        digestsMaxDelay: 0
        digestsMinDelay: 0
        name: string
        organization: string
        platform: string
        resolveAge: 0
        slug: string
        teams:
            - string
    

    SentryProject 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 SentryProject resource accepts the following input properties:

    Organization string
    The slug of the organization the project belongs to.
    DigestsMaxDelay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    DigestsMinDelay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    Name string
    The name for the project.
    Platform string
    The optional platform for this project.
    ResolveAge int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    Slug string
    The optional slug for this project.
    Team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    Teams List<string>
    The slugs of the teams to create the project for.
    Organization string
    The slug of the organization the project belongs to.
    DigestsMaxDelay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    DigestsMinDelay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    Name string
    The name for the project.
    Platform string
    The optional platform for this project.
    ResolveAge int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    Slug string
    The optional slug for this project.
    Team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    Teams []string
    The slugs of the teams to create the project for.
    organization String
    The slug of the organization the project belongs to.
    digestsMaxDelay Integer
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay Integer
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    name String
    The name for the project.
    platform String
    The optional platform for this project.
    resolveAge Integer
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug String
    The optional slug for this project.
    team String
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams List<String>
    The slugs of the teams to create the project for.
    organization string
    The slug of the organization the project belongs to.
    digestsMaxDelay number
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay number
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    name string
    The name for the project.
    platform string
    The optional platform for this project.
    resolveAge number
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug string
    The optional slug for this project.
    team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams string[]
    The slugs of the teams to create the project for.
    organization str
    The slug of the organization the project belongs to.
    digests_max_delay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digests_min_delay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    name str
    The name for the project.
    platform str
    The optional platform for this project.
    resolve_age int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug str
    The optional slug for this project.
    team str
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams Sequence[str]
    The slugs of the teams to create the project for.
    organization String
    The slug of the organization the project belongs to.
    digestsMaxDelay Number
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay Number
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    name String
    The name for the project.
    platform String
    The optional platform for this project.
    resolveAge Number
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug String
    The optional slug for this project.
    team String
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams List<String>
    The slugs of the teams to create the project for.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SentryProject resource produces the following output properties:

    Color string
    Features List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    The internal ID for this project.
    IsBookmarked bool

    Deprecated: is_bookmarked is no longer used

    IsPublic bool
    ProjectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    Status string
    Color string
    Features []string
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalId string
    The internal ID for this project.
    IsBookmarked bool

    Deprecated: is_bookmarked is no longer used

    IsPublic bool
    ProjectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    Status string
    color String
    features List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    The internal ID for this project.
    isBookmarked Boolean

    Deprecated: is_bookmarked is no longer used

    isPublic Boolean
    projectId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    status String
    color string
    features string[]
    id string
    The provider-assigned unique ID for this managed resource.
    internalId string
    The internal ID for this project.
    isBookmarked boolean

    Deprecated: is_bookmarked is no longer used

    isPublic boolean
    projectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    status string
    color str
    features Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    internal_id str
    The internal ID for this project.
    is_bookmarked bool

    Deprecated: is_bookmarked is no longer used

    is_public bool
    project_id str
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    status str
    color String
    features List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    internalId String
    The internal ID for this project.
    isBookmarked Boolean

    Deprecated: is_bookmarked is no longer used

    isPublic Boolean
    projectId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    status String

    Look up Existing SentryProject Resource

    Get an existing SentryProject 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?: SentryProjectState, opts?: CustomResourceOptions): SentryProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            color: Optional[str] = None,
            digests_max_delay: Optional[int] = None,
            digests_min_delay: Optional[int] = None,
            features: Optional[Sequence[str]] = None,
            internal_id: Optional[str] = None,
            is_bookmarked: Optional[bool] = None,
            is_public: Optional[bool] = None,
            name: Optional[str] = None,
            organization: Optional[str] = None,
            platform: Optional[str] = None,
            project_id: Optional[str] = None,
            resolve_age: Optional[int] = None,
            slug: Optional[str] = None,
            status: Optional[str] = None,
            team: Optional[str] = None,
            teams: Optional[Sequence[str]] = None) -> SentryProject
    func GetSentryProject(ctx *Context, name string, id IDInput, state *SentryProjectState, opts ...ResourceOption) (*SentryProject, error)
    public static SentryProject Get(string name, Input<string> id, SentryProjectState? state, CustomResourceOptions? opts = null)
    public static SentryProject get(String name, Output<String> id, SentryProjectState 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:
    Color string
    DigestsMaxDelay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    DigestsMinDelay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    Features List<string>
    InternalId string
    The internal ID for this project.
    IsBookmarked bool

    Deprecated: is_bookmarked is no longer used

    IsPublic bool
    Name string
    The name for the project.
    Organization string
    The slug of the organization the project belongs to.
    Platform string
    The optional platform for this project.
    ProjectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    ResolveAge int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    Slug string
    The optional slug for this project.
    Status string
    Team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    Teams List<string>
    The slugs of the teams to create the project for.
    Color string
    DigestsMaxDelay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    DigestsMinDelay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    Features []string
    InternalId string
    The internal ID for this project.
    IsBookmarked bool

    Deprecated: is_bookmarked is no longer used

    IsPublic bool
    Name string
    The name for the project.
    Organization string
    The slug of the organization the project belongs to.
    Platform string
    The optional platform for this project.
    ProjectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    ResolveAge int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    Slug string
    The optional slug for this project.
    Status string
    Team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    Teams []string
    The slugs of the teams to create the project for.
    color String
    digestsMaxDelay Integer
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay Integer
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    features List<String>
    internalId String
    The internal ID for this project.
    isBookmarked Boolean

    Deprecated: is_bookmarked is no longer used

    isPublic Boolean
    name String
    The name for the project.
    organization String
    The slug of the organization the project belongs to.
    platform String
    The optional platform for this project.
    projectId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    resolveAge Integer
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug String
    The optional slug for this project.
    status String
    team String
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams List<String>
    The slugs of the teams to create the project for.
    color string
    digestsMaxDelay number
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay number
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    features string[]
    internalId string
    The internal ID for this project.
    isBookmarked boolean

    Deprecated: is_bookmarked is no longer used

    isPublic boolean
    name string
    The name for the project.
    organization string
    The slug of the organization the project belongs to.
    platform string
    The optional platform for this project.
    projectId string
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    resolveAge number
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug string
    The optional slug for this project.
    status string
    team string
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams string[]
    The slugs of the teams to create the project for.
    color str
    digests_max_delay int
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digests_min_delay int
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    features Sequence[str]
    internal_id str
    The internal ID for this project.
    is_bookmarked bool

    Deprecated: is_bookmarked is no longer used

    is_public bool
    name str
    The name for the project.
    organization str
    The slug of the organization the project belongs to.
    platform str
    The optional platform for this project.
    project_id str
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    resolve_age int
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug str
    The optional slug for this project.
    status str
    team str
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams Sequence[str]
    The slugs of the teams to create the project for.
    color String
    digestsMaxDelay Number
    The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
    digestsMinDelay Number
    The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
    features List<String>
    internalId String
    The internal ID for this project.
    isBookmarked Boolean

    Deprecated: is_bookmarked is no longer used

    isPublic Boolean
    name String
    The name for the project.
    organization String
    The slug of the organization the project belongs to.
    platform String
    The optional platform for this project.
    projectId String
    Use internal_id instead.

    Deprecated: Use internal_id instead.

    resolveAge Number
    Hours in which an issue is automatically resolve if not seen after this amount of time.
    slug String
    The optional slug for this project.
    status String
    team String
    The slug of the team to create the project for. Deprecated Use teams instead.

    Deprecated: Use teams instead.

    teams List<String>
    The slugs of the teams to create the project for.

    Import

    import using the organization and team slugs from the URL:

    https://sentry.io/settings/[org-slug]/projects/[project-slug]/

    $ pulumi import sentry:index/sentryProject:SentryProject default org-slug/project-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