@pulumi/opsgenie
Version:
A Pulumi package for creating and managing opsgenie cloud resources.
110 lines (109 loc) • 2.73 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Manages an Escalation within Opsgenie.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as opsgenie from "@pulumi/opsgenie";
*
* const test = opsgenie.getEscalation({
* name: "existing-escalation",
* });
* ```
*/
export declare function getEscalation(args: GetEscalationArgs, opts?: pulumi.InvokeOptions): Promise<GetEscalationResult>;
/**
* A collection of arguments for invoking getEscalation.
*/
export interface GetEscalationArgs {
/**
* Escalation Description
*/
description?: string;
/**
* Name of the escalation.
*/
name: string;
/**
* If owner team exist the id of the team is exported
*/
ownerTeamId?: string;
/**
* Escalation repeat preferences
*/
repeats?: inputs.GetEscalationRepeat[];
/**
* Escalation rules
*/
rules?: inputs.GetEscalationRule[];
}
/**
* A collection of values returned by getEscalation.
*/
export interface GetEscalationResult {
/**
* Escalation Description
*/
readonly description?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
/**
* If owner team exist the id of the team is exported
*/
readonly ownerTeamId?: string;
/**
* Escalation repeat preferences
*/
readonly repeats?: outputs.GetEscalationRepeat[];
/**
* Escalation rules
*/
readonly rules?: outputs.GetEscalationRule[];
}
/**
* Manages an Escalation within Opsgenie.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as opsgenie from "@pulumi/opsgenie";
*
* const test = opsgenie.getEscalation({
* name: "existing-escalation",
* });
* ```
*/
export declare function getEscalationOutput(args: GetEscalationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEscalationResult>;
/**
* A collection of arguments for invoking getEscalation.
*/
export interface GetEscalationOutputArgs {
/**
* Escalation Description
*/
description?: pulumi.Input<string>;
/**
* Name of the escalation.
*/
name: pulumi.Input<string>;
/**
* If owner team exist the id of the team is exported
*/
ownerTeamId?: pulumi.Input<string>;
/**
* Escalation repeat preferences
*/
repeats?: pulumi.Input<pulumi.Input<inputs.GetEscalationRepeatArgs>[]>;
/**
* Escalation rules
*/
rules?: pulumi.Input<pulumi.Input<inputs.GetEscalationRuleArgs>[]>;
}