NamespaceIpFilterRuleArgs

data class NamespaceIpFilterRuleArgs(val action: Output<Either<String, IPAction>>? = null, val filterName: Output<String>? = null, val ipFilterRuleName: Output<String>? = null, val ipMask: Output<String>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<NamespaceIpFilterRuleArgs>

Single item in a List or Get IpFilterRules operation Uses Azure REST API version 2018-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2018-01-01-preview.

Example Usage

NameSpaceIpFilterRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var namespaceIpFilterRule = new AzureNative.EventHub.NamespaceIpFilterRule("namespaceIpFilterRule", new()
{
Action = AzureNative.EventHub.IPAction.Accept,
FilterName = "sdk-IPFilterRules-7337",
IpFilterRuleName = "sdk-IPFilterRules-7337",
IpMask = "13.78.143.246/32",
NamespaceName = "sdk-Namespace-5232",
ResourceGroupName = "ResourceGroup",
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewNamespaceIpFilterRule(ctx, "namespaceIpFilterRule", &eventhub.NamespaceIpFilterRuleArgs{
Action: pulumi.String(eventhub.IPActionAccept),
FilterName: pulumi.String("sdk-IPFilterRules-7337"),
IpFilterRuleName: pulumi.String("sdk-IPFilterRules-7337"),
IpMask: pulumi.String("13.78.143.246/32"),
NamespaceName: pulumi.String("sdk-Namespace-5232"),
ResourceGroupName: pulumi.String("ResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventhub.NamespaceIpFilterRule;
import com.pulumi.azurenative.eventhub.NamespaceIpFilterRuleArgs;
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 namespaceIpFilterRule = new NamespaceIpFilterRule("namespaceIpFilterRule", NamespaceIpFilterRuleArgs.builder()
.action("Accept")
.filterName("sdk-IPFilterRules-7337")
.ipFilterRuleName("sdk-IPFilterRules-7337")
.ipMask("13.78.143.246/32")
.namespaceName("sdk-Namespace-5232")
.resourceGroupName("ResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventhub:NamespaceIpFilterRule sdk-IPFilterRules-7337 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}

Constructors

Link copied to clipboard
constructor(action: Output<Either<String, IPAction>>? = null, filterName: Output<String>? = null, ipFilterRuleName: Output<String>? = null, ipMask: Output<String>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val action: Output<Either<String, IPAction>>? = null

The IP Filter Action

Link copied to clipboard
val filterName: Output<String>? = null

IP Filter name

Link copied to clipboard
val ipFilterRuleName: Output<String>? = null

The IP Filter Rule name.

Link copied to clipboard
val ipMask: Output<String>? = null

IP Mask

Link copied to clipboard
val namespaceName: Output<String>? = null

The Namespace name

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group within the azure subscription.

Functions

Link copied to clipboard
open override fun toJava(): NamespaceIpFilterRuleArgs