Class ServiceSlack
This resource allows you to manage Slack notifications integration.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var awesomeProject = new GitLab.Project("awesomeProject", new GitLab.ProjectArgs
{
Description = "My awesome project.",
VisibilityLevel = "public",
});
var slack = new GitLab.ServiceSlack("slack", new GitLab.ServiceSlackArgs
{
Project = awesomeProject.Id,
PushChannel = "push_chan",
PushEvents = true,
Username = "myuser",
Webhook = "https://webhook.com",
});
}
}
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class ServiceSlack : CustomResource
Constructors
View SourceServiceSlack(String, ServiceSlackArgs, CustomResourceOptions)
Create a ServiceSlack resource with the given unique name, arguments, and options.
Declaration
public ServiceSlack(string name, ServiceSlackArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceSlackArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBranchesToBeNotified
Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected".
Declaration
public Output<string> BranchesToBeNotified { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ConfidentialIssueChannel
The name of the channel to receive confidential issue events notifications.
Declaration
public Output<string> ConfidentialIssueChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ConfidentialIssuesEvents
Enable notifications for confidential issues events.
Declaration
public Output<bool> ConfidentialIssuesEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
ConfidentialNoteEvents
Enable notifications for confidential note events.
Declaration
public Output<bool> ConfidentialNoteEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
IssueChannel
The name of the channel to receive issue events notifications.
Declaration
public Output<string> IssueChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IssuesEvents
Enable notifications for issues events.
Declaration
public Output<bool> IssuesEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
JobEvents
Declaration
public Output<bool> JobEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
MergeRequestChannel
The name of the channel to receive merge request events notifications.
Declaration
public Output<string> MergeRequestChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MergeRequestsEvents
Enable notifications for merge requests events.
Declaration
public Output<bool> MergeRequestsEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
NoteChannel
The name of the channel to receive note events notifications.
Declaration
public Output<string> NoteChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NoteEvents
Enable notifications for note events.
Declaration
public Output<bool> NoteEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
NotifyOnlyBrokenPipelines
Send notifications for broken pipelines.
Declaration
public Output<bool> NotifyOnlyBrokenPipelines { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
NotifyOnlyDefaultBranch
DEPRECATED: This parameter has been replaced with branches_to_be_notified.
Declaration
public Output<bool> NotifyOnlyDefaultBranch { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
PipelineChannel
The name of the channel to receive pipeline events notifications.
Declaration
public Output<string> PipelineChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PipelineEvents
Enable notifications for pipeline events.
Declaration
public Output<bool> PipelineEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Project
ID of the project you want to activate integration on.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PushChannel
The name of the channel to receive push events notifications.
Declaration
public Output<string> PushChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PushEvents
Enable notifications for push events.
Declaration
public Output<bool> PushEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
TagPushChannel
The name of the channel to receive tag push events notifications.
Declaration
public Output<string> TagPushChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TagPushEvents
Enable notifications for tag push events.
Declaration
public Output<bool> TagPushEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Username
Username to use.
Declaration
public Output<string> Username { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Webhook
Webhook URL (ex.: https://hooks.slack.com/services/...)
Declaration
public Output<string> Webhook { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WikiPageChannel
The name of the channel to receive wiki page events notifications.
Declaration
public Output<string> WikiPageChannel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WikiPageEvents
Enable notifications for wiki page events.
Declaration
public Output<bool> WikiPageEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Methods
View SourceGet(String, Input<String>, ServiceSlackState, CustomResourceOptions)
Get an existing ServiceSlack resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ServiceSlack Get(string name, Input<string> id, ServiceSlackState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceSlackState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ServiceSlack |