IpPrefixArgs

data class IpPrefixArgs(val annotation: Output<String>? = null, val ipPrefixName: Output<String>? = null, val ipPrefixRules: Output<List<IpPrefixRuleArgs>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IpPrefixArgs>

The IP Prefix resource definition. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native managednetworkfabric [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

IpPrefixes_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipPrefix = new AzureNative.ManagedNetworkFabric.IpPrefix("ipPrefix", new()
{
Annotation = "annotation",
IpPrefixName = "example-ipPrefix",
IpPrefixRules = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.IpPrefixRuleArgs
{
Action = AzureNative.ManagedNetworkFabric.CommunityActionTypes.Permit,
Condition = AzureNative.ManagedNetworkFabric.Condition.GreaterThanOrEqualTo,
NetworkPrefix = "10.10.10.10/30",
SequenceNumber = 4155123341,
SubnetMaskLength = "10",
},
},
Location = "eastus",
ResourceGroupName = "example-rg",
Tags =
{
{ "keyID", "KeyValue" },
},
});
});
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.NewIpPrefix(ctx, "ipPrefix", &managednetworkfabric.IpPrefixArgs{
Annotation: pulumi.String("annotation"),
IpPrefixName: pulumi.String("example-ipPrefix"),
IpPrefixRules: managednetworkfabric.IpPrefixRuleArray{
&managednetworkfabric.IpPrefixRuleArgs{
Action: pulumi.String(managednetworkfabric.CommunityActionTypesPermit),
Condition: pulumi.String(managednetworkfabric.ConditionGreaterThanOrEqualTo),
NetworkPrefix: pulumi.String("10.10.10.10/30"),
SequenceNumber: pulumi.Float64(4155123341),
SubnetMaskLength: pulumi.String("10"),
},
},
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("example-rg"),
Tags: pulumi.StringMap{
"keyID": pulumi.String("KeyValue"),
},
})
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.managednetworkfabric.IpPrefix;
import com.pulumi.azurenative.managednetworkfabric.IpPrefixArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.IpPrefixRuleArgs;
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 ipPrefix = new IpPrefix("ipPrefix", IpPrefixArgs.builder()
.annotation("annotation")
.ipPrefixName("example-ipPrefix")
.ipPrefixRules(IpPrefixRuleArgs.builder()
.action("Permit")
.condition("GreaterThanOrEqualTo")
.networkPrefix("10.10.10.10/30")
.sequenceNumber(4155123341)
.subnetMaskLength("10")
.build())
.location("eastus")
.resourceGroupName("example-rg")
.tags(Map.of("keyID", "KeyValue"))
.build());
}
}

Import

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

$ pulumi import azure-native:managednetworkfabric:IpPrefix example-ipPrefix /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/{ipPrefixName}

Constructors

Link copied to clipboard
constructor(annotation: Output<String>? = null, ipPrefixName: Output<String>? = null, ipPrefixRules: Output<List<IpPrefixRuleArgs>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Switch configuration description.

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

Name of the IP Prefix.

Link copied to clipboard
val ipPrefixRules: Output<List<IpPrefixRuleArgs>>? = null

The list of IP Prefix Rules.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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