import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Harness Notification Rule for Pipeline * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const projExample = new harness.platform.PipelineCentralNotificationRule("projExample", { * identifier: "identifier", * name: "name", * status: "ENABLED", * notificationChannelRefs: ["account.channel"], * org: "default", * project: "proj0", * notificationConditions: [{ * conditionName: "pipelineRuleProjectConditionName", * notificationEventConfigs: [{ * notificationEntity: "PIPELINE", * notificationEvent: "PIPELINE_START", * notificationEventDatas: [{ * type: "PIPELINE", * scopeIdentifiers: [], * }], * entityIdentifiers: [], * }], * }], * }); * const orgExample = new harness.platform.PipelineCentralNotificationRule("orgExample", { * identifier: "identifier", * name: "name", * status: "ENABLED", * notificationChannelRefs: ["channel"], * org: "default", * notificationConditions: [{ * conditionName: "pipelineRuleOrgConditionName", * notificationEventConfigs: [{ * notificationEntity: "PIPELINE", * notificationEvent: "PIPELINE_START", * notificationEventDatas: [{ * type: "PIPELINE", * scopeIdentifiers: [ * "proj0", * "random", * ], * }], * entityIdentifiers: [], * }], * }], * }); * const accountExample = new harness.platform.PipelineCentralNotificationRule("accountExample", { * identifier: "identifier", * name: "name", * status: "DISABLED", * notificationChannelRefs: ["org.channel"], * notificationConditions: [{ * conditionName: "pipelineRuleConditionName", * notificationEventConfigs: [{ * notificationEntity: "PIPELINE", * notificationEvent: "PIPELINE_START", * notificationEventDatas: [{ * type: "PIPELINE", * scopeIdentifiers: ["org"], * }], * entityIdentifiers: [], * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level pipeline central notification rule * * ```sh * $ pulumi import harness:platform/pipelineCentralNotificationRule:PipelineCentralNotificationRule example * ``` * * Import org level pipeline central notification rule * * ```sh * $ pulumi import harness:platform/pipelineCentralNotificationRule:PipelineCentralNotificationRule example / * ``` * * Import project level pipeline central notification rule * * ```sh * $ pulumi import harness:platform/pipelineCentralNotificationRule:PipelineCentralNotificationRule example // * ``` */ export declare class PipelineCentralNotificationRule extends pulumi.CustomResource { /** * Get an existing PipelineCentralNotificationRule 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, state?: PipelineCentralNotificationRuleState, opts?: pulumi.CustomResourceOptions): PipelineCentralNotificationRule; /** * Returns true if the given object is an instance of PipelineCentralNotificationRule. 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 PipelineCentralNotificationRule; /** * Account identifier associated with this notification channel. */ readonly account: pulumi.Output; /** * Timestamp when the notification rule was created. */ readonly created: pulumi.Output; readonly customNotificationTemplateRef: pulumi.Output; readonly identifier: pulumi.Output; /** * Timestamp when the notification rule was last modified. */ readonly lastModified: pulumi.Output; readonly name: pulumi.Output; readonly notificationChannelRefs: pulumi.Output; readonly notificationConditions: pulumi.Output; readonly org: pulumi.Output; readonly project: pulumi.Output; readonly status: pulumi.Output; /** * Create a PipelineCentralNotificationRule 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: PipelineCentralNotificationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PipelineCentralNotificationRule resources. */ export interface PipelineCentralNotificationRuleState { /** * Account identifier associated with this notification channel. */ account?: pulumi.Input; /** * Timestamp when the notification rule was created. */ created?: pulumi.Input; customNotificationTemplateRef?: pulumi.Input; identifier?: pulumi.Input; /** * Timestamp when the notification rule was last modified. */ lastModified?: pulumi.Input; name?: pulumi.Input; notificationChannelRefs?: pulumi.Input[] | undefined>; notificationConditions?: pulumi.Input[] | undefined>; org?: pulumi.Input; project?: pulumi.Input; status?: pulumi.Input; } /** * The set of arguments for constructing a PipelineCentralNotificationRule resource. */ export interface PipelineCentralNotificationRuleArgs { customNotificationTemplateRef?: pulumi.Input; identifier: pulumi.Input; name?: pulumi.Input; notificationChannelRefs: pulumi.Input[]>; notificationConditions: pulumi.Input[]>; org?: pulumi.Input; project?: pulumi.Input; status?: pulumi.Input; } //# sourceMappingURL=pipelineCentralNotificationRule.d.ts.map