IpExtendedCommunityArgs

data class IpExtendedCommunityArgs(val action: Output<Either<String, CommunityActionTypes>>? = null, val annotation: Output<String>? = null, val ipExtendedCommunityName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val routeTargets: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IpExtendedCommunityArgs>

The IpExtendedCommunity resource definition. Uses Azure REST API version 2023-02-01-preview. Other available API versions: 2023-06-15.

Example Usage

IpExtendedCommunities_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipExtendedCommunity = new AzureNative.ManagedNetworkFabric.IpExtendedCommunity("ipExtendedCommunity", new()
{
Action = AzureNative.ManagedNetworkFabric.CommunityActionTypes.Permit,
Annotation = "annotationValue",
IpExtendedCommunityName = "example_ipExtendedCommunity",
Location = "EastUs",
ResourceGroupName = "rgIpExtendedCommunityLists",
RouteTargets = new[]
{
"1234:5678",
},
Tags =
{
{ "key5054", "key" },
},
});
});
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.NewIpExtendedCommunity(ctx, "ipExtendedCommunity", &managednetworkfabric.IpExtendedCommunityArgs{
Action: pulumi.String(managednetworkfabric.CommunityActionTypesPermit),
Annotation: pulumi.String("annotationValue"),
IpExtendedCommunityName: pulumi.String("example_ipExtendedCommunity"),
Location: pulumi.String("EastUs"),
ResourceGroupName: pulumi.String("rgIpExtendedCommunityLists"),
RouteTargets: pulumi.StringArray{
pulumi.String("1234:5678"),
},
Tags: pulumi.StringMap{
"key5054": pulumi.String("key"),
},
})
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.IpExtendedCommunity;
import com.pulumi.azurenative.managednetworkfabric.IpExtendedCommunityArgs;
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 ipExtendedCommunity = new IpExtendedCommunity("ipExtendedCommunity", IpExtendedCommunityArgs.builder()
.action("Permit")
.annotation("annotationValue")
.ipExtendedCommunityName("example_ipExtendedCommunity")
.location("EastUs")
.resourceGroupName("rgIpExtendedCommunityLists")
.routeTargets("1234:5678")
.tags(Map.of("key5054", "key"))
.build());
}
}

Import

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

$ pulumi import azure-native:managednetworkfabric:IpExtendedCommunity example_ipExtendedCommunity /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/{ipExtendedCommunityName}

Constructors

Link copied to clipboard
constructor(action: Output<Either<String, CommunityActionTypes>>? = null, annotation: Output<String>? = null, ipExtendedCommunityName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, routeTargets: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val action: Output<Either<String, CommunityActionTypes>>? = null

Action to be taken on the configuration. Example: Permit | Deny.

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

Switch configuration description.

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

Name of the IP Extended Community

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 routeTargets: Output<List<String>>? = null

Route Target List.The expected formats are ASN(plain):NN example 4294967294:50, ASN.ASN:NN example 65533.65333:40, IP-address:NN example 10.10.10.10:65535. The possible values of ASN,NN are in range of 0-65535, ASN(plain) is in range of 0-4294967295.

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

Resource tags.

Functions

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