IpCommunity

class IpCommunity : KotlinCustomResource

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}

Properties

Link copied to clipboard
val action: Output<String>

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

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

Switch configuration description.

Link copied to clipboard

List the communityMembers of IP Community .

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Gets the provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Supported well known Community List.