This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getvNetPeering.go
54 lines (49 loc) · 3.08 KB
/
getvNetPeering.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package latest
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func GetvNetPeering(ctx *pulumi.Context, args *GetvNetPeeringArgs, opts ...pulumi.InvokeOption) (*GetvNetPeeringResult, error) {
var rv GetvNetPeeringResult
err := ctx.Invoke("azure-nextgen:databricks/latest:getvNetPeering", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type GetvNetPeeringArgs struct {
// The name of the workspace vNet peering.
PeeringName string `pulumi:"peeringName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the workspace.
WorkspaceName string `pulumi:"workspaceName"`
}
// Peerings in a VirtualNetwork resource
type GetvNetPeeringResult struct {
// Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
AllowForwardedTraffic *bool `pulumi:"allowForwardedTraffic"`
// If gateway links can be used in remote virtual networking to link to this virtual network.
AllowGatewayTransit *bool `pulumi:"allowGatewayTransit"`
// Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
AllowVirtualNetworkAccess *bool `pulumi:"allowVirtualNetworkAccess"`
// The reference to the databricks virtual network address space.
DatabricksAddressSpace *AddressSpaceResponse `pulumi:"databricksAddressSpace"`
// The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).
DatabricksVirtualNetwork *VirtualNetworkPeeringPropertiesFormatResponseDatabricksVirtualNetwork `pulumi:"databricksVirtualNetwork"`
// Name of the virtual network peering resource
Name string `pulumi:"name"`
// The status of the virtual network peering.
PeeringState string `pulumi:"peeringState"`
// The provisioning state of the virtual network peering resource.
ProvisioningState string `pulumi:"provisioningState"`
// The reference to the remote virtual network address space.
RemoteAddressSpace *AddressSpaceResponse `pulumi:"remoteAddressSpace"`
// The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering).
RemoteVirtualNetwork VirtualNetworkPeeringPropertiesFormatResponseRemoteVirtualNetwork `pulumi:"remoteVirtualNetwork"`
// type of the virtual network peering resource
Type string `pulumi:"type"`
// If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.
UseRemoteGateways *bool `pulumi:"useRemoteGateways"`
}