PeerAsnArgs

data class PeerAsnArgs(val peerAsn: Output<Int>? = null, val peerAsnName: Output<String>? = null, val peerContactDetail: Output<List<ContactDetailArgs>>? = null, val peerName: Output<String>? = null, val validationState: Output<Either<String, ValidationState>>? = null) : ConvertibleToJava<PeerAsnArgs>

The essential information related to the peer's ASN. API Version: 2021-01-01.

Example Usage

Create a peer ASN

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var peerAsn = new AzureNative.Peering.PeerAsn("peerAsn", new()
{
PeerAsn = 65000,
PeerAsnName = "peerAsnName",
PeerContactDetail = new[]
{
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "noc@contoso.com",
Phone = "+1 (234) 567-8999",
Role = "Noc",
},
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "abc@contoso.com",
Phone = "+1 (234) 567-8900",
Role = "Policy",
},
new AzureNative.Peering.Inputs.ContactDetailArgs
{
Email = "xyz@contoso.com",
Phone = "+1 (234) 567-8900",
Role = "Technical",
},
},
PeerName = "Contoso",
});
});
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.NewPeerAsn(ctx, "peerAsn", &peering.PeerAsnArgs{
PeerAsn: pulumi.Int(65000),
PeerAsnName: pulumi.String("peerAsnName"),
PeerContactDetail: []peering.ContactDetailArgs{
{
Email: pulumi.String("noc@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8999"),
Role: pulumi.String("Noc"),
},
{
Email: pulumi.String("abc@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8900"),
Role: pulumi.String("Policy"),
},
{
Email: pulumi.String("xyz@contoso.com"),
Phone: pulumi.String("+1 (234) 567-8900"),
Role: pulumi.String("Technical"),
},
},
PeerName: pulumi.String("Contoso"),
})
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.PeerAsn;
import com.pulumi.azurenative.peering.PeerAsnArgs;
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 peerAsn = new PeerAsn("peerAsn", PeerAsnArgs.builder()
.peerAsn(65000)
.peerAsnName("peerAsnName")
.peerContactDetail(
Map.ofEntries(
Map.entry("email", "noc@contoso.com"),
Map.entry("phone", "+1 (234) 567-8999"),
Map.entry("role", "Noc")
),
Map.ofEntries(
Map.entry("email", "abc@contoso.com"),
Map.entry("phone", "+1 (234) 567-8900"),
Map.entry("role", "Policy")
),
Map.ofEntries(
Map.entry("email", "xyz@contoso.com"),
Map.entry("phone", "+1 (234) 567-8900"),
Map.entry("role", "Technical")
))
.peerName("Contoso")
.build());
}
}

Import

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

$ pulumi import azure-native:peering:PeerAsn peerAsnName /subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName

Constructors

Link copied to clipboard
constructor(peerAsn: Output<Int>? = null, peerAsnName: Output<String>? = null, peerContactDetail: Output<List<ContactDetailArgs>>? = null, peerName: Output<String>? = null, validationState: Output<Either<String, ValidationState>>? = null)

Properties

Link copied to clipboard
val peerAsn: Output<Int>? = null

The Autonomous System Number (ASN) of the peer.

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

The peer ASN name.

Link copied to clipboard

The contact details of the peer.

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

The name of the peer.

Link copied to clipboard
val validationState: Output<Either<String, ValidationState>>? = null

The validation state of the ASN associated with the peer.

Functions

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