NamespaceIpFilterRule

class NamespaceIpFilterRule : KotlinCustomResource

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}

Properties

Link copied to clipboard
val action: Output<String>?

The IP Filter Action

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

IP Filter name

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

IP Mask

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>