aquasec.Notification
Explore with Pulumi AI
Provides a Aquasec Notification resource. This can be used to create and manage Aquasec Notification resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumiverse/aquasec";
const teams = new aquasec.Notification("teams", {
properties: {
url: "<TEAMS-URL>",
},
type: "teams",
});
const slack = new aquasec.Notification("slack", {
properties: {
url: "<SLACK-URL>",
},
type: "slack",
});
const webhook = new aquasec.Notification("webhook", {
properties: {
url: "<WEBHOOK-URL>",
},
type: "webhook",
});
const servicenow = new aquasec.Notification("servicenow", {
properties: {
board_name: "",
instance_name: "",
password: "<PASSWORD>",
url: "<SERVICENOW-URL>",
user: "<USERNAME>",
},
type: "serviceNow",
});
const jiraWithToken = new aquasec.Notification("jiraWithToken", {
properties: {
definition_of_done: "Done",
project_key: "<JIRA_PROJECT_KEY>",
summary: "SOME_TEXT",
token: "<JIRA-TOKEN>",
url: "<JIRA-URL>",
},
type: "jira",
});
const jiraWithCreds = new aquasec.Notification("jiraWithCreds", {
properties: {
password: "<JIRA_PASSWORD>",
project_key: "<JIRA_PROJECT_KEY>",
summary: "SOME_TEXT",
url: "<JIRA-URL>",
user: "<JIRA_USERNAME>",
},
type: "jira",
});
const emailWithCreds = new aquasec.Notification("emailWithCreds", {
properties: {
host: "<EMAIL_HOST>",
password: "<EMAIL_PASSWORD>",
port: "<EMAIL_PORT>",
recipients: "<RECIPIENTS>",
sender: "<SENDER_EMAIL_ADDRESS>",
user: "<EMAIL_USERNAME>",
},
type: "email",
});
const emailWithMx = new aquasec.Notification("emailWithMx", {
properties: {
port: "<EMAIL_PORT>",
recipients: "<RECIPIENTS>",
sender: "<SENDER_EMAIL_ADDRESS>",
use_mx: "true",
},
type: "email",
});
import pulumi
import pulumiverse_aquasec as aquasec
teams = aquasec.Notification("teams",
properties={
"url": "<TEAMS-URL>",
},
type="teams")
slack = aquasec.Notification("slack",
properties={
"url": "<SLACK-URL>",
},
type="slack")
webhook = aquasec.Notification("webhook",
properties={
"url": "<WEBHOOK-URL>",
},
type="webhook")
servicenow = aquasec.Notification("servicenow",
properties={
"board_name": "",
"instance_name": "",
"password": "<PASSWORD>",
"url": "<SERVICENOW-URL>",
"user": "<USERNAME>",
},
type="serviceNow")
jira_with_token = aquasec.Notification("jiraWithToken",
properties={
"definition_of_done": "Done",
"project_key": "<JIRA_PROJECT_KEY>",
"summary": "SOME_TEXT",
"token": "<JIRA-TOKEN>",
"url": "<JIRA-URL>",
},
type="jira")
jira_with_creds = aquasec.Notification("jiraWithCreds",
properties={
"password": "<JIRA_PASSWORD>",
"project_key": "<JIRA_PROJECT_KEY>",
"summary": "SOME_TEXT",
"url": "<JIRA-URL>",
"user": "<JIRA_USERNAME>",
},
type="jira")
email_with_creds = aquasec.Notification("emailWithCreds",
properties={
"host": "<EMAIL_HOST>",
"password": "<EMAIL_PASSWORD>",
"port": "<EMAIL_PORT>",
"recipients": "<RECIPIENTS>",
"sender": "<SENDER_EMAIL_ADDRESS>",
"user": "<EMAIL_USERNAME>",
},
type="email")
email_with_mx = aquasec.Notification("emailWithMx",
properties={
"port": "<EMAIL_PORT>",
"recipients": "<RECIPIENTS>",
"sender": "<SENDER_EMAIL_ADDRESS>",
"use_mx": "true",
},
type="email")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aquasec.NewNotification(ctx, "teams", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"url": pulumi.String("<TEAMS-URL>"),
},
Type: pulumi.String("teams"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "slack", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"url": pulumi.String("<SLACK-URL>"),
},
Type: pulumi.String("slack"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "webhook", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"url": pulumi.String("<WEBHOOK-URL>"),
},
Type: pulumi.String("webhook"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "servicenow", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"board_name": pulumi.String(""),
"instance_name": pulumi.String(""),
"password": pulumi.String("<PASSWORD>"),
"url": pulumi.String("<SERVICENOW-URL>"),
"user": pulumi.String("<USERNAME>"),
},
Type: pulumi.String("serviceNow"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "jiraWithToken", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"definition_of_done": pulumi.String("Done"),
"project_key": pulumi.String("<JIRA_PROJECT_KEY>"),
"summary": pulumi.String("SOME_TEXT"),
"token": pulumi.String("<JIRA-TOKEN>"),
"url": pulumi.String("<JIRA-URL>"),
},
Type: pulumi.String("jira"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "jiraWithCreds", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"password": pulumi.String("<JIRA_PASSWORD>"),
"project_key": pulumi.String("<JIRA_PROJECT_KEY>"),
"summary": pulumi.String("SOME_TEXT"),
"url": pulumi.String("<JIRA-URL>"),
"user": pulumi.String("<JIRA_USERNAME>"),
},
Type: pulumi.String("jira"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "emailWithCreds", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"host": pulumi.String("<EMAIL_HOST>"),
"password": pulumi.String("<EMAIL_PASSWORD>"),
"port": pulumi.String("<EMAIL_PORT>"),
"recipients": pulumi.String("<RECIPIENTS>"),
"sender": pulumi.String("<SENDER_EMAIL_ADDRESS>"),
"user": pulumi.String("<EMAIL_USERNAME>"),
},
Type: pulumi.String("email"),
})
if err != nil {
return err
}
_, err = aquasec.NewNotification(ctx, "emailWithMx", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"port": pulumi.String("<EMAIL_PORT>"),
"recipients": pulumi.String("<RECIPIENTS>"),
"sender": pulumi.String("<SENDER_EMAIL_ADDRESS>"),
"use_mx": pulumi.String("true"),
},
Type: pulumi.String("email"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumiverse.Aquasec;
return await Deployment.RunAsync(() =>
{
var teams = new Aquasec.Notification("teams", new()
{
Properties =
{
{ "url", "<TEAMS-URL>" },
},
Type = "teams",
});
var slack = new Aquasec.Notification("slack", new()
{
Properties =
{
{ "url", "<SLACK-URL>" },
},
Type = "slack",
});
var webhook = new Aquasec.Notification("webhook", new()
{
Properties =
{
{ "url", "<WEBHOOK-URL>" },
},
Type = "webhook",
});
var servicenow = new Aquasec.Notification("servicenow", new()
{
Properties =
{
{ "board_name", "" },
{ "instance_name", "" },
{ "password", "<PASSWORD>" },
{ "url", "<SERVICENOW-URL>" },
{ "user", "<USERNAME>" },
},
Type = "serviceNow",
});
var jiraWithToken = new Aquasec.Notification("jiraWithToken", new()
{
Properties =
{
{ "definition_of_done", "Done" },
{ "project_key", "<JIRA_PROJECT_KEY>" },
{ "summary", "SOME_TEXT" },
{ "token", "<JIRA-TOKEN>" },
{ "url", "<JIRA-URL>" },
},
Type = "jira",
});
var jiraWithCreds = new Aquasec.Notification("jiraWithCreds", new()
{
Properties =
{
{ "password", "<JIRA_PASSWORD>" },
{ "project_key", "<JIRA_PROJECT_KEY>" },
{ "summary", "SOME_TEXT" },
{ "url", "<JIRA-URL>" },
{ "user", "<JIRA_USERNAME>" },
},
Type = "jira",
});
var emailWithCreds = new Aquasec.Notification("emailWithCreds", new()
{
Properties =
{
{ "host", "<EMAIL_HOST>" },
{ "password", "<EMAIL_PASSWORD>" },
{ "port", "<EMAIL_PORT>" },
{ "recipients", "<RECIPIENTS>" },
{ "sender", "<SENDER_EMAIL_ADDRESS>" },
{ "user", "<EMAIL_USERNAME>" },
},
Type = "email",
});
var emailWithMx = new Aquasec.Notification("emailWithMx", new()
{
Properties =
{
{ "port", "<EMAIL_PORT>" },
{ "recipients", "<RECIPIENTS>" },
{ "sender", "<SENDER_EMAIL_ADDRESS>" },
{ "use_mx", "true" },
},
Type = "email",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.Notification;
import com.pulumi.aquasec.NotificationArgs;
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 teams = new Notification("teams", NotificationArgs.builder()
.properties(Map.of("url", "<TEAMS-URL>"))
.type("teams")
.build());
var slack = new Notification("slack", NotificationArgs.builder()
.properties(Map.of("url", "<SLACK-URL>"))
.type("slack")
.build());
var webhook = new Notification("webhook", NotificationArgs.builder()
.properties(Map.of("url", "<WEBHOOK-URL>"))
.type("webhook")
.build());
var servicenow = new Notification("servicenow", NotificationArgs.builder()
.properties(Map.ofEntries(
Map.entry("board_name", ""),
Map.entry("instance_name", ""),
Map.entry("password", "<PASSWORD>"),
Map.entry("url", "<SERVICENOW-URL>"),
Map.entry("user", "<USERNAME>")
))
.type("serviceNow")
.build());
var jiraWithToken = new Notification("jiraWithToken", NotificationArgs.builder()
.properties(Map.ofEntries(
Map.entry("definition_of_done", "Done"),
Map.entry("project_key", "<JIRA_PROJECT_KEY>"),
Map.entry("summary", "SOME_TEXT"),
Map.entry("token", "<JIRA-TOKEN>"),
Map.entry("url", "<JIRA-URL>")
))
.type("jira")
.build());
var jiraWithCreds = new Notification("jiraWithCreds", NotificationArgs.builder()
.properties(Map.ofEntries(
Map.entry("password", "<JIRA_PASSWORD>"),
Map.entry("project_key", "<JIRA_PROJECT_KEY>"),
Map.entry("summary", "SOME_TEXT"),
Map.entry("url", "<JIRA-URL>"),
Map.entry("user", "<JIRA_USERNAME>")
))
.type("jira")
.build());
var emailWithCreds = new Notification("emailWithCreds", NotificationArgs.builder()
.properties(Map.ofEntries(
Map.entry("host", "<EMAIL_HOST>"),
Map.entry("password", "<EMAIL_PASSWORD>"),
Map.entry("port", "<EMAIL_PORT>"),
Map.entry("recipients", "<RECIPIENTS>"),
Map.entry("sender", "<SENDER_EMAIL_ADDRESS>"),
Map.entry("user", "<EMAIL_USERNAME>")
))
.type("email")
.build());
var emailWithMx = new Notification("emailWithMx", NotificationArgs.builder()
.properties(Map.ofEntries(
Map.entry("port", "<EMAIL_PORT>"),
Map.entry("recipients", "<RECIPIENTS>"),
Map.entry("sender", "<SENDER_EMAIL_ADDRESS>"),
Map.entry("use_mx", true)
))
.type("email")
.build());
}
}
resources:
teams:
type: aquasec:Notification
properties:
properties:
url: <TEAMS-URL>
type: teams
slack:
type: aquasec:Notification
properties:
properties:
url: <SLACK-URL>
type: slack
webhook:
type: aquasec:Notification
properties:
properties:
url: <WEBHOOK-URL>
type: webhook
servicenow:
type: aquasec:Notification
properties:
properties:
board_name:
instance_name:
password: <PASSWORD>
url: <SERVICENOW-URL>
user: <USERNAME>
type: serviceNow
jiraWithToken:
type: aquasec:Notification
properties:
properties:
definition_of_done: Done
project_key: <JIRA_PROJECT_KEY>
summary: SOME_TEXT
token: <JIRA-TOKEN>
url: <JIRA-URL>
type: jira
jiraWithCreds:
type: aquasec:Notification
properties:
properties:
password: <JIRA_PASSWORD>
project_key: <JIRA_PROJECT_KEY>
summary: SOME_TEXT
url: <JIRA-URL>
user: <JIRA_USERNAME>
type: jira
emailWithCreds:
type: aquasec:Notification
properties:
properties:
host: <EMAIL_HOST>
password: <EMAIL_PASSWORD>
port: <EMAIL_PORT>
recipients: <RECIPIENTS>
sender: <SENDER_EMAIL_ADDRESS>
user: <EMAIL_USERNAME>
type: email
emailWithMx:
type: aquasec:Notification
properties:
properties:
port: <EMAIL_PORT>
recipients: <RECIPIENTS>
sender: <SENDER_EMAIL_ADDRESS>
use_mx: true
type: email
Create Notification Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Notification(name: string, args: NotificationArgs, opts?: CustomResourceOptions);
@overload
def Notification(resource_name: str,
args: NotificationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Notification(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
name: Optional[str] = None)
func NewNotification(ctx *Context, name string, args NotificationArgs, opts ...ResourceOption) (*Notification, error)
public Notification(string name, NotificationArgs args, CustomResourceOptions? opts = null)
public Notification(String name, NotificationArgs args)
public Notification(String name, NotificationArgs args, CustomResourceOptions options)
type: aquasec:Notification
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 NotificationArgs
- 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 NotificationArgs
- 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 NotificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotificationArgs
- 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 notificationResource = new Aquasec.Notification("notificationResource", new()
{
Properties =
{
{ "string", "string" },
},
Type = "string",
Name = "string",
});
example, err := aquasec.NewNotification(ctx, "notificationResource", &aquasec.NotificationArgs{
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
Name: pulumi.String("string"),
})
var notificationResource = new Notification("notificationResource", NotificationArgs.builder()
.properties(Map.of("string", "string"))
.type("string")
.name("string")
.build());
notification_resource = aquasec.Notification("notificationResource",
properties={
"string": "string",
},
type="string",
name="string")
const notificationResource = new aquasec.Notification("notificationResource", {
properties: {
string: "string",
},
type: "string",
name: "string",
});
type: aquasec:Notification
properties:
name: string
properties:
string: string
type: string
Notification 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 Notification resource accepts the following input properties:
- Properties Dictionary<string, string>
- Notification properties, please check the examples for setting it
- Type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- Name string
- Notification name
- Properties map[string]string
- Notification properties, please check the examples for setting it
- Type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- Name string
- Notification name
- properties Map<String,String>
- Notification properties, please check the examples for setting it
- type String
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- name String
- Notification name
- properties {[key: string]: string}
- Notification properties, please check the examples for setting it
- type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- name string
- Notification name
- properties Mapping[str, str]
- Notification properties, please check the examples for setting it
- type str
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- name str
- Notification name
- properties Map<String>
- Notification properties, please check the examples for setting it
- type String
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- name String
- Notification name
Outputs
All input properties are implicitly available as output properties. Additionally, the Notification resource produces the following output properties:
- string
- The user that created the notification
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Notification last update time
- Template Dictionary<string, string>
- Notification Template
- string
- The user that created the notification
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Notification last update time
- Template map[string]string
- Notification Template
- String
- The user that created the notification
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Notification last update time
- template Map<String,String>
- Notification Template
- string
- The user that created the notification
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Notification last update time
- template {[key: string]: string}
- Notification Template
- str
- The user that created the notification
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Notification last update time
- template Mapping[str, str]
- Notification Template
- String
- The user that created the notification
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Notification last update time
- template Map<String>
- Notification Template
Look up Existing Notification Resource
Get an existing Notification 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?: NotificationState, opts?: CustomResourceOptions): Notification
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
author: Optional[str] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None,
template: Optional[Mapping[str, str]] = None,
type: Optional[str] = None) -> Notification
func GetNotification(ctx *Context, name string, id IDInput, state *NotificationState, opts ...ResourceOption) (*Notification, error)
public static Notification Get(string name, Input<string> id, NotificationState? state, CustomResourceOptions? opts = null)
public static Notification get(String name, Output<String> id, NotificationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- The user that created the notification
- Last
Updated string - Notification last update time
- Name string
- Notification name
- Properties Dictionary<string, string>
- Notification properties, please check the examples for setting it
- Template Dictionary<string, string>
- Notification Template
- Type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- string
- The user that created the notification
- Last
Updated string - Notification last update time
- Name string
- Notification name
- Properties map[string]string
- Notification properties, please check the examples for setting it
- Template map[string]string
- Notification Template
- Type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- String
- The user that created the notification
- last
Updated String - Notification last update time
- name String
- Notification name
- properties Map<String,String>
- Notification properties, please check the examples for setting it
- template Map<String,String>
- Notification Template
- type String
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- string
- The user that created the notification
- last
Updated string - Notification last update time
- name string
- Notification name
- properties {[key: string]: string}
- Notification properties, please check the examples for setting it
- template {[key: string]: string}
- Notification Template
- type string
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- str
- The user that created the notification
- last_
updated str - Notification last update time
- name str
- Notification name
- properties Mapping[str, str]
- Notification properties, please check the examples for setting it
- template Mapping[str, str]
- Notification Template
- type str
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
- String
- The user that created the notification
- last
Updated String - Notification last update time
- name String
- Notification name
- properties Map<String>
- Notification properties, please check the examples for setting it
- template Map<String>
- Notification Template
- type String
- Notifications types, allowed values: slack\ jira\ email\ teams\ webhook\ splunk\ serviceNow
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.