From 0f41f3d55dc2c73fca6fa4c8d51790897f8e03c1 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Tue, 10 Oct 2023 15:42:48 +0800 Subject: [PATCH] Data Source: azurerm_virtual_hub_connection - add new properties --- .../network/virtual_hub_connection_data_source.go | 15 +++++++++++++++ .../docs/d/virtual_hub_connection.html.markdown | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/internal/services/network/virtual_hub_connection_data_source.go b/internal/services/network/virtual_hub_connection_data_source.go index 47978010eaf2..e27b955a2ae2 100644 --- a/internal/services/network/virtual_hub_connection_data_source.go +++ b/internal/services/network/virtual_hub_connection_data_source.go @@ -64,6 +64,16 @@ func dataSourceVirtualHubConnection() *pluginsdk.Resource { Computed: true, }, + "inbound_route_map_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "outbound_route_map_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "propagated_route_table": { Type: pluginsdk.TypeList, Computed: true, @@ -88,6 +98,11 @@ func dataSourceVirtualHubConnection() *pluginsdk.Resource { }, }, + "static_vnet_local_route_override_criteria": { + Type: pluginsdk.TypeString, + Computed: true, + }, + //lintignore:XS003 "static_vnet_route": { Type: pluginsdk.TypeList, diff --git a/website/docs/d/virtual_hub_connection.html.markdown b/website/docs/d/virtual_hub_connection.html.markdown index cb02c172d941..3bf9c8597c8f 100644 --- a/website/docs/d/virtual_hub_connection.html.markdown +++ b/website/docs/d/virtual_hub_connection.html.markdown @@ -54,8 +54,14 @@ An `routing` block exports the following: * `associated_route_table_id` - The ID of the route table associated with this Virtual Hub connection. +* `inbound_route_map_id` - The ID of the Route Map associated with this Routing Configuration for inbound learned routes. + +* `outbound_route_map_id` - The ID of the Route Map associated with this Routing Configuration for outbound advertised routes. + * `propagated_route_table` - A `propagated_route_table` block as defined below. +* `static_vnet_local_route_override_criteria` - The static VNet local route override criteria that is used to determine whether NVA in spoke VNet is bypassed for traffic with destination in spoke VNet. + * `static_vnet_route` - A `static_vnet_route` block as defined below. ---