ServiceObject

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 datadog.pagerduty.Integration) in order for this resource to be usable.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var pd = new Datadog.PagerDuty.Integration("pd", new Datadog.PagerDuty.IntegrationArgs
        {
            ApiToken = "38457822378273432587234242874",
            IndividualServices = true,
            Schedules = 
            {
                "https://ddog.pagerduty.com/schedules/X123VF",
                "https://ddog.pagerduty.com/schedules/X321XX",
            },
            Subdomain = "ddog",
        });
        var testingFoo = new Datadog.PagerDuty.ServiceObject("testingFoo", new Datadog.PagerDuty.ServiceObjectArgs
        {
            ServiceKey = "9876543210123456789",
            ServiceName = "testing_foo",
        });
        var testingBar = new Datadog.PagerDuty.ServiceObject("testingBar", new Datadog.PagerDuty.ServiceObjectArgs
        {
            ServiceKey = "54321098765432109876",
            ServiceName = "testing_bar",
        });
    }

}

Coming soon!

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")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const pd = new datadog.pagerduty.Integration("pd", {
    apiToken: "38457822378273432587234242874",
    individualServices: true,
    schedules: [
        "https://ddog.pagerduty.com/schedules/X123VF",
        "https://ddog.pagerduty.com/schedules/X321XX",
    ],
    subdomain: "ddog",
});
const testingFoo = new datadog.pagerduty.ServiceObject("testing_foo", {
    serviceKey: "9876543210123456789",
    serviceName: "testing_foo",
}, { dependsOn: [pd] });
const testingBar = new datadog.pagerduty.ServiceObject("testing_bar", {
    serviceKey: "54321098765432109876",
    serviceName: "testing_bar",
}, { dependsOn: [pd] });

Create a ServiceObject Resource

def ServiceObject(resource_name, opts=None, service_key=None, service_name=None, __props__=None);
name string
The unique name of the resource.
args ServiceObjectArgs
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 ServiceObjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceObjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceObject Resource Properties

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

Inputs

The ServiceObject resource accepts the following input properties:

ServiceKey string
ServiceName string

Your Service name in PagerDuty.

ServiceKey string
ServiceName string

Your Service name in PagerDuty.

serviceKey string
serviceName string

Your Service name in PagerDuty.

service_key str
service_name str

Your Service name in PagerDuty.

Outputs

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

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

Look up an Existing ServiceObject Resource

Get an existing ServiceObject 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?: ServiceObjectState, opts?: CustomResourceOptions): ServiceObject
static get(resource_name, id, opts=None, service_key=None, service_name=None, __props__=None);
func GetServiceObject(ctx *Context, name string, id IDInput, state *ServiceObjectState, opts ...ResourceOption) (*ServiceObject, error)
public static ServiceObject Get(string name, Input<string> id, ServiceObjectState? 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:

ServiceKey string
ServiceName string

Your Service name in PagerDuty.

ServiceKey string
ServiceName string

Your Service name in PagerDuty.

serviceKey string
serviceName string

Your Service name in PagerDuty.

service_key str
service_name str

Your Service name in PagerDuty.

Package Details

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