Class 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),
});
}
}
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class ServiceIntegration : CustomResource
Constructors
View SourceServiceIntegration(String, ServiceIntegrationArgs, CustomResourceOptions)
Create a ServiceIntegration resource with the given unique name, arguments, and options.
Declaration
public ServiceIntegration(string name, ServiceIntegrationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceIntegrationArgs | args | The arguments used to populate this resource's properties |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceHtmlUrl
URL at which the entity is uniquely displayed in the Web app
Declaration
public Output<string> HtmlUrl { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
IntegrationEmail
This is the unique fully-qualified email address used for routing emails to this integration for processing.
Declaration
public Output<string> IntegrationEmail { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
IntegrationKey
This is the unique key used to route events to this integration when received via the PagerDuty Events API.
Declaration
public Output<string> IntegrationKey { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Name
The name of the service integration.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Service
The ID of the service the integration should belong to.
Declaration
public Output<string> Service { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Type
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.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Vendor
The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch).
Declaration
public Output<string> Vendor { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Methods
View SourceGet(String, Input<String>, ServiceIntegrationState, CustomResourceOptions)
Get an existing ServiceIntegration resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ServiceIntegration Get(string name, Input<string> id, ServiceIntegrationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Pulumi.Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceIntegrationState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ServiceIntegration |