RoutingProperties Class

The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

Inheritance
RoutingProperties

Constructor

RoutingProperties(*, endpoints: typing.Union[_ForwardRef('RoutingEndpoints'), NoneType] = None, routes: typing.Union[typing.List[_ForwardRef('RouteProperties')], NoneType] = None, fallback_route: typing.Union[_ForwardRef('FallbackRouteProperties'), NoneType] = None, **kwargs)

Parameters

endpoints
RoutingEndpoints
Required

The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.

routes
list[RouteProperties]
Required

The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.

fallback_route
FallbackRouteProperties
Required

The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint.