1. Packages
  2. Sentry
  3. API Docs
  4. SentryOrganization
Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse

sentry.SentryOrganization

Explore with Pulumi AI

sentry logo
Sentry v0.0.8 published on Saturday, Dec 3, 2022 by Pulumiverse

    # sentry.SentryOrganization Resource

    Sentry Organization resource.

    Example Usage

    using Pulumi;
    using Sentry = Pulumiverse.Sentry;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            // Create an organization
            var @default = new Sentry.SentryOrganization("default", new Sentry.SentryOrganizationArgs
            {
                AgreeTerms = true,
                Slug = "my-organization",
            });
        }
    
    }
    
    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.NewSentryOrganization(ctx, "default", &sentry.SentryOrganizationArgs{
    			AgreeTerms: pulumi.Bool(true),
    			Slug:       pulumi.String("my-organization"),
    		})
    		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 SentryOrganization("default", SentryOrganizationArgs.builder()        
                .agreeTerms(true)
                .slug("my-organization")
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_sentry as sentry
    
    # Create an organization
    default = sentry.SentryOrganization("default",
        agree_terms=True,
        slug="my-organization")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as sentry from "@pulumi/sentry";
    
    // Create an organization
    const defaultSentryOrganization = new sentry.SentryOrganization("default", {
        agreeTerms: true,
        slug: "my-organization",
    });
    
    resources:
      default:
        type: sentry:SentryOrganization
        properties:
          agreeTerms: true
          slug: my-organization
    

    Create SentryOrganization Resource

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

    Constructor syntax

    new SentryOrganization(name: string, args: SentryOrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def SentryOrganization(resource_name: str,
                           args: SentryOrganizationArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SentryOrganization(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           agree_terms: Optional[bool] = None,
                           name: Optional[str] = None,
                           slug: Optional[str] = None)
    func NewSentryOrganization(ctx *Context, name string, args SentryOrganizationArgs, opts ...ResourceOption) (*SentryOrganization, error)
    public SentryOrganization(string name, SentryOrganizationArgs args, CustomResourceOptions? opts = null)
    public SentryOrganization(String name, SentryOrganizationArgs args)
    public SentryOrganization(String name, SentryOrganizationArgs args, CustomResourceOptions options)
    
    type: sentry:SentryOrganization
    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 SentryOrganizationArgs
    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 SentryOrganizationArgs
    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 SentryOrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SentryOrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SentryOrganizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var sentryOrganizationResource = new Sentry.SentryOrganization("sentryOrganizationResource", new()
    {
        AgreeTerms = false,
        Name = "string",
        Slug = "string",
    });
    
    example, err := sentry.NewSentryOrganization(ctx, "sentryOrganizationResource", &sentry.SentryOrganizationArgs{
    	AgreeTerms: pulumi.Bool(false),
    	Name:       pulumi.String("string"),
    	Slug:       pulumi.String("string"),
    })
    
    var sentryOrganizationResource = new SentryOrganization("sentryOrganizationResource", SentryOrganizationArgs.builder()        
        .agreeTerms(false)
        .name("string")
        .slug("string")
        .build());
    
    sentry_organization_resource = sentry.SentryOrganization("sentryOrganizationResource",
        agree_terms=False,
        name="string",
        slug="string")
    
    const sentryOrganizationResource = new sentry.SentryOrganization("sentryOrganizationResource", {
        agreeTerms: false,
        name: "string",
        slug: "string",
    });
    
    type: sentry:SentryOrganization
    properties:
        agreeTerms: false
        name: string
        slug: string
    

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

    AgreeTerms bool
    You agree to the applicable terms of service and privacy policy.
    Name string
    The human readable name for the organization.
    Slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    AgreeTerms bool
    You agree to the applicable terms of service and privacy policy.
    Name string
    The human readable name for the organization.
    Slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms Boolean
    You agree to the applicable terms of service and privacy policy.
    name String
    The human readable name for the organization.
    slug String
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms boolean
    You agree to the applicable terms of service and privacy policy.
    name string
    The human readable name for the organization.
    slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agree_terms bool
    You agree to the applicable terms of service and privacy policy.
    name str
    The human readable name for the organization.
    slug str
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms Boolean
    You agree to the applicable terms of service and privacy policy.
    name String
    The human readable name for the organization.
    slug String
    The unique URL slug for this organization. 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 SentryOrganization 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 SentryOrganization Resource

    Get an existing SentryOrganization 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?: SentryOrganizationState, opts?: CustomResourceOptions): SentryOrganization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agree_terms: Optional[bool] = None,
            name: Optional[str] = None,
            slug: Optional[str] = None) -> SentryOrganization
    func GetSentryOrganization(ctx *Context, name string, id IDInput, state *SentryOrganizationState, opts ...ResourceOption) (*SentryOrganization, error)
    public static SentryOrganization Get(string name, Input<string> id, SentryOrganizationState? state, CustomResourceOptions? opts = null)
    public static SentryOrganization get(String name, Output<String> id, SentryOrganizationState 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:
    AgreeTerms bool
    You agree to the applicable terms of service and privacy policy.
    Name string
    The human readable name for the organization.
    Slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    AgreeTerms bool
    You agree to the applicable terms of service and privacy policy.
    Name string
    The human readable name for the organization.
    Slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms Boolean
    You agree to the applicable terms of service and privacy policy.
    name String
    The human readable name for the organization.
    slug String
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms boolean
    You agree to the applicable terms of service and privacy policy.
    name string
    The human readable name for the organization.
    slug string
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agree_terms bool
    You agree to the applicable terms of service and privacy policy.
    name str
    The human readable name for the organization.
    slug str
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.
    agreeTerms Boolean
    You agree to the applicable terms of service and privacy policy.
    name String
    The human readable name for the organization.
    slug String
    The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name.

    Import

    This resource can be imported using an ID made up of the organization slugbash

     $ pulumi import sentry:index/sentryOrganization:SentryOrganization default org-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.8 published on Saturday, Dec 3, 2022 by Pulumiverse