UNPKG

@pulumi/opsgenie

Version:

A Pulumi package for creating and managing opsgenie cloud resources.

125 lines (124 loc) 4.71 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages an Email Integration within Opsgenie. * * ## Import * * Email Integrations can be imported using the `id`, e.g. * * ```sh * $ pulumi import opsgenie:index/emailIntegration:EmailIntegration test id` * ``` */ export declare class EmailIntegration extends pulumi.CustomResource { /** * Get an existing EmailIntegration 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<pulumi.ID>, state?: EmailIntegrationState, opts?: pulumi.CustomResourceOptions): EmailIntegration; /** * Returns true if the given object is an instance of EmailIntegration. 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 EmailIntegration; /** * The username part of the email address. It must be unique for each integration. */ readonly emailUsername: pulumi.Output<string>; /** * A Member block as documented below. */ readonly enabled: pulumi.Output<boolean | undefined>; /** * If enabled, the integration will ignore recipients sent in request payloads. Default: `false`. */ readonly ignoreRespondersFromPayload: pulumi.Output<boolean | undefined>; /** * Name of the integration. Name must be unique for each integration. */ readonly name: pulumi.Output<string>; /** * Owner team id of the integration. */ readonly ownerTeamId: pulumi.Output<string | undefined>; readonly responders: pulumi.Output<outputs.EmailIntegrationResponder[] | undefined>; /** * If enabled, notifications that come from alerts will be suppressed. Default: `false`. */ readonly suppressNotifications: pulumi.Output<boolean | undefined>; /** * Create a EmailIntegration 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: EmailIntegrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EmailIntegration resources. */ export interface EmailIntegrationState { /** * The username part of the email address. It must be unique for each integration. */ emailUsername?: pulumi.Input<string>; /** * A Member block as documented below. */ enabled?: pulumi.Input<boolean>; /** * If enabled, the integration will ignore recipients sent in request payloads. Default: `false`. */ ignoreRespondersFromPayload?: pulumi.Input<boolean>; /** * Name of the integration. Name must be unique for each integration. */ name?: pulumi.Input<string>; /** * Owner team id of the integration. */ ownerTeamId?: pulumi.Input<string>; responders?: pulumi.Input<pulumi.Input<inputs.EmailIntegrationResponder>[]>; /** * If enabled, notifications that come from alerts will be suppressed. Default: `false`. */ suppressNotifications?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a EmailIntegration resource. */ export interface EmailIntegrationArgs { /** * The username part of the email address. It must be unique for each integration. */ emailUsername: pulumi.Input<string>; /** * A Member block as documented below. */ enabled?: pulumi.Input<boolean>; /** * If enabled, the integration will ignore recipients sent in request payloads. Default: `false`. */ ignoreRespondersFromPayload?: pulumi.Input<boolean>; /** * Name of the integration. Name must be unique for each integration. */ name?: pulumi.Input<string>; /** * Owner team id of the integration. */ ownerTeamId?: pulumi.Input<string>; responders?: pulumi.Input<pulumi.Input<inputs.EmailIntegrationResponder>[]>; /** * If enabled, notifications that come from alerts will be suppressed. Default: `false`. */ suppressNotifications?: pulumi.Input<boolean>; }