![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.managednetworkfabric.kotlin.NetworkTapArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.managednetworkfabric.kotlin
import com.pulumi.azurenative.managednetworkfabric.NetworkTapArgs.builder
import com.pulumi.azurenative.managednetworkfabric.kotlin.enums.PollingType
import com.pulumi.azurenative.managednetworkfabric.kotlin.inputs.NetworkTapPropertiesDestinationsArgs
import com.pulumi.azurenative.managednetworkfabric.kotlin.inputs.NetworkTapPropertiesDestinationsArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The Network Tap resource definition.
* Azure REST API version: 2023-06-15.
* ## Example Usage
* ### NetworkTaps_Create_MaximumSet_Gen
* ```csharp
* 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 = AzureNative.ManagedNetworkFabric.DestinationType.IsolationDomain,
* IsolationDomainProperties = new AzureNative.ManagedNetworkFabric.Inputs.IsolationDomainPropertiesArgs
* {
* Encapsulation = AzureNative.ManagedNetworkFabric.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 = AzureNative.ManagedNetworkFabric.PollingType.Pull,
* ResourceGroupName = "example-rg",
* Tags =
* {
* { "key6024", "1234" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* managednetworkfabric "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.NetworkTapPropertiesDestinationsArray{
* &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(managednetworkfabric.DestinationTypeIsolationDomain),
* IsolationDomainProperties: &managednetworkfabric.IsolationDomainPropertiesArgs{
* Encapsulation: pulumi.String(managednetworkfabric.EncapsulationNone),
* 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(managednetworkfabric.PollingTypePull),
* ResourceGroupName: pulumi.String("example-rg"),
* Tags: pulumi.StringMap{
* "key6024": pulumi.String("1234"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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 com.pulumi.azurenative.managednetworkfabric.inputs.NetworkTapPropertiesDestinationsArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.IsolationDomainPropertiesArgs;
* 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(NetworkTapPropertiesDestinationsArgs.builder()
* .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(IsolationDomainPropertiesArgs.builder()
* .encapsulation("None")
* .neighborGroupIds("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup")
* .build())
* .name("example-destinaionName")
* .build())
* .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());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:managednetworkfabric:NetworkTap example-networkTap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}
* ```
* @property annotation Switch configuration description.
* @property destinations List of destinations to send the filter traffic.
* @property location The geo-location where the resource lives
* @property networkPacketBrokerId ARM resource ID of the Network Packet Broker.
* @property networkTapName Name of the Network Tap.
* @property pollingType Polling type.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class NetworkTapArgs(
public val `annotation`: Output? = null,
public val destinations: Output>? = null,
public val location: Output? = null,
public val networkPacketBrokerId: Output? = null,
public val networkTapName: Output? = null,
public val pollingType: Output>? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy