@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
89 lines (88 loc) • 2.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Use this data source to get information about a specific [alert grouping setting](https://developer.pagerduty.com/api-reference/9b5a6c8d7379b-get-an-alert-grouping-setting).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const example = pagerduty.getAlertGroupingSetting({
* name: "My example setting",
* });
* ```
*/
export declare function getAlertGroupingSetting(args: GetAlertGroupingSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertGroupingSettingResult>;
/**
* A collection of arguments for invoking getAlertGroupingSetting.
*/
export interface GetAlertGroupingSettingArgs {
/**
* The values for the configuration setup for this setting.
*/
config?: inputs.GetAlertGroupingSettingConfig;
/**
* The name to use to find an alert grouping setting in the PagerDuty API.
*/
name: string;
}
/**
* A collection of values returned by getAlertGroupingSetting.
*/
export interface GetAlertGroupingSettingResult {
/**
* The values for the configuration setup for this setting.
*/
readonly config?: outputs.GetAlertGroupingSettingConfig;
/**
* A description of this alert grouping setting.
*/
readonly description: string;
/**
* The ID of the found alert grouping setting.
*/
readonly id: string;
/**
* The short name of the found alert grouping setting.
*/
readonly name: string;
/**
* A list of string containing the IDs of services associated with this setting.
*/
readonly services: string[];
/**
* The type of object. The value returned will be one of `contentBased`, `contentBasedIntelligent`, `intelligent` or `time`.
*/
readonly type: string;
}
/**
* Use this data source to get information about a specific [alert grouping setting](https://developer.pagerduty.com/api-reference/9b5a6c8d7379b-get-an-alert-grouping-setting).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const example = pagerduty.getAlertGroupingSetting({
* name: "My example setting",
* });
* ```
*/
export declare function getAlertGroupingSettingOutput(args: GetAlertGroupingSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertGroupingSettingResult>;
/**
* A collection of arguments for invoking getAlertGroupingSetting.
*/
export interface GetAlertGroupingSettingOutputArgs {
/**
* The values for the configuration setup for this setting.
*/
config?: pulumi.Input<inputs.GetAlertGroupingSettingConfigArgs>;
/**
* The name to use to find an alert grouping setting in the PagerDuty API.
*/
name: pulumi.Input<string>;
}