@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
91 lines (90 loc) • 2.56 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for retrieving a Notification Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getNotificationRule({
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getNotificationRule(args: GetNotificationRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetNotificationRuleResult>;
/**
* A collection of arguments for invoking getNotificationRule.
*/
export interface GetNotificationRuleArgs {
/**
* Identifier of the Notification Rule.
*/
identifier: string;
/**
* Identifier of the organization in which the Notification Rule is configured.
*/
orgId: string;
/**
* Identifier of the project in which the Notification Rule is configured.
*/
projectId: string;
}
/**
* A collection of values returned by getNotificationRule.
*/
export interface GetNotificationRuleResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Identifier of the Notification Rule.
*/
readonly identifier: string;
/**
* Identifier of the organization in which the Notification Rule is configured.
*/
readonly orgId: string;
/**
* Identifier of the project in which the Notification Rule is configured.
*/
readonly projectId: string;
}
/**
* Data source for retrieving a Notification Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getNotificationRule({
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
export declare function getNotificationRuleOutput(args: GetNotificationRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNotificationRuleResult>;
/**
* A collection of arguments for invoking getNotificationRule.
*/
export interface GetNotificationRuleOutputArgs {
/**
* Identifier of the Notification Rule.
*/
identifier: pulumi.Input<string>;
/**
* Identifier of the organization in which the Notification Rule is configured.
*/
orgId: pulumi.Input<string>;
/**
* Identifier of the project in which the Notification Rule is configured.
*/
projectId: pulumi.Input<string>;
}