ServiceIntegration

A service integration is an integration that belongs to a service.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleUser = new Pagerduty.User("exampleUser", new Pagerduty.UserArgs
        {
            Email = "125.greenholt.earline@graham.name",
            Teams = 
            {
                pagerduty_team.Example.Id,
            },
        });
        var foo = new Pagerduty.EscalationPolicy("foo", new Pagerduty.EscalationPolicyArgs
        {
            NumLoops = 2,
            Rules = 
            {
                new Pagerduty.Inputs.EscalationPolicyRuleArgs
                {
                    EscalationDelayInMinutes = 10,
                    Target = 
                    {
                        
                        {
                            { "id", exampleUser.Id },
                            { "type", "user" },
                        },
                    },
                },
            },
        });
        var exampleService = new Pagerduty.Service("exampleService", new Pagerduty.ServiceArgs
        {
            AcknowledgementTimeout = 600,
            AutoResolveTimeout = 14400,
            EscalationPolicy = pagerduty_escalation_policy.Example.Id,
        });
        var exampleServiceIntegration = new Pagerduty.ServiceIntegration("exampleServiceIntegration", new Pagerduty.ServiceIntegrationArgs
        {
            Service = exampleService.Id,
            Type = "generic_events_api_inbound_integration",
        });
        var datadogVendor = Output.Create(Pagerduty.GetVendor.InvokeAsync(new Pagerduty.GetVendorArgs
        {
            Name = "Datadog",
        }));
        var datadogServiceIntegration = new Pagerduty.ServiceIntegration("datadogServiceIntegration", new Pagerduty.ServiceIntegrationArgs
        {
            Service = exampleService.Id,
            Vendor = datadogVendor.Apply(datadogVendor => datadogVendor.Id),
        });
        var cloudwatchVendor = Output.Create(Pagerduty.GetVendor.InvokeAsync(new Pagerduty.GetVendorArgs
        {
            Name = "Cloudwatch",
        }));
        var cloudwatchServiceIntegration = new Pagerduty.ServiceIntegration("cloudwatchServiceIntegration", new Pagerduty.ServiceIntegrationArgs
        {
            Service = exampleService.Id,
            Vendor = cloudwatchVendor.Apply(cloudwatchVendor => cloudwatchVendor.Id),
        });
    }

}

Coming soon!

import pulumi
import pulumi_pagerduty as pagerduty

example_user = pagerduty.User("exampleUser",
    email="125.greenholt.earline@graham.name",
    teams=[pagerduty_team["example"]["id"]])
foo = pagerduty.EscalationPolicy("foo",
    num_loops=2,
    rules=[{
        "escalationDelayInMinutes": 10,
        "target": [{
            "id": example_user.id,
            "type": "user",
        }],
    }])
example_service = pagerduty.Service("exampleService",
    acknowledgement_timeout=600,
    auto_resolve_timeout=14400,
    escalation_policy=pagerduty_escalation_policy["example"]["id"])
example_service_integration = pagerduty.ServiceIntegration("exampleServiceIntegration",
    service=example_service.id,
    type="generic_events_api_inbound_integration")
datadog_vendor = pagerduty.get_vendor(name="Datadog")
datadog_service_integration = pagerduty.ServiceIntegration("datadogServiceIntegration",
    service=example_service.id,
    vendor=datadog_vendor.id)
cloudwatch_vendor = pagerduty.get_vendor(name="Cloudwatch")
cloudwatch_service_integration = pagerduty.ServiceIntegration("cloudwatchServiceIntegration",
    service=example_service.id,
    vendor=cloudwatch_vendor.id)
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const exampleUser = new pagerduty.User("example", {
    email: "125.greenholt.earline@graham.name",
    teams: [pagerduty_team_example.id],
});
const foo = new pagerduty.EscalationPolicy("foo", {
    numLoops: 2,
    rules: [{
        escalationDelayInMinutes: 10,
        targets: [{
            id: exampleUser.id,
            type: "user",
        }],
    }],
});
const exampleService = new pagerduty.Service("example", {
    acknowledgementTimeout: "600",
    autoResolveTimeout: "14400",
    escalationPolicy: pagerduty_escalation_policy_example.id,
});
const exampleServiceIntegration = new pagerduty.ServiceIntegration("example", {
    service: exampleService.id,
    type: "generic_events_api_inbound_integration",
});
const datadogVendor = pulumi.output(pagerduty.getVendor({
    name: "Datadog",
}, { async: true }));
const datadogServiceIntegration = new pagerduty.ServiceIntegration("datadog", {
    service: exampleService.id,
    vendor: datadogVendor.id,
});
const cloudwatchVendor = pulumi.output(pagerduty.getVendor({
    name: "Cloudwatch",
}, { async: true }));
const cloudwatchServiceIntegration = new pagerduty.ServiceIntegration("cloudwatch", {
    service: exampleService.id,
    vendor: cloudwatchVendor.id,
});

Create a ServiceIntegration Resource

def ServiceIntegration(resource_name, opts=None, integration_email=None, integration_key=None, name=None, service=None, type=None, vendor=None, __props__=None);
name string
The unique name of the resource.
args ServiceIntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceIntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceIntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceIntegration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ServiceIntegration resource accepts the following input properties:

Service string

The ID of the service the integration should belong to.

IntegrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

IntegrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

Name string

The name of the service integration.

Type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

Vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

Service string

The ID of the service the integration should belong to.

IntegrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

IntegrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

Name string

The name of the service integration.

Type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

Vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

service string

The ID of the service the integration should belong to.

integrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

integrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

name string

The name of the service integration.

type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

service str

The ID of the service the integration should belong to.

integration_email str

This is the unique fully-qualified email address used for routing emails to this integration for processing.

integration_key str

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

name str

The name of the service integration.

type str

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

vendor str

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceIntegration resource produces the following output properties:

HtmlUrl string

URL at which the entity is uniquely displayed in the Web app

Id string
The provider-assigned unique ID for this managed resource.
HtmlUrl string

URL at which the entity is uniquely displayed in the Web app

Id string
The provider-assigned unique ID for this managed resource.
htmlUrl string

URL at which the entity is uniquely displayed in the Web app

id string
The provider-assigned unique ID for this managed resource.
html_url str

URL at which the entity is uniquely displayed in the Web app

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ServiceIntegration Resource

Get an existing ServiceIntegration 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?: ServiceIntegrationState, opts?: CustomResourceOptions): ServiceIntegration
static get(resource_name, id, opts=None, html_url=None, integration_email=None, integration_key=None, name=None, service=None, type=None, vendor=None, __props__=None);
func GetServiceIntegration(ctx *Context, name string, id IDInput, state *ServiceIntegrationState, opts ...ResourceOption) (*ServiceIntegration, error)
public static ServiceIntegration Get(string name, Input<string> id, ServiceIntegrationState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

HtmlUrl string

URL at which the entity is uniquely displayed in the Web app

IntegrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

IntegrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

Name string

The name of the service integration.

Service string

The ID of the service the integration should belong to.

Type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

Vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

HtmlUrl string

URL at which the entity is uniquely displayed in the Web app

IntegrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

IntegrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

Name string

The name of the service integration.

Service string

The ID of the service the integration should belong to.

Type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

Vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

htmlUrl string

URL at which the entity is uniquely displayed in the Web app

integrationEmail string

This is the unique fully-qualified email address used for routing emails to this integration for processing.

integrationKey string

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

name string

The name of the service integration.

service string

The ID of the service the integration should belong to.

type string

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

vendor string

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

html_url str

URL at which the entity is uniquely displayed in the Web app

integration_email str

This is the unique fully-qualified email address used for routing emails to this integration for processing.

integration_key str

This is the unique key used to route events to this integration when received via the PagerDuty Events API.

name str

The name of the service integration.

service str

The ID of the service the integration should belong to.

type str

The service type. Can be: aws_cloudwatch_inbound_integration, cloudkick_inbound_integration, event_transformer_api_inbound_integration, events_api_v2_inbound_integration (requires service alert_creation to be create_alerts_and_incidents), generic_email_inbound_integration, generic_events_api_inbound_integration, keynote_inbound_integration, nagios_inbound_integration, pingdom_inbound_integrationor sql_monitor_inbound_integration.

vendor str

The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.