PrefixArgs

data class PrefixArgs(val peeringServiceName: Output<String>? = null, val peeringServicePrefixKey: Output<String>? = null, val prefix: Output<String>? = null, val prefixName: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<PrefixArgs>

The peering service prefix class. Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.

Example Usage

Create or update a prefix for the peering service

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var prefix = new AzureNative.Peering.Prefix("prefix", new()
{
PeeringServiceName = "peeringServiceName",
PeeringServicePrefixKey = "00000000-0000-0000-0000-000000000000",
Prefix = "192.168.1.0/24",
PrefixName = "peeringServicePrefixName",
ResourceGroupName = "rgName",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewPrefix(ctx, "prefix", &peering.PrefixArgs{
PeeringServiceName: pulumi.String("peeringServiceName"),
PeeringServicePrefixKey: pulumi.String("00000000-0000-0000-0000-000000000000"),
Prefix: pulumi.String("192.168.1.0/24"),
PrefixName: pulumi.String("peeringServicePrefixName"),
ResourceGroupName: pulumi.String("rgName"),
})
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.peering.Prefix;
import com.pulumi.azurenative.peering.PrefixArgs;
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 prefix = new Prefix("prefix", PrefixArgs.builder()
.peeringServiceName("peeringServiceName")
.peeringServicePrefixKey("00000000-0000-0000-0000-000000000000")
.prefix("192.168.1.0/24")
.prefixName("peeringServicePrefixName")
.resourceGroupName("rgName")
.build());
}
}

Import

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

$ pulumi import azure-native:peering:Prefix peeringServicePrefixName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}

Constructors

Link copied to clipboard
constructor(peeringServiceName: Output<String>? = null, peeringServicePrefixKey: Output<String>? = null, prefix: Output<String>? = null, prefixName: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The name of the peering service.

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

The peering service prefix key

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

The prefix from which your traffic originates.

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

The name of the prefix.

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

The name of the resource group.

Functions

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