import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog team notification rule resource. This can be used to create and manage notification rules for Datadog teams. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create new team-notification-rule resource * const foo = new datadog.Team("foo", { * description: "Example team", * handle: "example-team", * name: "Example Team", * }); * const fooTeamNotificationRule = new datadog.TeamNotificationRule("foo", { * teamId: foo.id, * email: [{ * enabled: true, * }], * msTeams: [{ * connectorName: "test-teams-handle", * }], * pagerduty: [{ * serviceName: "my-service", * }], * slack: [{ * channel: "#test-channel", * workspace: "Datadog", * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * This resource is imported using teamId and ruleId separated by `:`. * * ```sh * $ pulumi import datadog:index/teamNotificationRule:TeamNotificationRule foo "${team_id}:${rule_id}" * ``` */ export declare class TeamNotificationRule extends pulumi.CustomResource { /** * Get an existing TeamNotificationRule 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?: TeamNotificationRuleState, opts?: pulumi.CustomResourceOptions): TeamNotificationRule; /** * Returns true if the given object is an instance of TeamNotificationRule. 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 TeamNotificationRule; /** * The email notification settings. */ readonly email: pulumi.Output; /** * The MS Teams notification settings. */ readonly msTeams: pulumi.Output; /** * The PagerDuty notification settings. */ readonly pagerduty: pulumi.Output; /** * The Slack notification settings. */ readonly slack: pulumi.Output; /** * The ID of the team that this notification rule belongs to. */ readonly teamId: pulumi.Output; /** * Create a TeamNotificationRule 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: TeamNotificationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TeamNotificationRule resources. */ export interface TeamNotificationRuleState { /** * The email notification settings. */ email?: pulumi.Input; /** * The MS Teams notification settings. */ msTeams?: pulumi.Input; /** * The PagerDuty notification settings. */ pagerduty?: pulumi.Input; /** * The Slack notification settings. */ slack?: pulumi.Input; /** * The ID of the team that this notification rule belongs to. */ teamId?: pulumi.Input; } /** * The set of arguments for constructing a TeamNotificationRule resource. */ export interface TeamNotificationRuleArgs { /** * The email notification settings. */ email?: pulumi.Input; /** * The MS Teams notification settings. */ msTeams?: pulumi.Input; /** * The PagerDuty notification settings. */ pagerduty?: pulumi.Input; /** * The Slack notification settings. */ slack?: pulumi.Input; /** * The ID of the team that this notification rule belongs to. */ teamId: pulumi.Input; }