IpCommunityArgs

data class IpCommunityArgs(val action: Output<Either<String, CommunityActionTypes>>? = null, val annotation: Output<String>? = null, val communityMembers: Output<List<String>>? = null, val ipCommunityName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val wellKnownCommunities: Output<List<Either<String, WellKnownCommunities>>>? = null) : ConvertibleToJava<IpCommunityArgs>

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

Example Usage

IpCommunities_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ipCommunity = new AzureNative.ManagedNetworkFabric.IpCommunity("ipCommunity", new()
{
Action = AzureNative.ManagedNetworkFabric.CommunityActionTypes.Permit,
Annotation = "annotationValue",
CommunityMembers = new[]
{
"1234:5678",
},
IpCommunityName = "example-ipCommunity",
Location = "EastUS",
ResourceGroupName = "rgIpCommunityLists",
Tags =
{
{ "key2814", "" },
},
WellKnownCommunities = new[]
{
AzureNative.ManagedNetworkFabric.WellKnownCommunities.Internet,
AzureNative.ManagedNetworkFabric.WellKnownCommunities.LocalAS,
AzureNative.ManagedNetworkFabric.WellKnownCommunities.NoExport,
AzureNative.ManagedNetworkFabric.WellKnownCommunities.GShut,
},
});
});
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.NewIpCommunity(ctx, "ipCommunity", &managednetworkfabric.IpCommunityArgs{
Action: pulumi.String(managednetworkfabric.CommunityActionTypesPermit),
Annotation: pulumi.String("annotationValue"),
CommunityMembers: pulumi.StringArray{
pulumi.String("1234:5678"),
},
IpCommunityName: pulumi.String("example-ipCommunity"),
Location: pulumi.String("EastUS"),
ResourceGroupName: pulumi.String("rgIpCommunityLists"),
Tags: pulumi.StringMap{
"key2814": pulumi.String(""),
},
WellKnownCommunities: pulumi.StringArray{
pulumi.String(managednetworkfabric.WellKnownCommunitiesInternet),
pulumi.String(managednetworkfabric.WellKnownCommunitiesLocalAS),
pulumi.String(managednetworkfabric.WellKnownCommunitiesNoExport),
pulumi.String(managednetworkfabric.WellKnownCommunitiesGShut),
},
})
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.IpCommunity;
import com.pulumi.azurenative.managednetworkfabric.IpCommunityArgs;
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 ipCommunity = new IpCommunity("ipCommunity", IpCommunityArgs.builder()
.action("Permit")
.annotation("annotationValue")
.communityMembers("1234:5678")
.ipCommunityName("example-ipCommunity")
.location("EastUS")
.resourceGroupName("rgIpCommunityLists")
.tags(Map.of("key2814", ""))
.wellKnownCommunities(
"Internet",
"LocalAS",
"NoExport",
"GShut")
.build());
}
}

Import

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

$ pulumi import azure-native:managednetworkfabric:IpCommunity example-ipCommunity /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipCommunities/{ipCommunityName}

Constructors

Link copied to clipboard
constructor(action: Output<Either<String, CommunityActionTypes>>? = null, annotation: Output<String>? = null, communityMembers: Output<List<String>>? = null, ipCommunityName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, wellKnownCommunities: Output<List<Either<String, WellKnownCommunities>>>? = 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 communityMembers: Output<List<String>>? = null

List the communityMembers of IP Community .

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

Name of the IP 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 tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val wellKnownCommunities: Output<List<Either<String, WellKnownCommunities>>>? = null

Supported well known Community List.

Functions

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