1. Packages
  2. GitLab
  3. API Docs
  4. ServiceSlack
GitLab v8.1.0 published on Friday, Jun 21, 2024 by Pulumi

gitlab.ServiceSlack

Explore with Pulumi AI

gitlab logo
GitLab v8.1.0 published on Friday, Jun 21, 2024 by Pulumi

    The gitlab.ServiceSlack resource allows to manage the lifecycle of a project integration with Slack.

    This resource is deprecated. use gitlab.IntegrationSlackinstead!

    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

    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.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    NotifyOnlyDefaultBranch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    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.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    NotifyOnlyDefaultBranch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    Enable notifications for tag push events.
    Username string
    Username to use.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    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.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch Boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    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.
    branchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents boolean
    Enable notifications for confidential note events.
    issueChannel string
    The name of the channel to receive issue events notifications.
    issuesEvents boolean
    Enable notifications for issues events.
    mergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents boolean
    Enable notifications for merge requests events.
    noteChannel string
    The name of the channel to receive note events notifications.
    noteEvents boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel string
    The name of the channel to receive pipeline events notifications.
    pipelineEvents boolean
    Enable notifications for pipeline events.
    pushChannel string
    The name of the channel to receive push events notifications.
    pushEvents boolean
    Enable notifications for push events.
    tagPushChannel string
    The name of the channel to receive tag push events notifications.
    tagPushEvents boolean
    Enable notifications for tag push events.
    username string
    Username to use.
    wikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents boolean
    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_be_notified str
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidential_issue_channel str
    The name of the channel to receive confidential issue events notifications.
    confidential_issues_events bool
    Enable notifications for confidential issues events.
    confidential_note_channel str
    The name of the channel to receive confidential note events notifications.
    confidential_note_events bool
    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_channel str
    The name of the channel to receive merge request events notifications.
    merge_requests_events bool
    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_broken_pipelines bool
    Send notifications for broken pipelines.
    notify_only_default_branch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    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_channel str
    The name of the channel to receive tag push events notifications.
    tag_push_events bool
    Enable notifications for tag push events.
    username str
    Username to use.
    wiki_page_channel str
    The name of the channel to receive wiki page events notifications.
    wiki_page_events bool
    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.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch Boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    Enable notifications for tag push events.
    username String
    Username to use.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    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 string
    The provider-assigned unique ID for this managed resource.
    JobEvents 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobEvents 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.
    id String
    The provider-assigned unique ID for this managed resource.
    jobEvents 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.
    id string
    The provider-assigned unique ID for this managed resource.
    jobEvents 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.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    jobEvents 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.

    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.
    The following state arguments are supported:
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    JobEvents 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.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    NotifyOnlyDefaultBranch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    Project string
    ID of the project you want to activate integration on.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    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.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    BranchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    ConfidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    ConfidentialIssuesEvents bool
    Enable notifications for confidential issues events.
    ConfidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    ConfidentialNoteEvents bool
    Enable notifications for confidential note events.
    IssueChannel string
    The name of the channel to receive issue events notifications.
    IssuesEvents bool
    Enable notifications for issues events.
    JobEvents 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.
    MergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    MergeRequestsEvents bool
    Enable notifications for merge requests events.
    NoteChannel string
    The name of the channel to receive note events notifications.
    NoteEvents bool
    Enable notifications for note events.
    NotifyOnlyBrokenPipelines bool
    Send notifications for broken pipelines.
    NotifyOnlyDefaultBranch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    PipelineChannel string
    The name of the channel to receive pipeline events notifications.
    PipelineEvents bool
    Enable notifications for pipeline events.
    Project string
    ID of the project you want to activate integration on.
    PushChannel string
    The name of the channel to receive push events notifications.
    PushEvents bool
    Enable notifications for push events.
    TagPushChannel string
    The name of the channel to receive tag push events notifications.
    TagPushEvents bool
    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.
    WikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    WikiPageEvents bool
    Enable notifications for wiki page events.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    jobEvents 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.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch Boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    project String
    ID of the project you want to activate integration on.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    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.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    Enable notifications for wiki page events.
    branchesToBeNotified string
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel string
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel string
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents boolean
    Enable notifications for confidential note events.
    issueChannel string
    The name of the channel to receive issue events notifications.
    issuesEvents boolean
    Enable notifications for issues events.
    jobEvents 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.
    mergeRequestChannel string
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents boolean
    Enable notifications for merge requests events.
    noteChannel string
    The name of the channel to receive note events notifications.
    noteEvents boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel string
    The name of the channel to receive pipeline events notifications.
    pipelineEvents boolean
    Enable notifications for pipeline events.
    project string
    ID of the project you want to activate integration on.
    pushChannel string
    The name of the channel to receive push events notifications.
    pushEvents boolean
    Enable notifications for push events.
    tagPushChannel string
    The name of the channel to receive tag push events notifications.
    tagPushEvents boolean
    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.
    wikiPageChannel string
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents boolean
    Enable notifications for wiki page events.
    branches_to_be_notified str
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidential_issue_channel str
    The name of the channel to receive confidential issue events notifications.
    confidential_issues_events bool
    Enable notifications for confidential issues events.
    confidential_note_channel str
    The name of the channel to receive confidential note events notifications.
    confidential_note_events bool
    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_channel str
    The name of the channel to receive merge request events notifications.
    merge_requests_events bool
    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_broken_pipelines bool
    Send notifications for broken pipelines.
    notify_only_default_branch bool
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    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_channel str
    The name of the channel to receive tag push events notifications.
    tag_push_events bool
    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_channel str
    The name of the channel to receive wiki page events notifications.
    wiki_page_events bool
    Enable notifications for wiki page events.
    branchesToBeNotified String
    Branches to send notifications for. Valid options are "all", "default", "protected", and "defaultandprotected".
    confidentialIssueChannel String
    The name of the channel to receive confidential issue events notifications.
    confidentialIssuesEvents Boolean
    Enable notifications for confidential issues events.
    confidentialNoteChannel String
    The name of the channel to receive confidential note events notifications.
    confidentialNoteEvents Boolean
    Enable notifications for confidential note events.
    issueChannel String
    The name of the channel to receive issue events notifications.
    issuesEvents Boolean
    Enable notifications for issues events.
    jobEvents 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.
    mergeRequestChannel String
    The name of the channel to receive merge request events notifications.
    mergeRequestsEvents Boolean
    Enable notifications for merge requests events.
    noteChannel String
    The name of the channel to receive note events notifications.
    noteEvents Boolean
    Enable notifications for note events.
    notifyOnlyBrokenPipelines Boolean
    Send notifications for broken pipelines.
    notifyOnlyDefaultBranch Boolean
    This parameter has been replaced with branches_to_be_notified.

    Deprecated: use 'branches_to_be_notified' argument instead

    pipelineChannel String
    The name of the channel to receive pipeline events notifications.
    pipelineEvents Boolean
    Enable notifications for pipeline events.
    project String
    ID of the project you want to activate integration on.
    pushChannel String
    The name of the channel to receive push events notifications.
    pushEvents Boolean
    Enable notifications for push events.
    tagPushChannel String
    The name of the channel to receive tag push events notifications.
    tagPushEvents Boolean
    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.
    wikiPageChannel String
    The name of the channel to receive wiki page events notifications.
    wikiPageEvents Boolean
    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.
    gitlab logo
    GitLab v8.1.0 published on Friday, Jun 21, 2024 by Pulumi