gitlab.ServiceSlack
Explore with Pulumi AI
The gitlab.ServiceSlack
resource allows to manage the lifecycle of a project integration with Slack.
This resource is deprecated. use
gitlab.IntegrationSlack
instead!
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
name: "awesome_project",
description: "My awesome project.",
visibilityLevel: "public",
});
const slack = new gitlab.ServiceSlack("slack", {
project: awesomeProject.id,
webhook: "https://webhook.com",
username: "myuser",
pushEvents: true,
pushChannel: "push_chan",
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
slack = gitlab.ServiceSlack("slack",
project=awesome_project.id,
webhook="https://webhook.com",
username="myuser",
push_events=True,
push_channel="push_chan")
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
Name: pulumi.String("awesome_project"),
Description: pulumi.String("My awesome project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewServiceSlack(ctx, "slack", &gitlab.ServiceSlackArgs{
Project: awesomeProject.ID(),
Webhook: pulumi.String("https://webhook.com"),
Username: pulumi.String("myuser"),
PushEvents: pulumi.Bool(true),
PushChannel: pulumi.String("push_chan"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var slack = new GitLab.ServiceSlack("slack", new()
{
Project = awesomeProject.Id,
Webhook = "https://webhook.com",
Username = "myuser",
PushEvents = true,
PushChannel = "push_chan",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ServiceSlack;
import com.pulumi.gitlab.ServiceSlackArgs;
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) {
var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.name("awesome_project")
.description("My awesome project.")
.visibilityLevel("public")
.build());
var slack = new ServiceSlack("slack", ServiceSlackArgs.builder()
.project(awesomeProject.id())
.webhook("https://webhook.com")
.username("myuser")
.pushEvents(true)
.pushChannel("push_chan")
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
slack:
type: gitlab:ServiceSlack
properties:
project: ${awesomeProject.id}
webhook: https://webhook.com
username: myuser
pushEvents: true
pushChannel: push_chan
Create ServiceSlack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceSlack(name: string, args: ServiceSlackArgs, opts?: CustomResourceOptions);
@overload
def ServiceSlack(resource_name: str,
args: ServiceSlackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceSlack(resource_name: str,
opts: Optional[ResourceOptions] = None,
project: Optional[str] = None,
webhook: Optional[str] = None,
notify_only_default_branch: Optional[bool] = None,
confidential_note_events: Optional[bool] = None,
pipeline_channel: Optional[str] = None,
issue_channel: Optional[str] = None,
issues_events: Optional[bool] = None,
merge_request_channel: Optional[str] = None,
merge_requests_events: Optional[bool] = None,
note_channel: Optional[str] = None,
pipeline_events: Optional[bool] = None,
notify_only_broken_pipelines: Optional[bool] = None,
wiki_page_events: Optional[bool] = None,
confidential_note_channel: Optional[str] = None,
note_events: Optional[bool] = None,
confidential_issues_events: Optional[bool] = None,
push_channel: Optional[str] = None,
push_events: Optional[bool] = None,
tag_push_channel: Optional[str] = None,
tag_push_events: Optional[bool] = None,
username: Optional[str] = None,
confidential_issue_channel: Optional[str] = None,
wiki_page_channel: Optional[str] = None,
branches_to_be_notified: Optional[str] = None)
func NewServiceSlack(ctx *Context, name string, args ServiceSlackArgs, opts ...ResourceOption) (*ServiceSlack, error)
public ServiceSlack(string name, ServiceSlackArgs args, CustomResourceOptions? opts = null)
public ServiceSlack(String name, ServiceSlackArgs args)
public ServiceSlack(String name, ServiceSlackArgs args, CustomResourceOptions options)
type: gitlab:ServiceSlack
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 ServiceSlackArgs
- 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 ServiceSlackArgs
- 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 ServiceSlackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceSlackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceSlackArgs
- 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 serviceSlackResource = new GitLab.ServiceSlack("serviceSlackResource", new()
{
Project = "string",
Webhook = "string",
ConfidentialNoteEvents = false,
PipelineChannel = "string",
IssueChannel = "string",
IssuesEvents = false,
MergeRequestChannel = "string",
MergeRequestsEvents = false,
NoteChannel = "string",
PipelineEvents = false,
NotifyOnlyBrokenPipelines = false,
WikiPageEvents = false,
ConfidentialNoteChannel = "string",
NoteEvents = false,
ConfidentialIssuesEvents = false,
PushChannel = "string",
PushEvents = false,
TagPushChannel = "string",
TagPushEvents = false,
Username = "string",
ConfidentialIssueChannel = "string",
WikiPageChannel = "string",
BranchesToBeNotified = "string",
});
example, err := gitlab.NewServiceSlack(ctx, "serviceSlackResource", &gitlab.ServiceSlackArgs{
Project: pulumi.String("string"),
Webhook: pulumi.String("string"),
ConfidentialNoteEvents: pulumi.Bool(false),
PipelineChannel: pulumi.String("string"),
IssueChannel: pulumi.String("string"),
IssuesEvents: pulumi.Bool(false),
MergeRequestChannel: pulumi.String("string"),
MergeRequestsEvents: pulumi.Bool(false),
NoteChannel: pulumi.String("string"),
PipelineEvents: pulumi.Bool(false),
NotifyOnlyBrokenPipelines: pulumi.Bool(false),
WikiPageEvents: pulumi.Bool(false),
ConfidentialNoteChannel: pulumi.String("string"),
NoteEvents: pulumi.Bool(false),
ConfidentialIssuesEvents: pulumi.Bool(false),
PushChannel: pulumi.String("string"),
PushEvents: pulumi.Bool(false),
TagPushChannel: pulumi.String("string"),
TagPushEvents: pulumi.Bool(false),
Username: pulumi.String("string"),
ConfidentialIssueChannel: pulumi.String("string"),
WikiPageChannel: pulumi.String("string"),
BranchesToBeNotified: pulumi.String("string"),
})
var serviceSlackResource = new ServiceSlack("serviceSlackResource", ServiceSlackArgs.builder()
.project("string")
.webhook("string")
.confidentialNoteEvents(false)
.pipelineChannel("string")
.issueChannel("string")
.issuesEvents(false)
.mergeRequestChannel("string")
.mergeRequestsEvents(false)
.noteChannel("string")
.pipelineEvents(false)
.notifyOnlyBrokenPipelines(false)
.wikiPageEvents(false)
.confidentialNoteChannel("string")
.noteEvents(false)
.confidentialIssuesEvents(false)
.pushChannel("string")
.pushEvents(false)
.tagPushChannel("string")
.tagPushEvents(false)
.username("string")
.confidentialIssueChannel("string")
.wikiPageChannel("string")
.branchesToBeNotified("string")
.build());
service_slack_resource = gitlab.ServiceSlack("serviceSlackResource",
project="string",
webhook="string",
confidential_note_events=False,
pipeline_channel="string",
issue_channel="string",
issues_events=False,
merge_request_channel="string",
merge_requests_events=False,
note_channel="string",
pipeline_events=False,
notify_only_broken_pipelines=False,
wiki_page_events=False,
confidential_note_channel="string",
note_events=False,
confidential_issues_events=False,
push_channel="string",
push_events=False,
tag_push_channel="string",
tag_push_events=False,
username="string",
confidential_issue_channel="string",
wiki_page_channel="string",
branches_to_be_notified="string")
const serviceSlackResource = new gitlab.ServiceSlack("serviceSlackResource", {
project: "string",
webhook: "string",
confidentialNoteEvents: false,
pipelineChannel: "string",
issueChannel: "string",
issuesEvents: false,
mergeRequestChannel: "string",
mergeRequestsEvents: false,
noteChannel: "string",
pipelineEvents: false,
notifyOnlyBrokenPipelines: false,
wikiPageEvents: false,
confidentialNoteChannel: "string",
noteEvents: false,
confidentialIssuesEvents: false,
pushChannel: "string",
pushEvents: false,
tagPushChannel: "string",
tagPushEvents: false,
username: "string",
confidentialIssueChannel: "string",
wikiPageChannel: "string",
branchesToBeNotified: "string",
});
type: gitlab:ServiceSlack
properties:
branchesToBeNotified: string
confidentialIssueChannel: string
confidentialIssuesEvents: false
confidentialNoteChannel: string
confidentialNoteEvents: false
issueChannel: string
issuesEvents: false
mergeRequestChannel: string
mergeRequestsEvents: false
noteChannel: string
noteEvents: false
notifyOnlyBrokenPipelines: false
pipelineChannel: string
pipelineEvents: false
project: string
pushChannel: string
pushEvents: false
tagPushChannel: string
tagPushEvents: false
username: string
webhook: string
wikiPageChannel: string
wikiPageEvents: false
ServiceSlack 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 ServiceSlack resource accepts the following input properties:
- Project string
- ID of the project you want to activate integration on.
- Webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- Branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- Confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- Confidential
Issues boolEvents - Enable notifications for confidential issues events.
- Confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- Confidential
Note boolEvents - Enable notifications for confidential note events.
- Issue
Channel string - The name of the channel to receive issue events notifications.
- Issues
Events bool - Enable notifications for issues events.
- Merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- Merge
Requests boolEvents - Enable notifications for merge requests events.
- Note
Channel string - The name of the channel to receive note events notifications.
- Note
Events bool - Enable notifications for note events.
- Notify
Only boolBroken Pipelines - Send notifications for broken pipelines.
- Notify
Only boolDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - Pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- Pipeline
Events bool - Enable notifications for pipeline events.
- Push
Channel string - The name of the channel to receive push events notifications.
- Push
Events bool - Enable notifications for push events.
- Tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- Tag
Push boolEvents - Enable notifications for tag push events.
- Username string
- Username to use.
- Wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- Wiki
Page boolEvents - Enable notifications for wiki page events.
- Project string
- ID of the project you want to activate integration on.
- Webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- Branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- Confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- Confidential
Issues boolEvents - Enable notifications for confidential issues events.
- Confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- Confidential
Note boolEvents - Enable notifications for confidential note events.
- Issue
Channel string - The name of the channel to receive issue events notifications.
- Issues
Events bool - Enable notifications for issues events.
- Merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- Merge
Requests boolEvents - Enable notifications for merge requests events.
- Note
Channel string - The name of the channel to receive note events notifications.
- Note
Events bool - Enable notifications for note events.
- Notify
Only boolBroken Pipelines - Send notifications for broken pipelines.
- Notify
Only boolDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - Pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- Pipeline
Events bool - Enable notifications for pipeline events.
- Push
Channel string - The name of the channel to receive push events notifications.
- Push
Events bool - Enable notifications for push events.
- Tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- Tag
Push boolEvents - Enable notifications for tag push events.
- Username string
- Username to use.
- Wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- Wiki
Page boolEvents - Enable notifications for wiki page events.
- project String
- ID of the project you want to activate integration on.
- webhook String
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- branches
To StringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue StringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues BooleanEvents - Enable notifications for confidential issues events.
- confidential
Note StringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note BooleanEvents - Enable notifications for confidential note events.
- issue
Channel String - The name of the channel to receive issue events notifications.
- issues
Events Boolean - Enable notifications for issues events.
- merge
Request StringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests BooleanEvents - Enable notifications for merge requests events.
- note
Channel String - The name of the channel to receive note events notifications.
- note
Events Boolean - Enable notifications for note events.
- notify
Only BooleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only BooleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel String - The name of the channel to receive pipeline events notifications.
- pipeline
Events Boolean - Enable notifications for pipeline events.
- push
Channel String - The name of the channel to receive push events notifications.
- push
Events Boolean - Enable notifications for push events.
- tag
Push StringChannel - The name of the channel to receive tag push events notifications.
- tag
Push BooleanEvents - Enable notifications for tag push events.
- username String
- Username to use.
- wiki
Page StringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page BooleanEvents - Enable notifications for wiki page events.
- project string
- ID of the project you want to activate integration on.
- webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues booleanEvents - Enable notifications for confidential issues events.
- confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note booleanEvents - Enable notifications for confidential note events.
- issue
Channel string - The name of the channel to receive issue events notifications.
- issues
Events boolean - Enable notifications for issues events.
- merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests booleanEvents - Enable notifications for merge requests events.
- note
Channel string - The name of the channel to receive note events notifications.
- note
Events boolean - Enable notifications for note events.
- notify
Only booleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only booleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- pipeline
Events boolean - Enable notifications for pipeline events.
- push
Channel string - The name of the channel to receive push events notifications.
- push
Events boolean - Enable notifications for push events.
- tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- tag
Push booleanEvents - Enable notifications for tag push events.
- username string
- Username to use.
- wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page booleanEvents - Enable notifications for wiki page events.
- project str
- ID of the project you want to activate integration on.
- webhook str
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- branches_
to_ strbe_ notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential_
issue_ strchannel - The name of the channel to receive confidential issue events notifications.
- confidential_
issues_ boolevents - Enable notifications for confidential issues events.
- confidential_
note_ strchannel - The name of the channel to receive confidential note events notifications.
- confidential_
note_ boolevents - Enable notifications for confidential note events.
- issue_
channel str - The name of the channel to receive issue events notifications.
- issues_
events bool - Enable notifications for issues events.
- merge_
request_ strchannel - The name of the channel to receive merge request events notifications.
- merge_
requests_ boolevents - Enable notifications for merge requests events.
- note_
channel str - The name of the channel to receive note events notifications.
- note_
events bool - Enable notifications for note events.
- notify_
only_ boolbroken_ pipelines - Send notifications for broken pipelines.
- notify_
only_ booldefault_ branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline_
channel str - The name of the channel to receive pipeline events notifications.
- pipeline_
events bool - Enable notifications for pipeline events.
- push_
channel str - The name of the channel to receive push events notifications.
- push_
events bool - Enable notifications for push events.
- tag_
push_ strchannel - The name of the channel to receive tag push events notifications.
- tag_
push_ boolevents - Enable notifications for tag push events.
- username str
- Username to use.
- wiki_
page_ strchannel - The name of the channel to receive wiki page events notifications.
- wiki_
page_ boolevents - Enable notifications for wiki page events.
- project String
- ID of the project you want to activate integration on.
- webhook String
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- branches
To StringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue StringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues BooleanEvents - Enable notifications for confidential issues events.
- confidential
Note StringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note BooleanEvents - Enable notifications for confidential note events.
- issue
Channel String - The name of the channel to receive issue events notifications.
- issues
Events Boolean - Enable notifications for issues events.
- merge
Request StringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests BooleanEvents - Enable notifications for merge requests events.
- note
Channel String - The name of the channel to receive note events notifications.
- note
Events Boolean - Enable notifications for note events.
- notify
Only BooleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only BooleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel String - The name of the channel to receive pipeline events notifications.
- pipeline
Events Boolean - Enable notifications for pipeline events.
- push
Channel String - The name of the channel to receive push events notifications.
- push
Events Boolean - Enable notifications for push events.
- tag
Push StringChannel - The name of the channel to receive tag push events notifications.
- tag
Push BooleanEvents - Enable notifications for tag push events.
- username String
- Username to use.
- wiki
Page StringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page BooleanEvents - Enable notifications for wiki page events.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceSlack resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- job_
events bool - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
Look up Existing ServiceSlack Resource
Get an existing ServiceSlack 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?: ServiceSlackState, opts?: CustomResourceOptions): ServiceSlack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
branches_to_be_notified: Optional[str] = None,
confidential_issue_channel: Optional[str] = None,
confidential_issues_events: Optional[bool] = None,
confidential_note_channel: Optional[str] = None,
confidential_note_events: Optional[bool] = None,
issue_channel: Optional[str] = None,
issues_events: Optional[bool] = None,
job_events: Optional[bool] = None,
merge_request_channel: Optional[str] = None,
merge_requests_events: Optional[bool] = None,
note_channel: Optional[str] = None,
note_events: Optional[bool] = None,
notify_only_broken_pipelines: Optional[bool] = None,
notify_only_default_branch: Optional[bool] = None,
pipeline_channel: Optional[str] = None,
pipeline_events: Optional[bool] = None,
project: Optional[str] = None,
push_channel: Optional[str] = None,
push_events: Optional[bool] = None,
tag_push_channel: Optional[str] = None,
tag_push_events: Optional[bool] = None,
username: Optional[str] = None,
webhook: Optional[str] = None,
wiki_page_channel: Optional[str] = None,
wiki_page_events: Optional[bool] = None) -> ServiceSlack
func GetServiceSlack(ctx *Context, name string, id IDInput, state *ServiceSlackState, opts ...ResourceOption) (*ServiceSlack, error)
public static ServiceSlack Get(string name, Input<string> id, ServiceSlackState? state, CustomResourceOptions? opts = null)
public static ServiceSlack get(String name, Output<String> id, ServiceSlackState 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.
- Branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- Confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- Confidential
Issues boolEvents - Enable notifications for confidential issues events.
- Confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- Confidential
Note boolEvents - Enable notifications for confidential note events.
- Issue
Channel string - The name of the channel to receive issue events notifications.
- Issues
Events bool - Enable notifications for issues events.
- Job
Events bool - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- Merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- Merge
Requests boolEvents - Enable notifications for merge requests events.
- Note
Channel string - The name of the channel to receive note events notifications.
- Note
Events bool - Enable notifications for note events.
- Notify
Only boolBroken Pipelines - Send notifications for broken pipelines.
- Notify
Only boolDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - Pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- Pipeline
Events bool - Enable notifications for pipeline events.
- Project string
- ID of the project you want to activate integration on.
- Push
Channel string - The name of the channel to receive push events notifications.
- Push
Events bool - Enable notifications for push events.
- Tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- Tag
Push boolEvents - Enable notifications for tag push events.
- Username string
- Username to use.
- Webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- Wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- Wiki
Page boolEvents - Enable notifications for wiki page events.
- Branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- Confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- Confidential
Issues boolEvents - Enable notifications for confidential issues events.
- Confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- Confidential
Note boolEvents - Enable notifications for confidential note events.
- Issue
Channel string - The name of the channel to receive issue events notifications.
- Issues
Events bool - Enable notifications for issues events.
- Job
Events bool - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- Merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- Merge
Requests boolEvents - Enable notifications for merge requests events.
- Note
Channel string - The name of the channel to receive note events notifications.
- Note
Events bool - Enable notifications for note events.
- Notify
Only boolBroken Pipelines - Send notifications for broken pipelines.
- Notify
Only boolDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - Pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- Pipeline
Events bool - Enable notifications for pipeline events.
- Project string
- ID of the project you want to activate integration on.
- Push
Channel string - The name of the channel to receive push events notifications.
- Push
Events bool - Enable notifications for push events.
- Tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- Tag
Push boolEvents - Enable notifications for tag push events.
- Username string
- Username to use.
- Webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- Wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- Wiki
Page boolEvents - Enable notifications for wiki page events.
- branches
To StringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue StringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues BooleanEvents - Enable notifications for confidential issues events.
- confidential
Note StringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note BooleanEvents - Enable notifications for confidential note events.
- issue
Channel String - The name of the channel to receive issue events notifications.
- issues
Events Boolean - Enable notifications for issues events.
- job
Events Boolean - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- merge
Request StringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests BooleanEvents - Enable notifications for merge requests events.
- note
Channel String - The name of the channel to receive note events notifications.
- note
Events Boolean - Enable notifications for note events.
- notify
Only BooleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only BooleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel String - The name of the channel to receive pipeline events notifications.
- pipeline
Events Boolean - Enable notifications for pipeline events.
- project String
- ID of the project you want to activate integration on.
- push
Channel String - The name of the channel to receive push events notifications.
- push
Events Boolean - Enable notifications for push events.
- tag
Push StringChannel - The name of the channel to receive tag push events notifications.
- tag
Push BooleanEvents - Enable notifications for tag push events.
- username String
- Username to use.
- webhook String
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- wiki
Page StringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page BooleanEvents - Enable notifications for wiki page events.
- branches
To stringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue stringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues booleanEvents - Enable notifications for confidential issues events.
- confidential
Note stringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note booleanEvents - Enable notifications for confidential note events.
- issue
Channel string - The name of the channel to receive issue events notifications.
- issues
Events boolean - Enable notifications for issues events.
- job
Events boolean - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- merge
Request stringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests booleanEvents - Enable notifications for merge requests events.
- note
Channel string - The name of the channel to receive note events notifications.
- note
Events boolean - Enable notifications for note events.
- notify
Only booleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only booleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel string - The name of the channel to receive pipeline events notifications.
- pipeline
Events boolean - Enable notifications for pipeline events.
- project string
- ID of the project you want to activate integration on.
- push
Channel string - The name of the channel to receive push events notifications.
- push
Events boolean - Enable notifications for push events.
- tag
Push stringChannel - The name of the channel to receive tag push events notifications.
- tag
Push booleanEvents - Enable notifications for tag push events.
- username string
- Username to use.
- webhook string
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- wiki
Page stringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page booleanEvents - Enable notifications for wiki page events.
- branches_
to_ strbe_ notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential_
issue_ strchannel - The name of the channel to receive confidential issue events notifications.
- confidential_
issues_ boolevents - Enable notifications for confidential issues events.
- confidential_
note_ strchannel - The name of the channel to receive confidential note events notifications.
- confidential_
note_ boolevents - Enable notifications for confidential note events.
- issue_
channel str - The name of the channel to receive issue events notifications.
- issues_
events bool - Enable notifications for issues events.
- job_
events bool - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- merge_
request_ strchannel - The name of the channel to receive merge request events notifications.
- merge_
requests_ boolevents - Enable notifications for merge requests events.
- note_
channel str - The name of the channel to receive note events notifications.
- note_
events bool - Enable notifications for note events.
- notify_
only_ boolbroken_ pipelines - Send notifications for broken pipelines.
- notify_
only_ booldefault_ branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline_
channel str - The name of the channel to receive pipeline events notifications.
- pipeline_
events bool - Enable notifications for pipeline events.
- project str
- ID of the project you want to activate integration on.
- push_
channel str - The name of the channel to receive push events notifications.
- push_
events bool - Enable notifications for push events.
- tag_
push_ strchannel - The name of the channel to receive tag push events notifications.
- tag_
push_ boolevents - Enable notifications for tag push events.
- username str
- Username to use.
- webhook str
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- wiki_
page_ strchannel - The name of the channel to receive wiki page events notifications.
- wiki_
page_ boolevents - Enable notifications for wiki page events.
- branches
To StringBe Notified - Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
- confidential
Issue StringChannel - The name of the channel to receive confidential issue events notifications.
- confidential
Issues BooleanEvents - Enable notifications for confidential issues events.
- confidential
Note StringChannel - The name of the channel to receive confidential note events notifications.
- confidential
Note BooleanEvents - Enable notifications for confidential note events.
- issue
Channel String - The name of the channel to receive issue events notifications.
- issues
Events Boolean - Enable notifications for issues events.
- job
Events Boolean - Enable notifications for job events. ATTENTION: This attribute is currently not being submitted to the GitLab API, due to https://github.com/xanzy/go-gitlab/issues/1354.
- merge
Request StringChannel - The name of the channel to receive merge request events notifications.
- merge
Requests BooleanEvents - Enable notifications for merge requests events.
- note
Channel String - The name of the channel to receive note events notifications.
- note
Events Boolean - Enable notifications for note events.
- notify
Only BooleanBroken Pipelines - Send notifications for broken pipelines.
- notify
Only BooleanDefault Branch - This parameter has been replaced with
branches_to_be_notified
. - pipeline
Channel String - The name of the channel to receive pipeline events notifications.
- pipeline
Events Boolean - Enable notifications for pipeline events.
- project String
- ID of the project you want to activate integration on.
- push
Channel String - The name of the channel to receive push events notifications.
- push
Events Boolean - Enable notifications for push events.
- tag
Push StringChannel - The name of the channel to receive tag push events notifications.
- tag
Push BooleanEvents - Enable notifications for tag push events.
- username String
- Username to use.
- webhook String
- Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
- wiki
Page StringChannel - The name of the channel to receive wiki page events notifications.
- wiki
Page BooleanEvents - Enable notifications for wiki page events.
Import
You can import a gitlab_service_slack.slack state using the project ID, e.g.
$ pulumi import gitlab:index/serviceSlack:ServiceSlack email 1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.