Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse
sentry.SentryPlugin
Explore with Pulumi AI
# sentry.SentryPlugin Resource
Sentry Plugin resource.
Example Usage
using Pulumi;
using Sentry = Pulumiverse.Sentry;
class MyStack : Stack
{
public MyStack()
{
// Create a plugin
var @default = new Sentry.SentryPlugin("default", new Sentry.SentryPluginArgs
{
Config =
{
{ "webhook", "slack://webhook" },
},
Organization = "my-organization",
Plugin = "slack",
Project = "web-app",
});
}
}
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.NewSentryPlugin(ctx, "default", &sentry.SentryPluginArgs{
Config: pulumi.AnyMap{
"webhook": pulumi.Any("slack://webhook"),
},
Organization: pulumi.String("my-organization"),
Plugin: pulumi.String("slack"),
Project: pulumi.String("web-app"),
})
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 SentryPlugin("default", SentryPluginArgs.builder()
.config(Map.of("webhook", "slack://webhook"))
.organization("my-organization")
.plugin("slack")
.project("web-app")
.build());
}
}
import pulumi
import pulumiverse_sentry as sentry
# Create a plugin
default = sentry.SentryPlugin("default",
config={
"webhook": "slack://webhook",
},
organization="my-organization",
plugin="slack",
project="web-app")
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumi/sentry";
// Create a plugin
const defaultSentryPlugin = new sentry.SentryPlugin("default", {
config: {
webhook: "slack://webhook",
},
organization: "my-organization",
plugin: "slack",
project: "web-app",
});
resources:
default:
type: sentry:SentryPlugin
properties:
config:
webhook: slack://webhook
organization: my-organization
plugin: slack
project: web-app
Create SentryPlugin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SentryPlugin(name: string, args: SentryPluginArgs, opts?: CustomResourceOptions);
@overload
def SentryPlugin(resource_name: str,
args: SentryPluginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SentryPlugin(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
plugin: Optional[str] = None,
project: Optional[str] = None,
config: Optional[Mapping[str, Any]] = None)
func NewSentryPlugin(ctx *Context, name string, args SentryPluginArgs, opts ...ResourceOption) (*SentryPlugin, error)
public SentryPlugin(string name, SentryPluginArgs args, CustomResourceOptions? opts = null)
public SentryPlugin(String name, SentryPluginArgs args)
public SentryPlugin(String name, SentryPluginArgs args, CustomResourceOptions options)
type: sentry:SentryPlugin
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 SentryPluginArgs
- 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 SentryPluginArgs
- 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 SentryPluginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SentryPluginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SentryPluginArgs
- 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 sentryPluginResource = new Sentry.SentryPlugin("sentryPluginResource", new()
{
Organization = "string",
Plugin = "string",
Project = "string",
Config =
{
{ "string", "any" },
},
});
example, err := sentry.NewSentryPlugin(ctx, "sentryPluginResource", &sentry.SentryPluginArgs{
Organization: pulumi.String("string"),
Plugin: pulumi.String("string"),
Project: pulumi.String("string"),
Config: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var sentryPluginResource = new SentryPlugin("sentryPluginResource", SentryPluginArgs.builder()
.organization("string")
.plugin("string")
.project("string")
.config(Map.of("string", "any"))
.build());
sentry_plugin_resource = sentry.SentryPlugin("sentryPluginResource",
organization="string",
plugin="string",
project="string",
config={
"string": "any",
})
const sentryPluginResource = new sentry.SentryPlugin("sentryPluginResource", {
organization: "string",
plugin: "string",
project: "string",
config: {
string: "any",
},
});
type: sentry:SentryPlugin
properties:
config:
string: any
organization: string
plugin: string
project: string
SentryPlugin 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 SentryPlugin resource accepts the following input properties:
- Organization string
- The slug of the organization the plugin should be enabled for.
- Plugin string
- Identifier of the plugin.
- Project string
- The slug of the project the plugin should be enabled for.
- Config Dictionary<string, object>
- Configuration of the plugin.
- Organization string
- The slug of the organization the plugin should be enabled for.
- Plugin string
- Identifier of the plugin.
- Project string
- The slug of the project the plugin should be enabled for.
- Config map[string]interface{}
- Configuration of the plugin.
- organization String
- The slug of the organization the plugin should be enabled for.
- plugin String
- Identifier of the plugin.
- project String
- The slug of the project the plugin should be enabled for.
- config Map<String,Object>
- Configuration of the plugin.
- organization string
- The slug of the organization the plugin should be enabled for.
- plugin string
- Identifier of the plugin.
- project string
- The slug of the project the plugin should be enabled for.
- config {[key: string]: any}
- Configuration of the plugin.
- organization str
- The slug of the organization the plugin should be enabled for.
- plugin str
- Identifier of the plugin.
- project str
- The slug of the project the plugin should be enabled for.
- config Mapping[str, Any]
- Configuration of the plugin.
- organization String
- The slug of the organization the plugin should be enabled for.
- plugin String
- Identifier of the plugin.
- project String
- The slug of the project the plugin should be enabled for.
- config Map<Any>
- Configuration of the plugin.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryPlugin resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SentryPlugin Resource
Get an existing SentryPlugin 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?: SentryPluginState, opts?: CustomResourceOptions): SentryPlugin
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[Mapping[str, Any]] = None,
organization: Optional[str] = None,
plugin: Optional[str] = None,
project: Optional[str] = None) -> SentryPlugin
func GetSentryPlugin(ctx *Context, name string, id IDInput, state *SentryPluginState, opts ...ResourceOption) (*SentryPlugin, error)
public static SentryPlugin Get(string name, Input<string> id, SentryPluginState? state, CustomResourceOptions? opts = null)
public static SentryPlugin get(String name, Output<String> id, SentryPluginState 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.
- Config Dictionary<string, object>
- Configuration of the plugin.
- Organization string
- The slug of the organization the plugin should be enabled for.
- Plugin string
- Identifier of the plugin.
- Project string
- The slug of the project the plugin should be enabled for.
- Config map[string]interface{}
- Configuration of the plugin.
- Organization string
- The slug of the organization the plugin should be enabled for.
- Plugin string
- Identifier of the plugin.
- Project string
- The slug of the project the plugin should be enabled for.
- config Map<String,Object>
- Configuration of the plugin.
- organization String
- The slug of the organization the plugin should be enabled for.
- plugin String
- Identifier of the plugin.
- project String
- The slug of the project the plugin should be enabled for.
- config {[key: string]: any}
- Configuration of the plugin.
- organization string
- The slug of the organization the plugin should be enabled for.
- plugin string
- Identifier of the plugin.
- project string
- The slug of the project the plugin should be enabled for.
- config Mapping[str, Any]
- Configuration of the plugin.
- organization str
- The slug of the organization the plugin should be enabled for.
- plugin str
- Identifier of the plugin.
- project str
- The slug of the project the plugin should be enabled for.
- config Map<Any>
- Configuration of the plugin.
- organization String
- The slug of the organization the plugin should be enabled for.
- plugin String
- Identifier of the plugin.
- project String
- The slug of the project the plugin should be enabled for.
Package Details
- Repository
- sentry pulumiverse/pulumi-sentry
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sentry
Terraform Provider.