sentry.SentryOrganization
Explore with Pulumi AI
Sentry Organization resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumiverse/sentry";
// Create an organization
const _default = new sentry.SentryOrganization("default", {
name: "My Organization",
slug: "my-organization",
agreeTerms: true,
});
import pulumi
import pulumiverse_sentry as sentry
# Create an organization
default = sentry.SentryOrganization("default",
name="My Organization",
slug="my-organization",
agree_terms=True)
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 an organization
_, err := sentry.NewSentryOrganization(ctx, "default", &sentry.SentryOrganizationArgs{
Name: pulumi.String("My Organization"),
Slug: pulumi.String("my-organization"),
AgreeTerms: pulumi.Bool(true),
})
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 an organization
var @default = new Sentry.SentryOrganization("default", new()
{
Name = "My Organization",
Slug = "my-organization",
AgreeTerms = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryOrganization;
import com.pulumi.sentry.SentryOrganizationArgs;
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 an organization
var default_ = new SentryOrganization("default", SentryOrganizationArgs.builder()
.name("My Organization")
.slug("my-organization")
.agreeTerms(true)
.build());
}
}
resources:
# Create an organization
default:
type: sentry:SentryOrganization
properties:
name: My Organization
slug: my-organization
agreeTerms: true
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SentryOrganization resource accepts the following input properties:
- Agree
Terms 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.
- Agree
Terms 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.
- agree
Terms 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.
- agree
Terms 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.
- 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.
- agree
Terms 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.
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.
- Internal
Id string - The internal ID for this organization.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - The internal ID for this organization.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this organization.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string - The internal ID for this organization.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str - The internal ID for this organization.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this organization.
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,
internal_id: Optional[str] = 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.
- Agree
Terms bool - You agree to the applicable terms of service and privacy policy.
- Internal
Id string - The internal ID for this organization.
- Name string
- The human readable name for the organization.
- Slug string
- The unique URL slug for this organization.
- Agree
Terms bool - You agree to the applicable terms of service and privacy policy.
- Internal
Id string - The internal ID for this organization.
- Name string
- The human readable name for the organization.
- Slug string
- The unique URL slug for this organization.
- agree
Terms Boolean - You agree to the applicable terms of service and privacy policy.
- internal
Id String - The internal ID for this organization.
- name String
- The human readable name for the organization.
- slug String
- The unique URL slug for this organization.
- agree
Terms boolean - You agree to the applicable terms of service and privacy policy.
- internal
Id string - The internal ID for this organization.
- name string
- The human readable name for the organization.
- slug string
- The unique URL slug for this organization.
- agree_
terms bool - You agree to the applicable terms of service and privacy policy.
- internal_
id str - The internal ID for this organization.
- name str
- The human readable name for the organization.
- slug str
- The unique URL slug for this organization.
- agree
Terms Boolean - You agree to the applicable terms of service and privacy policy.
- internal
Id String - The internal ID for this organization.
- name String
- The human readable name for the organization.
- slug String
- The unique URL slug for this organization.
Import
import using the organization slug from the URL:
https://sentry.io/organizations/[org-slug]/issues/
$ 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.