AzureEventHubResource
Handle
interface AzureEventHubResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, AzureEventHubsResource]], IValueProvider, IValueWithReferences, IResourceWithAzureFunctionsConfig { readonly connectionStringExpression: ReferenceExpression; hubName: string; readonly parent: AzureEventHubsResource; partitionCount: number; readonly resourceTypeDisplayName: string; addConsumerGroup( name: string, groupName?: string): AzureEventHubConsumerGroupResource; withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResource;}9 members
Properties
property
connectionStringExpression ReferenceExpression getGets the connection string expression for the Azure Event Hub.
property
hubName stringget · setThe event hub name.
property
parentAzureEventHubsResource getGets the parent Azure Event Hubs resource.
property
partitionCount numberget · setNumber of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
property
resourceTypeDisplayName stringgetGets the ResourceTypeDisplayName property
Methods
Adds an Azure Event Hub Consumer Group resource to the application model.
addConsumerGroup( name: string, groupName?: string): AzureEventHubConsumerGroupResourceParameters
namestringThe name of the Event Hub Consumer Group resource.groupName stringoptionalThe name of the Consumer Group. If not provided, this defaults to the same value as `name`.Returns
AzureEventHubConsumerGroupResource Allows setting the properties of an Azure Event Hub resource.
withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResourceParameters
configure(obj: AzureEventHubResource) => Promise<void> A method that can be used for customizing the `AzureEventHubResource`.Returns
AzureEventHubResource