IoTHubEventSourceResource Class

An event source that receives its data from an Azure IoTHub.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.timeseriesinsights.models._models_py3.EventSourceResource
IoTHubEventSourceResource

Constructor

IoTHubEventSourceResource(*, location: str, event_source_resource_id: str, iot_hub_name: str, consumer_group_name: str, key_name: str, tags: Dict[str, str] | None = None, timestamp_property_name: str | None = None, **kwargs)

Parameters

Name Description
location
Required
str

Required. Resource location.

tags
Required

A set of tags. Resource tags.

kind
Required

Required. The kind of the event source.Constant filled by server. Possible values include: "Microsoft.EventHub", "Microsoft.IoTHub".

timestamp_property_name
Required
str

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.

event_source_resource_id
Required
str

Required. The resource id of the event source in Azure Resource Manager.

iot_hub_name
Required
str

Required. The name of the iot hub.

consumer_group_name
Required
str

Required. The name of the iot hub's consumer group that holds the partitions from which events will be read.

key_name
Required
str

Required. The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.

Keyword-Only Parameters

Name Description
location
Required
event_source_resource_id
Required
iot_hub_name
Required
consumer_group_name
Required
key_name
Required
tags
Required
timestamp_property_name
Required

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

provisioning_state

Provisioning state of the resource. Possible values include: "Accepted", "Creating", "Updating", "Succeeded", "Failed", "Deleting".

creation_time

The time the resource was created.