sentry.SentryOrganizationRepositoryGithub
Explore with Pulumi AI
Sentry Github Organization Repository resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumi/sentry";
import * as sentry from "@pulumiverse/sentry";
// Retrieve the Github organization integration
const github = sentry.getSentryOrganizationIntegration({
organization: "my-organization",
providerKey: "github",
name: "my-github-organization",
});
const _this = new sentry.SentryOrganizationRepositoryGithub("this", {
organization: "my-organization",
integrationId: github.then(github => github.internalId),
identifier: "my-github-organization/my-github-repo",
});
import pulumi
import pulumi_sentry as sentry
import pulumiverse_sentry as sentry
# Retrieve the Github organization integration
github = sentry.get_sentry_organization_integration(organization="my-organization",
provider_key="github",
name="my-github-organization")
this = sentry.SentryOrganizationRepositoryGithub("this",
organization="my-organization",
integration_id=github.internal_id,
identifier="my-github-organization/my-github-repo")
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 {
// Retrieve the Github organization integration
github, err := sentry.GetSentryOrganizationIntegration(ctx, &sentry.GetSentryOrganizationIntegrationArgs{
Organization: "my-organization",
ProviderKey: "github",
Name: "my-github-organization",
}, nil)
if err != nil {
return err
}
_, err = sentry.NewSentryOrganizationRepositoryGithub(ctx, "this", &sentry.SentryOrganizationRepositoryGithubArgs{
Organization: pulumi.String("my-organization"),
IntegrationId: pulumi.String(github.InternalId),
Identifier: pulumi.String("my-github-organization/my-github-repo"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sentry = Pulumi.Sentry;
using Sentry = Pulumiverse.Sentry;
return await Deployment.RunAsync(() =>
{
// Retrieve the Github organization integration
var github = Sentry.GetSentryOrganizationIntegration.Invoke(new()
{
Organization = "my-organization",
ProviderKey = "github",
Name = "my-github-organization",
});
var @this = new Sentry.SentryOrganizationRepositoryGithub("this", new()
{
Organization = "my-organization",
IntegrationId = github.Apply(getSentryOrganizationIntegrationResult => getSentryOrganizationIntegrationResult.InternalId),
Identifier = "my-github-organization/my-github-repo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryFunctions;
import com.pulumi.sentry.inputs.GetSentryOrganizationIntegrationArgs;
import com.pulumi.sentry.SentryOrganizationRepositoryGithub;
import com.pulumi.sentry.SentryOrganizationRepositoryGithubArgs;
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) {
// Retrieve the Github organization integration
final var github = SentryFunctions.getSentryOrganizationIntegration(GetSentryOrganizationIntegrationArgs.builder()
.organization("my-organization")
.providerKey("github")
.name("my-github-organization")
.build());
var this_ = new SentryOrganizationRepositoryGithub("this", SentryOrganizationRepositoryGithubArgs.builder()
.organization("my-organization")
.integrationId(github.applyValue(getSentryOrganizationIntegrationResult -> getSentryOrganizationIntegrationResult.internalId()))
.identifier("my-github-organization/my-github-repo")
.build());
}
}
resources:
this:
type: sentry:SentryOrganizationRepositoryGithub
properties:
organization: my-organization
integrationId: ${github.internalId}
identifier: my-github-organization/my-github-repo
variables:
# Retrieve the Github organization integration
github:
fn::invoke:
Function: sentry:getSentryOrganizationIntegration
Arguments:
organization: my-organization
providerKey: github
name: my-github-organization
Create SentryOrganizationRepositoryGithub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SentryOrganizationRepositoryGithub(name: string, args: SentryOrganizationRepositoryGithubArgs, opts?: CustomResourceOptions);
@overload
def SentryOrganizationRepositoryGithub(resource_name: str,
args: SentryOrganizationRepositoryGithubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SentryOrganizationRepositoryGithub(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
integration_id: Optional[str] = None,
organization: Optional[str] = None)
func NewSentryOrganizationRepositoryGithub(ctx *Context, name string, args SentryOrganizationRepositoryGithubArgs, opts ...ResourceOption) (*SentryOrganizationRepositoryGithub, error)
public SentryOrganizationRepositoryGithub(string name, SentryOrganizationRepositoryGithubArgs args, CustomResourceOptions? opts = null)
public SentryOrganizationRepositoryGithub(String name, SentryOrganizationRepositoryGithubArgs args)
public SentryOrganizationRepositoryGithub(String name, SentryOrganizationRepositoryGithubArgs args, CustomResourceOptions options)
type: sentry:SentryOrganizationRepositoryGithub
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 SentryOrganizationRepositoryGithubArgs
- 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 SentryOrganizationRepositoryGithubArgs
- 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 SentryOrganizationRepositoryGithubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SentryOrganizationRepositoryGithubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SentryOrganizationRepositoryGithubArgs
- 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 sentryOrganizationRepositoryGithubResource = new Sentry.SentryOrganizationRepositoryGithub("sentryOrganizationRepositoryGithubResource", new()
{
Identifier = "string",
IntegrationId = "string",
Organization = "string",
});
example, err := sentry.NewSentryOrganizationRepositoryGithub(ctx, "sentryOrganizationRepositoryGithubResource", &sentry.SentryOrganizationRepositoryGithubArgs{
Identifier: pulumi.String("string"),
IntegrationId: pulumi.String("string"),
Organization: pulumi.String("string"),
})
var sentryOrganizationRepositoryGithubResource = new SentryOrganizationRepositoryGithub("sentryOrganizationRepositoryGithubResource", SentryOrganizationRepositoryGithubArgs.builder()
.identifier("string")
.integrationId("string")
.organization("string")
.build());
sentry_organization_repository_github_resource = sentry.SentryOrganizationRepositoryGithub("sentryOrganizationRepositoryGithubResource",
identifier="string",
integration_id="string",
organization="string")
const sentryOrganizationRepositoryGithubResource = new sentry.SentryOrganizationRepositoryGithub("sentryOrganizationRepositoryGithubResource", {
identifier: "string",
integrationId: "string",
organization: "string",
});
type: sentry:SentryOrganizationRepositoryGithub
properties:
identifier: string
integrationId: string
organization: string
SentryOrganizationRepositoryGithub 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 SentryOrganizationRepositoryGithub resource accepts the following input properties:
- Identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- Integration
Id string - The organization integration ID for Github.
- Organization string
- The slug of the Sentry organization this resource belongs to.
- Identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- Integration
Id string - The organization integration ID for Github.
- Organization string
- The slug of the Sentry organization this resource belongs to.
- identifier String
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id String - The organization integration ID for Github.
- organization String
- The slug of the Sentry organization this resource belongs to.
- identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id string - The organization integration ID for Github.
- organization string
- The slug of the Sentry organization this resource belongs to.
- identifier str
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration_
id str - The organization integration ID for Github.
- organization str
- The slug of the Sentry organization this resource belongs to.
- identifier String
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id String - The organization integration ID for Github.
- organization String
- The slug of the Sentry organization this resource belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryOrganizationRepositoryGithub 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 repository.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - The internal ID for this organization repository.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this organization repository.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string - The internal ID for this organization repository.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str - The internal ID for this organization repository.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this organization repository.
Look up Existing SentryOrganizationRepositoryGithub Resource
Get an existing SentryOrganizationRepositoryGithub 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?: SentryOrganizationRepositoryGithubState, opts?: CustomResourceOptions): SentryOrganizationRepositoryGithub
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
integration_id: Optional[str] = None,
internal_id: Optional[str] = None,
organization: Optional[str] = None) -> SentryOrganizationRepositoryGithub
func GetSentryOrganizationRepositoryGithub(ctx *Context, name string, id IDInput, state *SentryOrganizationRepositoryGithubState, opts ...ResourceOption) (*SentryOrganizationRepositoryGithub, error)
public static SentryOrganizationRepositoryGithub Get(string name, Input<string> id, SentryOrganizationRepositoryGithubState? state, CustomResourceOptions? opts = null)
public static SentryOrganizationRepositoryGithub get(String name, Output<String> id, SentryOrganizationRepositoryGithubState 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.
- Identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- Integration
Id string - The organization integration ID for Github.
- Internal
Id string - The internal ID for this organization repository.
- Organization string
- The slug of the Sentry organization this resource belongs to.
- Identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- Integration
Id string - The organization integration ID for Github.
- Internal
Id string - The internal ID for this organization repository.
- Organization string
- The slug of the Sentry organization this resource belongs to.
- identifier String
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id String - The organization integration ID for Github.
- internal
Id String - The internal ID for this organization repository.
- organization String
- The slug of the Sentry organization this resource belongs to.
- identifier string
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id string - The organization integration ID for Github.
- internal
Id string - The internal ID for this organization repository.
- organization string
- The slug of the Sentry organization this resource belongs to.
- identifier str
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration_
id str - The organization integration ID for Github.
- internal_
id str - The internal ID for this organization repository.
- organization str
- The slug of the Sentry organization this resource belongs to.
- identifier String
- The repo identifier. For Github it is {githuborg}/{githubrepo}.
- integration
Id String - The organization integration ID for Github.
- internal
Id String - The internal ID for this organization repository.
- organization String
- The slug of the Sentry organization this resource belongs to.
Import
import using the organization slug from the URL:
https://sentry.io/organizations/[org-slug]/
[github-org] and [github-repo] are the slugs to your repo
$ pulumi import sentry:index/sentryOrganizationRepositoryGithub:SentryOrganizationRepositoryGithub this org-slug/github-org/github-repo
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.