import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to get information about a specific alert channel in New Relic that already exists. More information on Terraform's data sources can be found here. * * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * // Data source * const foo = newrelic.getAlertChannel({ * name: "foo@example.com", * }); * // Resource * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"}); * // Using the function and resource together * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", { * policyId: fooAlertPolicy.id, * channelId: foo.then(foo => foo.id), * }); * ``` */ export declare function getAlertChannel(args: GetAlertChannelArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlertChannel. */ export interface GetAlertChannelArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: string; /** * The name of the alert channel in New Relic. */ name: string; } /** * A collection of values returned by getAlertChannel. */ export interface GetAlertChannelResult { readonly accountId: string; /** * Alert channel configuration. */ readonly config: outputs.GetAlertChannelConfig; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * A list of policy IDs associated with the alert channel. */ readonly policyIds: string[]; /** * Alert channel type, either: `email`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`. */ readonly type: string; } /** * Use this data source to get information about a specific alert channel in New Relic that already exists. More information on Terraform's data sources can be found here. * * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * // Data source * const foo = newrelic.getAlertChannel({ * name: "foo@example.com", * }); * // Resource * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"}); * // Using the function and resource together * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", { * policyId: fooAlertPolicy.id, * channelId: foo.then(foo => foo.id), * }); * ``` */ export declare function getAlertChannelOutput(args: GetAlertChannelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlertChannel. */ export interface GetAlertChannelOutputArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: pulumi.Input; /** * The name of the alert channel in New Relic. */ name: pulumi.Input; } //# sourceMappingURL=getAlertChannel.d.ts.map