Network Tap Args
    data class NetworkTapArgs(val annotation: Output<String>? = null, val destinations: Output<List<NetworkTapPropertiesDestinationsArgs>>? = null, val location: Output<String>? = null, val networkPacketBrokerId: Output<String>? = null, val networkTapName: Output<String>? = null, val pollingType: Output<Either<String, PollingType>>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkTapArgs> 
The Network Tap resource definition. Azure REST API version: 2023-06-15.
Example Usage
NetworkTaps_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var networkTap = new AzureNative.ManagedNetworkFabric.NetworkTap("networkTap", new()
    {
        Annotation = "annotation",
        Destinations = new[]
        {
            new AzureNative.ManagedNetworkFabric.Inputs.NetworkTapPropertiesDestinationsArgs
            {
                DestinationId = "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork",
                DestinationTapRuleId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule",
                DestinationType = "IsolationDomain",
                IsolationDomainProperties = new AzureNative.ManagedNetworkFabric.Inputs.IsolationDomainPropertiesArgs
                {
                    Encapsulation = "None",
                    NeighborGroupIds = new[]
                    {
                        "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup",
                    },
                },
                Name = "example-destinaionName",
            },
        },
        Location = "eastuseuap",
        NetworkPacketBrokerId = "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker",
        NetworkTapName = "example-networkTap",
        PollingType = "Pull",
        ResourceGroupName = "example-rg",
        Tags =
        {
            { "key6024", "1234" },
        },
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := managednetworkfabric.NewNetworkTap(ctx, "networkTap", &managednetworkfabric.NetworkTapArgs{
			Annotation: pulumi.String("annotation"),
			Destinations: []managednetworkfabric.NetworkTapPropertiesDestinationsArgs{
				{
					DestinationId:        pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork"),
					DestinationTapRuleId: pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule"),
					DestinationType:      pulumi.String("IsolationDomain"),
					IsolationDomainProperties: {
						Encapsulation: pulumi.String("None"),
						NeighborGroupIds: pulumi.StringArray{
							pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup"),
						},
					},
					Name: pulumi.String("example-destinaionName"),
				},
			},
			Location:              pulumi.String("eastuseuap"),
			NetworkPacketBrokerId: pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker"),
			NetworkTapName:        pulumi.String("example-networkTap"),
			PollingType:           pulumi.String("Pull"),
			ResourceGroupName:     pulumi.String("example-rg"),
			Tags: pulumi.StringMap{
				"key6024": pulumi.String("1234"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.managednetworkfabric.NetworkTap;
import com.pulumi.azurenative.managednetworkfabric.NetworkTapArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var networkTap = new NetworkTap("networkTap", NetworkTapArgs.builder()
            .annotation("annotation")
            .destinations(Map.ofEntries(
                Map.entry("destinationId", "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork"),
                Map.entry("destinationTapRuleId", "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule"),
                Map.entry("destinationType", "IsolationDomain"),
                Map.entry("isolationDomainProperties", Map.ofEntries(
                    Map.entry("encapsulation", "None"),
                    Map.entry("neighborGroupIds", "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup")
                )),
                Map.entry("name", "example-destinaionName")
            ))
            .location("eastuseuap")
            .networkPacketBrokerId("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker")
            .networkTapName("example-networkTap")
            .pollingType("Pull")
            .resourceGroupName("example-rg")
            .tags(Map.of("key6024", "1234"))
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:NetworkTap example-networkTap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun NetworkTapArgs(annotation: Output<String>? = null, destinations: Output<List<NetworkTapPropertiesDestinationsArgs>>? = null, location: Output<String>? = null, networkPacketBrokerId: Output<String>? = null, networkTapName: Output<String>? = null, pollingType: Output<Either<String, PollingType>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)