IoTHub
Manages an IotHub
NOTE: Endpoints can be defined either directly on the
azure.iot.IoTHubresource, or using theazurerm_iothub_endpoint_*resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining aazurerm_iothub_endpoint_*resource and another endpoint of a different type directly on theazure.iot.IoTHubresource is not supported.NOTE: Routes can be defined either directly on the
azure.iot.IoTHubresource, or using theazure.iot.Routeresource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.NOTE: Fallback route can be defined either directly on the
azure.iot.IoTHubresource, or using theazure.iot.FallbackRouteresource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.
Create a IoTHub Resource
new IoTHub(name: string, args: IoTHubArgs, opts?: CustomResourceOptions);def IoTHub(resource_name, opts=None, endpoints=None, event_hub_partition_count=None, event_hub_retention_in_days=None, fallback_route=None, file_upload=None, ip_filter_rules=None, location=None, name=None, resource_group_name=None, routes=None, sku=None, tags=None, __props__=None);func NewIoTHub(ctx *Context, name string, args IoTHubArgs, opts ...ResourceOption) (*IoTHub, error)public IoTHub(string name, IoTHubArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args IoTHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IoTHubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IoTHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
IoTHub Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The IoTHub resource accepts the following input properties:
- Resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- Sku
Io
THub Sku Args A
skublock as defined below.- Endpoints
List<Io
THub Endpoint Args> An
endpointblock as defined below.- Event
Hub intPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- Event
Hub intRetention In Days The event hub retention to use in days. Must be between
1and7.- Fallback
Route IoTHub Fallback Route Args A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- File
Upload IoTHub File Upload Args A
file_uploadblock as defined below.- Ip
Filter List<IoRules THub Ip Filter Rule Args> One or more
ip_filter_ruleblocks as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- Routes
List<Io
THub Route Args> A
routeblock as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- Sku
Io
THub Sku A
skublock as defined below.- Endpoints
[]Io
THub Endpoint An
endpointblock as defined below.- Event
Hub intPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- Event
Hub intRetention In Days The event hub retention to use in days. Must be between
1and7.- Fallback
Route IoTHub Fallback Route A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- File
Upload IoTHub File Upload A
file_uploadblock as defined below.- Ip
Filter []IoRules THub Ip Filter Rule One or more
ip_filter_ruleblocks as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- Routes
[]Io
THub Route A
routeblock as defined below.- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- sku
Io
THub Sku A
skublock as defined below.- endpoints
Io
THub Endpoint[] An
endpointblock as defined below.- event
Hub numberPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- event
Hub numberRetention In Days The event hub retention to use in days. Must be between
1and7.- fallback
Route IoTHub Fallback Route A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- file
Upload IoTHub File Upload A
file_uploadblock as defined below.- ip
Filter IoRules THub Ip Filter Rule[] One or more
ip_filter_ruleblocks as defined below.- location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- routes
Io
THub Route[] A
routeblock as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- sku
Dict[Io
THub Sku] A
skublock as defined below.- endpoints
List[Io
THub Endpoint] An
endpointblock as defined below.- event_
hub_ floatpartition_ count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- event_
hub_ floatretention_ in_ days The event hub retention to use in days. Must be between
1and7.- fallback_
route Dict[IoTHub Fallback Route] A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- file_
upload Dict[IoTHub File Upload] A
file_uploadblock as defined below.- ip_
filter_ List[Iorules THub Ip Filter Rule] One or more
ip_filter_ruleblocks as defined below.- location str
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name str
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- routes
List[Io
THub Route] A
routeblock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the IoTHub resource produces the following output properties:
- Event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- Event
Hub stringEvents Path The EventHub compatible path for events data
- Event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- Event
Hub stringOperations Path The EventHub compatible path for operational data
- Hostname string
The hostname of the IotHub Resource.
- Id string
- The provider-assigned unique ID for this managed resource.
-
List<Io
THub Shared Access Policy> One or more
shared_access_policyblocks as defined below.- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- Event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- Event
Hub stringEvents Path The EventHub compatible path for events data
- Event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- Event
Hub stringOperations Path The EventHub compatible path for operational data
- Hostname string
The hostname of the IotHub Resource.
- Id string
- The provider-assigned unique ID for this managed resource.
-
[]Io
THub Shared Access Policy One or more
shared_access_policyblocks as defined below.- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- event
Hub stringEvents Path The EventHub compatible path for events data
- event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- event
Hub stringOperations Path The EventHub compatible path for operational data
- hostname string
The hostname of the IotHub Resource.
- id string
- The provider-assigned unique ID for this managed resource.
-
Io
THub Shared Access Policy[] One or more
shared_access_policyblocks as defined below.- type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- event_
hub_ strevents_ endpoint The EventHub compatible endpoint for events data
- event_
hub_ strevents_ path The EventHub compatible path for events data
- event_
hub_ stroperations_ endpoint The EventHub compatible endpoint for operational data
- event_
hub_ stroperations_ path The EventHub compatible path for operational data
- hostname str
The hostname of the IotHub Resource.
- id str
- The provider-assigned unique ID for this managed resource.
-
List[Io
THub Shared Access Policy] One or more
shared_access_policyblocks as defined below.- type str
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
Look up an Existing IoTHub Resource
Get an existing IoTHub resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IoTHubState, opts?: CustomResourceOptions): IoTHubstatic get(resource_name, id, opts=None, endpoints=None, event_hub_events_endpoint=None, event_hub_events_path=None, event_hub_operations_endpoint=None, event_hub_operations_path=None, event_hub_partition_count=None, event_hub_retention_in_days=None, fallback_route=None, file_upload=None, hostname=None, ip_filter_rules=None, location=None, name=None, resource_group_name=None, routes=None, shared_access_policies=None, sku=None, tags=None, type=None, __props__=None);func GetIoTHub(ctx *Context, name string, id IDInput, state *IoTHubState, opts ...ResourceOption) (*IoTHub, error)public static IoTHub Get(string name, Input<string> id, IoTHubState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Endpoints
List<Io
THub Endpoint Args> An
endpointblock as defined below.- Event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- Event
Hub stringEvents Path The EventHub compatible path for events data
- Event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- Event
Hub stringOperations Path The EventHub compatible path for operational data
- Event
Hub intPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- Event
Hub intRetention In Days The event hub retention to use in days. Must be between
1and7.- Fallback
Route IoTHub Fallback Route Args A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- File
Upload IoTHub File Upload Args A
file_uploadblock as defined below.- Hostname string
The hostname of the IotHub Resource.
- Ip
Filter List<IoRules THub Ip Filter Rule Args> One or more
ip_filter_ruleblocks as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- Routes
List<Io
THub Route Args> A
routeblock as defined below.-
List<Io
THub Shared Access Policy Args> One or more
shared_access_policyblocks as defined below.- Sku
Io
THub Sku Args A
skublock as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- Endpoints
[]Io
THub Endpoint An
endpointblock as defined below.- Event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- Event
Hub stringEvents Path The EventHub compatible path for events data
- Event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- Event
Hub stringOperations Path The EventHub compatible path for operational data
- Event
Hub intPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- Event
Hub intRetention In Days The event hub retention to use in days. Must be between
1and7.- Fallback
Route IoTHub Fallback Route A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- File
Upload IoTHub File Upload A
file_uploadblock as defined below.- Hostname string
The hostname of the IotHub Resource.
- Ip
Filter []IoRules THub Ip Filter Rule One or more
ip_filter_ruleblocks as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- Routes
[]Io
THub Route A
routeblock as defined below.-
[]Io
THub Shared Access Policy One or more
shared_access_policyblocks as defined below.- Sku
Io
THub Sku A
skublock as defined below.- map[string]string
A mapping of tags to assign to the resource.
- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- endpoints
Io
THub Endpoint[] An
endpointblock as defined below.- event
Hub stringEvents Endpoint The EventHub compatible endpoint for events data
- event
Hub stringEvents Path The EventHub compatible path for events data
- event
Hub stringOperations Endpoint The EventHub compatible endpoint for operational data
- event
Hub stringOperations Path The EventHub compatible path for operational data
- event
Hub numberPartition Count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- event
Hub numberRetention In Days The event hub retention to use in days. Must be between
1and7.- fallback
Route IoTHub Fallback Route A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- file
Upload IoTHub File Upload A
file_uploadblock as defined below.- hostname string
The hostname of the IotHub Resource.
- ip
Filter IoRules THub Ip Filter Rule[] One or more
ip_filter_ruleblocks as defined below.- location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name string
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- routes
Io
THub Route[] A
routeblock as defined below.-
Io
THub Shared Access Policy[] One or more
shared_access_policyblocks as defined below.- sku
Io
THub Sku A
skublock as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
- endpoints
List[Io
THub Endpoint] An
endpointblock as defined below.- event_
hub_ strevents_ endpoint The EventHub compatible endpoint for events data
- event_
hub_ strevents_ path The EventHub compatible path for events data
- event_
hub_ stroperations_ endpoint The EventHub compatible endpoint for operational data
- event_
hub_ stroperations_ path The EventHub compatible path for operational data
- event_
hub_ floatpartition_ count The number of device-to-cloud partitions used by backing event hubs. Must be between
2and128.- event_
hub_ floatretention_ in_ days The event hub retention to use in days. Must be between
1and7.- fallback_
route Dict[IoTHub Fallback Route] A
fallback_routeblock as defined below. If the fallback route is enabled, messages that don’t match any of the supplied routes are automatically sent to this route. Defaults to messages/events.- file_
upload Dict[IoTHub File Upload] A
file_uploadblock as defined below.- hostname str
The hostname of the IotHub Resource.
- ip_
filter_ List[Iorules THub Ip Filter Rule] One or more
ip_filter_ruleblocks as defined below.- location str
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name str
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
- routes
List[Io
THub Route] A
routeblock as defined below.-
List[Io
THub Shared Access Policy] One or more
shared_access_policyblocks as defined below.- sku
Dict[Io
THub Sku] A
skublock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
- type str
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.
Supporting Types
IoTHubEndpoint
- Connection
String string The connection string for the endpoint.
- Name string
The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.- Batch
Frequency intIn Seconds Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- Container
Name string The name of storage container in the storage account. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- Encoding string
Encoding that is used to serialize messages to blobs. Supported values are ‘avro’ and ‘avrodeflate’. Default value is ‘avro’. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- File
Name stringFormat File name format for the blob. Default format is
{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint typeAzureIotHub.StorageContainer.- Max
Chunk intSize In Bytes Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.
- Connection
String string The connection string for the endpoint.
- Name string
The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.- Type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.- Batch
Frequency intIn Seconds Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- Container
Name string The name of storage container in the storage account. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- Encoding string
Encoding that is used to serialize messages to blobs. Supported values are ‘avro’ and ‘avrodeflate’. Default value is ‘avro’. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- File
Name stringFormat File name format for the blob. Default format is
{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint typeAzureIotHub.StorageContainer.- Max
Chunk intSize In Bytes Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.
- connection
String string The connection string for the endpoint.
- name string
The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.- type string
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.- batch
Frequency numberIn Seconds Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- container
Name string The name of storage container in the storage account. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- encoding string
Encoding that is used to serialize messages to blobs. Supported values are ‘avro’ and ‘avrodeflate’. Default value is ‘avro’. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- file
Name stringFormat File name format for the blob. Default format is
{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint typeAzureIotHub.StorageContainer.- max
Chunk numberSize In Bytes Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.
- connection_
string str The connection string for the endpoint.
- name str
The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events,operationsMonitoringEvents,fileNotificationsand$default.- type str
The type of the endpoint. Possible values are
AzureIotHub.StorageContainer,AzureIotHub.ServiceBusQueue,AzureIotHub.ServiceBusTopicorAzureIotHub.EventHub.- batch_
frequency_ floatin_ seconds Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- container_
name str The name of storage container in the storage account. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- encoding str
Encoding that is used to serialize messages to blobs. Supported values are ‘avro’ and ‘avrodeflate’. Default value is ‘avro’. This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.- file_
name_ strformat File name format for the blob. Default format is
{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint typeAzureIotHub.StorageContainer.- max_
chunk_ floatsize_ in_ bytes Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type
AzureIotHub.StorageContainer.
IoTHubFallbackRoute
- Condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- Enabled bool
Used to specify whether the fallback route is enabled.
- Endpoint
Names List<string> The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
- Source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.
- Condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- Enabled bool
Used to specify whether the fallback route is enabled.
- Endpoint
Names []string The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
- Source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.
- condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- enabled boolean
Used to specify whether the fallback route is enabled.
- endpoint
Names string[] The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
- source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.
- condition str
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- enabled bool
Used to specify whether the fallback route is enabled.
- endpoint_
names List[str] The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
- source str
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.
IoTHubFileUpload
- Connection
String string The connection string for the Azure Storage account to which files are uploaded.
- Container
Name string The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
- Default
Ttl string The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours, and evaluates to ‘PT1H’ by default.
- Lock
Duration string The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds, and evaluates to ‘PT1M’ by default.
- Max
Delivery intCount The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
- Notifications bool
Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
- Sas
Ttl string The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours, and evaluates to ‘PT1H’ by default.
- Connection
String string The connection string for the Azure Storage account to which files are uploaded.
- Container
Name string The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
- Default
Ttl string The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours, and evaluates to ‘PT1H’ by default.
- Lock
Duration string The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds, and evaluates to ‘PT1M’ by default.
- Max
Delivery intCount The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
- Notifications bool
Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
- Sas
Ttl string The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours, and evaluates to ‘PT1H’ by default.
- connection
String string The connection string for the Azure Storage account to which files are uploaded.
- container
Name string The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
- default
Ttl string The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours, and evaluates to ‘PT1H’ by default.
- lock
Duration string The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds, and evaluates to ‘PT1M’ by default.
- max
Delivery numberCount The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
- notifications boolean
Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
- sas
Ttl string The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours, and evaluates to ‘PT1H’ by default.
- connection_
string str The connection string for the Azure Storage account to which files are uploaded.
- container_
name str The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
- default_
ttl str The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 48 hours, and evaluates to ‘PT1H’ by default.
- lock_
duration str The lock duration for the file upload notifications queue, specified as an ISO 8601 timespan duration. This value must be between 5 and 300 seconds, and evaluates to ‘PT1M’ by default.
- max_
delivery_ floatcount The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
- notifications bool
Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
- sas
Ttl str The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an ISO 8601 timespan duration. This value must be between 1 minute and 24 hours, and evaluates to ‘PT1H’ by default.
IoTHubIpFilterRule
IoTHubRoute
- Enabled bool
Used to specify whether a route is enabled.
- Endpoint
Names List<string> The list of endpoints to which messages that satisfy the condition are routed.
- Name string
The name of the route.
- Source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.- Condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- Enabled bool
Used to specify whether a route is enabled.
- Endpoint
Names []string The list of endpoints to which messages that satisfy the condition are routed.
- Name string
The name of the route.
- Source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.- Condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- enabled boolean
Used to specify whether a route is enabled.
- endpoint
Names string[] The list of endpoints to which messages that satisfy the condition are routed.
- name string
The name of the route.
- source string
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.- condition string
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
- enabled bool
Used to specify whether a route is enabled.
- endpoint_
names List[str] The list of endpoints to which messages that satisfy the condition are routed.
- name str
The name of the route.
- source str
The source that the routing rule is to be applied to, such as
DeviceMessages. Possible values include:RoutingSourceInvalid,RoutingSourceDeviceMessages,RoutingSourceTwinChangeEvents,RoutingSourceDeviceLifecycleEvents,RoutingSourceDeviceJobLifecycleEvents.- condition str
The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
IoTHubSharedAccessPolicy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Key
Name string The name of the shared access policy.
- Permissions string
The permissions assigned to the shared access policy.
- Primary
Key string The primary key.
- Secondary
Key string The secondary key.
- Key
Name string The name of the shared access policy.
- Permissions string
The permissions assigned to the shared access policy.
- Primary
Key string The primary key.
- Secondary
Key string The secondary key.
- key
Name string The name of the shared access policy.
- permissions string
The permissions assigned to the shared access policy.
- primary
Key string The primary key.
- secondary
Key string The secondary key.
- key_
name str The name of the shared access policy.
- permissions str
The permissions assigned to the shared access policy.
- primary_
key str The primary key.
- secondary_
key str The secondary key.
IoTHubSku
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.