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",
});
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesomeProject",
description="My awesome project.",
visibility_level="public")
slack = gitlab.ServiceSlack("slack",
project=awesome_project.id,
push_channel="push_chan",
push_events=True,
username="myuser",
webhook="https://webhook.com")import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
description: "My awesome project.",
visibilityLevel: "public",
});
const slack = new gitlab.ServiceSlack("slack", {
project: awesomeProject.id,
pushChannel: "push_chan",
pushEvents: true,
username: "myuser",
webhook: "https://webhook.com",
});Create a ServiceSlack Resource
new ServiceSlack(name: string, args: ServiceSlackArgs, opts?: CustomResourceOptions);def ServiceSlack(resource_name, opts=None, branches_to_be_notified=None, confidential_issue_channel=None, confidential_issues_events=None, confidential_note_events=None, issue_channel=None, issues_events=None, merge_request_channel=None, merge_requests_events=None, note_channel=None, note_events=None, notify_only_broken_pipelines=None, notify_only_default_branch=None, pipeline_channel=None, pipeline_events=None, project=None, push_channel=None, push_events=None, tag_push_channel=None, tag_push_events=None, username=None, webhook=None, wiki_page_channel=None, wiki_page_events=None, __props__=None);func NewServiceSlack(ctx *Context, name string, args ServiceSlackArgs, opts ...ResourceOption) (*ServiceSlack, error)public ServiceSlack(string name, ServiceSlackArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
ServiceSlack Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServiceSlack resource accepts the following input properties:
- Project string
ID of the project you want to activate integration on.
- Webhook string
Webhook URL (ex.: https://hooks.slack.com/services/...)
- Branches
To stringBe Notified Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.
- 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 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- Branches
To stringBe Notified Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.
- 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 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- branches
To stringBe Notified Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.
- 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 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- branches_
to_ strbe_ notified Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.
- 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_ 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 DEPRECATED: 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.
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
Look up an 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): ServiceSlackstatic get(resource_name, id, opts=None, branches_to_be_notified=None, confidential_issue_channel=None, confidential_issues_events=None, confidential_note_events=None, issue_channel=None, issues_events=None, job_events=None, merge_request_channel=None, merge_requests_events=None, note_channel=None, note_events=None, notify_only_broken_pipelines=None, notify_only_default_branch=None, pipeline_channel=None, pipeline_events=None, project=None, push_channel=None, push_events=None, tag_push_channel=None, tag_push_events=None, username=None, webhook=None, wiki_page_channel=None, wiki_page_events=None, __props__=None);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)- 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.
The following state arguments are supported:
- Branches
To stringBe Notified Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “default_and_protected”.
- 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 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 - 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- 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 “default_and_protected”.
- 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 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 - 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- 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 “default_and_protected”.
- 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 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 - 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- 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 “default_and_protected”.
- 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_ 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 - 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 DEPRECATED: 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 (ex.: https://hooks.slack.com/services/...)
- wiki_
page_ strchannel The name of the channel to receive wiki page events notifications.
- wiki_
page_ boolevents Enable notifications for wiki page events.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.