Come join Pulumi for the industry's first Cloud Engineering Summit! October 7–8. Save Your Spot

pagerduty

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-datadog repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-datadog repo.

class pulumi_datadog.pagerduty.Integration(resource_name, opts=None, api_token=None, individual_services=None, schedules=None, services=None, subdomain=None, __props__=None, __name__=None, __opts__=None)

Create a Integration resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] api_token: Your PagerDuty API token. :param pulumi.Input[bool] individual_services: Boolean to specify whether or not individual service objects specified by pagerduty.ServiceObject resource are to be used. Mutually exclusive with services key. :param pulumi.Input[list] schedules: Array of your schedule URLs. :param pulumi.Input[list] services: Array of PagerDuty service objects. Deprecated The services list is now deprecated in favour of pagerduty.ServiceObject resource. Note that individual_services must be set to true to ignore the service attribute and use individual services properly. :param pulumi.Input[str] subdomain: Your PagerDuty account’s personalized subdomain name.

The services object supports the following:

  • service_key (pulumi.Input[str]) - Your Service name associated service key in Pagerduty.

  • service_name (pulumi.Input[str]) - Your Service name in PagerDuty.

api_token: pulumi.Output[str] = None

Your PagerDuty API token.

individual_services: pulumi.Output[bool] = None

Boolean to specify whether or not individual service objects specified by pagerduty.ServiceObject resource are to be used. Mutually exclusive with services key.

schedules: pulumi.Output[list] = None

Array of your schedule URLs.

services: pulumi.Output[list] = None

Array of PagerDuty service objects. Deprecated The services list is now deprecated in favour of pagerduty.ServiceObject resource. Note that individual_services must be set to true to ignore the service attribute and use individual services properly.

  • service_key (str) - Your Service name associated service key in Pagerduty.

  • service_name (str) - Your Service name in PagerDuty.

subdomain: pulumi.Output[str] = None

Your PagerDuty account’s personalized subdomain name.

static get(resource_name, id, opts=None, api_token=None, individual_services=None, schedules=None, services=None, subdomain=None)

Get an existing Integration resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • api_token (pulumi.Input[str]) – Your PagerDuty API token.

  • individual_services (pulumi.Input[bool]) –

    Boolean to specify whether or not individual service objects specified by pagerduty.ServiceObject resource are to be used. Mutually exclusive with services key.

  • schedules (pulumi.Input[list]) – Array of your schedule URLs.

  • services (pulumi.Input[list]) –

    Array of PagerDuty service objects. Deprecated The services list is now deprecated in favour of pagerduty.ServiceObject resource. Note that individual_services must be set to true to ignore the service attribute and use individual services properly.

  • subdomain (pulumi.Input[str]) – Your PagerDuty account’s personalized subdomain name.

The services object supports the following:

  • service_key (pulumi.Input[str]) - Your Service name associated service key in Pagerduty.

  • service_name (pulumi.Input[str]) - Your Service name in PagerDuty.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_datadog.pagerduty.ServiceObject(resource_name, opts=None, service_key=None, service_name=None, __props__=None, __name__=None, __opts__=None)

Provides access to individual Service Objects of Datadog - PagerDuty integrations. Note that the Datadog - PagerDuty integration must be activated (either manually in the Datadog UI or by using pagerduty.Integration) in order for this resource to be usable.

import pulumi
import pulumi_datadog as datadog

pd = datadog.pagerduty.Integration("pd",
    api_token="38457822378273432587234242874",
    individual_services=True,
    schedules=[
        "https://ddog.pagerduty.com/schedules/X123VF",
        "https://ddog.pagerduty.com/schedules/X321XX",
    ],
    subdomain="ddog")
testing_foo = datadog.pagerduty.ServiceObject("testingFoo",
    service_key="9876543210123456789",
    service_name="testing_foo")
testing_bar = datadog.pagerduty.ServiceObject("testingBar",
    service_key="54321098765432109876",
    service_name="testing_bar")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • service_name (pulumi.Input[str]) – Your Service name in PagerDuty.

service_name: pulumi.Output[str] = None

Your Service name in PagerDuty.

static get(resource_name, id, opts=None, service_key=None, service_name=None)

Get an existing ServiceObject resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • service_name (pulumi.Input[str]) – Your Service name in PagerDuty.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str