AzureEventHubResource
Handle
Represents an Azure Event Hub. Initializes a new instance of the Azure class.
type AzureEventHubResource interface { ExpressionValue Resource ResourceWithConnectionString ResourceWithParent}7 members
Properties
property
ConnectionStringExpression *ReferenceExpression getGets the connection string expression for the Azure Event Hub.
ConnectionStringExpression() *ReferenceExpressionproperty
HubName stringget · setThe event hub name.
HubName() (string, error)SetHubName(value string) AzureEventHubResourceproperty
ParentAzureEventHubsResource getGets the parent Azure Event Hubs resource.
Parent() AzureEventHubsResourceproperty
PartitionCount *float64get · setNumber of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
PartitionCount() (*float64, error)SetPartitionCount(value *float64) AzureEventHubResourceproperty
ResourceTypeDisplayName stringgetGets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)Methods
Adds an Azure Event Hub Consumer Group resource to the application model.
AddConsumerGroup( name string, options ...*AddConsumerGroupOptions,) AzureEventHubConsumerGroupResourceParameters
namestringThe name of the Event Hub Consumer Group resource.options...*AddConsumerGroupOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddConsumerGroupOptions argument.
GroupName *stringThe name of the Consumer Group. If not provided, this defaults to the same value as name.Returns
AzureEventHubConsumerGroupResource The resource builder.
Returns a handle; failures surface later via Err().
Allows setting the properties of an Azure Event Hub resource.
WithProperties(configure func(obj AzureEventHubResource)) AzureEventHubResourceParameters
configurefunc(obj AzureEventHubResource) callbackA method that can be used for customizing the AzureEventHubResource .Returns
AzureEventHubResource The resource builder.
Returns a handle; failures surface later via Err().