pagerduty.BusinessService
Explore with Pulumi AI
A business service allows you to model capabilities that span multiple technical services and that may be owned by several different teams.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const example = new pagerduty.BusinessService("example", {
name: "My Web App",
description: "A very descriptive description of this business service",
pointOfContact: "PagerDuty Admin",
team: "P37RSRS",
});
import pulumi
import pulumi_pagerduty as pagerduty
example = pagerduty.BusinessService("example",
name="My Web App",
description="A very descriptive description of this business service",
point_of_contact="PagerDuty Admin",
team="P37RSRS")
package main
import (
"github.com/pulumi/pulumi-pagerduty/sdk/v4/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{
Name: pulumi.String("My Web App"),
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var example = new Pagerduty.BusinessService("example", new()
{
Name = "My Web App",
Description = "A very descriptive description of this business service",
PointOfContact = "PagerDuty Admin",
Team = "P37RSRS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.BusinessService;
import com.pulumi.pagerduty.BusinessServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new BusinessService("example", BusinessServiceArgs.builder()
.name("My Web App")
.description("A very descriptive description of this business service")
.pointOfContact("PagerDuty Admin")
.team("P37RSRS")
.build());
}
}
resources:
example:
type: pagerduty:BusinessService
properties:
name: My Web App
description: A very descriptive description of this business service
pointOfContact: PagerDuty Admin
team: P37RSRS
Create BusinessService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BusinessService(name: string, args?: BusinessServiceArgs, opts?: CustomResourceOptions);
@overload
def BusinessService(resource_name: str,
args: Optional[BusinessServiceArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
func NewBusinessService(ctx *Context, name string, args *BusinessServiceArgs, opts ...ResourceOption) (*BusinessService, error)
public BusinessService(string name, BusinessServiceArgs? args = null, CustomResourceOptions? opts = null)
public BusinessService(String name, BusinessServiceArgs args)
public BusinessService(String name, BusinessServiceArgs args, CustomResourceOptions options)
type: pagerduty:BusinessService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args BusinessServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var businessServiceResource = new Pagerduty.BusinessService("businessServiceResource", new()
{
Description = "string",
Name = "string",
PointOfContact = "string",
Team = "string",
});
example, err := pagerduty.NewBusinessService(ctx, "businessServiceResource", &pagerduty.BusinessServiceArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PointOfContact: pulumi.String("string"),
Team: pulumi.String("string"),
})
var businessServiceResource = new BusinessService("businessServiceResource", BusinessServiceArgs.builder()
.description("string")
.name("string")
.pointOfContact("string")
.team("string")
.build());
business_service_resource = pagerduty.BusinessService("businessServiceResource",
description="string",
name="string",
point_of_contact="string",
team="string")
const businessServiceResource = new pagerduty.BusinessService("businessServiceResource", {
description: "string",
name: "string",
pointOfContact: "string",
team: "string",
});
type: pagerduty:BusinessService
properties:
description: string
name: string
pointOfContact: string
team: string
BusinessService Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BusinessService resource accepts the following input properties:
- Description string
- Name string
- The name of the business service.
- Point
Of stringContact - The owner of the business service.
- Team string
- ID of the team that owns the business service.
- Type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- Description string
- Name string
- The name of the business service.
- Point
Of stringContact - The owner of the business service.
- Team string
- ID of the team that owns the business service.
- Type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description String
- name String
- The name of the business service.
- point
Of StringContact - The owner of the business service.
- team String
- ID of the team that owns the business service.
- type String
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description string
- name string
- The name of the business service.
- point
Of stringContact - The owner of the business service.
- team string
- ID of the team that owns the business service.
- type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description str
- name str
- The name of the business service.
- point_
of_ strcontact - The owner of the business service.
- team str
- ID of the team that owns the business service.
- type str
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description String
- name String
- The name of the business service.
- point
Of StringContact - The owner of the business service.
- team String
- ID of the team that owns the business service.
- type String
- Deprecated (Optional) Default (and only supported) value is
business_service
.
Outputs
All input properties are implicitly available as output properties. Additionally, the BusinessService resource produces the following output properties:
- Html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self string
- The API show URL at which the object is accessible.
- Summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
- Html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self string
- The API show URL at which the object is accessible.
- Summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
- html
Url String - A URL at which the entity is uniquely displayed in the Web app.
- id String
- The provider-assigned unique ID for this managed resource.
- self String
- The API show URL at which the object is accessible.
- summary String
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
- html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- id string
- The provider-assigned unique ID for this managed resource.
- self string
- The API show URL at which the object is accessible.
- summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
- html_
url str - A URL at which the entity is uniquely displayed in the Web app.
- id str
- The provider-assigned unique ID for this managed resource.
- self str
- The API show URL at which the object is accessible.
- summary str
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
- html
Url String - A URL at which the entity is uniquely displayed in the Web app.
- id String
- The provider-assigned unique ID for this managed resource.
- self String
- The API show URL at which the object is accessible.
- summary String
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier.
Look up 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)
public static BusinessService get(String name, Output<String> id, BusinessServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Description string
- Html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- Name string
- The name of the business service.
- Point
Of stringContact - The owner of the business service.
- Self string
- The API show URL at which the object is accessible.
- Summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - Team string
- ID of the team that owns the business service.
- Type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- Description string
- Html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- Name string
- The name of the business service.
- Point
Of stringContact - The owner of the business service.
- Self string
- The API show URL at which the object is accessible.
- Summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - Team string
- ID of the team that owns the business service.
- Type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description String
- html
Url String - A URL at which the entity is uniquely displayed in the Web app.
- name String
- The name of the business service.
- point
Of StringContact - The owner of the business service.
- self String
- The API show URL at which the object is accessible.
- summary String
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - team String
- ID of the team that owns the business service.
- type String
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description string
- html
Url string - A URL at which the entity is uniquely displayed in the Web app.
- name string
- The name of the business service.
- point
Of stringContact - The owner of the business service.
- self string
- The API show URL at which the object is accessible.
- summary string
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - team string
- ID of the team that owns the business service.
- type string
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description str
- html_
url str - A URL at which the entity is uniquely displayed in the Web app.
- name str
- The name of the business service.
- point_
of_ strcontact - The owner of the business service.
- self str
- The API show URL at which the object is accessible.
- summary str
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - team str
- ID of the team that owns the business service.
- type str
- Deprecated (Optional) Default (and only supported) value is
business_service
.
- description String
- html
Url String - A URL at which the entity is uniquely displayed in the Web app.
- name String
- The name of the business service.
- point
Of StringContact - The owner of the business service.
- self String
- The API show URL at which the object is accessible.
- summary String
- A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to
name
, though it is not intended to be an identifier. - team String
- ID of the team that owns the business service.
- type String
- Deprecated (Optional) Default (and only supported) value is
business_service
.
Import
Services can be imported using the id
, e.g.
$ pulumi import pagerduty:index/businessService:BusinessService main PLBP09X
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.