import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Allows you to manage Auth0 Event Streams. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Creates an event stream of type eventbridge * const myEventStreamEventBridge = new auth0.EventStream("my_event_stream_event_bridge", { * name: "my-eventbridge", * destinationType: "eventbridge", * subscriptions: [ * "user.created", * "user.updated", * ], * eventbridgeConfiguration: { * awsAccountId: "242849305777", * awsRegion: "us-east-1", * }, * }); * // Creates an event stream of type webhook * const myEventStreamWebhook = new auth0.EventStream("my_event_stream_webhook", { * name: "my-webhook", * destinationType: "webhook", * subscriptions: [ * "user.created", * "user.updated", * ], * webhookConfiguration: { * webhookEndpoint: "https://eof28wtn4v4506o.m.pipedream.net", * webhookAuthorization: { * method: "bearer", * token: "123456789", * }, * }, * }); * ``` * * ## Import * * This resource can be imported by specifying the Event Stream ID. * * Example: * * ```sh * $ pulumi import auth0:index/eventStream:EventStream my_stream "est_XXXXXXXXXXXXXXXX" * ``` */ export declare class EventStream extends pulumi.CustomResource { /** * Get an existing EventStream 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?: EventStreamState, opts?: pulumi.CustomResourceOptions): EventStream; /** * Returns true if the given object is an instance of EventStream. 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 EventStream; /** * The ISO 8601 timestamp when the stream was created. */ readonly createdAt: pulumi.Output; /** * The type of event stream destination (either 'eventbridge' or 'webhook'). */ readonly destinationType: pulumi.Output; /** * Configuration for the EventBridge destination. This block is only applicable when `destinationType` is set to `eventbridge`. EventBridge configurations **cannot** be updated after creation. Any change to this block will force the resource to be recreated. */ readonly eventbridgeConfiguration: pulumi.Output; /** * The name of the event stream. */ readonly name: pulumi.Output; /** * The current status of the event stream. */ readonly status: pulumi.Output; /** * List of event types this stream is subscribed to. */ readonly subscriptions: pulumi.Output; /** * The ISO 8601 timestamp when the stream was last updated. */ readonly updatedAt: pulumi.Output; /** * Configuration for the Webhook destination. This block is only applicable when `destinationType` is set to `webhook`. Webhook configurations **can** be updated after creation, including the endpoint and authorization fields. */ readonly webhookConfiguration: pulumi.Output; /** * Create a EventStream 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: EventStreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EventStream resources. */ export interface EventStreamState { /** * The ISO 8601 timestamp when the stream was created. */ createdAt?: pulumi.Input; /** * The type of event stream destination (either 'eventbridge' or 'webhook'). */ destinationType?: pulumi.Input; /** * Configuration for the EventBridge destination. This block is only applicable when `destinationType` is set to `eventbridge`. EventBridge configurations **cannot** be updated after creation. Any change to this block will force the resource to be recreated. */ eventbridgeConfiguration?: pulumi.Input; /** * The name of the event stream. */ name?: pulumi.Input; /** * The current status of the event stream. */ status?: pulumi.Input; /** * List of event types this stream is subscribed to. */ subscriptions?: pulumi.Input[]>; /** * The ISO 8601 timestamp when the stream was last updated. */ updatedAt?: pulumi.Input; /** * Configuration for the Webhook destination. This block is only applicable when `destinationType` is set to `webhook`. Webhook configurations **can** be updated after creation, including the endpoint and authorization fields. */ webhookConfiguration?: pulumi.Input; } /** * The set of arguments for constructing a EventStream resource. */ export interface EventStreamArgs { /** * The type of event stream destination (either 'eventbridge' or 'webhook'). */ destinationType: pulumi.Input; /** * Configuration for the EventBridge destination. This block is only applicable when `destinationType` is set to `eventbridge`. EventBridge configurations **cannot** be updated after creation. Any change to this block will force the resource to be recreated. */ eventbridgeConfiguration?: pulumi.Input; /** * The name of the event stream. */ name?: pulumi.Input; /** * List of event types this stream is subscribed to. */ subscriptions: pulumi.Input[]>; /** * Configuration for the Webhook destination. This block is only applicable when `destinationType` is set to `webhook`. Webhook configurations **can** be updated after creation, including the endpoint and authorization fields. */ webhookConfiguration?: pulumi.Input; }