BusinessService

A business service allows you to model capabilities that span multiple technical services and that may be owned by several different teams.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Pagerduty.BusinessService("example", new Pagerduty.BusinessServiceArgs
        {
            Description = "A very descriptive description of this business service",
            PointOfContact = "PagerDuty Admin",
            Team = "P37RSRS",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v2/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.NewBusinessService(ctx, "example", &pagerduty.BusinessServiceArgs{
			Description:    pulumi.String("A very descriptive description of this business service"),
			PointOfContact: pulumi.String("PagerDuty Admin"),
			Team:           pulumi.String("P37RSRS"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_pagerduty as pagerduty

example = pagerduty.BusinessService("example",
    description="A very descriptive description of this business service",
    point_of_contact="PagerDuty Admin",
    team="P37RSRS")
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const example = new pagerduty.BusinessService("example", {
    description: "A very descriptive description of this business service",
    pointOfContact: "PagerDuty Admin",
    team: "P37RSRS",
});

Create a BusinessService Resource

new BusinessService(name: string, args?: BusinessServiceArgs, opts?: CustomResourceOptions);
@overload
def BusinessService(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    point_of_contact: Optional[str] = None,
                    team: Optional[str] = None,
                    type: Optional[str] = None)
@overload
def BusinessService(resource_name: str,
                    args: Optional[BusinessServiceArgs] = None,
                    opts: Optional[ResourceOptions] = None)
func NewBusinessService(ctx *Context, name string, args *BusinessServiceArgs, opts ...ResourceOption) (*BusinessService, error)
public BusinessService(string name, BusinessServiceArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args BusinessServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BusinessServiceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BusinessServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BusinessServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

BusinessService Resource Properties

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

Inputs

The BusinessService resource accepts the following input properties:

Description string
Name string
The name of the business service.
PointOfContact string
The owner of the business service.
Team string
ID of the team that owns the business service.
Type string
Default value is business_service. Can also be set as business_service_reference.
Description string
Name string
The name of the business service.
PointOfContact string
The owner of the business service.
Team string
ID of the team that owns the business service.
Type string
Default value is business_service. Can also be set as business_service_reference.
description string
name string
The name of the business service.
pointOfContact string
The owner of the business service.
team string
ID of the team that owns the business service.
type string
Default value is business_service. Can also be set as business_service_reference.
description str
name str
The name of the business service.
point_of_contact str
The owner of the business service.
team str
ID of the team that owns the business service.
type str
Default value is business_service. Can also be set as business_service_reference.

Outputs

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

HtmlUrl string
Id string
The provider-assigned unique ID for this managed resource.
Self string
Summary string
HtmlUrl string
Id string
The provider-assigned unique ID for this managed resource.
Self string
Summary string
htmlUrl string
id string
The provider-assigned unique ID for this managed resource.
self string
summary string
html_url str
id str
The provider-assigned unique ID for this managed resource.
self str
summary str

Look up an Existing BusinessService Resource

Get an existing BusinessService 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?: BusinessServiceState, opts?: CustomResourceOptions): BusinessService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        html_url: Optional[str] = None,
        name: Optional[str] = None,
        point_of_contact: Optional[str] = None,
        self: Optional[str] = None,
        summary: Optional[str] = None,
        team: Optional[str] = None,
        type: Optional[str] = None) -> BusinessService
func GetBusinessService(ctx *Context, name string, id IDInput, state *BusinessServiceState, opts ...ResourceOption) (*BusinessService, error)
public static BusinessService Get(string name, Input<string> id, BusinessServiceState? 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:

Description string
HtmlUrl string
Name string
The name of the business service.
PointOfContact string
The owner of the business service.
Self string
Summary string
Team string
ID of the team that owns the business service.
Type string
Default value is business_service. Can also be set as business_service_reference.
Description string
HtmlUrl string
Name string
The name of the business service.
PointOfContact string
The owner of the business service.
Self string
Summary string
Team string
ID of the team that owns the business service.
Type string
Default value is business_service. Can also be set as business_service_reference.
description string
htmlUrl string
name string
The name of the business service.
pointOfContact string
The owner of the business service.
self string
summary string
team string
ID of the team that owns the business service.
type string
Default value is business_service. Can also be set as business_service_reference.
description str
html_url str
name str
The name of the business service.
point_of_contact str
The owner of the business service.
self str
summary str
team str
ID of the team that owns the business service.
type str
Default value is business_service. Can also be set as business_service_reference.

Import

Services can be imported using the id, e.g.

 $ pulumi import pagerduty:index/businessService:BusinessService main PLBP09X

Package Details

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