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

sentry.SentryPlugin

Explore with Pulumi AI

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

    Sentry Plugin resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sentry from "@pulumiverse/sentry";
    
    // Create a plugin
    const _default = new sentry.SentryPlugin("default", {
        organization: "my-organization",
        project: "web-app",
        plugin: "slack",
        config: {
            webhook: "slack://webhook",
        },
    });
    
    import pulumi
    import pulumiverse_sentry as sentry
    
    # Create a plugin
    default = sentry.SentryPlugin("default",
        organization="my-organization",
        project="web-app",
        plugin="slack",
        config={
            "webhook": "slack://webhook",
        })
    
    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 plugin
    		_, err := sentry.NewSentryPlugin(ctx, "default", &sentry.SentryPluginArgs{
    			Organization: pulumi.String("my-organization"),
    			Project:      pulumi.String("web-app"),
    			Plugin:       pulumi.String("slack"),
    			Config: pulumi.StringMap{
    				"webhook": pulumi.String("slack://webhook"),
    			},
    		})
    		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 plugin
        var @default = new Sentry.SentryPlugin("default", new()
        {
            Organization = "my-organization",
            Project = "web-app",
            Plugin = "slack",
            Config = 
            {
                { "webhook", "slack://webhook" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sentry.SentryPlugin;
    import com.pulumi.sentry.SentryPluginArgs;
    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 plugin
            var default_ = new SentryPlugin("default", SentryPluginArgs.builder()
                .organization("my-organization")
                .project("web-app")
                .plugin("slack")
                .config(Map.of("webhook", "slack://webhook"))
                .build());
    
        }
    }
    
    resources:
      # Create a plugin
      default:
        type: sentry:SentryPlugin
        properties:
          organization: my-organization
          project: web-app
          plugin: slack
          config:
            webhook: slack://webhook
    

    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, str]] = 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", "string" },
        },
    });
    
    example, err := sentry.NewSentryPlugin(ctx, "sentryPluginResource", &sentry.SentryPluginArgs{
    	Organization: pulumi.String("string"),
    	Plugin:       pulumi.String("string"),
    	Project:      pulumi.String("string"),
    	Config: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var sentryPluginResource = new SentryPlugin("sentryPluginResource", SentryPluginArgs.builder()
        .organization("string")
        .plugin("string")
        .project("string")
        .config(Map.of("string", "string"))
        .build());
    
    sentry_plugin_resource = sentry.SentryPlugin("sentryPluginResource",
        organization="string",
        plugin="string",
        project="string",
        config={
            "string": "string",
        })
    
    const sentryPluginResource = new sentry.SentryPlugin("sentryPluginResource", {
        organization: "string",
        plugin: "string",
        project: "string",
        config: {
            string: "string",
        },
    });
    
    type: sentry:SentryPlugin
    properties:
        config:
            string: string
        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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SentryPlugin resource accepts the following input properties:

    Organization string
    The slug of the organization the project belongs to.
    Plugin string
    Plugin ID.
    Project string
    The slug of the project to create the plugin for.
    Config Dictionary<string, string>
    Plugin config.
    Organization string
    The slug of the organization the project belongs to.
    Plugin string
    Plugin ID.
    Project string
    The slug of the project to create the plugin for.
    Config map[string]string
    Plugin config.
    organization String
    The slug of the organization the project belongs to.
    plugin String
    Plugin ID.
    project String
    The slug of the project to create the plugin for.
    config Map<String,String>
    Plugin config.
    organization string
    The slug of the organization the project belongs to.
    plugin string
    Plugin ID.
    project string
    The slug of the project to create the plugin for.
    config {[key: string]: string}
    Plugin config.
    organization str
    The slug of the organization the project belongs to.
    plugin str
    Plugin ID.
    project str
    The slug of the project to create the plugin for.
    config Mapping[str, str]
    Plugin config.
    organization String
    The slug of the organization the project belongs to.
    plugin String
    Plugin ID.
    project String
    The slug of the project to create the plugin for.
    config Map<String>
    Plugin config.

    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, str]] = 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.
    The following state arguments are supported:
    Config Dictionary<string, string>
    Plugin config.
    Organization string
    The slug of the organization the project belongs to.
    Plugin string
    Plugin ID.
    Project string
    The slug of the project to create the plugin for.
    Config map[string]string
    Plugin config.
    Organization string
    The slug of the organization the project belongs to.
    Plugin string
    Plugin ID.
    Project string
    The slug of the project to create the plugin for.
    config Map<String,String>
    Plugin config.
    organization String
    The slug of the organization the project belongs to.
    plugin String
    Plugin ID.
    project String
    The slug of the project to create the plugin for.
    config {[key: string]: string}
    Plugin config.
    organization string
    The slug of the organization the project belongs to.
    plugin string
    Plugin ID.
    project string
    The slug of the project to create the plugin for.
    config Mapping[str, str]
    Plugin config.
    organization str
    The slug of the organization the project belongs to.
    plugin str
    Plugin ID.
    project str
    The slug of the project to create the plugin for.
    config Map<String>
    Plugin config.
    organization String
    The slug of the organization the project belongs to.
    plugin String
    Plugin ID.
    project String
    The slug of the project to create the plugin for.

    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