sysdig.MonitorNotificationChannelSlack
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample_slack = new sysdig.MonitorNotificationChannelSlack("sample-slack", {
channel: "#sysdig",
enabled: true,
isPrivateChannel: false,
notifyWhenOk: false,
notifyWhenResolved: false,
url: "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX",
});
import pulumi
import pulumi_sysdig as sysdig
sample_slack = sysdig.MonitorNotificationChannelSlack("sample-slack",
channel="#sysdig",
enabled=True,
is_private_channel=False,
notify_when_ok=False,
notify_when_resolved=False,
url="https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sysdig.NewMonitorNotificationChannelSlack(ctx, "sample-slack", &sysdig.MonitorNotificationChannelSlackArgs{
Channel: pulumi.String("#sysdig"),
Enabled: pulumi.Bool(true),
IsPrivateChannel: pulumi.Bool(false),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
Url: pulumi.String("https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() =>
{
var sample_slack = new Sysdig.MonitorNotificationChannelSlack("sample-slack", new()
{
Channel = "#sysdig",
Enabled = true,
IsPrivateChannel = false,
NotifyWhenOk = false,
NotifyWhenResolved = false,
Url = "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorNotificationChannelSlack;
import com.pulumi.sysdig.MonitorNotificationChannelSlackArgs;
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 sample_slack = new MonitorNotificationChannelSlack("sample-slack", MonitorNotificationChannelSlackArgs.builder()
.channel("#sysdig")
.enabled(true)
.isPrivateChannel(false)
.notifyWhenOk(false)
.notifyWhenResolved(false)
.url("https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX")
.build());
}
}
resources:
sample-slack:
type: sysdig:MonitorNotificationChannelSlack
properties:
channel: '#sysdig'
enabled: true
isPrivateChannel: false
notifyWhenOk: false
notifyWhenResolved: false
url: https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX
Create MonitorNotificationChannelSlack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorNotificationChannelSlack(name: string, args: MonitorNotificationChannelSlackArgs, opts?: CustomResourceOptions);
@overload
def MonitorNotificationChannelSlack(resource_name: str,
args: MonitorNotificationChannelSlackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorNotificationChannelSlack(resource_name: str,
opts: Optional[ResourceOptions] = None,
channel: Optional[str] = None,
url: Optional[str] = None,
send_test_notification: Optional[bool] = None,
show_section_capturing_information: Optional[bool] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
private_channel_url: Optional[str] = None,
is_private_channel: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
show_section_alert_details: Optional[bool] = None,
monitor_notification_channel_slack_id: Optional[str] = None,
show_section_dashboard_links: Optional[bool] = None,
show_section_event_details: Optional[bool] = None,
show_section_notification_chart: Optional[bool] = None,
show_section_runbook_links: Optional[bool] = None,
show_section_user_defined_content: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelSlackTimeoutsArgs] = None,
enabled: Optional[bool] = None)
func NewMonitorNotificationChannelSlack(ctx *Context, name string, args MonitorNotificationChannelSlackArgs, opts ...ResourceOption) (*MonitorNotificationChannelSlack, error)
public MonitorNotificationChannelSlack(string name, MonitorNotificationChannelSlackArgs args, CustomResourceOptions? opts = null)
public MonitorNotificationChannelSlack(String name, MonitorNotificationChannelSlackArgs args)
public MonitorNotificationChannelSlack(String name, MonitorNotificationChannelSlackArgs args, CustomResourceOptions options)
type: sysdig:MonitorNotificationChannelSlack
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 MonitorNotificationChannelSlackArgs
- 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 MonitorNotificationChannelSlackArgs
- 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 MonitorNotificationChannelSlackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorNotificationChannelSlackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorNotificationChannelSlackArgs
- 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 monitorNotificationChannelSlackResource = new Sysdig.MonitorNotificationChannelSlack("monitorNotificationChannelSlackResource", new()
{
Channel = "string",
Url = "string",
SendTestNotification = false,
ShowSectionCapturingInformation = false,
Name = "string",
NotifyWhenOk = false,
NotifyWhenResolved = false,
PrivateChannelUrl = "string",
IsPrivateChannel = false,
ShareWithCurrentTeam = false,
ShowSectionAlertDetails = false,
MonitorNotificationChannelSlackId = "string",
ShowSectionDashboardLinks = false,
ShowSectionEventDetails = false,
ShowSectionNotificationChart = false,
ShowSectionRunbookLinks = false,
ShowSectionUserDefinedContent = false,
Timeouts = new Sysdig.Inputs.MonitorNotificationChannelSlackTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
Enabled = false,
});
example, err := sysdig.NewMonitorNotificationChannelSlack(ctx, "monitorNotificationChannelSlackResource", &sysdig.MonitorNotificationChannelSlackArgs{
Channel: pulumi.String("string"),
Url: pulumi.String("string"),
SendTestNotification: pulumi.Bool(false),
ShowSectionCapturingInformation: pulumi.Bool(false),
Name: pulumi.String("string"),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
PrivateChannelUrl: pulumi.String("string"),
IsPrivateChannel: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(false),
ShowSectionAlertDetails: pulumi.Bool(false),
MonitorNotificationChannelSlackId: pulumi.String("string"),
ShowSectionDashboardLinks: pulumi.Bool(false),
ShowSectionEventDetails: pulumi.Bool(false),
ShowSectionNotificationChart: pulumi.Bool(false),
ShowSectionRunbookLinks: pulumi.Bool(false),
ShowSectionUserDefinedContent: pulumi.Bool(false),
Timeouts: &sysdig.MonitorNotificationChannelSlackTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
})
var monitorNotificationChannelSlackResource = new MonitorNotificationChannelSlack("monitorNotificationChannelSlackResource", MonitorNotificationChannelSlackArgs.builder()
.channel("string")
.url("string")
.sendTestNotification(false)
.showSectionCapturingInformation(false)
.name("string")
.notifyWhenOk(false)
.notifyWhenResolved(false)
.privateChannelUrl("string")
.isPrivateChannel(false)
.shareWithCurrentTeam(false)
.showSectionAlertDetails(false)
.monitorNotificationChannelSlackId("string")
.showSectionDashboardLinks(false)
.showSectionEventDetails(false)
.showSectionNotificationChart(false)
.showSectionRunbookLinks(false)
.showSectionUserDefinedContent(false)
.timeouts(MonitorNotificationChannelSlackTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.enabled(false)
.build());
monitor_notification_channel_slack_resource = sysdig.MonitorNotificationChannelSlack("monitorNotificationChannelSlackResource",
channel="string",
url="string",
send_test_notification=False,
show_section_capturing_information=False,
name="string",
notify_when_ok=False,
notify_when_resolved=False,
private_channel_url="string",
is_private_channel=False,
share_with_current_team=False,
show_section_alert_details=False,
monitor_notification_channel_slack_id="string",
show_section_dashboard_links=False,
show_section_event_details=False,
show_section_notification_chart=False,
show_section_runbook_links=False,
show_section_user_defined_content=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
enabled=False)
const monitorNotificationChannelSlackResource = new sysdig.MonitorNotificationChannelSlack("monitorNotificationChannelSlackResource", {
channel: "string",
url: "string",
sendTestNotification: false,
showSectionCapturingInformation: false,
name: "string",
notifyWhenOk: false,
notifyWhenResolved: false,
privateChannelUrl: "string",
isPrivateChannel: false,
shareWithCurrentTeam: false,
showSectionAlertDetails: false,
monitorNotificationChannelSlackId: "string",
showSectionDashboardLinks: false,
showSectionEventDetails: false,
showSectionNotificationChart: false,
showSectionRunbookLinks: false,
showSectionUserDefinedContent: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
enabled: false,
});
type: sysdig:MonitorNotificationChannelSlack
properties:
channel: string
enabled: false
isPrivateChannel: false
monitorNotificationChannelSlackId: string
name: string
notifyWhenOk: false
notifyWhenResolved: false
privateChannelUrl: string
sendTestNotification: false
shareWithCurrentTeam: false
showSectionAlertDetails: false
showSectionCapturingInformation: false
showSectionDashboardLinks: false
showSectionEventDetails: false
showSectionNotificationChart: false
showSectionRunbookLinks: false
showSectionUserDefinedContent: false
timeouts:
create: string
delete: string
read: string
update: string
url: string
MonitorNotificationChannelSlack 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 MonitorNotificationChannelSlack resource accepts the following input properties:
- Channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- Url string
- URL of the Slack webhook.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Is
Private boolChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- Monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Show
Section boolAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- Show
Section boolCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- Show
Section boolDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- Show
Section boolEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- Show
Section boolNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- Show
Section boolRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- Show
Section boolUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- Timeouts
Monitor
Notification Channel Slack Timeouts
- Channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- Url string
- URL of the Slack webhook.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Is
Private boolChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- Monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Show
Section boolAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- Show
Section boolCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- Show
Section boolDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- Show
Section boolEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- Show
Section boolNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- Show
Section boolRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- Show
Section boolUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- Timeouts
Monitor
Notification Channel Slack Timeouts Args
- channel String
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- url String
- URL of the Slack webhook.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private BooleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification StringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel StringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section BooleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section BooleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section BooleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section BooleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section BooleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section BooleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section BooleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts
- channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- url string
- URL of the Slack webhook.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private booleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name string
- The name of the Notification Channel. Must be unique.
- notify
When booleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When booleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section booleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section booleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section booleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section booleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section booleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section booleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section booleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts
- channel str
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- url str
- URL of the Slack webhook.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- is_
private_ boolchannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor_
notification_ strchannel_ slack_ id - (Computed) The ID of the Notification Channel.
- name str
- The name of the Notification Channel. Must be unique.
- notify_
when_ boolok - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify_
when_ boolresolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private_
channel_ strurl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show_
section_ boolalert_ details - Whether to include the alert details section in the Slack messages. Default: true.
- show_
section_ boolcapturing_ information - Whether to include the capturing information section in the Slack messages. Default: true.
- show_
section_ booldashboard_ links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show_
section_ boolevent_ details - Whether to include the event details section in the Slack messages. Default: true.
- show_
section_ boolnotification_ chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show_
section_ boolrunbook_ links - Whether to include the runbook links section in the Slack messages. Default: true.
- show_
section_ booluser_ defined_ content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts Args
- channel String
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- url String
- URL of the Slack webhook.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private BooleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification StringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel StringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section BooleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section BooleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section BooleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section BooleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section BooleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section BooleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section BooleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorNotificationChannelSlack resource produces the following output properties:
Look up Existing MonitorNotificationChannelSlack Resource
Get an existing MonitorNotificationChannelSlack 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?: MonitorNotificationChannelSlackState, opts?: CustomResourceOptions): MonitorNotificationChannelSlack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
channel: Optional[str] = None,
enabled: Optional[bool] = None,
is_private_channel: Optional[bool] = None,
monitor_notification_channel_slack_id: Optional[str] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
private_channel_url: Optional[str] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
show_section_alert_details: Optional[bool] = None,
show_section_capturing_information: Optional[bool] = None,
show_section_dashboard_links: Optional[bool] = None,
show_section_event_details: Optional[bool] = None,
show_section_notification_chart: Optional[bool] = None,
show_section_runbook_links: Optional[bool] = None,
show_section_user_defined_content: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelSlackTimeoutsArgs] = None,
url: Optional[str] = None,
version: Optional[float] = None) -> MonitorNotificationChannelSlack
func GetMonitorNotificationChannelSlack(ctx *Context, name string, id IDInput, state *MonitorNotificationChannelSlackState, opts ...ResourceOption) (*MonitorNotificationChannelSlack, error)
public static MonitorNotificationChannelSlack Get(string name, Input<string> id, MonitorNotificationChannelSlackState? state, CustomResourceOptions? opts = null)
public static MonitorNotificationChannelSlack get(String name, Output<String> id, MonitorNotificationChannelSlackState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorNotificationChannelSlack get: id: ${id}
- 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.
- Channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Is
Private boolChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- Monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Show
Section boolAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- Show
Section boolCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- Show
Section boolDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- Show
Section boolEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- Show
Section boolNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- Show
Section boolRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- Show
Section boolUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- Timeouts
Monitor
Notification Channel Slack Timeouts - Url string
- URL of the Slack webhook.
- Version double
- (Computed) The current version of the Notification Channel.
- Channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Is
Private boolChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- Monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Show
Section boolAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- Show
Section boolCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- Show
Section boolDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- Show
Section boolEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- Show
Section boolNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- Show
Section boolRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- Show
Section boolUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- Timeouts
Monitor
Notification Channel Slack Timeouts Args - Url string
- URL of the Slack webhook.
- Version float64
- (Computed) The current version of the Notification Channel.
- channel String
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private BooleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification StringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel StringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section BooleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section BooleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section BooleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section BooleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section BooleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section BooleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section BooleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts - url String
- URL of the Slack webhook.
- version Double
- (Computed) The current version of the Notification Channel.
- channel string
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private booleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification stringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name string
- The name of the Notification Channel. Must be unique.
- notify
When booleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When booleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel stringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section booleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section booleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section booleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section booleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section booleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section booleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section booleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts - url string
- URL of the Slack webhook.
- version number
- (Computed) The current version of the Notification Channel.
- channel str
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- is_
private_ boolchannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor_
notification_ strchannel_ slack_ id - (Computed) The ID of the Notification Channel.
- name str
- The name of the Notification Channel. Must be unique.
- notify_
when_ boolok - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify_
when_ boolresolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private_
channel_ strurl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show_
section_ boolalert_ details - Whether to include the alert details section in the Slack messages. Default: true.
- show_
section_ boolcapturing_ information - Whether to include the capturing information section in the Slack messages. Default: true.
- show_
section_ booldashboard_ links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show_
section_ boolevent_ details - Whether to include the event details section in the Slack messages. Default: true.
- show_
section_ boolnotification_ chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show_
section_ boolrunbook_ links - Whether to include the runbook links section in the Slack messages. Default: true.
- show_
section_ booluser_ defined_ content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts
Monitor
Notification Channel Slack Timeouts Args - url str
- URL of the Slack webhook.
- version float
- (Computed) The current version of the Notification Channel.
- channel String
- Name of the Slack channel. NOTE: If the channel is private this field cannot be changed after creation.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- is
Private BooleanChannel - If true, the Slack channel name will be visible only to the user that created this notification channel. Default: false.
- monitor
Notification StringChannel Slack Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- private
Channel StringUrl - The channel URL, i.e. the link that is referencing the channel (not to be confused with the webhook url). Can be set only if the channel is private.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- (Optional) If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - show
Section BooleanAlert Details - Whether to include the alert details section in the Slack messages. Default: true.
- show
Section BooleanCapturing Information - Whether to include the capturing information section in the Slack messages. Default: true.
- show
Section BooleanDashboard Links - Whether to include the dashboard links section in the Slack messages. Default: true.
- show
Section BooleanEvent Details - Whether to include the event details section in the Slack messages. Default: true.
- show
Section BooleanNotification Chart - Whether to include the notification chart section in the Slack messages. Default: true.
- show
Section BooleanRunbook Links - Whether to include the runbook links section in the Slack messages. Default: true.
- show
Section BooleanUser Defined Content - Whether to include the user defined section in the Slack messages. Default: true.
- timeouts Property Map
- url String
- URL of the Slack webhook.
- version Number
- (Computed) The current version of the Notification Channel.
Supporting Types
MonitorNotificationChannelSlackTimeouts, MonitorNotificationChannelSlackTimeoutsArgs
Import
Slack notification channels for Monitor can be imported using the ID, e.g.
$ pulumi import sysdig:index/monitorNotificationChannelSlack:MonitorNotificationChannelSlack example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.