Peering Service Args
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 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 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",
});
});
Content copied to clipboard
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering/v3"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:PeeringService peeringServiceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}
Content copied to clipboard
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
The location (state/province) of the customer.
Link copied to clipboard
The name of the peering service.
Link copied to clipboard
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
The name of the resource group.
Link copied to clipboard
The SKU that defines the type of the peering service.