UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

67 lines (66 loc) 2.1 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific [business service](https://api-reference.pagerduty.com/#!/Business_Services/get_business_services). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const example = pagerduty.getBusinessService({ * name: "My Service", * }); * ``` */ export declare function getBusinessService(args: GetBusinessServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetBusinessServiceResult>; /** * A collection of arguments for invoking getBusinessService. */ export interface GetBusinessServiceArgs { /** * The business service name to use to find a business service in the PagerDuty API. */ name: string; } /** * A collection of values returned by getBusinessService. */ export interface GetBusinessServiceResult { /** * The ID of the found business service. */ readonly id: string; /** * The short name of the found business service. */ readonly name: string; /** * The type of object. The value returned will be `businessService`. Can be used for passing to a service dependency. */ readonly type: string; } /** * Use this data source to get information about a specific [business service](https://api-reference.pagerduty.com/#!/Business_Services/get_business_services). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const example = pagerduty.getBusinessService({ * name: "My Service", * }); * ``` */ export declare function getBusinessServiceOutput(args: GetBusinessServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBusinessServiceResult>; /** * A collection of arguments for invoking getBusinessService. */ export interface GetBusinessServiceOutputArgs { /** * The business service name to use to find a business service in the PagerDuty API. */ name: pulumi.Input<string>; }