sysdig.SecureNotificationChannelEmail
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sampleEmail = new sysdig.SecureNotificationChannelEmail("sampleEmail", {
enabled: true,
notifyWhenOk: false,
notifyWhenResolved: false,
recipients: [
"foo@localhost.com",
"bar@localhost.com",
],
sendTestNotification: false,
});
import pulumi
import pulumi_sysdig as sysdig
sample_email = sysdig.SecureNotificationChannelEmail("sampleEmail",
enabled=True,
notify_when_ok=False,
notify_when_resolved=False,
recipients=[
"foo@localhost.com",
"bar@localhost.com",
],
send_test_notification=False)
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.NewSecureNotificationChannelEmail(ctx, "sampleEmail", &sysdig.SecureNotificationChannelEmailArgs{
Enabled: pulumi.Bool(true),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
Recipients: pulumi.StringArray{
pulumi.String("foo@localhost.com"),
pulumi.String("bar@localhost.com"),
},
SendTestNotification: pulumi.Bool(false),
})
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 sampleEmail = new Sysdig.SecureNotificationChannelEmail("sampleEmail", new()
{
Enabled = true,
NotifyWhenOk = false,
NotifyWhenResolved = false,
Recipients = new[]
{
"foo@localhost.com",
"bar@localhost.com",
},
SendTestNotification = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SecureNotificationChannelEmail;
import com.pulumi.sysdig.SecureNotificationChannelEmailArgs;
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 sampleEmail = new SecureNotificationChannelEmail("sampleEmail", SecureNotificationChannelEmailArgs.builder()
.enabled(true)
.notifyWhenOk(false)
.notifyWhenResolved(false)
.recipients(
"foo@localhost.com",
"bar@localhost.com")
.sendTestNotification(false)
.build());
}
}
resources:
sampleEmail:
type: sysdig:SecureNotificationChannelEmail
properties:
enabled: true
notifyWhenOk: false
notifyWhenResolved: false
recipients:
- foo@localhost.com
- bar@localhost.com
sendTestNotification: false
Create SecureNotificationChannelEmail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureNotificationChannelEmail(name: string, args: SecureNotificationChannelEmailArgs, opts?: CustomResourceOptions);
@overload
def SecureNotificationChannelEmail(resource_name: str,
args: SecureNotificationChannelEmailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureNotificationChannelEmail(resource_name: str,
opts: Optional[ResourceOptions] = None,
recipients: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
secure_notification_channel_email_id: Optional[str] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
timeouts: Optional[SecureNotificationChannelEmailTimeoutsArgs] = None)
func NewSecureNotificationChannelEmail(ctx *Context, name string, args SecureNotificationChannelEmailArgs, opts ...ResourceOption) (*SecureNotificationChannelEmail, error)
public SecureNotificationChannelEmail(string name, SecureNotificationChannelEmailArgs args, CustomResourceOptions? opts = null)
public SecureNotificationChannelEmail(String name, SecureNotificationChannelEmailArgs args)
public SecureNotificationChannelEmail(String name, SecureNotificationChannelEmailArgs args, CustomResourceOptions options)
type: sysdig:SecureNotificationChannelEmail
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 SecureNotificationChannelEmailArgs
- 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 SecureNotificationChannelEmailArgs
- 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 SecureNotificationChannelEmailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureNotificationChannelEmailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureNotificationChannelEmailArgs
- 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 secureNotificationChannelEmailResource = new Sysdig.SecureNotificationChannelEmail("secureNotificationChannelEmailResource", new()
{
Recipients = new[]
{
"string",
},
Enabled = false,
Name = "string",
NotifyWhenOk = false,
NotifyWhenResolved = false,
SecureNotificationChannelEmailId = "string",
SendTestNotification = false,
ShareWithCurrentTeam = false,
Timeouts = new Sysdig.Inputs.SecureNotificationChannelEmailTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewSecureNotificationChannelEmail(ctx, "secureNotificationChannelEmailResource", &sysdig.SecureNotificationChannelEmailArgs{
Recipients: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
SecureNotificationChannelEmailId: pulumi.String("string"),
SendTestNotification: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(false),
Timeouts: &sysdig.SecureNotificationChannelEmailTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var secureNotificationChannelEmailResource = new SecureNotificationChannelEmail("secureNotificationChannelEmailResource", SecureNotificationChannelEmailArgs.builder()
.recipients("string")
.enabled(false)
.name("string")
.notifyWhenOk(false)
.notifyWhenResolved(false)
.secureNotificationChannelEmailId("string")
.sendTestNotification(false)
.shareWithCurrentTeam(false)
.timeouts(SecureNotificationChannelEmailTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
secure_notification_channel_email_resource = sysdig.SecureNotificationChannelEmail("secureNotificationChannelEmailResource",
recipients=["string"],
enabled=False,
name="string",
notify_when_ok=False,
notify_when_resolved=False,
secure_notification_channel_email_id="string",
send_test_notification=False,
share_with_current_team=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const secureNotificationChannelEmailResource = new sysdig.SecureNotificationChannelEmail("secureNotificationChannelEmailResource", {
recipients: ["string"],
enabled: false,
name: "string",
notifyWhenOk: false,
notifyWhenResolved: false,
secureNotificationChannelEmailId: "string",
sendTestNotification: false,
shareWithCurrentTeam: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:SecureNotificationChannelEmail
properties:
enabled: false
name: string
notifyWhenOk: false
notifyWhenResolved: false
recipients:
- string
secureNotificationChannelEmailId: string
sendTestNotification: false
shareWithCurrentTeam: false
timeouts:
create: string
delete: string
read: string
update: string
SecureNotificationChannelEmail 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 SecureNotificationChannelEmail resource accepts the following input properties:
- Recipients List<string>
- List of recipients that will receive the message.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- 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.
- Secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts
- Recipients []string
- List of recipients that will receive the message.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- 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.
- Secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts Args
- recipients List<String>
- List of recipients that will receive the message.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- secure
Notification StringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts
- recipients string[]
- List of recipients that will receive the message.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts
- recipients Sequence[str]
- List of recipients that will receive the message.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- 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.
- secure_
notification_ strchannel_ email_ id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts Args
- recipients List<String>
- List of recipients that will receive the message.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- secure
Notification StringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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 SecureNotificationChannelEmail resource produces the following output properties:
Look up Existing SecureNotificationChannelEmail Resource
Get an existing SecureNotificationChannelEmail 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?: SecureNotificationChannelEmailState, opts?: CustomResourceOptions): SecureNotificationChannelEmail
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
recipients: Optional[Sequence[str]] = None,
secure_notification_channel_email_id: Optional[str] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
timeouts: Optional[SecureNotificationChannelEmailTimeoutsArgs] = None,
version: Optional[float] = None) -> SecureNotificationChannelEmail
func GetSecureNotificationChannelEmail(ctx *Context, name string, id IDInput, state *SecureNotificationChannelEmailState, opts ...ResourceOption) (*SecureNotificationChannelEmail, error)
public static SecureNotificationChannelEmail Get(string name, Input<string> id, SecureNotificationChannelEmailState? state, CustomResourceOptions? opts = null)
public static SecureNotificationChannelEmail get(String name, Output<String> id, SecureNotificationChannelEmailState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureNotificationChannelEmail 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.
- 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.
- Recipients List<string>
- List of recipients that will receive the message.
- Secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts - Version double
- (Computed) The current version of the Notification Channel.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- 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.
- Recipients []string
- List of recipients that will receive the message.
- Secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts Args - Version float64
- (Computed) The current version of the Notification Channel.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- recipients List<String>
- List of recipients that will receive the message.
- secure
Notification StringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts - version Double
- (Computed) The current version of the Notification Channel.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- recipients string[]
- List of recipients that will receive the message.
- secure
Notification stringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts - version number
- (Computed) The current version of the Notification Channel.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- 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.
- recipients Sequence[str]
- List of recipients that will receive the message.
- secure_
notification_ strchannel_ email_ id - (Computed) The ID of the Notification Channel.
- 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
Secure
Notification Channel Email Timeouts Args - version float
- (Computed) The current version of the Notification Channel.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- 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.
- recipients List<String>
- List of recipients that will receive the message.
- secure
Notification StringChannel Email Id - (Computed) The ID of the Notification Channel.
- 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
- version Number
- (Computed) The current version of the Notification Channel.
Supporting Types
SecureNotificationChannelEmailTimeouts, SecureNotificationChannelEmailTimeoutsArgs
Import
Email notification channels for Secure can be imported using the ID, e.g.
$ pulumi import sysdig:index/secureNotificationChannelEmail:SecureNotificationChannelEmail 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.