sentry.SentryProject
Explore with Pulumi AI
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.
- Digests
Max intDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- Digests
Min intDelay - 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.
- Resolve
Age 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. - Teams List<string>
- The slugs of the teams to create the project for.
- Organization string
- The slug of the organization the project belongs to.
- Digests
Max intDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- Digests
Min intDelay - 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.
- Resolve
Age 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. - Teams []string
- The slugs of the teams to create the project for.
- organization String
- The slug of the organization the project belongs to.
- digests
Max IntegerDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min IntegerDelay - 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.
- resolve
Age 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. - teams List<String>
- The slugs of the teams to create the project for.
- organization string
- The slug of the organization the project belongs to.
- digests
Max numberDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min numberDelay - 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.
- resolve
Age 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. - 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_ intdelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests_
min_ intdelay - 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. - teams Sequence[str]
- The slugs of the teams to create the project for.
- organization String
- The slug of the organization the project belongs to.
- digests
Max NumberDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min NumberDelay - 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.
- resolve
Age 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. - 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.
- Internal
Id string - The internal ID for this project.
- Is
Bookmarked bool - Is
Public bool - Project
Id string - Use
internal_id
instead. - Status string
- Color string
- Features []string
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - The internal ID for this project.
- Is
Bookmarked bool - Is
Public bool - Project
Id string - Use
internal_id
instead. - Status string
- color String
- features List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this project.
- is
Bookmarked Boolean - is
Public Boolean - project
Id String - Use
internal_id
instead. - status String
- color string
- features string[]
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string - The internal ID for this project.
- is
Bookmarked boolean - is
Public boolean - project
Id string - 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 - is_
public bool - project_
id str - Use
internal_id
instead. - status str
- color String
- features List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this project.
- is
Bookmarked Boolean - is
Public Boolean - project
Id String - 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.
- Color string
- Digests
Max intDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- Digests
Min intDelay - The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
- Features List<string>
- Internal
Id string - The internal ID for this project.
- Is
Bookmarked bool - Is
Public 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.
- Project
Id string - Use
internal_id
instead. - Resolve
Age 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. - Teams List<string>
- The slugs of the teams to create the project for.
- Color string
- Digests
Max intDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- Digests
Min intDelay - The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
- Features []string
- Internal
Id string - The internal ID for this project.
- Is
Bookmarked bool - Is
Public 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.
- Project
Id string - Use
internal_id
instead. - Resolve
Age 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. - Teams []string
- The slugs of the teams to create the project for.
- color String
- digests
Max IntegerDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min IntegerDelay - The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
- features List<String>
- internal
Id String - The internal ID for this project.
- is
Bookmarked Boolean - is
Public 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.
- project
Id String - Use
internal_id
instead. - resolve
Age 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. - teams List<String>
- The slugs of the teams to create the project for.
- color string
- digests
Max numberDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min numberDelay - The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
- features string[]
- internal
Id string - The internal ID for this project.
- is
Bookmarked boolean - is
Public 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.
- project
Id string - Use
internal_id
instead. - resolve
Age 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. - teams string[]
- The slugs of the teams to create the project for.
- color str
- digests_
max_ intdelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests_
min_ intdelay - 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 - 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. - 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. - teams Sequence[str]
- The slugs of the teams to create the project for.
- color String
- digests
Max NumberDelay - The maximum amount of time (in seconds) to wait between scheduling digests for delivery.
- digests
Min NumberDelay - The minimum amount of time (in seconds) to wait between scheduling digests for delivery after the initial scheduling.
- features List<String>
- internal
Id String - The internal ID for this project.
- is
Bookmarked Boolean - is
Public 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.
- project
Id String - Use
internal_id
instead. - resolve
Age 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. - 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.