PeeringServiceArgs

data class PeeringServiceArgs(val location: Output<String>? = null, val peeringServiceLocation: Output<String>? = null, val peeringServiceName: Output<String>? = null, val peeringServiceProvider: Output<String>? = null, val providerBackupPeeringLocation: Output<String>? = null, val providerPrimaryPeeringLocation: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<PeeringServiceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PeeringServiceArgs>

Peering Service API Version: 2021-01-01.

Example Usage

Create a peering service

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var peeringService = new AzureNative.Peering.PeeringService("peeringService", new()
{
Location = "eastus",
PeeringServiceLocation = "state1",
PeeringServiceName = "peeringServiceName",
PeeringServiceProvider = "serviceProvider1",
ProviderBackupPeeringLocation = "peeringLocation2",
ProviderPrimaryPeeringLocation = "peeringLocation1",
ResourceGroupName = "rgName",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewPeeringService(ctx, "peeringService", &peering.PeeringServiceArgs{
Location: pulumi.String("eastus"),
PeeringServiceLocation: pulumi.String("state1"),
PeeringServiceName: pulumi.String("peeringServiceName"),
PeeringServiceProvider: pulumi.String("serviceProvider1"),
ProviderBackupPeeringLocation: pulumi.String("peeringLocation2"),
ProviderPrimaryPeeringLocation: pulumi.String("peeringLocation1"),
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.PeeringService;
import com.pulumi.azurenative.peering.PeeringServiceArgs;
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 peeringService = new PeeringService("peeringService", PeeringServiceArgs.builder()
.location("eastus")
.peeringServiceLocation("state1")
.peeringServiceName("peeringServiceName")
.peeringServiceProvider("serviceProvider1")
.providerBackupPeeringLocation("peeringLocation2")
.providerPrimaryPeeringLocation("peeringLocation1")
.resourceGroupName("rgName")
.build());
}
}

Import

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

$ pulumi import azure-native:peering:PeeringService peeringServiceName /subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, peeringServiceLocation: Output<String>? = null, peeringServiceName: Output<String>? = null, peeringServiceProvider: Output<String>? = null, providerBackupPeeringLocation: Output<String>? = null, providerPrimaryPeeringLocation: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<PeeringServiceSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The location of the resource.

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

The location (state/province) of the customer.

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

The name of the peering service.

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

The name of the service provider.

Link copied to clipboard

The backup peering (Microsoft/service provider) location to be used for customer traffic.

Link copied to clipboard

The primary peering (Microsoft/service provider) location to be used for customer traffic.

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

The name of the resource group.

Link copied to clipboard
val sku: Output<PeeringServiceSkuArgs>? = null

The SKU that defines the type of the peering service.

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

The resource tags.

Functions

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