sentry.SentryProject
Explore with Pulumi AI
# sentry.SentryProject Resource
Sentry Project resource.
Example Usage
using Pulumi;
using Sentry = Pulumiverse.Sentry;
class MyStack : Stack
{
public MyStack()
{
// Create a project
var @default = new Sentry.SentryProject("default", new Sentry.SentryProjectArgs
{
Organization = "my-organization",
Platform = "javascript",
ResolveAge = 720,
Slug = "web-app",
Team = "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 {
_, err := sentry.NewSentryProject(ctx, "default", &sentry.SentryProjectArgs{
Organization: pulumi.String("my-organization"),
Platform: pulumi.String("javascript"),
ResolveAge: pulumi.Int(720),
Slug: pulumi.String("web-app"),
Team: pulumi.String("my-team"),
})
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) {
var default_ = new SentryProject("default", SentryProjectArgs.builder()
.organization("my-organization")
.platform("javascript")
.resolveAge(720)
.slug("web-app")
.team("my-team")
.build());
}
}
import pulumi
import pulumiverse_sentry as sentry
# Create a project
default = sentry.SentryProject("default",
organization="my-organization",
platform="javascript",
resolve_age=720,
slug="web-app",
team="my-team")
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumi/sentry";
// Create a project
const defaultSentryProject = new sentry.SentryProject("default", {
organization: "my-organization",
platform: "javascript",
resolveAge: 720,
slug: "web-app",
team: "my-team",
});
resources:
default:
type: sentry:SentryProject
properties:
organization: my-organization
platform: javascript
resolveAge: 720
slug: web-app
team: my-team
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,
team: 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)
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",
Team = "string",
DigestsMaxDelay = 0,
DigestsMinDelay = 0,
Name = "string",
Platform = "string",
ResolveAge = 0,
Slug = "string",
});
example, err := sentry.NewSentryProject(ctx, "sentryProjectResource", &sentry.SentryProjectArgs{
Organization: pulumi.String("string"),
Team: 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"),
})
var sentryProjectResource = new SentryProject("sentryProjectResource", SentryProjectArgs.builder()
.organization("string")
.team("string")
.digestsMaxDelay(0)
.digestsMinDelay(0)
.name("string")
.platform("string")
.resolveAge(0)
.slug("string")
.build());
sentry_project_resource = sentry.SentryProject("sentryProjectResource",
organization="string",
team="string",
digests_max_delay=0,
digests_min_delay=0,
name="string",
platform="string",
resolve_age=0,
slug="string")
const sentryProjectResource = new sentry.SentryProject("sentryProjectResource", {
organization: "string",
team: "string",
digestsMaxDelay: 0,
digestsMinDelay: 0,
name: "string",
platform: "string",
resolveAge: 0,
slug: "string",
});
type: sentry:SentryProject
properties:
digestsMaxDelay: 0
digestsMinDelay: 0
name: string
organization: string
platform: string
resolveAge: 0
slug: string
team: 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
The SentryProject resource accepts the following input properties:
- Organization string
- The slug of the organization the project should be created for.
- Team string
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- Platform string
- The integration platform.
- Resolve
Age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- Slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- Organization string
- The slug of the organization the project should be created for.
- Team string
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- Platform string
- The integration platform.
- Resolve
Age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- Slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- organization String
- The slug of the organization the project should be created for.
- team String
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- platform String
- The integration platform.
- resolve
Age Integer - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug String
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- organization string
- The slug of the organization the project should be created for.
- team string
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- platform string
- The integration platform.
- resolve
Age number - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- organization str
- The slug of the organization the project should be created for.
- team str
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- platform str
- The integration platform.
- resolve_
age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug str
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- organization String
- The slug of the organization the project should be created for.
- team String
- The slug of the team the project should be created for.
- 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 human readable name for the project.
- platform String
- The integration platform.
- resolve
Age Number - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug String
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryProject resource produces the following output properties:
- color str
- features Sequence[str]
- id str
- The provider-assigned unique ID for this managed resource.
- is_
bookmarked bool - is_
public bool - project_
id str - status str
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,
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) -> 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>
- Is
Bookmarked bool - Is
Public bool - Name string
- The human readable name for the project.
- Organization string
- The slug of the organization the project should be created for.
- Platform string
- The integration platform.
- Project
Id string - Resolve
Age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- Slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- Status string
- Team string
- The slug of the team the project should be created 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
- Is
Bookmarked bool - Is
Public bool - Name string
- The human readable name for the project.
- Organization string
- The slug of the organization the project should be created for.
- Platform string
- The integration platform.
- Project
Id string - Resolve
Age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- Slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- Status string
- Team string
- The slug of the team the project should be created 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>
- is
Bookmarked Boolean - is
Public Boolean - name String
- The human readable name for the project.
- organization String
- The slug of the organization the project should be created for.
- platform String
- The integration platform.
- project
Id String - resolve
Age Integer - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug String
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- status String
- team String
- The slug of the team the project should be created 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[]
- is
Bookmarked boolean - is
Public boolean - name string
- The human readable name for the project.
- organization string
- The slug of the organization the project should be created for.
- platform string
- The integration platform.
- project
Id string - resolve
Age number - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug string
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- status string
- team string
- The slug of the team the project should be created 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]
- is_
bookmarked bool - is_
public bool - name str
- The human readable name for the project.
- organization str
- The slug of the organization the project should be created for.
- platform str
- The integration platform.
- project_
id str - resolve_
age int - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug str
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- status str
- team str
- The slug of the team the project should be created 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>
- is
Bookmarked Boolean - is
Public Boolean - name String
- The human readable name for the project.
- organization String
- The slug of the organization the project should be created for.
- platform String
- The integration platform.
- project
Id String - resolve
Age Number - Hours in which an issue is automatically resolve if not seen after this amount of time.
- slug String
- The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
- status String
- team String
- The slug of the team the project should be created for.
Import
This resource can be imported using an ID made up of the organization slug and project slugbash
$ 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.