@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
62 lines (61 loc) • 3.02 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* A [service dependency](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODE5Mg-associate-service-dependencies) is a relationship between two services that this service uses, or that are used by this service, and are critical for successful operation.
*
* ## Import
*
* Service dependencies can be imported using the related supporting service id, supporting service type (`business_service` or `service`) and the dependency id separated by a dot, e.g.
*
* ```sh
* $ pulumi import pagerduty:index/serviceDependency:ServiceDependency main P4B2Z7G.business_service.D5RTHKRNGU4PYE90PJ
* ```
*/
export declare class ServiceDependency extends pulumi.CustomResource {
/**
* Get an existing ServiceDependency resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceDependencyState, opts?: pulumi.CustomResourceOptions): ServiceDependency;
/**
* Returns true if the given object is an instance of ServiceDependency. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ServiceDependency;
/**
* The relationship between the `supportingService` and `dependentService`. One and only one dependency block must be defined.
*/
readonly dependency: pulumi.Output<outputs.ServiceDependencyDependency | undefined>;
/**
* Create a ServiceDependency resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: ServiceDependencyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ServiceDependency resources.
*/
export interface ServiceDependencyState {
/**
* The relationship between the `supportingService` and `dependentService`. One and only one dependency block must be defined.
*/
dependency?: pulumi.Input<inputs.ServiceDependencyDependency>;
}
/**
* The set of arguments for constructing a ServiceDependency resource.
*/
export interface ServiceDependencyArgs {
/**
* The relationship between the `supportingService` and `dependentService`. One and only one dependency block must be defined.
*/
dependency?: pulumi.Input<inputs.ServiceDependencyDependency>;
}