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

sentry.SentryOrganizationMember

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumiverse/sentry";

// Create an organization member
const johnDoe = new sentry.SentryOrganizationMember("john_doe", {
    organization: "my-organization",
    email: "test@example.com",
    role: "member",
    teams: ["my-team"],
});
Copy
import pulumi
import pulumiverse_sentry as sentry

# Create an organization member
john_doe = sentry.SentryOrganizationMember("john_doe",
    organization="my-organization",
    email="test@example.com",
    role="member",
    teams=["my-team"])
Copy
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 member
		_, err := sentry.NewSentryOrganizationMember(ctx, "john_doe", &sentry.SentryOrganizationMemberArgs{
			Organization: pulumi.String("my-organization"),
			Email:        pulumi.String("test@example.com"),
			Role:         pulumi.String("member"),
			Teams: pulumi.StringArray{
				pulumi.String("my-team"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sentry = Pulumiverse.Sentry;

return await Deployment.RunAsync(() => 
{
    // Create an organization member
    var johnDoe = new Sentry.SentryOrganizationMember("john_doe", new()
    {
        Organization = "my-organization",
        Email = "test@example.com",
        Role = "member",
        Teams = new[]
        {
            "my-team",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryOrganizationMember;
import com.pulumi.sentry.SentryOrganizationMemberArgs;
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 member
        var johnDoe = new SentryOrganizationMember("johnDoe", SentryOrganizationMemberArgs.builder()
            .organization("my-organization")
            .email("test@example.com")
            .role("member")
            .teams("my-team")
            .build());

    }
}
Copy
resources:
  # Create an organization member
  johnDoe:
    type: sentry:SentryOrganizationMember
    name: john_doe
    properties:
      organization: my-organization
      email: test@example.com
      role: member
      teams:
        - my-team
Copy

Create SentryOrganizationMember Resource

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

Constructor syntax

new SentryOrganizationMember(name: string, args: SentryOrganizationMemberArgs, opts?: CustomResourceOptions);
@overload
def SentryOrganizationMember(resource_name: str,
                             args: SentryOrganizationMemberArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def SentryOrganizationMember(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             email: Optional[str] = None,
                             organization: Optional[str] = None,
                             role: Optional[str] = None,
                             teams: Optional[Sequence[str]] = None)
func NewSentryOrganizationMember(ctx *Context, name string, args SentryOrganizationMemberArgs, opts ...ResourceOption) (*SentryOrganizationMember, error)
public SentryOrganizationMember(string name, SentryOrganizationMemberArgs args, CustomResourceOptions? opts = null)
public SentryOrganizationMember(String name, SentryOrganizationMemberArgs args)
public SentryOrganizationMember(String name, SentryOrganizationMemberArgs args, CustomResourceOptions options)
type: sentry:SentryOrganizationMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SentryOrganizationMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SentryOrganizationMemberArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SentryOrganizationMemberArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SentryOrganizationMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SentryOrganizationMemberArgs
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 sentryOrganizationMemberResource = new Sentry.SentryOrganizationMember("sentryOrganizationMemberResource", new()
{
    Email = "string",
    Organization = "string",
    Role = "string",
    Teams = new[]
    {
        "string",
    },
});
Copy
example, err := sentry.NewSentryOrganizationMember(ctx, "sentryOrganizationMemberResource", &sentry.SentryOrganizationMemberArgs{
	Email:        pulumi.String("string"),
	Organization: pulumi.String("string"),
	Role:         pulumi.String("string"),
	Teams: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var sentryOrganizationMemberResource = new SentryOrganizationMember("sentryOrganizationMemberResource", SentryOrganizationMemberArgs.builder()
    .email("string")
    .organization("string")
    .role("string")
    .teams("string")
    .build());
Copy
sentry_organization_member_resource = sentry.SentryOrganizationMember("sentryOrganizationMemberResource",
    email="string",
    organization="string",
    role="string",
    teams=["string"])
Copy
const sentryOrganizationMemberResource = new sentry.SentryOrganizationMember("sentryOrganizationMemberResource", {
    email: "string",
    organization: "string",
    role: "string",
    teams: ["string"],
});
Copy
type: sentry:SentryOrganizationMember
properties:
    email: string
    organization: string
    role: string
    teams:
        - string
Copy

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

Email This property is required. string
The email of the organization member.
Organization This property is required. string
The slug of the organization the user should be invited to.
Role This property is required. string
This is the role of the organization member.
Teams List<string>
The teams the organization member should be added to.
Email This property is required. string
The email of the organization member.
Organization This property is required. string
The slug of the organization the user should be invited to.
Role This property is required. string
This is the role of the organization member.
Teams []string
The teams the organization member should be added to.
email This property is required. String
The email of the organization member.
organization This property is required. String
The slug of the organization the user should be invited to.
role This property is required. String
This is the role of the organization member.
teams List<String>
The teams the organization member should be added to.
email This property is required. string
The email of the organization member.
organization This property is required. string
The slug of the organization the user should be invited to.
role This property is required. string
This is the role of the organization member.
teams string[]
The teams the organization member should be added to.
email This property is required. str
The email of the organization member.
organization This property is required. str
The slug of the organization the user should be invited to.
role This property is required. str
This is the role of the organization member.
teams Sequence[str]
The teams the organization member should be added to.
email This property is required. String
The email of the organization member.
organization This property is required. String
The slug of the organization the user should be invited to.
role This property is required. String
This is the role of the organization member.
teams List<String>
The teams the organization member should be added to.

Outputs

All input properties are implicitly available as output properties. Additionally, the SentryOrganizationMember resource produces the following output properties:

Expired bool
The invite has expired.
Id string
The provider-assigned unique ID for this managed resource.
InternalId string
The internal ID for this organization membership.
Pending bool
The invite is pending.
Expired bool
The invite has expired.
Id string
The provider-assigned unique ID for this managed resource.
InternalId string
The internal ID for this organization membership.
Pending bool
The invite is pending.
expired Boolean
The invite has expired.
id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this organization membership.
pending Boolean
The invite is pending.
expired boolean
The invite has expired.
id string
The provider-assigned unique ID for this managed resource.
internalId string
The internal ID for this organization membership.
pending boolean
The invite is pending.
expired bool
The invite has expired.
id str
The provider-assigned unique ID for this managed resource.
internal_id str
The internal ID for this organization membership.
pending bool
The invite is pending.
expired Boolean
The invite has expired.
id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this organization membership.
pending Boolean
The invite is pending.

Look up Existing SentryOrganizationMember Resource

Get an existing SentryOrganizationMember 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?: SentryOrganizationMemberState, opts?: CustomResourceOptions): SentryOrganizationMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        email: Optional[str] = None,
        expired: Optional[bool] = None,
        internal_id: Optional[str] = None,
        organization: Optional[str] = None,
        pending: Optional[bool] = None,
        role: Optional[str] = None,
        teams: Optional[Sequence[str]] = None) -> SentryOrganizationMember
func GetSentryOrganizationMember(ctx *Context, name string, id IDInput, state *SentryOrganizationMemberState, opts ...ResourceOption) (*SentryOrganizationMember, error)
public static SentryOrganizationMember Get(string name, Input<string> id, SentryOrganizationMemberState? state, CustomResourceOptions? opts = null)
public static SentryOrganizationMember get(String name, Output<String> id, SentryOrganizationMemberState state, CustomResourceOptions options)
resources:  _:    type: sentry:SentryOrganizationMember    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Email string
The email of the organization member.
Expired bool
The invite has expired.
InternalId string
The internal ID for this organization membership.
Organization string
The slug of the organization the user should be invited to.
Pending bool
The invite is pending.
Role string
This is the role of the organization member.
Teams List<string>
The teams the organization member should be added to.
Email string
The email of the organization member.
Expired bool
The invite has expired.
InternalId string
The internal ID for this organization membership.
Organization string
The slug of the organization the user should be invited to.
Pending bool
The invite is pending.
Role string
This is the role of the organization member.
Teams []string
The teams the organization member should be added to.
email String
The email of the organization member.
expired Boolean
The invite has expired.
internalId String
The internal ID for this organization membership.
organization String
The slug of the organization the user should be invited to.
pending Boolean
The invite is pending.
role String
This is the role of the organization member.
teams List<String>
The teams the organization member should be added to.
email string
The email of the organization member.
expired boolean
The invite has expired.
internalId string
The internal ID for this organization membership.
organization string
The slug of the organization the user should be invited to.
pending boolean
The invite is pending.
role string
This is the role of the organization member.
teams string[]
The teams the organization member should be added to.
email str
The email of the organization member.
expired bool
The invite has expired.
internal_id str
The internal ID for this organization membership.
organization str
The slug of the organization the user should be invited to.
pending bool
The invite is pending.
role str
This is the role of the organization member.
teams Sequence[str]
The teams the organization member should be added to.
email String
The email of the organization member.
expired Boolean
The invite has expired.
internalId String
The internal ID for this organization membership.
organization String
The slug of the organization the user should be invited to.
pending Boolean
The invite is pending.
role String
This is the role of the organization member.
teams List<String>
The teams the organization member should be added to.

Import

import using the organization, membership id from the URL:

https://sentry.io/settings/[org-slug]/members/[member-id]/

$ pulumi import sentry:index/sentryOrganizationMember:SentryOrganizationMember john_doe org-slug/member-id
Copy

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.