Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Datadog.PagerDuty
Assembly: Pulumi.Datadog.dll
Syntax
public class ServiceObject : CustomResource
Constructors
View SourceServiceObject(String, ServiceObjectArgs, CustomResourceOptions)
Create a ServiceObject resource with the given unique name, arguments, and options.
Declaration
public ServiceObject(string name, ServiceObjectArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceObjectArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceServiceKey
Declaration
public Output<string> ServiceKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceName
Your Service name in PagerDuty.
Declaration
public Output<string> ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ServiceObjectState, CustomResourceOptions)
Get an existing ServiceObject resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ServiceObject Get(string name, Input<string> id, ServiceObjectState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceObjectState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ServiceObject |