UNPKG

@pulumi/signalfx

Version:

A Pulumi package for creating and managing SignalFx resources.

91 lines (90 loc) 3.14 kB
import * as pulumi from "@pulumi/pulumi"; /** * Slack integration. * * > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error. * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as signalfx from "@pulumi/signalfx"; * * const slackMyteam = new signalfx.slack.Integration("slack_myteam", { * name: "Slack - My Team", * enabled: true, * webhookUrl: "http://example.com", * }); * ``` */ export declare class Integration extends pulumi.CustomResource { /** * Get an existing Integration 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?: IntegrationState, opts?: pulumi.CustomResourceOptions): Integration; /** * Returns true if the given object is an instance of Integration. 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 Integration; /** * Whether the integration is enabled. */ readonly enabled: pulumi.Output<boolean>; /** * Name of the integration. */ readonly name: pulumi.Output<string>; /** * Slack incoming webhook URL. */ readonly webhookUrl: pulumi.Output<string>; /** * Create a Integration 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: IntegrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Integration resources. */ export interface IntegrationState { /** * Whether the integration is enabled. */ enabled?: pulumi.Input<boolean>; /** * Name of the integration. */ name?: pulumi.Input<string>; /** * Slack incoming webhook URL. */ webhookUrl?: pulumi.Input<string>; } /** * The set of arguments for constructing a Integration resource. */ export interface IntegrationArgs { /** * Whether the integration is enabled. */ enabled: pulumi.Input<boolean>; /** * Name of the integration. */ name?: pulumi.Input<string>; /** * Slack incoming webhook URL. */ webhookUrl: pulumi.Input<string>; }