UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

173 lines (172 loc) 7.26 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * An event source that receives its data from an Azure EventHub. * * Uses Azure REST API version 2020-05-15. In version 2.x of the Azure Native provider, it used API version 2020-05-15. */ export declare class EventHubEventSource extends pulumi.CustomResource { /** * Get an existing EventHubEventSource 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): EventHubEventSource; /** * Returns true if the given object is an instance of EventHubEventSource. 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 EventHubEventSource; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * The name of the event hub's consumer group that holds the partitions from which events will be read. */ readonly consumerGroupName: pulumi.Output<string>; /** * The time the resource was created. */ readonly creationTime: pulumi.Output<string>; /** * The name of the event hub. */ readonly eventHubName: pulumi.Output<string>; /** * The resource id of the event source in Azure Resource Manager. */ readonly eventSourceResourceId: pulumi.Output<string>; /** * The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub. */ readonly keyName: pulumi.Output<string>; /** * The kind of the event source. * Expected value is 'Microsoft.EventHub'. */ readonly kind: pulumi.Output<"Microsoft.EventHub">; /** * An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. */ readonly localTimestamp: pulumi.Output<outputs.timeseriesinsights.LocalTimestampResponse | undefined>; /** * Resource location */ readonly location: pulumi.Output<string>; /** * Resource name */ readonly name: pulumi.Output<string>; /** * Provisioning state of the resource. */ readonly provisioningState: pulumi.Output<string>; /** * The name of the service bus that contains the event hub. */ readonly serviceBusNamespace: pulumi.Output<string>; /** * Resource tags */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed. */ readonly time: pulumi.Output<string | undefined>; /** * The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. */ readonly timestampPropertyName: pulumi.Output<string | undefined>; /** * Resource type */ readonly type: pulumi.Output<string>; /** * Create a EventHubEventSource 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: EventHubEventSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a EventHubEventSource resource. */ export interface EventHubEventSourceArgs { /** * The name of the event hub's consumer group that holds the partitions from which events will be read. */ consumerGroupName: pulumi.Input<string>; /** * The name of the Time Series Insights environment associated with the specified resource group. */ environmentName: pulumi.Input<string>; /** * The name of the event hub. */ eventHubName: pulumi.Input<string>; /** * Name of the event source. */ eventSourceName?: pulumi.Input<string>; /** * The resource id of the event source in Azure Resource Manager. */ eventSourceResourceId: pulumi.Input<string>; /** * The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub. */ keyName: pulumi.Input<string>; /** * The kind of the event source. * Expected value is 'Microsoft.EventHub'. */ kind: pulumi.Input<"Microsoft.EventHub">; /** * An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. */ localTimestamp?: pulumi.Input<inputs.timeseriesinsights.LocalTimestampArgs>; /** * The location of the resource. */ location?: pulumi.Input<string>; /** * Name of an Azure Resource group. */ resourceGroupName: pulumi.Input<string>; /** * The name of the service bus that contains the event hub. */ serviceBusNamespace: pulumi.Input<string>; /** * The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses. */ sharedAccessKey: pulumi.Input<string>; /** * Key-value pairs of additional properties for the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed. */ time?: pulumi.Input<string>; /** * The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. */ timestampPropertyName?: pulumi.Input<string>; /** * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". */ type?: pulumi.Input<string | enums.timeseriesinsights.IngressStartAtType>; }