incident.AlertSource
Explore with Pulumi AI
Configure your alert sources in incident.io.
Alert sources are the systems that send alerts to incident.io, which can then be routed to the right people and teams.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as incident from "@pulumi/incident";
//# Create a basic Alert Source that recieves from an SNS Topic in AWS
const cloudwatch = new incident.AlertSource("cloudwatch", {
sourceType: "cloudwatch",
template: {
title: {
literal: JSON.stringify({
content: [{
content: [{
attrs: {
label: "Payload → Title",
missing: false,
name: "title",
},
type: "varSpec",
}],
type: "paragraph",
}],
type: "doc",
}),
},
description: {
literal: JSON.stringify({
content: [{
content: [{
attrs: {
label: "Payload → Description",
missing: false,
name: "description",
},
type: "varSpec",
}],
type: "paragraph",
}],
type: "doc",
}),
},
attributes: [{
alertAttributeId: data.incident_alert_attribute.team.id,
binding: {
value: {
reference: "expressions[\"cloudwatch-team\"]",
},
},
}],
expressions: [{
label: "Team",
operations: [{
operationType: "parse",
parse: {
returns: {
array: false,
type: "CatalogEntry[\"CatalogEntryID\"]",
},
source: "$['query_params']['team']",
},
}],
reference: "cloudwatch-team",
rootReference: "payload",
}],
},
});
//# The `team` Alert Attribute we've configured to label Alerts and route alerts to schedules
const squad = incident.getAlertAttribute({
name: "Team",
});
const alerts = new aws.index.Aws_sns_topic("alerts", {name: "cloudwatch-alerts"});
//# SNS Topic Subscription that routes to the incident.io Alert Source created above
const incidentioAlertSource = new aws.index.Aws_sns_topic_subscription("incidentioAlertSource", {
endpoint: `https://api.incident.io/v2/alert_events/cloudwatch/${cloudwatch.id}?team=platform`,
endpointAutoConfirms: true,
protocol: "https",
topicArn: alerts.arn,
});
import pulumi
import json
import pulumi_aws as aws
import pulumi_incident as incident
## Create a basic Alert Source that recieves from an SNS Topic in AWS
cloudwatch = incident.AlertSource("cloudwatch",
source_type="cloudwatch",
template={
"title": {
"literal": json.dumps({
"content": [{
"content": [{
"attrs": {
"label": "Payload → Title",
"missing": False,
"name": "title",
},
"type": "varSpec",
}],
"type": "paragraph",
}],
"type": "doc",
}),
},
"description": {
"literal": json.dumps({
"content": [{
"content": [{
"attrs": {
"label": "Payload → Description",
"missing": False,
"name": "description",
},
"type": "varSpec",
}],
"type": "paragraph",
}],
"type": "doc",
}),
},
"attributes": [{
"alert_attribute_id": data["incident_alert_attribute"]["team"]["id"],
"binding": {
"value": {
"reference": "expressions[\"cloudwatch-team\"]",
},
},
}],
"expressions": [{
"label": "Team",
"operations": [{
"operation_type": "parse",
"parse": {
"returns": {
"array": False,
"type": "CatalogEntry[\"CatalogEntryID\"]",
},
"source": "$['query_params']['team']",
},
}],
"reference": "cloudwatch-team",
"root_reference": "payload",
}],
})
## The `team` Alert Attribute we've configured to label Alerts and route alerts to schedules
squad = incident.get_alert_attribute(name="Team")
alerts = aws.index.Aws_sns_topic("alerts", name=cloudwatch-alerts)
## SNS Topic Subscription that routes to the incident.io Alert Source created above
incidentio_alert_source = aws.index.Aws_sns_topic_subscription("incidentioAlertSource",
endpoint=fhttps://api.incident.io/v2/alert_events/cloudwatch/{cloudwatch.id}?team=platform,
endpoint_auto_confirms=True,
protocol=https,
topic_arn=alerts.arn)
package main
import (
"encoding/json"
"fmt"
"github.com/pulumi/pulumi-aws/sdk/go/aws"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/incident/v5/incident"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"content": []map[string]interface{}{
map[string]interface{}{
"content": []map[string]interface{}{
map[string]interface{}{
"attrs": map[string]interface{}{
"label": "Payload → Title",
"missing": false,
"name": "title",
},
"type": "varSpec",
},
},
"type": "paragraph",
},
},
"type": "doc",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal(map[string]interface{}{
"content": []map[string]interface{}{
map[string]interface{}{
"content": []map[string]interface{}{
map[string]interface{}{
"attrs": map[string]interface{}{
"label": "Payload → Description",
"missing": false,
"name": "description",
},
"type": "varSpec",
},
},
"type": "paragraph",
},
},
"type": "doc",
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
// # Create a basic Alert Source that recieves from an SNS Topic in AWS
cloudwatch, err := incident.NewAlertSource(ctx, "cloudwatch", &incident.AlertSourceArgs{
SourceType: pulumi.String("cloudwatch"),
Template: &incident.AlertSourceTemplateArgs{
Title: &incident.AlertSourceTemplateTitleArgs{
Literal: pulumi.String(json0),
},
Description: &incident.AlertSourceTemplateDescriptionArgs{
Literal: pulumi.String(json1),
},
Attributes: incident.AlertSourceTemplateAttributeArray{
&incident.AlertSourceTemplateAttributeArgs{
AlertAttributeId: pulumi.Any(data.Incident_alert_attribute.Team.Id),
Binding: &incident.AlertSourceTemplateAttributeBindingArgs{
Value: &incident.AlertSourceTemplateAttributeBindingValueArgs{
Reference: pulumi.String("expressions[\"cloudwatch-team\"]"),
},
},
},
},
Expressions: incident.AlertSourceTemplateExpressionArray{
&incident.AlertSourceTemplateExpressionArgs{
Label: pulumi.String("Team"),
Operations: incident.AlertSourceTemplateExpressionOperationArray{
&incident.AlertSourceTemplateExpressionOperationArgs{
OperationType: pulumi.String("parse"),
Parse: &incident.AlertSourceTemplateExpressionOperationParseArgs{
Returns: &incident.AlertSourceTemplateExpressionOperationParseReturnsArgs{
Array: pulumi.Bool(false),
Type: pulumi.String("CatalogEntry[\"CatalogEntryID\"]"),
},
Source: pulumi.String("$['query_params']['team']"),
},
},
},
Reference: pulumi.String("cloudwatch-team"),
RootReference: pulumi.String("payload"),
},
},
},
})
if err != nil {
return err
}
_, err = incident.LookupAlertAttribute(ctx, &incident.LookupAlertAttributeArgs{
Name: "Team",
}, nil)
if err != nil {
return err
}
alerts, err := aws.NewAws_sns_topic(ctx, "alerts", &aws.Aws_sns_topicArgs{
Name: "cloudwatch-alerts",
})
if err != nil {
return err
}
_, err = aws.NewAws_sns_topic_subscription(ctx, "incidentioAlertSource", &aws.Aws_sns_topic_subscriptionArgs{
Endpoint: pulumi.Sprintf("https://api.incident.io/v2/alert_events/cloudwatch/%v?team=platform", cloudwatch.ID()),
EndpointAutoConfirms: true,
Protocol: "https",
TopicArn: alerts.Arn,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
using Incident = Pulumi.Incident;
return await Deployment.RunAsync(() =>
{
//# Create a basic Alert Source that recieves from an SNS Topic in AWS
var cloudwatch = new Incident.AlertSource("cloudwatch", new()
{
SourceType = "cloudwatch",
Template = new Incident.Inputs.AlertSourceTemplateArgs
{
Title = new Incident.Inputs.AlertSourceTemplateTitleArgs
{
Literal = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["content"] = new[]
{
new Dictionary<string, object?>
{
["content"] = new[]
{
new Dictionary<string, object?>
{
["attrs"] = new Dictionary<string, object?>
{
["label"] = "Payload → Title",
["missing"] = false,
["name"] = "title",
},
["type"] = "varSpec",
},
},
["type"] = "paragraph",
},
},
["type"] = "doc",
}),
},
Description = new Incident.Inputs.AlertSourceTemplateDescriptionArgs
{
Literal = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["content"] = new[]
{
new Dictionary<string, object?>
{
["content"] = new[]
{
new Dictionary<string, object?>
{
["attrs"] = new Dictionary<string, object?>
{
["label"] = "Payload → Description",
["missing"] = false,
["name"] = "description",
},
["type"] = "varSpec",
},
},
["type"] = "paragraph",
},
},
["type"] = "doc",
}),
},
Attributes = new[]
{
new Incident.Inputs.AlertSourceTemplateAttributeArgs
{
AlertAttributeId = data.Incident_alert_attribute.Team.Id,
Binding = new Incident.Inputs.AlertSourceTemplateAttributeBindingArgs
{
Value = new Incident.Inputs.AlertSourceTemplateAttributeBindingValueArgs
{
Reference = "expressions[\"cloudwatch-team\"]",
},
},
},
},
Expressions = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionArgs
{
Label = "Team",
Operations = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationArgs
{
OperationType = "parse",
Parse = new Incident.Inputs.AlertSourceTemplateExpressionOperationParseArgs
{
Returns = new Incident.Inputs.AlertSourceTemplateExpressionOperationParseReturnsArgs
{
Array = false,
Type = "CatalogEntry[\"CatalogEntryID\"]",
},
Source = "$['query_params']['team']",
},
},
},
Reference = "cloudwatch-team",
RootReference = "payload",
},
},
},
});
//# The `team` Alert Attribute we've configured to label Alerts and route alerts to schedules
var squad = Incident.GetAlertAttribute.Invoke(new()
{
Name = "Team",
});
var alerts = new Aws.Index.Aws_sns_topic("alerts", new()
{
Name = "cloudwatch-alerts",
});
//# SNS Topic Subscription that routes to the incident.io Alert Source created above
var incidentioAlertSource = new Aws.Index.Aws_sns_topic_subscription("incidentioAlertSource", new()
{
Endpoint = $"https://api.incident.io/v2/alert_events/cloudwatch/{cloudwatch.Id}?team=platform",
EndpointAutoConfirms = true,
Protocol = "https",
TopicArn = alerts.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incident.AlertSource;
import com.pulumi.incident.AlertSourceArgs;
import com.pulumi.incident.inputs.AlertSourceTemplateArgs;
import com.pulumi.incident.inputs.AlertSourceTemplateTitleArgs;
import com.pulumi.incident.inputs.AlertSourceTemplateDescriptionArgs;
import com.pulumi.incident.IncidentFunctions;
import com.pulumi.incident.inputs.GetAlertAttributeArgs;
import com.pulumi.aws.aws_sns_topic;
import com.pulumi.aws.Aws_sns_topicArgs;
import com.pulumi.aws.aws_sns_topic_subscription;
import com.pulumi.aws.Aws_sns_topic_subscriptionArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
//# Create a basic Alert Source that recieves from an SNS Topic in AWS
var cloudwatch = new AlertSource("cloudwatch", AlertSourceArgs.builder()
.sourceType("cloudwatch")
.template(AlertSourceTemplateArgs.builder()
.title(AlertSourceTemplateTitleArgs.builder()
.literal(serializeJson(
jsonObject(
jsonProperty("content", jsonArray(jsonObject(
jsonProperty("content", jsonArray(jsonObject(
jsonProperty("attrs", jsonObject(
jsonProperty("label", "Payload → Title"),
jsonProperty("missing", false),
jsonProperty("name", "title")
)),
jsonProperty("type", "varSpec")
))),
jsonProperty("type", "paragraph")
))),
jsonProperty("type", "doc")
)))
.build())
.description(AlertSourceTemplateDescriptionArgs.builder()
.literal(serializeJson(
jsonObject(
jsonProperty("content", jsonArray(jsonObject(
jsonProperty("content", jsonArray(jsonObject(
jsonProperty("attrs", jsonObject(
jsonProperty("label", "Payload → Description"),
jsonProperty("missing", false),
jsonProperty("name", "description")
)),
jsonProperty("type", "varSpec")
))),
jsonProperty("type", "paragraph")
))),
jsonProperty("type", "doc")
)))
.build())
.attributes(AlertSourceTemplateAttributeArgs.builder()
.alertAttributeId(data.incident_alert_attribute().team().id())
.binding(AlertSourceTemplateAttributeBindingArgs.builder()
.value(AlertSourceTemplateAttributeBindingValueArgs.builder()
.reference("expressions[\"cloudwatch-team\"]")
.build())
.build())
.build())
.expressions(AlertSourceTemplateExpressionArgs.builder()
.label("Team")
.operations(AlertSourceTemplateExpressionOperationArgs.builder()
.operationType("parse")
.parse(AlertSourceTemplateExpressionOperationParseArgs.builder()
.returns(AlertSourceTemplateExpressionOperationParseReturnsArgs.builder()
.array(false)
.type("CatalogEntry[\"CatalogEntryID\"]")
.build())
.source("$['query_params']['team']")
.build())
.build())
.reference("cloudwatch-team")
.rootReference("payload")
.build())
.build())
.build());
//# The `team` Alert Attribute we've configured to label Alerts and route alerts to schedules
final var squad = IncidentFunctions.getAlertAttribute(GetAlertAttributeArgs.builder()
.name("Team")
.build());
var alerts = new Aws_sns_topic("alerts", Aws_sns_topicArgs.builder()
.name("cloudwatch-alerts")
.build());
//# SNS Topic Subscription that routes to the incident.io Alert Source created above
var incidentioAlertSource = new Aws_sns_topic_subscription("incidentioAlertSource", Aws_sns_topic_subscriptionArgs.builder()
.endpoint(String.format("https://api.incident.io/v2/alert_events/cloudwatch/%s?team=platform", cloudwatch.id()))
.endpointAutoConfirms(true)
.protocol("https")
.topicArn(alerts.arn())
.build());
}
}
resources:
## Create a basic Alert Source that recieves from an SNS Topic in AWS
cloudwatch: ## The `team` Alert Attribute we've configured to label Alerts and route alerts to schedules
type: incident:AlertSource
properties:
sourceType: cloudwatch
template:
title:
literal:
fn::toJSON:
content:
- content:
- attrs:
label: Payload → Title
missing: false
name: title
type: varSpec
type: paragraph
type: doc
description:
literal:
fn::toJSON:
content:
- content:
- attrs:
label: Payload → Description
missing: false
name: description
type: varSpec
type: paragraph
type: doc
attributes:
- alertAttributeId: ${data.incident_alert_attribute.team.id}
binding:
value:
reference: expressions["cloudwatch-team"]
expressions:
- label: Team
operations:
- operationType: parse
parse:
returns:
array: false
type: CatalogEntry["CatalogEntryID"]
source: $['query_params']['team']
reference: cloudwatch-team
rootReference: payload
alerts: ## SNS Topic Subscription that routes to the incident.io Alert Source created above
type: aws:aws_sns_topic
properties:
name: cloudwatch-alerts
incidentioAlertSource:
type: aws:aws_sns_topic_subscription
properties:
endpoint: https://api.incident.io/v2/alert_events/cloudwatch/${cloudwatch.id}?team=platform
endpointAutoConfirms: true
protocol: https
topicArn: ${alerts.arn}
variables:
squad: ## AWS Resources
fn::invoke:
function: incident:getAlertAttribute
arguments:
name: Team
Create AlertSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertSource(name: string, args: AlertSourceArgs, opts?: CustomResourceOptions);
@overload
def AlertSource(resource_name: str,
args: AlertSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_type: Optional[str] = None,
template: Optional[AlertSourceTemplateArgs] = None,
email_address: Optional[str] = None,
jira_options: Optional[AlertSourceJiraOptionsArgs] = None,
name: Optional[str] = None)
func NewAlertSource(ctx *Context, name string, args AlertSourceArgs, opts ...ResourceOption) (*AlertSource, error)
public AlertSource(string name, AlertSourceArgs args, CustomResourceOptions? opts = null)
public AlertSource(String name, AlertSourceArgs args)
public AlertSource(String name, AlertSourceArgs args, CustomResourceOptions options)
type: incident:AlertSource
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 AlertSourceArgs
- 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 AlertSourceArgs
- 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 AlertSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertSourceArgs
- 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 alertSourceResource = new Incident.AlertSource("alertSourceResource", new()
{
SourceType = "string",
Template = new Incident.Inputs.AlertSourceTemplateArgs
{
Attributes = new[]
{
new Incident.Inputs.AlertSourceTemplateAttributeArgs
{
AlertAttributeId = "string",
Binding = new Incident.Inputs.AlertSourceTemplateAttributeBindingArgs
{
ArrayValues = new[]
{
new Incident.Inputs.AlertSourceTemplateAttributeBindingArrayValueArgs
{
Literal = "string",
Reference = "string",
},
},
Value = new Incident.Inputs.AlertSourceTemplateAttributeBindingValueArgs
{
Literal = "string",
Reference = "string",
},
},
},
},
Description = new Incident.Inputs.AlertSourceTemplateDescriptionArgs
{
Literal = "string",
Reference = "string",
},
Expressions = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionArgs
{
Label = "string",
Operations = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationArgs
{
OperationType = "string",
Branches = new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesArgs
{
Branches = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchArgs
{
ConditionGroups = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupArgs
{
Conditions = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionArgs
{
Operation = "string",
ParamBindings = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArgs
{
ArrayValues = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValueArgs
{
Literal = "string",
Reference = "string",
},
},
Value = new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingValueArgs
{
Literal = "string",
Reference = "string",
},
},
},
Subject = "string",
},
},
},
},
Result = new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchResultArgs
{
ArrayValues = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValueArgs
{
Literal = "string",
Reference = "string",
},
},
Value = new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesBranchResultValueArgs
{
Literal = "string",
Reference = "string",
},
},
},
},
Returns = new Incident.Inputs.AlertSourceTemplateExpressionOperationBranchesReturnsArgs
{
Array = false,
Type = "string",
},
},
Filter = new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterArgs
{
ConditionGroups = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterConditionGroupArgs
{
Conditions = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionArgs
{
Operation = "string",
ParamBindings = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArgs
{
ArrayValues = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValueArgs
{
Literal = "string",
Reference = "string",
},
},
Value = new Incident.Inputs.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingValueArgs
{
Literal = "string",
Reference = "string",
},
},
},
Subject = "string",
},
},
},
},
},
Navigate = new Incident.Inputs.AlertSourceTemplateExpressionOperationNavigateArgs
{
Reference = "string",
},
Parse = new Incident.Inputs.AlertSourceTemplateExpressionOperationParseArgs
{
Returns = new Incident.Inputs.AlertSourceTemplateExpressionOperationParseReturnsArgs
{
Array = false,
Type = "string",
},
Source = "string",
},
},
},
Reference = "string",
RootReference = "string",
ElseBranch = new Incident.Inputs.AlertSourceTemplateExpressionElseBranchArgs
{
Result = new Incident.Inputs.AlertSourceTemplateExpressionElseBranchResultArgs
{
ArrayValues = new[]
{
new Incident.Inputs.AlertSourceTemplateExpressionElseBranchResultArrayValueArgs
{
Literal = "string",
Reference = "string",
},
},
Value = new Incident.Inputs.AlertSourceTemplateExpressionElseBranchResultValueArgs
{
Literal = "string",
Reference = "string",
},
},
},
},
},
Title = new Incident.Inputs.AlertSourceTemplateTitleArgs
{
Literal = "string",
Reference = "string",
},
},
EmailAddress = "string",
JiraOptions = new Incident.Inputs.AlertSourceJiraOptionsArgs
{
ProjectIds = new[]
{
"string",
},
},
Name = "string",
});
example, err := incident.NewAlertSource(ctx, "alertSourceResource", &incident.AlertSourceArgs{
SourceType: pulumi.String("string"),
Template: &incident.AlertSourceTemplateArgs{
Attributes: incident.AlertSourceTemplateAttributeArray{
&incident.AlertSourceTemplateAttributeArgs{
AlertAttributeId: pulumi.String("string"),
Binding: &incident.AlertSourceTemplateAttributeBindingArgs{
ArrayValues: incident.AlertSourceTemplateAttributeBindingArrayValueArray{
&incident.AlertSourceTemplateAttributeBindingArrayValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
Value: &incident.AlertSourceTemplateAttributeBindingValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
},
},
Description: &incident.AlertSourceTemplateDescriptionArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
Expressions: incident.AlertSourceTemplateExpressionArray{
&incident.AlertSourceTemplateExpressionArgs{
Label: pulumi.String("string"),
Operations: incident.AlertSourceTemplateExpressionOperationArray{
&incident.AlertSourceTemplateExpressionOperationArgs{
OperationType: pulumi.String("string"),
Branches: &incident.AlertSourceTemplateExpressionOperationBranchesArgs{
Branches: incident.AlertSourceTemplateExpressionOperationBranchesBranchArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchArgs{
ConditionGroups: incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupArgs{
Conditions: incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionArgs{
Operation: pulumi.String("string"),
ParamBindings: incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArgs{
ArrayValues: incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValueArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
Value: &incident.AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
},
Subject: pulumi.String("string"),
},
},
},
},
Result: &incident.AlertSourceTemplateExpressionOperationBranchesBranchResultArgs{
ArrayValues: incident.AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValueArray{
&incident.AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
Value: &incident.AlertSourceTemplateExpressionOperationBranchesBranchResultValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
},
},
Returns: &incident.AlertSourceTemplateExpressionOperationBranchesReturnsArgs{
Array: pulumi.Bool(false),
Type: pulumi.String("string"),
},
},
Filter: &incident.AlertSourceTemplateExpressionOperationFilterArgs{
ConditionGroups: incident.AlertSourceTemplateExpressionOperationFilterConditionGroupArray{
&incident.AlertSourceTemplateExpressionOperationFilterConditionGroupArgs{
Conditions: incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionArray{
&incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionArgs{
Operation: pulumi.String("string"),
ParamBindings: incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArray{
&incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArgs{
ArrayValues: incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValueArray{
&incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
Value: &incident.AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
},
Subject: pulumi.String("string"),
},
},
},
},
},
Navigate: &incident.AlertSourceTemplateExpressionOperationNavigateArgs{
Reference: pulumi.String("string"),
},
Parse: &incident.AlertSourceTemplateExpressionOperationParseArgs{
Returns: &incident.AlertSourceTemplateExpressionOperationParseReturnsArgs{
Array: pulumi.Bool(false),
Type: pulumi.String("string"),
},
Source: pulumi.String("string"),
},
},
},
Reference: pulumi.String("string"),
RootReference: pulumi.String("string"),
ElseBranch: &incident.AlertSourceTemplateExpressionElseBranchArgs{
Result: &incident.AlertSourceTemplateExpressionElseBranchResultArgs{
ArrayValues: incident.AlertSourceTemplateExpressionElseBranchResultArrayValueArray{
&incident.AlertSourceTemplateExpressionElseBranchResultArrayValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
Value: &incident.AlertSourceTemplateExpressionElseBranchResultValueArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
},
},
},
Title: &incident.AlertSourceTemplateTitleArgs{
Literal: pulumi.String("string"),
Reference: pulumi.String("string"),
},
},
EmailAddress: pulumi.String("string"),
JiraOptions: &incident.AlertSourceJiraOptionsArgs{
ProjectIds: pulumi.StringArray{
pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var alertSourceResource = new AlertSource("alertSourceResource", AlertSourceArgs.builder()
.sourceType("string")
.template(AlertSourceTemplateArgs.builder()
.attributes(AlertSourceTemplateAttributeArgs.builder()
.alertAttributeId("string")
.binding(AlertSourceTemplateAttributeBindingArgs.builder()
.arrayValues(AlertSourceTemplateAttributeBindingArrayValueArgs.builder()
.literal("string")
.reference("string")
.build())
.value(AlertSourceTemplateAttributeBindingValueArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.build())
.description(AlertSourceTemplateDescriptionArgs.builder()
.literal("string")
.reference("string")
.build())
.expressions(AlertSourceTemplateExpressionArgs.builder()
.label("string")
.operations(AlertSourceTemplateExpressionOperationArgs.builder()
.operationType("string")
.branches(AlertSourceTemplateExpressionOperationBranchesArgs.builder()
.branches(AlertSourceTemplateExpressionOperationBranchesBranchArgs.builder()
.conditionGroups(AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupArgs.builder()
.conditions(AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionArgs.builder()
.operation("string")
.paramBindings(AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArgs.builder()
.arrayValues(AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValueArgs.builder()
.literal("string")
.reference("string")
.build())
.value(AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingValueArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.subject("string")
.build())
.build())
.result(AlertSourceTemplateExpressionOperationBranchesBranchResultArgs.builder()
.arrayValues(AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValueArgs.builder()
.literal("string")
.reference("string")
.build())
.value(AlertSourceTemplateExpressionOperationBranchesBranchResultValueArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.build())
.returns(AlertSourceTemplateExpressionOperationBranchesReturnsArgs.builder()
.array(false)
.type("string")
.build())
.build())
.filter(AlertSourceTemplateExpressionOperationFilterArgs.builder()
.conditionGroups(AlertSourceTemplateExpressionOperationFilterConditionGroupArgs.builder()
.conditions(AlertSourceTemplateExpressionOperationFilterConditionGroupConditionArgs.builder()
.operation("string")
.paramBindings(AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArgs.builder()
.arrayValues(AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValueArgs.builder()
.literal("string")
.reference("string")
.build())
.value(AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingValueArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.subject("string")
.build())
.build())
.build())
.navigate(AlertSourceTemplateExpressionOperationNavigateArgs.builder()
.reference("string")
.build())
.parse(AlertSourceTemplateExpressionOperationParseArgs.builder()
.returns(AlertSourceTemplateExpressionOperationParseReturnsArgs.builder()
.array(false)
.type("string")
.build())
.source("string")
.build())
.build())
.reference("string")
.rootReference("string")
.elseBranch(AlertSourceTemplateExpressionElseBranchArgs.builder()
.result(AlertSourceTemplateExpressionElseBranchResultArgs.builder()
.arrayValues(AlertSourceTemplateExpressionElseBranchResultArrayValueArgs.builder()
.literal("string")
.reference("string")
.build())
.value(AlertSourceTemplateExpressionElseBranchResultValueArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.build())
.build())
.title(AlertSourceTemplateTitleArgs.builder()
.literal("string")
.reference("string")
.build())
.build())
.emailAddress("string")
.jiraOptions(AlertSourceJiraOptionsArgs.builder()
.projectIds("string")
.build())
.name("string")
.build());
alert_source_resource = incident.AlertSource("alertSourceResource",
source_type="string",
template={
"attributes": [{
"alert_attribute_id": "string",
"binding": {
"array_values": [{
"literal": "string",
"reference": "string",
}],
"value": {
"literal": "string",
"reference": "string",
},
},
}],
"description": {
"literal": "string",
"reference": "string",
},
"expressions": [{
"label": "string",
"operations": [{
"operation_type": "string",
"branches": {
"branches": [{
"condition_groups": [{
"conditions": [{
"operation": "string",
"param_bindings": [{
"array_values": [{
"literal": "string",
"reference": "string",
}],
"value": {
"literal": "string",
"reference": "string",
},
}],
"subject": "string",
}],
}],
"result": {
"array_values": [{
"literal": "string",
"reference": "string",
}],
"value": {
"literal": "string",
"reference": "string",
},
},
}],
"returns": {
"array": False,
"type": "string",
},
},
"filter": {
"condition_groups": [{
"conditions": [{
"operation": "string",
"param_bindings": [{
"array_values": [{
"literal": "string",
"reference": "string",
}],
"value": {
"literal": "string",
"reference": "string",
},
}],
"subject": "string",
}],
}],
},
"navigate": {
"reference": "string",
},
"parse": {
"returns": {
"array": False,
"type": "string",
},
"source": "string",
},
}],
"reference": "string",
"root_reference": "string",
"else_branch": {
"result": {
"array_values": [{
"literal": "string",
"reference": "string",
}],
"value": {
"literal": "string",
"reference": "string",
},
},
},
}],
"title": {
"literal": "string",
"reference": "string",
},
},
email_address="string",
jira_options={
"project_ids": ["string"],
},
name="string")
const alertSourceResource = new incident.AlertSource("alertSourceResource", {
sourceType: "string",
template: {
attributes: [{
alertAttributeId: "string",
binding: {
arrayValues: [{
literal: "string",
reference: "string",
}],
value: {
literal: "string",
reference: "string",
},
},
}],
description: {
literal: "string",
reference: "string",
},
expressions: [{
label: "string",
operations: [{
operationType: "string",
branches: {
branches: [{
conditionGroups: [{
conditions: [{
operation: "string",
paramBindings: [{
arrayValues: [{
literal: "string",
reference: "string",
}],
value: {
literal: "string",
reference: "string",
},
}],
subject: "string",
}],
}],
result: {
arrayValues: [{
literal: "string",
reference: "string",
}],
value: {
literal: "string",
reference: "string",
},
},
}],
returns: {
array: false,
type: "string",
},
},
filter: {
conditionGroups: [{
conditions: [{
operation: "string",
paramBindings: [{
arrayValues: [{
literal: "string",
reference: "string",
}],
value: {
literal: "string",
reference: "string",
},
}],
subject: "string",
}],
}],
},
navigate: {
reference: "string",
},
parse: {
returns: {
array: false,
type: "string",
},
source: "string",
},
}],
reference: "string",
rootReference: "string",
elseBranch: {
result: {
arrayValues: [{
literal: "string",
reference: "string",
}],
value: {
literal: "string",
reference: "string",
},
},
},
}],
title: {
literal: "string",
reference: "string",
},
},
emailAddress: "string",
jiraOptions: {
projectIds: ["string"],
},
name: "string",
});
type: incident:AlertSource
properties:
emailAddress: string
jiraOptions:
projectIds:
- string
name: string
sourceType: string
template:
attributes:
- alertAttributeId: string
binding:
arrayValues:
- literal: string
reference: string
value:
literal: string
reference: string
description:
literal: string
reference: string
expressions:
- elseBranch:
result:
arrayValues:
- literal: string
reference: string
value:
literal: string
reference: string
label: string
operations:
- branches:
branches:
- conditionGroups:
- conditions:
- operation: string
paramBindings:
- arrayValues:
- literal: string
reference: string
value:
literal: string
reference: string
subject: string
result:
arrayValues:
- literal: string
reference: string
value:
literal: string
reference: string
returns:
array: false
type: string
filter:
conditionGroups:
- conditions:
- operation: string
paramBindings:
- arrayValues:
- literal: string
reference: string
value:
literal: string
reference: string
subject: string
navigate:
reference: string
operationType: string
parse:
returns:
array: false
type: string
source: string
reference: string
rootReference: string
title:
literal: string
reference: string
AlertSource 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 AlertSource resource accepts the following input properties:
- Source
Type string - Type of alert source
- Template
Alert
Source Template - Email
Address string - Email address this alert source receives alerts to
- Jira
Options AlertSource Jira Options - Name string
- Unique name of the alert source
- Source
Type string - Type of alert source
- Template
Alert
Source Template Args - Email
Address string - Email address this alert source receives alerts to
- Jira
Options AlertSource Jira Options Args - Name string
- Unique name of the alert source
- source
Type String - Type of alert source
- template
Alert
Source Template - email
Address String - Email address this alert source receives alerts to
- jira
Options AlertSource Jira Options - name String
- Unique name of the alert source
- source
Type string - Type of alert source
- template
Alert
Source Template - email
Address string - Email address this alert source receives alerts to
- jira
Options AlertSource Jira Options - name string
- Unique name of the alert source
- source_
type str - Type of alert source
- template
Alert
Source Template Args - email_
address str - Email address this alert source receives alerts to
- jira_
options AlertSource Jira Options Args - name str
- Unique name of the alert source
- source
Type String - Type of alert source
- template Property Map
- email
Address String - Email address this alert source receives alerts to
- jira
Options Property Map - name String
- Unique name of the alert source
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertSource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Token String - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- id string
- The provider-assigned unique ID for this managed resource.
- secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- id str
- The provider-assigned unique ID for this managed resource.
- secret_
token str - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Token String - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
Look up Existing AlertSource Resource
Get an existing AlertSource 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?: AlertSourceState, opts?: CustomResourceOptions): AlertSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email_address: Optional[str] = None,
jira_options: Optional[AlertSourceJiraOptionsArgs] = None,
name: Optional[str] = None,
secret_token: Optional[str] = None,
source_type: Optional[str] = None,
template: Optional[AlertSourceTemplateArgs] = None) -> AlertSource
func GetAlertSource(ctx *Context, name string, id IDInput, state *AlertSourceState, opts ...ResourceOption) (*AlertSource, error)
public static AlertSource Get(string name, Input<string> id, AlertSourceState? state, CustomResourceOptions? opts = null)
public static AlertSource get(String name, Output<String> id, AlertSourceState state, CustomResourceOptions options)
resources: _: type: incident:AlertSource 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.
- Email
Address string - Email address this alert source receives alerts to
- Jira
Options AlertSource Jira Options - Name string
- Unique name of the alert source
- Secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- Source
Type string - Type of alert source
- Template
Alert
Source Template
- Email
Address string - Email address this alert source receives alerts to
- Jira
Options AlertSource Jira Options Args - Name string
- Unique name of the alert source
- Secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- Source
Type string - Type of alert source
- Template
Alert
Source Template Args
- email
Address String - Email address this alert source receives alerts to
- jira
Options AlertSource Jira Options - name String
- Unique name of the alert source
- secret
Token String - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- source
Type String - Type of alert source
- template
Alert
Source Template
- email
Address string - Email address this alert source receives alerts to
- jira
Options AlertSource Jira Options - name string
- Unique name of the alert source
- secret
Token string - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- source
Type string - Type of alert source
- template
Alert
Source Template
- email_
address str - Email address this alert source receives alerts to
- jira_
options AlertSource Jira Options Args - name str
- Unique name of the alert source
- secret_
token str - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- source_
type str - Type of alert source
- template
Alert
Source Template Args
- email
Address String - Email address this alert source receives alerts to
- jira
Options Property Map - name String
- Unique name of the alert source
- secret
Token String - Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
- source
Type String - Type of alert source
- template Property Map
Supporting Types
AlertSourceJiraOptions, AlertSourceJiraOptionsArgs
- Project
Ids List<string> - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
- Project
Ids []string - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
- project
Ids List<String> - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
- project
Ids string[] - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
- project_
ids Sequence[str] - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
- project
Ids List<String> - Which projects in Jira should this alert source watch for new issues? IDs can either be IDs of the projects in Jira, or ID of catalog entries in the 'Jira Project' catalog type.
AlertSourceTemplate, AlertSourceTemplateArgs
- Attributes
List<Alert
Source Template Attribute> - Attributes to set on alerts coming from this source, with a binding describing how to set them.
- Description
Alert
Source Template Description - Expressions
List<Alert
Source Template Expression> - The expressions to be prepared for use by steps and conditions
- Title
Alert
Source Template Title
- Attributes
[]Alert
Source Template Attribute - Attributes to set on alerts coming from this source, with a binding describing how to set them.
- Description
Alert
Source Template Description - Expressions
[]Alert
Source Template Expression - The expressions to be prepared for use by steps and conditions
- Title
Alert
Source Template Title
- attributes
List<Alert
Source Template Attribute> - Attributes to set on alerts coming from this source, with a binding describing how to set them.
- description
Alert
Source Template Description - expressions
List<Alert
Source Template Expression> - The expressions to be prepared for use by steps and conditions
- title
Alert
Source Template Title
- attributes
Alert
Source Template Attribute[] - Attributes to set on alerts coming from this source, with a binding describing how to set them.
- description
Alert
Source Template Description - expressions
Alert
Source Template Expression[] - The expressions to be prepared for use by steps and conditions
- title
Alert
Source Template Title
- attributes
Sequence[Alert
Source Template Attribute] - Attributes to set on alerts coming from this source, with a binding describing how to set them.
- description
Alert
Source Template Description - expressions
Sequence[Alert
Source Template Expression] - The expressions to be prepared for use by steps and conditions
- title
Alert
Source Template Title
- attributes List<Property Map>
- Attributes to set on alerts coming from this source, with a binding describing how to set them.
- description Property Map
- expressions List<Property Map>
- The expressions to be prepared for use by steps and conditions
- title Property Map
AlertSourceTemplateAttribute, AlertSourceTemplateAttributeArgs
- Alert
Attribute stringId - ID of the alert attribute to set with this binding
- Binding
Alert
Source Template Attribute Binding
- Alert
Attribute stringId - ID of the alert attribute to set with this binding
- Binding
Alert
Source Template Attribute Binding
- alert
Attribute StringId - ID of the alert attribute to set with this binding
- binding
Alert
Source Template Attribute Binding
- alert
Attribute stringId - ID of the alert attribute to set with this binding
- binding
Alert
Source Template Attribute Binding
- alert_
attribute_ strid - ID of the alert attribute to set with this binding
- binding
Alert
Source Template Attribute Binding
- alert
Attribute StringId - ID of the alert attribute to set with this binding
- binding Property Map
AlertSourceTemplateAttributeBinding, AlertSourceTemplateAttributeBindingArgs
- Array
Values List<AlertSource Template Attribute Binding Array Value> - The array of literal or reference parameter values
- Value
Alert
Source Template Attribute Binding Value - The literal or reference parameter value
- Array
Values []AlertSource Template Attribute Binding Array Value - The array of literal or reference parameter values
- Value
Alert
Source Template Attribute Binding Value - The literal or reference parameter value
- array
Values List<AlertSource Template Attribute Binding Array Value> - The array of literal or reference parameter values
- value
Alert
Source Template Attribute Binding Value - The literal or reference parameter value
- array
Values AlertSource Template Attribute Binding Array Value[] - The array of literal or reference parameter values
- value
Alert
Source Template Attribute Binding Value - The literal or reference parameter value
- array_
values Sequence[AlertSource Template Attribute Binding Array Value] - The array of literal or reference parameter values
- value
Alert
Source Template Attribute Binding Value - The literal or reference parameter value
- array
Values List<Property Map> - The array of literal or reference parameter values
- value Property Map
- The literal or reference parameter value
AlertSourceTemplateAttributeBindingArrayValue, AlertSourceTemplateAttributeBindingArrayValueArgs
AlertSourceTemplateAttributeBindingValue, AlertSourceTemplateAttributeBindingValueArgs
AlertSourceTemplateDescription, AlertSourceTemplateDescriptionArgs
AlertSourceTemplateExpression, AlertSourceTemplateExpressionArgs
- Label string
- The human readable label of the expression
- Operations
List<Alert
Source Template Expression Operation> - The operations to execute in sequence for this expression
- Reference string
- A short ID that can be used to reference the expression
- Root
Reference string - The root reference for this expression (i.e. where the expression starts)
- Else
Branch AlertSource Template Expression Else Branch - The else branch to resort to if all operations fail
- Label string
- The human readable label of the expression
- Operations
[]Alert
Source Template Expression Operation - The operations to execute in sequence for this expression
- Reference string
- A short ID that can be used to reference the expression
- Root
Reference string - The root reference for this expression (i.e. where the expression starts)
- Else
Branch AlertSource Template Expression Else Branch - The else branch to resort to if all operations fail
- label String
- The human readable label of the expression
- operations
List<Alert
Source Template Expression Operation> - The operations to execute in sequence for this expression
- reference String
- A short ID that can be used to reference the expression
- root
Reference String - The root reference for this expression (i.e. where the expression starts)
- else
Branch AlertSource Template Expression Else Branch - The else branch to resort to if all operations fail
- label string
- The human readable label of the expression
- operations
Alert
Source Template Expression Operation[] - The operations to execute in sequence for this expression
- reference string
- A short ID that can be used to reference the expression
- root
Reference string - The root reference for this expression (i.e. where the expression starts)
- else
Branch AlertSource Template Expression Else Branch - The else branch to resort to if all operations fail
- label str
- The human readable label of the expression
- operations
Sequence[Alert
Source Template Expression Operation] - The operations to execute in sequence for this expression
- reference str
- A short ID that can be used to reference the expression
- root_
reference str - The root reference for this expression (i.e. where the expression starts)
- else_
branch AlertSource Template Expression Else Branch - The else branch to resort to if all operations fail
- label String
- The human readable label of the expression
- operations List<Property Map>
- The operations to execute in sequence for this expression
- reference String
- A short ID that can be used to reference the expression
- root
Reference String - The root reference for this expression (i.e. where the expression starts)
- else
Branch Property Map - The else branch to resort to if all operations fail
AlertSourceTemplateExpressionElseBranch, AlertSourceTemplateExpressionElseBranchArgs
- Result
Alert
Source Template Expression Else Branch Result - The result assumed if the else branch is reached
- Result
Alert
Source Template Expression Else Branch Result - The result assumed if the else branch is reached
- result
Alert
Source Template Expression Else Branch Result - The result assumed if the else branch is reached
- result
Alert
Source Template Expression Else Branch Result - The result assumed if the else branch is reached
- result
Alert
Source Template Expression Else Branch Result - The result assumed if the else branch is reached
- result Property Map
- The result assumed if the else branch is reached
AlertSourceTemplateExpressionElseBranchResult, AlertSourceTemplateExpressionElseBranchResultArgs
- Array
Values List<AlertSource Template Expression Else Branch Result Array Value> - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Else Branch Result Value - The literal or reference parameter value
- Array
Values []AlertSource Template Expression Else Branch Result Array Value - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Else Branch Result Value - The literal or reference parameter value
- array
Values List<AlertSource Template Expression Else Branch Result Array Value> - The array of literal or reference parameter values
- value
Alert
Source Template Expression Else Branch Result Value - The literal or reference parameter value
- array
Values AlertSource Template Expression Else Branch Result Array Value[] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Else Branch Result Value - The literal or reference parameter value
- array_
values Sequence[AlertSource Template Expression Else Branch Result Array Value] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Else Branch Result Value - The literal or reference parameter value
- array
Values List<Property Map> - The array of literal or reference parameter values
- value Property Map
- The literal or reference parameter value
AlertSourceTemplateExpressionElseBranchResultArrayValue, AlertSourceTemplateExpressionElseBranchResultArrayValueArgs
AlertSourceTemplateExpressionElseBranchResultValue, AlertSourceTemplateExpressionElseBranchResultValueArgs
AlertSourceTemplateExpressionOperation, AlertSourceTemplateExpressionOperationArgs
- Operation
Type string - Indicates which operation type to execute
- Branches
Alert
Source Template Expression Operation Branches - An operation type that allows for a value to be set conditionally by a series of logical branches
- Filter
Alert
Source Template Expression Operation Filter - An operation type that allows values to be filtered out by conditions
- Alert
Source Template Expression Operation Navigate - An operation type that allows attributes of a type to be accessed by reference
- Parse
Alert
Source Template Expression Operation Parse - An operation type that allows a value to parsed from within a JSON object
- Operation
Type string - Indicates which operation type to execute
- Branches
Alert
Source Template Expression Operation Branches - An operation type that allows for a value to be set conditionally by a series of logical branches
- Filter
Alert
Source Template Expression Operation Filter - An operation type that allows values to be filtered out by conditions
- Alert
Source Template Expression Operation Navigate - An operation type that allows attributes of a type to be accessed by reference
- Parse
Alert
Source Template Expression Operation Parse - An operation type that allows a value to parsed from within a JSON object
- operation
Type String - Indicates which operation type to execute
- branches
Alert
Source Template Expression Operation Branches - An operation type that allows for a value to be set conditionally by a series of logical branches
- filter
Alert
Source Template Expression Operation Filter - An operation type that allows values to be filtered out by conditions
- Alert
Source Template Expression Operation Navigate - An operation type that allows attributes of a type to be accessed by reference
- parse
Alert
Source Template Expression Operation Parse - An operation type that allows a value to parsed from within a JSON object
- operation
Type string - Indicates which operation type to execute
- branches
Alert
Source Template Expression Operation Branches - An operation type that allows for a value to be set conditionally by a series of logical branches
- filter
Alert
Source Template Expression Operation Filter - An operation type that allows values to be filtered out by conditions
- Alert
Source Template Expression Operation Navigate - An operation type that allows attributes of a type to be accessed by reference
- parse
Alert
Source Template Expression Operation Parse - An operation type that allows a value to parsed from within a JSON object
- operation_
type str - Indicates which operation type to execute
- branches
Alert
Source Template Expression Operation Branches - An operation type that allows for a value to be set conditionally by a series of logical branches
- filter
Alert
Source Template Expression Operation Filter - An operation type that allows values to be filtered out by conditions
- Alert
Source Template Expression Operation Navigate - An operation type that allows attributes of a type to be accessed by reference
- parse
Alert
Source Template Expression Operation Parse - An operation type that allows a value to parsed from within a JSON object
- operation
Type String - Indicates which operation type to execute
- branches Property Map
- An operation type that allows for a value to be set conditionally by a series of logical branches
- filter Property Map
- An operation type that allows values to be filtered out by conditions
- Property Map
- An operation type that allows attributes of a type to be accessed by reference
- parse Property Map
- An operation type that allows a value to parsed from within a JSON object
AlertSourceTemplateExpressionOperationBranches, AlertSourceTemplateExpressionOperationBranchesArgs
- Branches
List<Alert
Source Template Expression Operation Branches Branch> - The branches to apply for this operation
- Returns
Alert
Source Template Expression Operation Branches Returns - The return type of an operation
- Branches
[]Alert
Source Template Expression Operation Branches Branch - The branches to apply for this operation
- Returns
Alert
Source Template Expression Operation Branches Returns - The return type of an operation
- branches
List<Alert
Source Template Expression Operation Branches Branch> - The branches to apply for this operation
- returns
Alert
Source Template Expression Operation Branches Returns - The return type of an operation
- branches
Alert
Source Template Expression Operation Branches Branch[] - The branches to apply for this operation
- returns
Alert
Source Template Expression Operation Branches Returns - The return type of an operation
- branches
Sequence[Alert
Source Template Expression Operation Branches Branch] - The branches to apply for this operation
- returns
Alert
Source Template Expression Operation Branches Returns - The return type of an operation
- branches List<Property Map>
- The branches to apply for this operation
- returns Property Map
- The return type of an operation
AlertSourceTemplateExpressionOperationBranchesBranch, AlertSourceTemplateExpressionOperationBranchesBranchArgs
- Condition
Groups List<AlertSource Template Expression Operation Branches Branch Condition Group> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- Result
Alert
Source Template Expression Operation Branches Branch Result - The result assumed if the condition groups are satisfied
- Condition
Groups []AlertSource Template Expression Operation Branches Branch Condition Group - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- Result
Alert
Source Template Expression Operation Branches Branch Result - The result assumed if the condition groups are satisfied
- condition
Groups List<AlertSource Template Expression Operation Branches Branch Condition Group> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- result
Alert
Source Template Expression Operation Branches Branch Result - The result assumed if the condition groups are satisfied
- condition
Groups AlertSource Template Expression Operation Branches Branch Condition Group[] - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- result
Alert
Source Template Expression Operation Branches Branch Result - The result assumed if the condition groups are satisfied
- condition_
groups Sequence[AlertSource Template Expression Operation Branches Branch Condition Group] - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- result
Alert
Source Template Expression Operation Branches Branch Result - The result assumed if the condition groups are satisfied
- condition
Groups List<Property Map> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- result Property Map
- The result assumed if the condition groups are satisfied
AlertSourceTemplateExpressionOperationBranchesBranchConditionGroup, AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupArgs
- Conditions
List<Alert
Source Template Expression Operation Branches Branch Condition Group Condition> - The prerequisite conditions that must all be satisfied
- Conditions
[]Alert
Source Template Expression Operation Branches Branch Condition Group Condition - The prerequisite conditions that must all be satisfied
- conditions
List<Alert
Source Template Expression Operation Branches Branch Condition Group Condition> - The prerequisite conditions that must all be satisfied
- conditions
Alert
Source Template Expression Operation Branches Branch Condition Group Condition[] - The prerequisite conditions that must all be satisfied
- conditions
Sequence[Alert
Source Template Expression Operation Branches Branch Condition Group Condition] - The prerequisite conditions that must all be satisfied
- conditions List<Property Map>
- The prerequisite conditions that must all be satisfied
AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupCondition, AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionArgs
- Operation string
- The logical operation to be applied
- Param
Bindings List<AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding> - Bindings for the operation parameters
- Subject string
- The subject of the condition, on which the operation is applied
- Operation string
- The logical operation to be applied
- Param
Bindings []AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding - Bindings for the operation parameters
- Subject string
- The subject of the condition, on which the operation is applied
- operation String
- The logical operation to be applied
- param
Bindings List<AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding> - Bindings for the operation parameters
- subject String
- The subject of the condition, on which the operation is applied
- operation string
- The logical operation to be applied
- param
Bindings AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding[] - Bindings for the operation parameters
- subject string
- The subject of the condition, on which the operation is applied
- operation str
- The logical operation to be applied
- param_
bindings Sequence[AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding] - Bindings for the operation parameters
- subject str
- The subject of the condition, on which the operation is applied
- operation String
- The logical operation to be applied
- param
Bindings List<Property Map> - Bindings for the operation parameters
- subject String
- The subject of the condition, on which the operation is applied
AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBinding, AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArgs
- Array
Values List<AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding Array Value> - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Branches Branch Condition Group Condition Param Binding Value - The literal or reference parameter value
- Array
Values []AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding Array Value - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Branches Branch Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values List<AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding Array Value> - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding Array Value[] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Condition Group Condition Param Binding Value - The literal or reference parameter value
- array_
values Sequence[AlertSource Template Expression Operation Branches Branch Condition Group Condition Param Binding Array Value] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values List<Property Map> - The array of literal or reference parameter values
- value Property Map
- The literal or reference parameter value
AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValue, AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingArrayValueArgs
AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingValue, AlertSourceTemplateExpressionOperationBranchesBranchConditionGroupConditionParamBindingValueArgs
AlertSourceTemplateExpressionOperationBranchesBranchResult, AlertSourceTemplateExpressionOperationBranchesBranchResultArgs
- Array
Values List<AlertSource Template Expression Operation Branches Branch Result Array Value> - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Branches Branch Result Value - The literal or reference parameter value
- Array
Values []AlertSource Template Expression Operation Branches Branch Result Array Value - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Branches Branch Result Value - The literal or reference parameter value
- array
Values List<AlertSource Template Expression Operation Branches Branch Result Array Value> - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Result Value - The literal or reference parameter value
- array
Values AlertSource Template Expression Operation Branches Branch Result Array Value[] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Result Value - The literal or reference parameter value
- array_
values Sequence[AlertSource Template Expression Operation Branches Branch Result Array Value] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Branches Branch Result Value - The literal or reference parameter value
- array
Values List<Property Map> - The array of literal or reference parameter values
- value Property Map
- The literal or reference parameter value
AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValue, AlertSourceTemplateExpressionOperationBranchesBranchResultArrayValueArgs
AlertSourceTemplateExpressionOperationBranchesBranchResultValue, AlertSourceTemplateExpressionOperationBranchesBranchResultValueArgs
AlertSourceTemplateExpressionOperationBranchesReturns, AlertSourceTemplateExpressionOperationBranchesReturnsArgs
AlertSourceTemplateExpressionOperationFilter, AlertSourceTemplateExpressionOperationFilterArgs
- Condition
Groups List<AlertSource Template Expression Operation Filter Condition Group> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- Condition
Groups []AlertSource Template Expression Operation Filter Condition Group - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- condition
Groups List<AlertSource Template Expression Operation Filter Condition Group> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- condition
Groups AlertSource Template Expression Operation Filter Condition Group[] - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- condition_
groups Sequence[AlertSource Template Expression Operation Filter Condition Group] - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
- condition
Groups List<Property Map> - Groups of prerequisite conditions. All conditions in at least one group must be satisfied
AlertSourceTemplateExpressionOperationFilterConditionGroup, AlertSourceTemplateExpressionOperationFilterConditionGroupArgs
- Conditions
List<Alert
Source Template Expression Operation Filter Condition Group Condition> - The prerequisite conditions that must all be satisfied
- Conditions
[]Alert
Source Template Expression Operation Filter Condition Group Condition - The prerequisite conditions that must all be satisfied
- conditions
List<Alert
Source Template Expression Operation Filter Condition Group Condition> - The prerequisite conditions that must all be satisfied
- conditions
Alert
Source Template Expression Operation Filter Condition Group Condition[] - The prerequisite conditions that must all be satisfied
- conditions
Sequence[Alert
Source Template Expression Operation Filter Condition Group Condition] - The prerequisite conditions that must all be satisfied
- conditions List<Property Map>
- The prerequisite conditions that must all be satisfied
AlertSourceTemplateExpressionOperationFilterConditionGroupCondition, AlertSourceTemplateExpressionOperationFilterConditionGroupConditionArgs
- Operation string
- The logical operation to be applied
- Param
Bindings List<AlertSource Template Expression Operation Filter Condition Group Condition Param Binding> - Bindings for the operation parameters
- Subject string
- The subject of the condition, on which the operation is applied
- Operation string
- The logical operation to be applied
- Param
Bindings []AlertSource Template Expression Operation Filter Condition Group Condition Param Binding - Bindings for the operation parameters
- Subject string
- The subject of the condition, on which the operation is applied
- operation String
- The logical operation to be applied
- param
Bindings List<AlertSource Template Expression Operation Filter Condition Group Condition Param Binding> - Bindings for the operation parameters
- subject String
- The subject of the condition, on which the operation is applied
- operation string
- The logical operation to be applied
- param
Bindings AlertSource Template Expression Operation Filter Condition Group Condition Param Binding[] - Bindings for the operation parameters
- subject string
- The subject of the condition, on which the operation is applied
- operation str
- The logical operation to be applied
- param_
bindings Sequence[AlertSource Template Expression Operation Filter Condition Group Condition Param Binding] - Bindings for the operation parameters
- subject str
- The subject of the condition, on which the operation is applied
- operation String
- The logical operation to be applied
- param
Bindings List<Property Map> - Bindings for the operation parameters
- subject String
- The subject of the condition, on which the operation is applied
AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBinding, AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArgs
- Array
Values List<AlertSource Template Expression Operation Filter Condition Group Condition Param Binding Array Value> - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Filter Condition Group Condition Param Binding Value - The literal or reference parameter value
- Array
Values []AlertSource Template Expression Operation Filter Condition Group Condition Param Binding Array Value - The array of literal or reference parameter values
- Value
Alert
Source Template Expression Operation Filter Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values List<AlertSource Template Expression Operation Filter Condition Group Condition Param Binding Array Value> - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Filter Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values AlertSource Template Expression Operation Filter Condition Group Condition Param Binding Array Value[] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Filter Condition Group Condition Param Binding Value - The literal or reference parameter value
- array_
values Sequence[AlertSource Template Expression Operation Filter Condition Group Condition Param Binding Array Value] - The array of literal or reference parameter values
- value
Alert
Source Template Expression Operation Filter Condition Group Condition Param Binding Value - The literal or reference parameter value
- array
Values List<Property Map> - The array of literal or reference parameter values
- value Property Map
- The literal or reference parameter value
AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValue, AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingArrayValueArgs
AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingValue, AlertSourceTemplateExpressionOperationFilterConditionGroupConditionParamBindingValueArgs
AlertSourceTemplateExpressionOperationNavigate, AlertSourceTemplateExpressionOperationNavigateArgs
- Reference string
- Reference string
- reference String
- reference string
- reference str
- reference String
AlertSourceTemplateExpressionOperationParse, AlertSourceTemplateExpressionOperationParseArgs
- Returns
Alert
Source Template Expression Operation Parse Returns - The return type of an operation
- Source string
- The ES5 Javascript expression to execute
- Returns
Alert
Source Template Expression Operation Parse Returns - The return type of an operation
- Source string
- The ES5 Javascript expression to execute
- returns
Alert
Source Template Expression Operation Parse Returns - The return type of an operation
- source String
- The ES5 Javascript expression to execute
- returns
Alert
Source Template Expression Operation Parse Returns - The return type of an operation
- source string
- The ES5 Javascript expression to execute
- returns
Alert
Source Template Expression Operation Parse Returns - The return type of an operation
- source str
- The ES5 Javascript expression to execute
- returns Property Map
- The return type of an operation
- source String
- The ES5 Javascript expression to execute
AlertSourceTemplateExpressionOperationParseReturns, AlertSourceTemplateExpressionOperationParseReturnsArgs
AlertSourceTemplateTitle, AlertSourceTemplateTitleArgs
Import
#!/bin/bash
Import an alert source using its ID
Replace the ID with a real ID from your incident.io organization
$ pulumi import incident:index/alertSource:AlertSource example 01ABC123DEF456GHI789JKL
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incident
Terraform Provider.