UNPKG

@pulumi/opsgenie

Version:

A Pulumi package for creating and managing opsgenie cloud resources.

82 lines (81 loc) 2.16 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages existing Service within Opsgenie. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as opsgenie from "@pulumi/opsgenie"; * * const _this = opsgenie.getService({ * name: "Payment", * }); * ``` */ export declare function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceArgs { /** * Description field of the service that is generally used to provide a detailed information about the service. */ description?: string; /** * Name of the service. This field must not be longer than 100 characters. * * The following attributes are exported: */ name: string; /** * Team id of the service. */ teamId?: string; } /** * A collection of values returned by getService. */ export interface GetServiceResult { readonly description?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; readonly teamId?: string; } /** * Manages existing Service within Opsgenie. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as opsgenie from "@pulumi/opsgenie"; * * const _this = opsgenie.getService({ * name: "Payment", * }); * ``` */ export declare function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceOutputArgs { /** * Description field of the service that is generally used to provide a detailed information about the service. */ description?: pulumi.Input<string>; /** * Name of the service. This field must not be longer than 100 characters. * * The following attributes are exported: */ name: pulumi.Input<string>; /** * Team id of the service. */ teamId?: pulumi.Input<string>; }