sysdig.MonitorNotificationChannelGoogleChat
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample_gchat = new sysdig.MonitorNotificationChannelGoogleChat("sample-gchat", {
enabled: true,
notifyWhenOk: false,
notifyWhenResolved: false,
shareWithCurrentTeam: true,
url: "https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX",
});
import pulumi
import pulumi_sysdig as sysdig
sample_gchat = sysdig.MonitorNotificationChannelGoogleChat("sample-gchat",
enabled=True,
notify_when_ok=False,
notify_when_resolved=False,
share_with_current_team=True,
url="https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX")
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.NewMonitorNotificationChannelGoogleChat(ctx, "sample-gchat", &sysdig.MonitorNotificationChannelGoogleChatArgs{
Enabled: pulumi.Bool(true),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(true),
Url: pulumi.String("https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX"),
})
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_gchat = new Sysdig.MonitorNotificationChannelGoogleChat("sample-gchat", new()
{
Enabled = true,
NotifyWhenOk = false,
NotifyWhenResolved = false,
ShareWithCurrentTeam = true,
Url = "https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorNotificationChannelGoogleChat;
import com.pulumi.sysdig.MonitorNotificationChannelGoogleChatArgs;
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_gchat = new MonitorNotificationChannelGoogleChat("sample-gchat", MonitorNotificationChannelGoogleChatArgs.builder()
.enabled(true)
.notifyWhenOk(false)
.notifyWhenResolved(false)
.shareWithCurrentTeam(true)
.url("https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX")
.build());
}
}
resources:
sample-gchat:
type: sysdig:MonitorNotificationChannelGoogleChat
properties:
enabled: true
notifyWhenOk: false
notifyWhenResolved: false
shareWithCurrentTeam: true
url: https://chat.googleapis.com/v1/spaces/XXXXXX/messages?key=XXXXXXXXXXXXXXXXX
Create MonitorNotificationChannelGoogleChat Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorNotificationChannelGoogleChat(name: string, args: MonitorNotificationChannelGoogleChatArgs, opts?: CustomResourceOptions);
@overload
def MonitorNotificationChannelGoogleChat(resource_name: str,
args: MonitorNotificationChannelGoogleChatArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorNotificationChannelGoogleChat(resource_name: str,
opts: Optional[ResourceOptions] = None,
url: Optional[str] = None,
enabled: Optional[bool] = None,
monitor_notification_channel_google_chat_id: Optional[str] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelGoogleChatTimeoutsArgs] = None)
func NewMonitorNotificationChannelGoogleChat(ctx *Context, name string, args MonitorNotificationChannelGoogleChatArgs, opts ...ResourceOption) (*MonitorNotificationChannelGoogleChat, error)
public MonitorNotificationChannelGoogleChat(string name, MonitorNotificationChannelGoogleChatArgs args, CustomResourceOptions? opts = null)
public MonitorNotificationChannelGoogleChat(String name, MonitorNotificationChannelGoogleChatArgs args)
public MonitorNotificationChannelGoogleChat(String name, MonitorNotificationChannelGoogleChatArgs args, CustomResourceOptions options)
type: sysdig:MonitorNotificationChannelGoogleChat
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 MonitorNotificationChannelGoogleChatArgs
- 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 MonitorNotificationChannelGoogleChatArgs
- 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 MonitorNotificationChannelGoogleChatArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorNotificationChannelGoogleChatArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorNotificationChannelGoogleChatArgs
- 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 monitorNotificationChannelGoogleChatResource = new Sysdig.MonitorNotificationChannelGoogleChat("monitorNotificationChannelGoogleChatResource", new()
{
Url = "string",
Enabled = false,
MonitorNotificationChannelGoogleChatId = "string",
Name = "string",
NotifyWhenOk = false,
NotifyWhenResolved = false,
SendTestNotification = false,
ShareWithCurrentTeam = false,
Timeouts = new Sysdig.Inputs.MonitorNotificationChannelGoogleChatTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewMonitorNotificationChannelGoogleChat(ctx, "monitorNotificationChannelGoogleChatResource", &sysdig.MonitorNotificationChannelGoogleChatArgs{
Url: pulumi.String("string"),
Enabled: pulumi.Bool(false),
MonitorNotificationChannelGoogleChatId: pulumi.String("string"),
Name: pulumi.String("string"),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
SendTestNotification: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(false),
Timeouts: &sysdig.MonitorNotificationChannelGoogleChatTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var monitorNotificationChannelGoogleChatResource = new MonitorNotificationChannelGoogleChat("monitorNotificationChannelGoogleChatResource", MonitorNotificationChannelGoogleChatArgs.builder()
.url("string")
.enabled(false)
.monitorNotificationChannelGoogleChatId("string")
.name("string")
.notifyWhenOk(false)
.notifyWhenResolved(false)
.sendTestNotification(false)
.shareWithCurrentTeam(false)
.timeouts(MonitorNotificationChannelGoogleChatTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
monitor_notification_channel_google_chat_resource = sysdig.MonitorNotificationChannelGoogleChat("monitorNotificationChannelGoogleChatResource",
url="string",
enabled=False,
monitor_notification_channel_google_chat_id="string",
name="string",
notify_when_ok=False,
notify_when_resolved=False,
send_test_notification=False,
share_with_current_team=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const monitorNotificationChannelGoogleChatResource = new sysdig.MonitorNotificationChannelGoogleChat("monitorNotificationChannelGoogleChatResource", {
url: "string",
enabled: false,
monitorNotificationChannelGoogleChatId: "string",
name: "string",
notifyWhenOk: false,
notifyWhenResolved: false,
sendTestNotification: false,
shareWithCurrentTeam: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:MonitorNotificationChannelGoogleChat
properties:
enabled: false
monitorNotificationChannelGoogleChatId: string
name: string
notifyWhenOk: false
notifyWhenResolved: false
sendTestNotification: false
shareWithCurrentTeam: false
timeouts:
create: string
delete: string
read: string
update: string
url: string
MonitorNotificationChannelGoogleChat 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 MonitorNotificationChannelGoogleChat resource accepts the following input properties:
- Url string
- URL of the Google Chat webhook.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Google Chat 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.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - Timeouts
Monitor
Notification Channel Google Chat Timeouts
- Url string
- URL of the Google Chat webhook.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Google Chat 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.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - Timeouts
Monitor
Notification Channel Google Chat Timeouts Args
- url String
- URL of the Google Chat webhook.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Google Chat 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.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts
- url string
- URL of the Google Chat webhook.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification stringChannel Google Chat 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.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts
- url str
- URL of the Google Chat webhook.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- monitor_
notification_ strchannel_ google_ chat_ 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.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts Args
- url String
- URL of the Google Chat webhook.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Google Chat 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.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- 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
. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorNotificationChannelGoogleChat resource produces the following output properties:
Look up Existing MonitorNotificationChannelGoogleChat Resource
Get an existing MonitorNotificationChannelGoogleChat 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?: MonitorNotificationChannelGoogleChatState, opts?: CustomResourceOptions): MonitorNotificationChannelGoogleChat
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
monitor_notification_channel_google_chat_id: Optional[str] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelGoogleChatTimeoutsArgs] = None,
url: Optional[str] = None,
version: Optional[float] = None) -> MonitorNotificationChannelGoogleChat
func GetMonitorNotificationChannelGoogleChat(ctx *Context, name string, id IDInput, state *MonitorNotificationChannelGoogleChatState, opts ...ResourceOption) (*MonitorNotificationChannelGoogleChat, error)
public static MonitorNotificationChannelGoogleChat Get(string name, Input<string> id, MonitorNotificationChannelGoogleChatState? state, CustomResourceOptions? opts = null)
public static MonitorNotificationChannelGoogleChat get(String name, Output<String> id, MonitorNotificationChannelGoogleChatState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorNotificationChannelGoogleChat 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.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Google Chat 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.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - Timeouts
Monitor
Notification Channel Google Chat Timeouts - Url string
- URL of the Google Chat webhook.
- Version double
- (Computed) The current version of the Notification Channel.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Google Chat 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.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - Timeouts
Monitor
Notification Channel Google Chat Timeouts Args - Url string
- URL of the Google Chat webhook.
- Version float64
- (Computed) The current version of the Notification Channel.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Google Chat 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.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts - url String
- URL of the Google Chat webhook.
- version Double
- (Computed) The current version of the Notification Channel.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification stringChannel Google Chat 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.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts - url string
- URL of the Google Chat webhook.
- version number
- (Computed) The current version of the Notification Channel.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- monitor_
notification_ strchannel_ google_ chat_ 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.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- 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
. - timeouts
Monitor
Notification Channel Google Chat Timeouts Args - url str
- URL of the Google Chat webhook.
- version float
- (Computed) The current version of the Notification Channel.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Google Chat 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.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- 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
. - timeouts Property Map
- url String
- URL of the Google Chat webhook.
- version Number
- (Computed) The current version of the Notification Channel.
Supporting Types
MonitorNotificationChannelGoogleChatTimeouts, MonitorNotificationChannelGoogleChatTimeoutsArgs
Import
Google Chat notification channels for Monitor can be imported using the ID, e.g.
$ pulumi import sysdig:index/monitorNotificationChannelGoogleChat:MonitorNotificationChannelGoogleChat 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.