-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_iothub - Add support for cloud_to_device block #14546
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -112,6 +112,16 @@ resource "azurerm_iothub" "example" { | |||||
endpoint_names = ["export", "export2"] | ||||||
} | ||||||
|
||||||
cloud_to_device { | ||||||
max_delivery_count = 30 | ||||||
default_ttl = "PT1H" | ||||||
feedback { | ||||||
time_to_live = "PT1H10M" | ||||||
max_delivery_count = 15 | ||||||
lock_duration = "PT30S" | ||||||
} | ||||||
} | ||||||
|
||||||
tags = { | ||||||
purpose = "testing" | ||||||
} | ||||||
|
@@ -148,6 +158,8 @@ The following arguments are supported: | |||||
|
||||||
* `enrichment` - (Optional) A `enrichment` block as defined below. | ||||||
|
||||||
* `cloud_to_device` - (Optional) A `cloud_to_device` block as defined below. | ||||||
|
||||||
* `public_network_access_enabled` - (Optional) Is the IotHub resource accessible from a public network? | ||||||
|
||||||
* `min_tls_version` - (Optional) Specifies the minimum TLS version to support for this hub. The only valid value is `1.2`. Changing this forces a new resource to be created. | ||||||
|
@@ -250,6 +262,26 @@ A `file_upload` block supports the following: | |||||
|
||||||
* `max_delivery_count` - (Optional) The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default. | ||||||
|
||||||
--- | ||||||
|
||||||
A `cloud_to_device` block supports the following: | ||||||
|
||||||
* `max_delivery_count` - (Optional) The maximum delivery count for cloud-to-device per-device queues. This value must be between 1 and 100, and evaluates to 10 by default. | ||||||
|
||||||
* `default_ttl` - (Optional) The default time to live for cloud-to-device messages, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours, and evaluates to 'PT1H' by default. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks @katbyte I wasn't sure if I should highlight 1 and 48 here as they aren't actual possible values in this case? |
||||||
|
||||||
* `feedback` - (Optional) A `feedback` block as defined below. | ||||||
|
||||||
--- | ||||||
|
||||||
A `feedback` block supports the following: | ||||||
|
||||||
* `time_to_live` - (Optional) The retention time for service-bound feedback messages, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours, and evaluates to 'PT1H' by default. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
* `max_delivery_count` - (Optional) The maximum delivery count for the feedback queue. This value must be between 1 and 100, and evaluates to 10 by default. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
* `lock_duration` - (Optional) The lock duration for the feedback queue, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 5 and 300 seconds, and evaluates to 'PT60S' by default. | ||||||
|
||||||
## Attributes Reference | ||||||
|
||||||
The following attributes are exported: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should quote values